I think I have found another issue.
I am using SocketCAN API to get CAN data from CAN0 interface (using NON blocking socket) but I am seeing intermittently usually after 70 seconds, I get a lull period of 8-10 seconds where socket gives me “Resource Temporarily unavailable error” continuously.
I have sued CANDUMP and it shows incoming data perfectly at 10msec intervals.
Since my socket is NON BLOCKING so, I poll it in a loop of 10msec and incoming CAN data is also @ 10msec intervals. With this setup I am bound to see couple of “Resource Temporarily Unavailable” messages, for e.g. see below, I am getting good data i.e. IMU Data: XXX every 4th call to the socket or so.:
BAD CASE (looks like Socket is struggling):
What could cause the Socket to behave this way ?
External traffic, Is there any tool like wireshark which I could run on Toradex to see what is going on ?
Your timely help is appreciated.