<b>Am I sending correct CAN packets?</b>
I am making some modest progress. Because I couldn't get the serial filter command to work I have changed the JSON output code in SerialCommand.h so it shows Message ID and payload of only one particular message ID. A very basic filter. By trial and error, I found the messages of events that occur when for instance the mirrors are folded, the doors are locked, the windows go up/down and the fan (up/down). Finally some meaning in all that data :-)
On to the next challenge, send some CAN packets to make something happen. No successful attempts so far. Hopefully someone can see what is going wrong. For example, when I fold the mirrors I see these messages:
"id":"50","payload":["0","5B","40","5","D9","3","4","0"] - folding
"id":"50","payload":["0","5B","40","5","89","3","4","0"] - finished
"id":"50","payload":["0","5B","40","5","E9","3","4","0"] - unfolding
"id":"50","payload":["0","5B","40","5","89","3","4","0"] - finished
Logging in HEX looks like this:
00 50 00 5B 40 05 89 03 04 00 08
00 50 00 5B 40 05 D9 03 04 00 08
00 50 00 5B 40 05 E9 03 04 00 08
So, I was hoping I could trigger the 'folding/unfolding mirrors " action by sending the following packets:
02010050005B4005D903040008
02010050005B4005E903040008
I thought:
0201 = send on bus 1, 0050 = message id, 005B4005D9030400=payload, 08 = length
But nothing happens. I tried the windows and door lock commands too but no luck. I think I have to recycle the CBT after each failure to try again, so that's what I do...
<b>Another question:</b> in CoolTerm you can set the Transmit option "Terminate send string data" with 0D 0A, should this setting be active? I tried it with and without but it didn't make a difference.
last edited by