On 02/19/2014 11:17 AM, ss sefat wrote:
> i connected the arduino usb with bbb. bbb recognize arduino as /dev/ttyACM0
> . now i want to communicate with arduino using serial communication in c++
> . i tried several times using fopen() .bt bt bbb cannot open "/dev/ttyACM0"
> for writing. can any one give me a simple demo code which completely works
> without any error .plz help me. thanks in advance .
http://tldp.org/HOWTO/Serial-Programming-HOWTO/
Alternatively, you could use python:
http://pyserial.sourceforge.net/
if using debian/ubuntu on the BBB, install the python-serial or
python3-serial package.
regards,
Nuno
--
http://aeminium.org/nuno/