Open gbkwiatt opened 1 year ago
So your protected ID is x80.. lets verify if your message is correct example: 0x55 0x80 0x10 0x49 0x00 0x26
x26 is a checksum
so x10+x49+00 = x59 x59 + x80 = d9
d9 in DEC is = 217 255-217 = 38 (if you had a value of 984 for example and not 217.. you would 984 - (Floor(984/255) * 255)) we are trying to get value under 255)
38 in HEX = x26 (there is a better way of doing this calc but its easier to explain this way)
So your messages are correct.. not sure why you dont see 00 before 55.. not sure if its device you are using or what
Interesting, I was trying to calculate checksum but I guess I missed something out. so that also means it's LIN V2? because it's enhanced checksum ?
Also protected ID is x80, but didn't that supposed to be something lower than x3F ?
actually now I "clicked" - PID is not ID and ID supposed to be up to 0x3F, which with decoding 0x80 with parity bits, it should be that, ID is 0x20
hex or dec 32, which makes sense.
and btw, I am using MCP2021 as a LIN transceiver, so maybe somehow it knows to remove break byte, but it's a bit weird
What year is your Ford ? Most of stuff after 2003 is V2..
On Sat, Jan 21, 2023, 9:08 AM Tomasz Kwiatkowski @.***> wrote:
Interesting, I was trying to calculate checksum but I guess I missed something out. so that also means it's LIN V2? because it's enhanced checksum ?
— Reply to this email directly, view it on GitHub https://github.com/nuriC0/gm-lin-bus/issues/1#issuecomment-1399258292, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FUJ2TWHL4BIXFDFC5QEYLWTPUUBANCNFSM6AAAAAAUCMQG7I . You are receiving this because you commented.Message ID: @.***>
Mondeo 2016 so yeah V2
massive thanks again - I've finally managed to properly capture and send LIN frames and it all works. I owe you a beer
any time.. glad i was able to help
I am trying to figure out LIN in my FORD - I think baud should be 10417, I've finally started getting sync byte 0x55, however it's not followed by
0x00
break and identifier doesn't make sense either. my goal is to send messages but I don't think I am even reading them properly. here are my messages, I've assumed that 0x55 is a sync byteassuming 0x55 is a sync byte an I am missing break
0x00
, id is0x80
which also is out of scale potentially.I a running out of ideas how to figure out that LIN. Any hints will be really appreciated