This OBD-II data from the OpenInverter board is just what I was looking for. I'm using Torque for a digital dash, would like to pull PIDs from Thunderstruck MCU and OpenInverter. I'd really like the "DIR" info, but there is lots of good things I could add. I see the request, and it looks like it was committed to the code. I just updated to 5.35.R-foc so I would think it's in there... But I imported the CSV and I'm not seeing data. I'm not setup to hack the CAN and pinned my own connector, so there's a chance the OpenInverter board is not actually on the CAN.
Does anyone have this working? OpenInverter OBD2 messaging over CAN to Torque (or other app?) I'm getting data from Thunderstruck MCU over CAN...
Code: Select all
/* Example csv for Torque Pro
SIGNED32() doesn't appear to work so I brute forced proper handling of signed int32 values.
Name,ShortName,ModeAndPID,Equation,Min Value,Max Value,Units,Header,startDiagnostic,stopDiagnostic,scale,minimumRefreshDelayMillis
udc,udc,0x2a07d6,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,300,400,V,,,,1,0
opmode,opmode,0x2a07d2,LOOKUP(D/32::0='Off':1='Run':2='Precharge':3='PchFail':4='Charge'),0,4,,,,,1,0
veh_speed,veh_speed,0x2a07e1,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,200,kph,,,,1,0
torq,torq,0x2a07e2,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,-3500,3500,,,,,1,0
speed,speed,0x2a07e0,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,20000,rpm,,,,1,0
pot,pot,0x2a07e3,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,4096,,,,,1,0
pot2,pot2,0x2a07e4,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,4096,,,,,1,0
potnom,potnom,0x2a07e7,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,100,%,,,,1,0
dir,dir,0x2a07e8,LOOKUP(SIGNED(D)/32::-1='Reverse':0='Neutral':1='Forward'),-1,1,,,,,1,0
tmphs,tmphs,0x2a07ec,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,100,C,,,,1,0
tmpm,tmpm,0x2a07ed,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,0,100,C,,,,1,0
idc,idc,0x2a07dc,((BIT(A:7) * -256*256*256*256) + (A*256*256*256) + (B*256*256) + (C*256) + D)/32,-200,200,A,,,,1,0