/arduino_serial_tests

Two examples to implement arduino serial comunication in both directions with a Linux PC

Primary LanguageC

Arduino Serial Tests

Two examples to implement arduino serial comunication in both directions with a linux PC. The transmitters programs sends a buffer of bytes (char) by serial way, the receiver process it and show the message in terminal.

To prove them you can implement two diferents directions for comunication:

  • Arduino -> Linux PC For this direction you must use the files tx_serial_helloPacket_arduino.c and rx_serial_helloPacket_linux.c. In this way arduino will behave as a transmitter and the pc like a receiver.

  • Linux PC -> Arduino For this direction you must use the files rx_serial_helloPacket_arduino.c and tx_serial_helloPacket_linux.c. In this way the pc will behave as a transmitter and the arduino like a receiver.