zapta / linbus

An Arduino based LINBUS stack and signal interceptor/injector.
183 stars 70 forks source link

differend ID on serial port reported #34

Open Alf-R opened 5 years ago

Alf-R commented 5 years ago

Hi, I tested the analyzer sctech at my System. My setuP is a Watturino with a ATmega328P-AUR and a lin Chip TJA1021 A difference to your scematic is a 30K resistor for the slave termination (LIN Standard) I send the Message (configured as a Master) by PCAN-LIN of PEAK company. If i send a message some ID's seem to be different. sent | serial report 30 | f0 31 | b1 32 | 32 33 | 73 34 | b4 35 | f5 36 | 76 37 | 37 38 | 78 39 | 39 3a | ba 3b | fb 3c | 3c 3d | 7d 3e | fe 3f | bf

The characters of the mesage are ok, just a little scramble in th message ID. Could this be caused by the resistor in my setup? BR Alf

remulasce commented 1 year ago

I have encountered the same issue. My ids are: Expected: 0x0a = 00001010 Actual: 0xca = 11001010 = 202

202 is an illegal ID. Based on the bits, it looks like the ID parity bits aren't being removed from the reported ID.

To work around this I'm just going to use 0xCA in the injector code, even though the real ID is 0x0A.