A smart factory ventilation system includes two MCUs. MCU1 reads the CO and the ambient temperature levels and reports them to a cloud application. On the other hand, MCU2 receives commands form the cloud application to open/close a window and a fan.
Homework Problems:
Problem 1: (100 Points) A Smart Factory Ventilation System:
A smart factory ventilation system includes two MCUs. MCU1 reads the CO and the ambient temperature levels and reports them to a cloud application. On the other hand, MCU2 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. Figure 1 shows an architectural view of the system.
Cloud Layer
Edge Layer
Figure 1: Architectural view of a Smart Factory Ventilation System.
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 is sent 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. Your system must implement the following requirements:
The cloud service polls each sensor node once every 100 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. Figure 2 shows an example of the expected output.
The reading should be continuous, and plots should keep updating continuously.
You need to define a simple protocol (messages) to request turning on/off 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() and/or RealUDPClient() template.
Report: attach a report with your solution that includes:
Screenshot of the program output.
Types of sensors used and threshold you define for each sensor.
Any problems or limitations in your solution.
Protocol messages you specify between the cloud and sensor nodes.
Requirements:
COE 550-02: Homework Assignment #1
Due date: Wednesday Oct 4, 2023 @ 11:59 PM (before midnight) Instructions:
Your solution should be uploaded through Blackboard as a single compressed zip file named COE550_HW1_FNAME_LNAME_ID.zip where FNAME and LNAME is your first and last names respectively, and ID is your student ID. Name the individual parts as HW1-1-cloud.py, HW1-1-edge.pkt. Also, Include a screenshot of the output dashboard in Problem 1.
Use meaningful names for variables and identifiers. Add comment to your code. Good programming practices will be accounted for when grading.
Students are encouraged to discuss the homework in groups, but each student must write his own answers in his own words.
If cheating or copying is detected, both parties will get zero in the assignment.
No late submissions will be accepted.
Objectives: After finishing this assignment, you should be able to:
Write a fully working client and server programs using Python Sockets.
Write a simulator of an application with Cloud and Edge layers.
Use simple dashboard to visualize data.
Preparation: To prepare for the homework, you need to cover the following:
Lecture slides on Python 3 Tutorial.
Basics of Python 3 socket programming. ().
Read about matplotlib, a rich python package for plots and charts. ()
Study the lecture/video on Cisco Packet Tracer and socket programming.
Homework Problems:
Problem 1: (100 Points) A Smart Factory Ventilation System:
A smart factory ventilation system includes two MCUs. MCU1 reads the CO and the ambient temperature levels and reports them to a cloud application. On the other hand, MCU2 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. Figure 1 shows an architectural view of the system.
Cloud Layer
Edge Layer
Figure 1: Architectural view of a Smart Factory Ventilation System.
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 is sent 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. Your system must implement the following requirements:
The cloud service polls each sensor node once every 100 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. Figure 2 shows an example of the expected output.
The reading should be continuous, and plots should keep updating continuously.
You need to define a simple protocol (messages) to request turning on/off 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() and/or RealUDPClient() template.
Report: attach a report with your solution that includes:
Screenshot of the program output.
Types of sensors used and threshold you define for each sensor.
Any problems or limitations in your solution.
Protocol messages you specify between the cloud and sensor nodes.
Figure 2: Example Output for Problem 1.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
