The project focuses on developing an advanced Protected Parcel Management that leverages IoT technologies, drones, cloud platforms, and smart home devices to redefine the package delivery process. This system not only ensures the secure and efficient delivery of packages but also includes features such as temperature monitoring, shock detection, and open/close sensors to ensure the safety and integrity of the package during transit and storage. It provides a seamless, automated, and user-friendly experience, addressing common challenges in modern logistics.
2 Problem StatementThe exponential growth of e-commerce has resulted in a dramatic increase in package deliveries, but this has brought challenges such as theft, delivery failures, and damages due to poor handling or environmental conditions. We recognized the need for a system that not only addresses these security and efficiency issues but also ensures the integrity of the package during transit.
3 Solution TheoryThe decision to include features like temperature and shock sensors was driven by the growing demand for delivering fragile, perishable, or high-value items, such as food, medicine, and electronics. By incorporating advanced monitoring capabilities, the system ensures that packages arrive in optimal condition. The Protected Parcel Package System aims to bridge the gap between consumer expectations and delivery service standards by combining cutting-edge IoT technologies, drone delivery, and smart home automation
Delivery Service Center
- Safe Package received from the recipient is registered and managed on the cloud service platform.
Distribution Center
- All received Safe Packages are sorted at the distribution center based on their delivery destinations.
- RFID reader identifies the Safe Packages, enabling an optimized sorting system.
Delivery Truck
- During the transportation of sorted Safe Packages to designated local terminal hubs, real-time cargo management optimization processes, such as motion balance control, are executed.
- A service is provided to monitor and control the condition of the cargo in real time.
Local Terminal Hub
- Safe Packages transported to the local terminal hub are stored in the storage.
- The system logs package details, including storage conditions like temperature and handling parameters, which are uploaded to a cloud platform.
- The cloud service schedules the delivery and prepares the package for drone transport.
Drone Delivery
- The package is transported by a drone from the local hub to the delivery location.
- During transit, temperature sensors ensure that the package is maintained within a safe range, crucial for perishable goods or temperature-sensitive items.
- Shock sensors detect any potential impacts or mishandling, ensuring that fragile items are delivered intact.
- The drone continuously communicates with the cloud platform, updating the status of the delivery, including environmental, handling conditions, and location information.
Smart Home Gateway
The drone interacts with devices connected to the smart home gateway and the user application to complete the delivery process. Key components include:
- Smart Door Locks: A remote door lock control service is provided to ensure the drone can safely deliver the Safe Package inside the recipient's home. Access to the remote lock control is granted exclusively to the homeowner (recipient).
- Door Sensors: When the door is opened, movements in the surrounding area are detected to identify security threats, such as attempted unauthorized access.
- CCTV Cameras: Record and monitor the delivery process for security and transparency.
Cloud Service Platform:
- The cloud platform acts as the central hub for data processing and communication between all components, ensuring smooth operation and real-time updates.
- It stores data from the temperature, shock, and open/close sensors, providing a complete log of the package's journey for accountability and quality assurance.
ShockSensor (ADXL375)
- Designed with a compact package, it is suitable for space-constrained environments.
- Measurement range: ±200G
- In typical logistics environments, impacts of 5 to 10G are frequent, while product damage tends to occur at around 40G. Therefore, the Safe Package sets the impact threshold at 40G and provides an alert when impacts exceeding 40G are detected.
TemperatureSensor (DS18B20)
- It has low power consumption, which is advantageous for battery life, and is cost-effective.
- Measurement range: -55°C ~ +125°C
- Temperatures of 40°C or higher can cause issues with electronic devices or chemicals. Therefore, the Safe Package sets the temperature threshold at 40°C, triggering an alert when temperatures exceeding 40°C are detected.
LocationSensor (Quectel L70)
- It features ultra-low power consumption, making it suitable for battery-powered applications.
- With a high sensitivity of -165dBm, it can receive signals even indoors.
Reed Switch, SPST-NO
- Designed to monitor the lid's status, the Reed Switch operates with a compact and efficient design suitable for battery-powered applications. It functions as a magnetic switch, triggering alerts when the lid of the package is opened without authorization.
- Operation Principle: The sensor remains in an open state in the absence of a magnetic field. When the lid is closed, a magnet aligns with the Reed Switch, closing the circuit. If the lid is opened, the circuit breaks, signaling a potential security breach.
- Contact Rating: Up to 10W
*This project is simulation-based, requiring other additional software, hardware components, and real-world integrations for full implementation.
- Python 3.10+ environment for running ACME oneM2M platform. (use curl command)
- Visual studio code
- React.js environment for IoT Applications
Download the necessary resources from the main repository:
https://github.com/Jminis/PP-P
You will also need an implementation of oneM2M platform:
- ACME: An open-source implementation in Python (link)
https://github.com/ankraft/ACME-oneM2M-CSE
6 Starting oneM2M ACME platform6.1 Start the IoTPlatform (ACME)
The IoT Platform can be launched through:
cd IN-CSE; python3 -m acme
Accesing ACME web application (http://127.0.0.1:8080/). This is IN-CSE.
cd MN-CSE1; python3 -m acme
Accesing ACME web application (http://127.0.0.1:8081/). This is MN-CSE1.
cd MN-CSE2; python3 -m acme
Accesing ACME web application (http://127.0.0.1:8082/). This is MN-CSE2.
6.2 Start the webapplication (flask, react)
The webapplication can be launched through:
cd webapplication/frontend/; npm start
Accesing User web application (http://127.0.0.1:3000/). This is frontend server.
cd webapplication/backend/; python3 app.py
6.3 Start the DroneAEfor DEMO
The droneAE can be launched through:
cd DEMO; python3 demo_with_drone.py
and If you want to demonstrate the demo, run the curl command below:
curl -X POST \
-H 'X-M2M-Origin:CstorageAE' \
-H 'X-M2M-RI:req-storage-arrived' \
-H 'X-M2M-RVI:3' \
-H 'Content-Type:application/json;ty=4' \
-H 'Accept:application/json' \
-d '{
"m2m:cin": {
"con": "{\"status\": \"arrived\"}"
}
}' \
http://localhost:8082/cse-mn/storageAE/arrived
The above command means the SafePackage has arrived at the storage and that the drone should begin to deliver it.
Comments
Please log in or sign up to comment.