Login  Register

Re: 6A1/6A2

Posted by mcaldwelva on Nov 19, 2015; 11:04pm
URL: http://bluesaab-forum.90.s1.nabble.com/6A1-6A2-tp15p30.html

Cool! I don't think we can get much more out of sniffing just the head unit.

The code I'm testing now responds to each 6a1 with a series of 6a2's. I'm just looking at the bottom half of byte 3 of the 6a1 message to determine the request type:
21 00 00 13 01 02 44 00 power on
21 00 00 12 01 02 44 00 active
21 00 00 18 01 00 00 00 power off

In response, I'm sending a sequence of 4 messages like I saw on ecuproject.  This is my response to "power on", which I think is "I'm spinning up":
32 00 00 03 01 02 00 00
42 00 00 22 00 00 00 00
52 00 00 22 00 00 00 00
62 00 00 22 00 00 00 00

This is my response to the "active" request:
32 00 00 16 01 02 00 00
42 00 00 36 00 00 00 00
52 00 00 36 00 00 00 00
62 00 00 36 00 00 00 00

And using this as the response to "power down":
32 00 00 19 01 00 00 00
42 00 00 38 00 00 00 00
52 00 00 38 00 00 00 00
62 00 00 38 00 00 00 00

It looks like there should be 100ms between messages, but at the moment I'm just blasting them out and letting the CAN chip send them as soon as it can.  It also looks like there's more to the normal shut down sequence, but I'm hoping to keep it simple.

I cleared the SID again this morning to test this code and it actually seems to be behaving well so far.  I'll keep an eye on it and let you know how it goes.
'00 9-3 Viggen