Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Adding extra sensor to the can network, and read them with torque

Pages: [1]
Author Topic: Adding extra sensor to the can network, and read them with torque
yoyop
Member
Posts: 13
Post Adding extra sensor to the can network, and read them with torque
on: March 14, 2021 (GMT)

Hello,
A friend made a program for arduino with canshield.

There is an issue when getting the code with torque pro, engine temp is in fact engine pressure, gearbox temp is diff temp… everything is mixed up.

Here is the code on the arduino

(buf[2]== Oils_PID){
byte data1[8] = {0x06, 0x01, Oils_PID, engine_OilP.currentValue, engine_OilT.currentValue, gearbox_OilT.currentValue, differential_OilT.currentValue, 0x00}; // [#bytes , Mode , PID , A , B , C , D, no use]
CAN0.sendMsgBuf(CAN_RSPD_PID, 0, 8, data1); // send answer to adress 0x7E8, standard (not extended), message length, data

Pid on torque pro
engine_OilP EngOilP 0x01EE A 0 150 psi
engine_OilT EngOilT 0x01EE B 0 170 °C
gearbox_OilT GearOilT 0x01EE C 0 170 °C
differential DiffOilT 0x01EE D 0 170 °C

Any idea whats wrong? thanks

Capp777
Member
Posts: 2994
Post Re: Adding extra sensor to the can network, and read them with torque
on: March 14, 2021 (GMT)

Have you tried setting your current values
to known different constants to see what is
being sent to Torque?

{0x06, 0x41, 0xEE, 0x0A, 0x0B, 0x0C, 0x0D, 0x00}

Test Torque pid raw hex response to see
how the message is received and the order
of the constant different values.

>AT SH 7E0
OK

>01 EE
7E8 06 41 EE 0A 0B 0C 0D 00

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.009 seconds.

  Follow me on twitter