PCAN-Ethernet Gateway Internal Buffer
Posted: Wed 23. Aug 2023, 21:25
Hello,
We are seeing some unexpected behavior with the PCAN-Ethernet gateway we are using to communicate using TCP sockets between a PCB that broadcasts and can receive CAN messages, and a linux server.
We observed that we were receiving stale data from the gateway and after some experimentation, concluded that the gateway must have some sort of internal storage buffer that begins to fill up as soon as we connect the PCB (which is constantly sending out CAN messages) to the gateway. If there is a delay between when the PCB and the gateway are connected, and when the server reads data off the gateway, we get the data that was stored in the gateway's buffer when the PCB and gateway were first connected not the newest data being sent by the PCB.
We are able to work around this by dumping the first 33156 bytes of data received whenever we open a socket from the server to the gateway, but this is not an ideal solution. Is there any way to configure the size of the gateway's internal data buffer or turn it off completely? I was not able to find any mention of this behavior in the developer documentation or the manual.
Thank you!
We are seeing some unexpected behavior with the PCAN-Ethernet gateway we are using to communicate using TCP sockets between a PCB that broadcasts and can receive CAN messages, and a linux server.
We observed that we were receiving stale data from the gateway and after some experimentation, concluded that the gateway must have some sort of internal storage buffer that begins to fill up as soon as we connect the PCB (which is constantly sending out CAN messages) to the gateway. If there is a delay between when the PCB and the gateway are connected, and when the server reads data off the gateway, we get the data that was stored in the gateway's buffer when the PCB and gateway were first connected not the newest data being sent by the PCB.
We are able to work around this by dumping the first 33156 bytes of data received whenever we open a socket from the server to the gateway, but this is not an ideal solution. Is there any way to configure the size of the gateway's internal data buffer or turn it off completely? I was not able to find any mention of this behavior in the developer documentation or the manual.
Thank you!