User Name Password    
CleanMPG, Learn to raise fuel economy and lower emissions in whatever you drive.
MENU
• What is hypermiling? •
CleanMPG to AAA:
• Hypermiling Rebuttal •
 
• Home
• CleanMPG Staff
• Articles
• Fuel Economy Forums
      • Register
Go Hypermiling!

   Car Reviews:

Transit Connect

Lexus HS 250h

Canadian Insight-II

Canadian Jetta TDI


BMW 335d

Prius-III

Honda Insight-II

HCH-II
   Bike and Gear Reviews:

Kawasaki KLX250SF

Zero S

Aerostich Darien

Shoei Hornet DS


Honda CRF230L

Yamaha XT250


• More Reviews
• Gallery
• Mileage Logs
 
• CleanMPG Store
 
• Calendar
• Glossary
• Garage
• Files
 
• Research
• Related Sites
 
• Archives
• Arcade
 
• Monthly Fuel Efficient •
Vehicle Sales Figures


ScanGauge with X-Gauge: $159.95

Pre-programming, a CleanMPG laser cut decal, and shipping included!



Even better value for members only is available in the latest SG-II w/ X-Gauge Group Buy purchase thread.



While we strive to provide only the highest quality information through our members' offerings, if you find the information provided valuable, please consider a donation so that we can offer an even better experience for the membership and guests well into the future.

Thank you

-Wayne Gerdes
Owner/Admin
CleanMPG



Home Fuel Economy Forums Gallery Mileage Logs

Register FAQ Members List Search Today's Posts Mark Forums Read


Go Back   CleanMPG Forums » Modding and Hardware » ScanGauge


ScanGauge Anything ScanGauge related is open for discussion here.

Welcome to the CleanMPG forums.

Some posts may describe situations which may in some cases be unsafe or illegal in some jurisdictions. Please use common sense and consult your local laws to make sure you do not hurt yourself or others or break any laws.

You are currently viewing our boards as a guest which gives you limited access to view discussions, articles and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

XGauge (CAN-bus) for Dummies...

Tags: , , , ,

Reply
 
Thread Tools Display Modes
  #1   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-27-2008, 06:22 PM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
XGauge (CAN-bus) for Dummies...

EDIT:
Ok... I feel pretty stupid but I finally get it now. I've been trying for weeks to get my head around what XGauge was doing. Took WFEC and the revelation that we were flying blind without Battery Amps on the Prius to focus my efforts.

Well here's what I found. First let qualify that this is CAN-bus only. Since I'm a Prius Pilot that's all I've been focused on. So what I've found out is that there are two types of CanBus requests. Passive (snooping the bus) and active. Passive is kinda like ease-dropping on a conversation... the data is just there. Passive is like asking a direct question and expecting a direct answer.

Now after doing a bit of digging there is lots of data out there for the taking... Here's what I "think" we can get:

Passive
L/R GForce = TXD { 0x002A }
F/B GForce = TXD { 0x002B }
Steering degrees L/R = TXD { 0x002D }
Brake engagement % = TXD { 0x0038 }
Speed (decameters / hour ) = TXD { 0x00BC }
Gas pedal position = TXD { 0x024C }
Battery Temp = TXD { 0x03C3 }
Ignition timining = TXD { 0x052E }
EV button (on/off) = TXD { 0x0521 }
Gas Fill Level = TXD { 0x05AC }

Active
Battery SoC = TXD { 0x07E321CE }
Battery Temp = TXD { 0x07E321CF }
MG 1/2 RPM = TXD { 0x07E221C3 }
MG 1/2 RPM = TXD { 0x07E221C4 }

Now there is some other stuff like Headlights (on/off) and stuff like that that I'm not that interested in, but this data all looked pretty cool. I haven't gotten that deep into it so don't pepper me with Q's yet, but please help my "Teach Dan XGauge" thread.

If you look for the Passive commands and you can't find them, it's because the passive TXD is derived by taking the ID, left padding it with zeros and XOR'ing it wish 0x0008. Now all this is Attila Vass data, so I don't know if Ron has already tried and failed to get these to work, or if he just figured, no prius driver in his right mind would be interested in how many lateral G's he pulls in a turn. I'm obviously not in my right mind

GForce sensor is the first one I want to try to get working!

Now once I get the TXD working we can work on the rest... Here's my current reference set:
Attila Vass Can Dump (Excel)
2way's XGauge Coding walkthru
PriusChat XGauge Coding walkthru (Passive Can)
Prius Tech Info
PriusChat Known SGII Glide Bug
11011011
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>

Last edited by Dan : 06-30-2008 at 04:53 PM.
Reply With Quote
Sponsored Links
  #2   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-27-2008, 07:54 PM
bestmapman's Avatar
bestmapman bestmapman is offline
Fighting untruth and misinformation
 
Join Date: Dec 2007
Vehicles: 2007 Prius
Location: Cincinnati, KY
Posts: 2,645
Re: XGauge (CAN-bus) for Dummies...

Great thread dan. Can we also write to the can bus. What I am thinking is, can we command engine off when in Neutral. Thus having a glide above 42 MPH.
__________________
Drivin slow in the FAS lane.
Reply With Quote
  #3   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 01:41 AM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
Re: XGauge (CAN-bus) for Dummies...

Alright... First new XGauge is tested and Verified.

EV Button ( On / Off )
TXD: 05 21
RXF: 01 05 22 29 00 00
RXD: 31 01
MTH: 00 01 00 01 00 00
NAM: EVb

What you'll see on your Gauge is
EVb ON
EVb OFF

And the fun part... It's real-time. No polling delay since it's packet sniffing. I leave it as a homework assignment to decode the logic I used to arrive at the XGauge coding.

11011011
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>
Reply With Quote
  #4   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 11:45 AM
TheForce's Avatar
TheForce TheForce is offline
Senior Member
 
Join Date: Jun 2006
Vehicles: 2006 Toyota Prius
Location: Wheelersburg, Ohio
Posts: 458
Re: XGauge (CAN-bus) for Dummies...

Looks like your doing what I had planed to do. I just got my SG yesterday. After working with the RAW can-view data and the can-decoder software I'm now familiar with the raw CAN hex data and I know how to convert it.

I'm Not familiar with the way the xgauge does the converting yet. I think I will need an example of how you get from Vass's info to what the SG displays. I'm sure its simple.

I'm really interested seeing the Gforce in real time.
__________________
2006 Prius Barcelona #7. Pickup 2006/01/02

For a list of my mods visit http://www.jaygroh.com


Reply With Quote
  #5   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 12:48 PM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
Re: XGauge (CAN-bus) for Dummies...

Look through the refereces I listed in the OP and all the XGauge stuff is pretty well explained.

Here's the next dump of XGauges. These are blind codes (untested) so I don't know which work:

Battery Temp (Max)
TXD: 03 C3
RXF: 01 03 02 3B 00 00
RXD: 38 08
MTH: 00 01 00 01 00 00
NAM: BTc

Battery Temp (Min)
TXD: 03 C3
RXF: 01 03 02 3B 00 00
RXD: 30 08
MTH: 00 01 00 01 00 00
NAM: BTc

Left / Right GForce
TXD: 00 2A
RXF: 01 00 02 22 00 00
RXD: 10 10
MTH: 00 01 00 01 FE 00
NAM: LRg

Front / Back GForce
TXD: 00 2B
RXF: 01 00 02 23 00 00
RXD: 10 10
MTH: 00 01 00 01 FE 00
NAM: FBg

Alignment (stear left / right)
TXD: 00 2D
RXF: 01 00 02 25 00 00
RXD: 10 10
MTH: 00 01 00 01 00 00
NAM: Slr

Break Pedal Position
TXD: 00 38
RXF: 01 00 02 30 00 00
RXD: 30 08
MTH: 00 64 00 80 00 00
NAM: BPs %

11011011
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>
Reply With Quote
  #6   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 01:04 PM
TheForce's Avatar
TheForce TheForce is offline
Senior Member
 
Join Date: Jun 2006
Vehicles: 2006 Toyota Prius
Location: Wheelersburg, Ohio
Posts: 458
Re: XGauge (CAN-bus) for Dummies...

I just tried out the G force setting while sitting still and here is what I seen.

LRg stays at about 3 but if I shake the car the number jumps around a bit.

FBg stays at 1 even when I shake the car.

I will be leaving for work in about an hour and I will report back with my trip results.
__________________
2006 Prius Barcelona #7. Pickup 2006/01/02

For a list of my mods visit http://www.jaygroh.com


Reply With Quote
  #7   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 01:17 PM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
Re: XGauge (CAN-bus) for Dummies...

Yeah, it's just a flat hex value. I haven't scaled it to actuall GForce. It should go way positive on a hard left and way negative on a hard right.

11011011
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>
Reply With Quote
  #8   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 01:19 PM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
Re: XGauge (CAN-bus) for Dummies...

OK.. got another two coded up but untested....

Speed down to the hundredth place. I always disliked the fact that the speedo doesn't have a decimal point. Well now it does. The MTH was tricky on this so I'll actually be surprised if I got it spot on with the first attempt.

kph xx.xx
TXD: 00 BC
RXF: 01 00 42 B4 00 00
RXD: 38 10
MTH: 03 E8 04 00 00 00
NAM: kph xx.xx

mph xx.xx
TXD: 00 BC
RXF: 01 00 42 B4 00 00
RXD: 38 10
MTH: 08 D8 0E 93 00 00
NAM: mph xx.xx
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>
Reply With Quote
  #9   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 04:09 PM
TheForce's Avatar
TheForce TheForce is offline
Senior Member
 
Join Date: Jun 2006
Vehicles: 2006 Toyota Prius
Location: Wheelersburg, Ohio
Posts: 458
Re: XGauge (CAN-bus) for Dummies...

Gforce does work. Only problem is that the SG display rate is way too fast. You might have to divide the data by something to get it to slow down or to get an actual 0.00 gforce value.
__________________
2006 Prius Barcelona #7. Pickup 2006/01/02

For a list of my mods visit http://www.jaygroh.com


Reply With Quote
  #10   Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl
Old 06-28-2008, 04:19 PM
Dan's Avatar
Dan Dan is offline
KiloTanked in post 153451
 
Join Date: Jan 2007
Vehicles: 2007 Toyota Prius, 2008 Mercury Mariner Hybrid
Location: Houston, TX
Posts: 2,260
Re: XGauge (CAN-bus) for Dummies...

All these passive commands are gonna refresh wicked fast. Can't be helped... that's how many canbus packets are flooding the bus. You could do some creative binary shift operations to clip off the last 4 bits or something. That should slow the jitter.

11011011
__________________

Best commute = 14.3mi @ 114 MPG (sg2)
Best (non-trivial) tank = 1101mi @ 91.2 MPG (fcd)
MPG Centurion-Hybridfest 2007-Prius II-26mi @ 106 MPG (sg2)
Dan <11011011>
Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
So, should I stop taking the bus? bomber991 The Daily Grind 26 06-07-2008 10:24 PM
Napa's School District Receives CA's First Plug-In Hybrid School Bus. tarabell In the News 0 08-09-2007 05:53 PM
Vail's hybrid bus goes into service. xcel In the News 1 11-27-2006 12:48 PM
District among first to get PHEV bus. xcel In the News 2 09-12-2006 08:57 AM
DaimlerChrysler Delivers California’s First Diesel-Hybrid Bus to San Francisco. xcel In the News 0 07-01-2006 11:27 PM



All times are GMT -5. The time now is 08:09 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2006 - 2010, Clean MPG LLC. All Rights Reserved.