Torque

Forums

Forums

Guest  

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




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Custom init and PID

Pages: [1]
Author Topic: Custom init and PID
alex666
Member
Posts: 17
Post Custom init and PID
on: December 18, 2020 (GMT)

I checked init that one other app do to access data over just five CAN registers. It goes like that:

Sent “ATS0\r”
Sent “ATAL\r”
Sent “ATV0\r”
Sent “ATSP6\r”
Sent “ATSH6A8\r”
Sent “ATCRA688\r”
Sent “ATFCSH6A8\r”
Sent “ATFCSD300000\r”
Sent “ATFCSM1\r”
Sent “81\r”
Sent “1003\r”
Sent “10C0\r”
Sent “10A4\r”
Sent “2180\r”
Sent “21FE\r”
Sent “17FF00\r”
Sent “ATDP\r”

after that it just reads from following addresses all the time:

Sent “21C98001\r”
Sent “21CA8001\r”
Sent “21CC8001\r”
Sent “21CD8001\r”
Sent “21CB8001\r”

I set up same init in torqe but it is not working.

PID I try to read is throtle on Citroen C5 2.0HDI:
Name ShortName ModeAndPID Equation Min Value Max Value Units Header
C5 5FN Throttle Position Throttle Throttle 21CA8001 (R13 * 256 + R14) * 0.1 0 100 % 6A8

for R13 and R14 I used letters M and N but it does not work.

If I do no INIT I get no response with a header specified on custom PID and nodata if no header specified. If I do whole INIT no connection could be established with engine.

Can somebody suggest what to do?

Alex

cintakc
Member
Posts: 1661
Post Re: Custom init and PID
on: December 18, 2020 (GMT)

init String
atsp6\natsh6a8\natfcsh6a8\natfcsd300010\natfcsm1\natcra688\n81\n10c0

when creating PID

Header: 6A8

alex666
Member
Posts: 17
Post Re: Custom init and PID
on: December 22, 2020 (GMT)

Thank you, I tried that and did not worked. Will try again and record BT communication to see whats going on there.

alex666
Member
Posts: 17
Post Re: Custom init and PID
on: December 22, 2020 (GMT)

Quote from alex666 on December 22, 2020
Thanks @cintakc I did not noticed at first that you put in natfcsd300010 while I had natfcsd300000 and I also noticed that init does not work if I use \N instead \n. After I changed those two INIT went through and I managed to get RPM via new ID defined as stated up.

One more question if you have some solution.

reading 21CA8001 returns a whole bunch of data. Is there any way to get them out without repeating reading? Reading that location should gave me:

Name ShortName ModeAndPID Equation Min Value Max Value Units
C5 5FN Engine speed Speed 21C08001 R2 * 256 + R3 0 6000 rpm
C5 5FN Vehicle speed Speed 21CA8001 R8 0 255 km / h
C5 5FN Throttle Position Throttle Throttle 21CA8001 (R13 * 256 + R14) * 0.1 0 100 %
C5 5FN Transmission number Transmission 21CA8001 Lookup (R27 :: 74 = ‘P’: 73 = ‘R’: 72 = ‘D’) 1 6 –

I can store value but as I understand that is storing calculated value not registers that were read.

I

cintakc
Member
Posts: 1661
Post Re: Custom init and PID
on: December 22, 2020 (GMT)

already calculated values are saved to the log, but not values from read registers,
as far as I know, data in a program with the same PID is not requested repeatedly for different parameters

alex666
Member
Posts: 17
Post Re: Custom init and PID
on: December 23, 2020 (GMT)

For Citroen C5 2.0 HDI reading from just those five 21C98001, 21CA8001, 21CC8001, 21CD8001, 21CB8001 we get all the data from speed, RPM, all temperatures, preasures, which gear is on, injectors timing, braking etc.. (check https://play.google.com/store/apps/details?id=com.fap.c.faplite&hl=en_US&gl=US)

thats a list of parameters (for other Citroen but just so see what I mean):
https://docs.google.com/spreadsheets/d/1BkO0dxMq-a_5NCBz3S4Jot8XgQBGUqHRMMHO1HsPOxo/edit?usp=sharing

Returns are big so continues reading is really to slow but if it would be possible to make one read and then use it in calculations that would be great..

cintakc
Member
Posts: 1661
Post Re: Custom init and PID
on: December 23, 2020 (GMT)

try this init String
atsp6\natsh6a8\natfcsh6a8\natfcsd300010\natfcsm1\natcra688\n81\n10c0\natst10
you just have very long responses more than 50 bytes, so the parameters polling rate will be very low

alex666
Member
Posts: 17
Post Re: Custom init and PID
on: December 23, 2020 (GMT)

Will try it tomorrow. Yes poll is big as many data in but in reality with CitroenFap it runs really fast. It is capable of logging all data with 0.5s periode but logical have some other issues that keeps TorquePro as No1 :)

alex666
Member
Posts: 17
Post Re: Custom init and PID
on: December 25, 2020 (GMT)

Quote from cintakc on December 23, 2020
try this init String
atsp6\natsh6a8\natfcsh6a8\natfcsd300010\natfcsm1\natcra688\n81\n10c0\natst10
you just have very long responses more than 50 bytes, so the parameters polling rate will be very low

I did test that and it looks like the response is faster. Don’t know if that have anything to do with the change but that is what I noticed. :)

Thanks. Alex

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

  Follow me on twitter