On 09/04/2009 01:43 PM, Gole, Anant wrote: > >> -----Original Message----- >> >>> [snip] >>> >>>> Ensuring proper ordering of out-going messages is tricky. I suggest >>>> using Vladislav's test programs posted recently for validation: >>>> >>>> https://lists.berlios.de/pipermail/socketcan-core/2009- >> August/002871.html >>> >>> I tried canecho utility and am indeed seeing issues - I am wondering if I >> am losing RX packets due to deferred handling. Will debug further. >> >> Can you show the output of canecho_gen? > > r...@arago:/home/anant# ./canbin/canecho_gen can0 > interface = can0, family = 29, type = 3, proto = 1 > 0078: [8] 01 02 03 04 05 06 07 08 > 0078: [8] 02 03 04 05 06 07 08 09 > 0078: [8] 03 04 05 06 07 08 09 0a > 0078: [8] 04 05 06 07 08 09 0a 0b > 0078: [8] 05 06 07 08 09 0a 0b 0c > 0078: [8] 06 07 08 09 0a 0b 0c 0d > 0078: [8] 07 08 09 0a 0b 0c 0d 0e > 0078: [8] 08 09 0a 0b 0c 0d 0e 0f > 0078: [8] 09 0a 0b 0c 0d 0e 0f 10 > 0078: [8] 0a 0b 0c 0d 0e 0f 10 11 > 0078: [8] 0b 0c 0d 0e 0f 10 11 12 > 0078: [8] 0c 0d 0e 0f 10 11 12 13 > 0078: [8] 0d 0e 0f 10 11 12 13 14 > 0078: [8] 0e 0f 10 11 12 13 14 15 > 0078: [8] 0f 10 11 12 13 14 15 16 > 0078: [8] 10 11 12 13 14 15 16 17 > 0078: [8] 11 12 13 14 15 16 17 18 > 0078: [8] 12 13 14 15 16 17 18 19 > 0078: [8] 13 14 15 16 17 18 19 1a > 0078: [8] 14 15 16 17 18 19 1a 1b > 0078: [8] 15 16 17 18 19 1a 1b 1c > 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 0 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 1 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 2 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 3 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 4 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 5 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 6 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > Databyte 7 mismatch ! > expected: 0078: [8] 16 17 18 19 1a 1b 1c 1d > received: 0078: [8] 18 19 1a 1b 1c 1d 1e 1f > > I am losing packets in send probably ...
You could attach another board to the bus sniffing the traffic with candump. This should make obvious what happened. Wolfgang. _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
