BITalino via the Raspberry Pi UART with C++ API

MCU, Firmware, etc.
BITalino
Site Admin
Posts: 547
Joined: Tue Aug 27, 2013 3:47 pm

BITalino via the Raspberry Pi UART with C++ API

Postby BITalino » Mon Oct 23, 2017 3:18 pm

When trying to connect the BITalino (r)evolution UART in the Raspberry Pi UART (GPIO14 and GPIO15), changing the test.cpp from:

Code: Select all

BITalino dev("/dev/ttyUSB0");


to

Code: Select all

BITalino dev("/dev/ttyAMA0);


The result may be the same message obtained if no device is connected to the UART:

Code: Select all

Conection to device...
BITalino exception: The computer lost communication with the device


BITalino (r)evolution uses flow control to transmit data via the UART, so please confirm that the CTS input pin of the BITalino (r)evolution MCU UART interface is connected to GND or to an RTS output from Raspberry Pi.

Return to “Microcontroller”




cron