VW TP 2.0
This commit is contained in:
parent
ffd9b6b252
commit
b1df7a2727
|
@ -42,7 +42,7 @@ STATE_GOT_SECOND_RESPONSE = 2
|
||||||
function onCanHello(bus, id, dlc, data)
|
function onCanHello(bus, id, dlc, data)
|
||||||
-- here we handle 201 packets
|
-- here we handle 201 packets
|
||||||
print('Got Hello Response ' ..arrayToString(data))
|
print('Got Hello Response ' ..arrayToString(data))
|
||||||
ecuId = data[5] * 256 + data[6]
|
ecuId = data[6] * 256 + data[5]
|
||||||
|
|
||||||
print('From ECU ' ..ecuId)
|
print('From ECU ' ..ecuId)
|
||||||
txCan(1, ecuId, 0, { 0xA0, 0x0F, 0x8A, 0xFF, 0x32, 0xFF })
|
txCan(1, ecuId, 0, { 0xA0, 0x0F, 0x8A, 0xFF, 0x32, 0xFF })
|
||||||
|
|
Loading…
Reference in New Issue