User manual

UDOO Starting manual (beta) Version 0.4
http://www.udoo.org/
22"
e.g. stty -F /dev/ttymxc3 cs8 115200 (baud rate set to 115200)
(note: the baud rate have to be the same declared in SAM3x8E firmware)
(note: default baud rate is 9600)
to write a message on the serial port, use the echo command:
e.g. echo message > /dev/ttymxc3
to read messages from the serial port, use the cat command:
e.g. cat /dev/ttymxc3
This serial interface is directly connected to the serial programming port of
SAM3X8E, therefore in Arduino sketches it is possible to communicate with i.Mx6
using the Serial object.
To initialize the serial baud rate to the desired value, it is possible to use the method
begin(speed):
e.g. Serial.begin(115200);
(note: the baud rate have to be the same declared for i.MX6 processor)
to write a message on the serial port, use the methods print(val), println(val),
write(val):
e.g. Serial.print(45); e.g. Serial.println(“Hello World”);
e.g. Serial.write(“udooooo”);
to read messages from the serial port, use the methods read(), readBytes():
e.g. Serial.read(); e.g. Serial.readBytes(buffer, length);
For a complete example on communication between the two processors, follow this
link www.udoo.org/features/processors-communication/ file containing an arduino
sketch (UDOO_test_communication_sketch.ino) and a linux bash script
(UDOO_test_communication_script.sh).