reading output from cat /dev/ttyACM0
results in beagle board freezing. It unfreezes when i unplug the usb serial.
So essentially my setup is a beagle board connected via a usb to my laptop, which is communicating with it via COM6. We also have it connected to the web via web sharing. I also have another usb connected to it from a Arduino Teensy++ controller. This controller is sending data via usb serial to the beagle board. The point of this exercise is to read the data from the usb serial.
The process of reading i use is cat /dev/ttyACM0
. This results in the print of the first 2 lines of data, then the entire beagle board freezes. When u unplug the teensy++, it prints out like 10-20 lines (assuming whatever the buffer contains). Not sure why this is happening.
Can anyone help ? Thanks
Check the speed at which you are sending data, I have found if you send data too quickly to arduino you can fill the arduino buffer and it seems to lock up. Try adding delay to the output data, or make sure the arduino is emptying the buffer fast enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With