Access to a diagnostic session with private access
Hi, I need to put a ECU into diag mode and access private data in a secured session.I am supposed to send "10 03", then "27 03", receive a seed, and send the private key with "27 04".This is working fine with the terminal in CarScanner mobile app connected to a BT dongle, but when I try to use the OVMS box, the "10 03" is ok, but "27 03" return a serviceNotSupportedInActiveSessionerror. It is possible to start a secured / private session with the OVMS box ? Didier
Didier, you may need to send a periodic "tester present" signal after entering the diagnostic session via "10 03". Depending on the vehicle, the diag session automatically terminates within 60 seconds or less, if the tester presence isn't signalled. The RE toolkit contains a tester presence tool: OVMS# re obdii tester ? Usage: re obdii tester list|start|stop|stopall list List current tester present signals start Start sending a tester present signal to an ECU stop Stop tester present for an ECU stopall Stop tester present for all ECUs This normally isn't needed if you send the commands directly in series. If you can exclude that issue, I'd say you've got an error in the key calculation. Regards, Michael Am 28.09.24 um 22:54 schrieb didier--- via OvmsDev:
Hi,
I need to put a ECU into diag mode and access private data in a secured session. I am supposed to send "10 03", then "27 03", receive a seed, and send the private key with "27 04". This is working fine with the terminal in CarScanner mobile app connected to a BT dongle, but when I try to use the OVMS box, the "10 03" is ok, but "27 03" return a serviceNotSupportedInActiveSession error. It is possible to start a secured / private session with the OVMS box ?
Didier
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
On 9/29/24 00:50, Michael Balzer via OvmsDev wrote:
you may need to send a periodic "tester present" signal after entering the diagnostic session via "10 03".
Interesting. In J1850, secondary id 0x03 (state of health/node alive) is periodically sent by many modules. Craig
Thanks, with the "re obdii tester" command I was able to keep the private session alive and send my data to get the battery cell info hidden in a internal routine of the ECU. Didier Le dimanche 29 septembre 2024 à 14 h 02 min 49 s HAE, Craig Leres via OvmsDev <ovmsdev@lists.openvehicles.com> a écrit : On 9/29/24 00:50, Michael Balzer via OvmsDev wrote:
you may need to send a periodic "tester present" signal after entering the diagnostic session via "10 03".
Interesting. In J1850, secondary id 0x03 (state of health/node alive) is periodically sent by many modules. Craig _______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
In fact I found that if I am fast enough on the keyboard I can send the "10 03" and "27 03", without any problem, but if I am too slow, I have this "service not supported in active session" error. I guess the ECU put itself back in active mode instead of diag mode if no data is sent within a short timeframe. Didier Le lundi 30 septembre 2024 à 12 h 16 min 43 s HAE, didier@ernotte.com <didier@ernotte.com> a écrit : Thanks, with the "re obdii tester" command I was able to keep the private session alive and send my data to get the battery cell info hidden in a internal routine of the ECU. Didier Le dimanche 29 septembre 2024 à 14 h 02 min 49 s HAE, Craig Leres via OvmsDev <ovmsdev@lists.openvehicles.com> a écrit : On 9/29/24 00:50, Michael Balzer via OvmsDev wrote:
you may need to send a periodic "tester present" signal after entering the diagnostic session via "10 03".
Interesting. In J1850, secondary id 0x03 (state of health/node alive) is periodically sent by many modules. Craig _______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
participants (3)
-
Craig Leres -
didier@ernotte.com -
Michael Balzer