Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reading output from /dev/ttyACM0 results in beagle board freezing (Embedded stuff)

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

like image 946
Jaspreet Singh Lidder Avatar asked Nov 04 '22 12:11

Jaspreet Singh Lidder


1 Answers

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.

like image 100
Wilsonator Avatar answered Nov 09 '22 15:11

Wilsonator