Hello, I have a problem to receive data from the arduino to the PC.
I have an Arduino MEGA ADK 2560 which is taking data from six presence sensors and the arduino send the data to the PC via USB Serial port and PLX DAQ (Data acquisition for excel) and the problem is that sometimes the PLX DAQ stopps receiving data, (intervals of 2 or 3 hrs)
Then I turn off and turn on the PLX DAQ and the interface remains the same problem.
Data reception is resumed by restarting the Arduino, disconnecting and reconnecting the USB cable from the PC.
Any idea to solve this failure?
Thank you very much for your help
How often do you update? is it a buffer overflow? Is the spreadsheet full?
Have you triple checked the wiring used?
If you write a dummy sketch that uploads just random data does the failure also occur after 2-3 hrs?
Send the data to the serial monitor instead.
If it falters in the same manner, you may assume it is an Arduino problem, and need to be a bit more forthcoming with the code.
If it runs ad nauseam, the problem is probably at the PC end.
Do not cross-post. Other thread removed.
The arduino is updating each three second and it is receiving about 1,200 data per hour.
The spreadsheet is not full
Have you triple checked the wiring used? what does mean?
Note: When the failure occurs data is sending to the arduino but the TX led does not blinks, it stays ON.
Thanks for your help
@Rubenvilla
Could you post the code for the Arduino? Or at least add some code that will capture the state of the Arduino, or even better use an additional serial port. You need to determine the cause on the Arduino (if that is where the problem is).
You might have run out of memory on the Arduino (heap fragmentation).
Cheers!