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. MCUPORT reads the CO and the ambient temperature levels and reports them to a cloud application. On the other hand, MCUPORT receives commands form the cloud application to openclose 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 onoff the devices. You need to implement the MCUs inside PT and the cloud service outside PT using Python Script
Use the TCPUDP port number as shown in the Figure above. Your system must implement the following requirements:
The cloud service polls each sensor node once every ms to request the sensors
readings.
The cloud service must display a live line chart showing the readings of each sensor and the status of the devices.
The reading should be continuous, and plots should keep updating continuously.
You need to define a simple protocol messages to request turning onoff the warning lights.
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 andor RealUDPClient template.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
