A platform works at a given time as one of the two modes


Texting Via Serial Communication

Use Arduino to write code that will connect two platforms via serial communication (TX and RX pins), (Arduino Uno & Intel Galileo Gen 2).

Text messages sent from a either platform is received and displayed in the other platform. As for components, two LEDs for each platform (one red and the other green color), (b) an analog input device (potentiometer); and (c) a Seeed Grove LCD RGB Backlight module.

The message communication for this lab should follow our class' own 456 Protocol (please see below). The completed work should function as follows:

(1) A platform works at a given time as one of the two modes: transmitter or a receiver (but not both);

(2) One time selection (right after uploading of the code or right after a reset button is pressed and releases) of the initial mode for transmitter or receiver is done by the position of the analog input (for example, a value or a position below a certain threshold would set the platform as a transmitter and a value higher as a receiver, or vice versa);

(3) The LEDs in different color should indicate the selected mode in the following manner: {Red LED ON - Green LED OFF} for transmitter and {Green LED ON - Red LED OFF} for receiver mode.

(4) When the transmitter mode is selected, the code first pause for 2 seconds, then sends a secret text message (embedded in the code), following the 456 Protocol, of maximum 12 letters or numbers or combination of them at the speed of 9600 bps, repeatedly 3 times with 500 milli-second pause between messages and, after the transmission is completed, immediately changes its mode to receiver;

(5) When the receiver mode is selected, with no delay, the code receives at 9600 bps the data stream (remember that there are multiple number of but the same text message coming in) and, at the end of the data receipt, decodes the data stream by the 456 Protocol, displays the Sender ID only (when the message is intended for another platform) or Sender ID and the message (when the message is intended for the platform) on the LCD and, after the receipt and display is done, pauses 2 seconds and changes its mode to transmitter.

456 Protocol

1. What is the 456 Protocol?

(Ans) 456 Protocol is an arbitrary communication protocol the Embedded Lab class adopts for the labs

which include platform-to-platform(s) communications.

2. What is the basic feature of 456 Protocol?

(Ans) In the 456 Protocol, any message in communication is comprised of multiple bytes, and these bytes

include some head-bytes followed by the message bytes. Therefore when a message is transmitted, the additional

head-bytes should precede the message itself.

3. What are the head-bytes in the 456 Protocol?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: A platform works at a given time as one of the two modes
Reference No:- TGS02945061

Expected delivery within 24 Hours