Question: A smart factory ventilation system includes two MCUs. MCU 1 ( PORT 4 4 4 4 ) reads the CO and the ambient temperature levels

A smart factory ventilation system includes two MCUs. MCU1(PORT 4444) reads the CO and the ambient temperature levels and reports them to a cloud application. On the other hand, MCU2(PORT 5555) receives commands form the cloud application to open/close a window and a fan.
You are required to build a simulation of the above application consisting of a cloud and an edge layers. The cloud layer consists of a single process which controls the system and displays a dashboard showing a chart of the reported readings and the status of the window and fan.
The edge layer contains the two MCUs.
The cloud application periodically polls the sensor nodes to retrieve the sensor data and plots the data using an animated graph. If the sensor reading exceeds certain thresholds, a command issent by the cloud to turn on/off the devices. You need to implement the MCUs inside PT and the cloud service outside PT (using Python Script).
Use the TCP/UDP port number as shown in the Figure above. Your system must implement the following requirements:
1. The cloud service polls each sensor node once every 100 ms to request the sensors
readings.
2. The cloud service must display a live line chart showing the readings of each sensor and the status of the devices.
3. The reading should be continuous, and plots should keep updating continuously.
4. You need to define a simple protocol (messages) to request turning on/off the warning lights.
5. You need to define the threshold values for the sensors.
Connect your sensors to an SBC or MCU to enable connectivity. For programming in PT, use the RealTCPServer(), RealUDPServer(), RealTCPClient() and/or RealUDPClient() template.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!