UART/Comms
UART:
The PIC processor on the Spirit Mainboard is able to relay UART messages from the Arduino processor to several possible end points. The UART should be initiated by setting the desired communication path and setting the baud rate.
.
PIC_SetComUARTMode();
PIC_SetComUARTMode(); //sets the target device for UART communication
PIC_SetComUARTMode(0); //WiFi Mode - Sends UART traffic to the ESP8266 module socket
PIC_SetComUARTMode(1); //BlueTooth Mode - Sends UART traffic to the HC-06 module socket
PIC_SetComUARTMode(2); //XBee Mode - Sends UART traffic to the XBee module socket
PIC_SetComUARTMode(3); //Pi Mode - Sends UART traffic to UART port on the Raspberry Pi
This function configures a selector switch on the Rover main board to communicate with the desired UART target. Transmit and Receive traffic will go to/from the intended UART target until the mode is changed.
Last updated
Was this helpful?