Hi,
I'm using a Phytec board with a CAN interface (using SN65HVD233 chip).
The Phytec board sends a command (or list of various commands) to another module using a Stellaris, which takes samples and sends the data back over the CAN lines.
The Phytec board is totally fine sending a command to the Stellaris, and the Stellaris takes a sample and sends it back.
I might be wrong, but i assume that the Stellaris is working fine and can send its data correctly.
But on the Phytec board side, it had problems receiving all the data.
I have run various tests where the CAN rate is 1,000,000; 500,000; and 100,000.
Each time I expect 2014 frames to come back from the stellaris chip.
For the 1,000,000 CAN rate and 500,000 CAN rate I got only 467 frames back.
For the 100,000 CAN rate I got 2013 frames back.
I also run this various times (command for the Phytec is from a LabWindows program), and the time it fails is always very random (like after the 10th time, 7th time, first time, etc).
I have recorded the errno variable after using recv() and it returns the error "Resource temporarily unavailable."
Has anyone ever gotten this error when using CAN (and socket programming)? I've been looking around and it possibly do with a timeout issue?
edit: it is timing out, but I don't know why it doesnt get all of its data back? Did it miss some?
Thank you in advance