
RS232 SERIAL COMMUNICATION PROTOCOL SERIAL
Basically, the Ublox GPS Module transmits NMEA messages carrying GPS satellite information via Serial communication to the DragonBoard/ Raspberry Pi. A LabVIEW application in the computer will receive these data packages and extract the temperature and humidity measurements.ĮXAMPLE 4 introduces an application of using DragonBoard/ Raspberry Pi to get updated GPS information (Global Positioning System) from a Ublox Neo-M8N GPS Module. The DragonBoard requests measurements of temperature and humidity from the SHT21 sensor, packs these measurement data into data packages and then sends them to the computer. Interrupt technique is also applied between the DragonBoard and Arduino to enhance the coordination.ĮXAMPLE 3 demonstrates application of using Serial communication in transferring data between an IoT device and a computer. The Arduino will process the commands and control the servo motors. The DragonBoard directs the movement of the Pan and Tilt mechanism by sending the control commands to the Arduino via Serial communication. In addition, a Producer / Consumer pattern is applied for the sending and receiving data.ĮXAMPLE 2 demonstrates a collaboration of DragonBoard (or Raspberry Pi) and Arduino (Nano or Due) to control a 2-DOF Pan and Tilt mechanism using servo motors. Upon receiving the message, the Raspberry Pi will unpack the data and extract the measurements of the sensors.


By using the interrupt technique, the Raspberry Pi can take initiative in receiving messages, thereby saving its CPU time instead of using polling technique to wait for the incoming messages. Before sending the data to the Raspberry Pi, the DragonBoard generates an interrupt signal to notify to the Raspberry Pi about its incoming messages. The DragonBoard requests measurements from the MPU-9255 and LIDAR Lite v2 sensors and packs the sensor measurements into data packages. (The examples are broken down into their own links for easy access)ĮXAMPLE 1 demonstrates application of using Serial communication for exchanging data between DragonBoard and Raspberry Pi. In this work, Serial communication (RS-232 protocol) is chosen to demonstrate its application through the following examples. Depending on the communication requirements of the application such as wired / wireless, short distances / long distances, data transfer rates, security etc., suitable communication methods can be selected. It allows devices in a system to communicate with each other in order to exchange information or coordinate to perform some tasks. Communication plays an important role in distributed applications.
