Socket Driver repeating messages after bus disconnected
Posted: Mon 12. Dec 2016, 11:02
Hi @all,
I'm having some problems using the socketcan interface that comes with the pcan driver.
My set up is the following:
- Linux PC with pcan interface, master software working on one socket, Wireshark/candump sniffing on another socket.
- Microcontroller with integrated can interface, working as slave.
When I start this system, everything works as expected.
But when I disconnect the PC interface on the can bus side for a few seconds, the socket driver starts behaving weird after reconnection. It seems to be repeating messages received from the bus, over and over again. With time those repeating messages even get more frequent.
In this image, every 1s there is one real message and ~7 bogus ones. I verified that those are bogus messages by connecting a second bus monitor device.
I've tried the same procedure with an embedded linux device (IMX28), and there are no problems.
More info:
Linux Debian 8, Kernel 3.16.0-4-amd64
Hardware USB ID 0c72:000c PEAK System PCAN-USB
Driver peak-linux-driver-8.2
Thank you for your help!
I'm having some problems using the socketcan interface that comes with the pcan driver.
My set up is the following:
- Linux PC with pcan interface, master software working on one socket, Wireshark/candump sniffing on another socket.
- Microcontroller with integrated can interface, working as slave.
When I start this system, everything works as expected.
But when I disconnect the PC interface on the can bus side for a few seconds, the socket driver starts behaving weird after reconnection. It seems to be repeating messages received from the bus, over and over again. With time those repeating messages even get more frequent.
In this image, every 1s there is one real message and ~7 bogus ones. I verified that those are bogus messages by connecting a second bus monitor device.
I've tried the same procedure with an embedded linux device (IMX28), and there are no problems.
More info:
Linux Debian 8, Kernel 3.16.0-4-amd64
Hardware USB ID 0c72:000c PEAK System PCAN-USB
Driver peak-linux-driver-8.2
Thank you for your help!