Repository navigation
Safari FAE Demo FAQ
pcbguitar edited this page Jul 1, 2020
·
1 revision
- How is the GUI getting the data to plot?
- Why does there seem to be a delay in some of the temperature and pressure data timestamps?
- Why MQTT and not REST?
- What programming language was used to create the demo?
- Why Python?
How is the GUI getting the data to plot?
A: When the demo kit is connected to Wi-Fi, the temperature and pressure data is sent to Arrow Connect using MQTT and the accelerometer data is sent to the GUI using the serial (UART) connection. The GUI plots the accelerometer data when it is received from the serial port, while the temperature and pressure data are plotted by subscribing to the same Arrow Connect MQTT topic to which the demo kit is publishing. In the case when the demo kit is not connected to Wi-Fi, all data is sent to the GUI using the serial connection.Why does there seem to be a delay in some of the temperature and pressure data timestamps?
A: This is a result of network latency. The demo kit is sending data to Arrow Connect while the laptop is receiving data from Arrow Connect, if the network is slow or congested there will be delays. There should be no missed packets due to the MQTT quality of service (QoS) setting.Why MQTT and not REST?
A: MQTT is lower power, allows for the device to always be connected to the cloud, and is faster than REST.What programming language was used to create the demo?
A: Python.Why Python?
A: Python was used because of it's portability across platforms, allowing the Safari demo to be run on any 96Boards platform with Python support.