USING MQTT AND IOT-DEVICES TO GAIN AN ADVANTAGE IN YOUR LOGISITIC PROCESSES
If you’re considering the use of IoT sensors to automate processes or make digital information available in real-time, it’s good to know you have a variety of options in the open source area.
In today’s post, we’ll examine popular IoT scenarios being used in plant logistics that have surprisingly low implementation costs and big benefit potential. In addition to application examples and information on technical integration, we’ll also let you know about a few of the hardware and software components we currently use today.
APPLICATION EXPERIENCE: SMART LOADING POINTS
To help reduce waiting times of trucks at plant sites, operation managers can benefit from tracking arrivals and departures in real-time. With the help of sensors, IT systems can recognize whether a dock door is currently free vs. occupied. As soon as a dock door or loading point is free, the system can notify the next waiting truck driver, so they can quickly proceed to their delivery location.
In our customer projects, we support the procurement of hardware and do the installation.
WHAT SENSOR TECHNOLOGY SHOULD WE USE?
There are many things to keep in mind when choosing the correct sensor for your use case. In our smart loading point example, we’ll need a distance sensor.
LASER AND ULTRASONIC SENSORS AND FEATURES
Laser and Ultrasonic sensors can be equally suitable for detecting a truck at a loading point. Ultrasonic is a non-optical method in which the color and reflection properties of the surface do not play an important role.
In ultrasound, only the orientation, or distance to the object is important; therefore, ultrasound must hit a straight surface from as far as possible at a right angle, so that the reflection of the sound is optimally directed back to the sensor.
The right choice depends primarily on the installation options at the loading point. Can the sensor be installed at the right distance from the object, at the right angle? Aside from laser and ultrasonic, there are few other options, often more difficult to install and maintain.
ADDITIONAL USE CASES FOR SENSORS
There are many instances in which farms or warehouses are beginning to use sensor and IoT technology. In these cases, environmental variables can be picked up, processed, and operated by sensors, leading to an increased adoption of more digitized, automated processes.
For example, temperature sensors can be integrated quite easily into the IT landscape. Measurement data can be used for quality checks, which, if outside of control limits, can generate alerts. It’s also possible to check temperature during the execution of loading activities.
Often, the same smart sensors can also measure air pressure and humidity, with many new use cases showing up in the manufacturing and bulk solids industries. Motion and inclination sensors are being used in mechanical and plant engineering to identify accidents. If a critical event has been reported, a check of the system can be enforced to help meet quality standards.
Hardware installation for a leogistics IoT prototype.
THE EVOLUTION OF RASPBERRY PI AND INDUSTRY AUTOMATION
In one of our latest prototypes, the center piece is a “Revolution PI” (vendor Kunbus). The Revolution PI is an industrial device based on raspberry PI with Linux, which is very popular in applications used in home environments.
The Revolution PI is modularly expandable to a full-fledged PLC. In this way, modules for reading and writing digital and analog signals are readily available for quick “plug and play” implementations. The Revolution PI has software installed that analyzes, processes, enriches, and forwards sensor data.
When distributing data from the sensor, we rely on a new technology called IO-Link. For instance, an “IO-Link master” (vendor ifm) can intercept sensor data. The communication is not done directly with the sensor, but via the IO-Link master, which detects and can structure the data. Data is then processed in the IO-Link master and transmitted to the Revolution PI via IoT interface over local or cellular networks.
The IO-Link master also allows operation and data evaluation of sensors without an IO-Link. However in that case, remote parameterization is not possible, and must be completed directly on the sensor.
MODELLING USING NODE-RED
In terms of software for integrating sensor data and controlling sensor logic, we use an open software called “Node-RED”. Node-RED is a graphical development tool that implements use cases in a modular principle. Node-RED can be used to create object process flows, as shown below. With these flows, the data is evaluated and enriched using small functions.
Objects and Flow in Node-RED
HARMONIZATION USING MQTT
For data transmission, we rely on the MQTT protocol, which is widely used in the IoT area. This is an open message protocol for machine-to-machine communication. It allows the transmission of telemetry data, despite high delays or limited networks. Node-RED intercepts the data via MQTT input channels, processes it, then forwards via MQTT to subsequent flows, or ultimately through OData to the SAP system.
COMMUNICATION WITH SAP SYSTEMS
Node-RED speaks not only MQTT, but also the http protocol. This is the basis for web services and REST protocols like OData. SAPUI5 applications are typically connected to SAP systems via OData. Thus, Node-RED can be used to make data from the sensors known to the SAP system, which can trigger follow-up actions, update SAP objects, or create alerts to users.
Hardware connection - best practice: Connection of external hardware and sensors via MQTT and Node-RED.
Now we’ve made it to the exciting part, our IoT devices can communicate with SAP. From here, we can trigger actions (for example, loading point traffic light turns green once the truck has driven away) or store bulk data. Using this data, we can start to develop smart services— helping to optimize enterprise processes, make predictions with machine learning and AI, or even create a digital twin.
THE DIGITAL SUPPLY CHAIN VISION
Today, we highlighted just a few of the possibilities using inexpensive hardware and software in the IoT space. We hope this post was thought-provoking, leading you to consider opportunities in your own logistics processes.
So…what’s your use case? Would you like to start an IoT prototype? Let us know how we can help!
If you have any questions about this or other topics in the blog, please contact email@example.com.
Senior Technical Consultants