12-31-2020 04:16 AM
We are using USB-8502 for CAN communication with our motor. we have write some code to write and read the can data.
the code runs fine at first, but the USB-8502(Port2) fail to read after 10 minute.
we try to read the data from X-Net Monitor instead of using the code, but USB-8502 fail to read data with X-Net as well.
Below is the application for our code:
Port1: reading and write alternately .(No failure found)
Port2: reading and write alternately with a background thread.(fail to read after some time.)
Attached is some test we do to analysis the failure(Monitor the CAN data with another Peak-System CAN):
Picture1: Write with X-Net using Port2, the data send out normal. and we get reply (0x581h).
Picture2: Write with Peak-System CAN, check the if there is data received from USB-8502.(there is reply from the monitor but the X-NET fail to read)
This situation continue until we plug off/on the USB connector.
We know that this should have something related to our code, but we are wondering:
What kind of error would cause USB-8502 fail to read till a reset?
01-22-2021 12:49 AM
Hello
I am wondering, how is it possible that this question is already posted with exact same visualization, but anyway😀
Here is the link with solution.
At the bottom of it, you can see the resolution that is described by thread owner.