The build and packaging of the entire project (developed using the Eclipse IDE, of course) was made using Maven. The arrow coming out from Oracle IoT Cloud Service represents other possible integrations, for example via HTTPS protocol, with Enterprise Applications (it is a built-in functionality in Oracle IoT CS). The Gateway must access the Visualization Server and the IOT Cloud Service via the network.To support the MQTT protocol, as mentioned above, the Gateway requires a broker MQTT, accessible via the network, preferentially located on the same host of the Gateway.The Gateway is distributed in a single, self-consistent JAR file.Regarding the dependencies on external components and modules: For example: deploy the Gateway, Visualization Server and Broker in three Docker containers, orchestrated via Kubernetes (K8S), or Docker Compose. Obviously, alternative distributions could be considered. Support for the MQTT protocol requires an MQTT broker (shown in blue), which is assumed to be distributed in the same VM of the Gateway.The Visualization Server, based on an OpenSource ( Traccar), runs in a second OCI VM.The Cloud Gateway runs inside a first virtual machine (VM), distributed in Oracle Cloud Infrastructure (Oracle Generation 2 Cloud, OCI).The overall architecture of the solution is shown in the following picture. Then, at a later time, I have extended the Gateway to support the MQTT protocol as well.Īll the code is made available in the GIT repository. The implementation presented here was born for a Proof of Concept (PoC) for a specific customer, in which case the protocol used by the vehicles is HTTP and the application message consists of a string of characters, with a defined format. Today, in IoT field, the MQTT protocol is more and more adopted, due to its superior efficiency and reliability. Many solutions born in the pre-IoT world, when for example the acronym M2M was used, are based on the HTTP/S protocol for the communication between device and server-side solution. We will see how to extend the gateway in order to support, in input, the MQTT protocol.A Cloud Gateway that supports incoming messages based on the HTTP protocol.In the article, in more detail, we will examine two different cases: The device is not able to speak directly the language of a modern IoT Cloud and therefore we have to introduce “an intermediary”, a Cloud Gateway, which translates the native protocols of the devices into those supported by our Cloud.įinally, the article can also be used from another point of view: we want to better understand how it is possible to create the software for a Gateway that must be connected to the Oracle Oracle IoT. In IoT, the theme is often labeled with the term “ retrofitting”. Specifically, in this article, I also want to tackle a topic that is more technological and less tied to business functionalities, which often occurs when we have to deal with a set of vehicles with “old” devices, that we want to integrate into a new IoT solution, and we cannot modify them and they do not use modern IoT protocols. This is just a list of the main features, but of course we can think of others. Register if the engine or the on-board instrumentation signals an anomaly.Register if a vehicle exceeds a certain speed, or if it has been stationary for a long time.Register if a vehicle has left a demarcated area on the map, or if it has entered a delimited area.Say which is the last message received by a vehicle and which is the last known position. Show in real time the position of any vehicle in the fleet.Such a monitoring and management system could have the following functionalities: I would like to examine and discuss with you how, based on Oracle IoT Cloud Service, you can implement a Vehicle Fleet Monitoring system, such as a fleet of public transport buses, or a company’s fleet of vehicles, for example for car sharing.īut, as you will see, the system could easily be extended to other mobile means, which are able to provide in real time their GPS coordinates, such as trains and ships. The topic I want to deal with today is in the context of Smart Mobility, but also the Internet of Moving Things.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |