receiving can bus messages and send over UDP/TCP continuously
Posted: Wed Aug 08, 2018 4:44 pm
Hi,
I have Task/thread which continuous check for any can message and then I put into my queue. other thread check queue and send it over TCP/UDP continuous.
Does any one have experience with it?
Any performance issues.
UDP is not 100% reliable I do lost some can packets using boradcast or unicast destination address.
For TCP. it buffers my multiple messages togther. send them some time 30, 60 or 90 bytes.
As my can packets are small size max =30 bytes.
Can I avoid TCP buffering?
I also notice TCP do retry as well. so I receive duplicate message.
Using mongoose Web Server Networking API. I cannot continuously send packets because mongoose thread polling every 1ms.
I am using lwip BSD socket. It is better.
I have Task/thread which continuous check for any can message and then I put into my queue. other thread check queue and send it over TCP/UDP continuous.
Does any one have experience with it?
Any performance issues.
UDP is not 100% reliable I do lost some can packets using boradcast or unicast destination address.
For TCP. it buffers my multiple messages togther. send them some time 30, 60 or 90 bytes.
As my can packets are small size max =30 bytes.
Can I avoid TCP buffering?
I also notice TCP do retry as well. so I receive duplicate message.
Using mongoose Web Server Networking API. I cannot continuously send packets because mongoose thread polling every 1ms.
I am using lwip BSD socket. It is better.