question archive Instructions: 1

Instructions: 1

Subject:Computer SciencePrice: Bought3

Instructions:

1. Your solution should be uploaded as a single compressed zip file. Name the individual parts as cloud.pyedge.pkt. Also, Include a screenshot of the output Figure in Problem 1.

2. Use meaningful names for variables and identifiers. Add comment to your code.

 

 

 

Homework Problems:

Problem 1: (100 Points) A Smart Weather Monitoring System:

A weather monitoring service includes various instruments to monitor weather-related readings such as temperature, pressure, wind speed, etc. You are required to build a simulation of a weather monitoring application consisting of a cloud and an edge layers. The cloud layer consists of a single server process which displays a dashboard showing the latest updates, while the edge layer contains weather sensors located at remote locations. Figure 1 shows an architectural view of the system.

 

Diagram  Description automatically generated

 

The cloud service periodically polls the sensor nodes to retrieve weather data and plot the data using animated graph. If the sensor reading exceeds certain threshold, a warning light will be turned on inside PT. You need to implement the sensor nodes and lights inside PT (Using MCU or SBC) 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:

1. The cloud service polls each sensor node once every 100 ms to request the sensor reading.

2. The cloud service must display a live line chart showing the readings of each sensor. Figure 2 shows an example of the expected output.

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.

 

You are free to choose the sensors you want but you must have two different sensors. You may use a generic sensor and use PT APIs to read the relevant sensor data from the environment. 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:

1. Screenshot of the program output.

2. Types of sensors used and threshold you define for each sensor.

3. Protocol messages you specify between the cloud and sensor nodes.

 

 

Hint: The Client should be the python file out of the Packet Tracer. As their will be two servers inside the Packet tracer.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE