How to Generate a Coverage Map with MultiTech mDot and Reactive Blocks

anne Examples, Projects, Reactive Blocks

We have made a recipe with step-by-step instructions on how you can use Reactive Blocks to make a ready to run Java application that produces a coverage map to test the MultiTech mDot Box.  The mDot Box is a battery-powered handheld device with lots of sensors, including GPS, and that communicates using  LoRa.Messages from the mDoT are sent to a MultiTech Conduit board, a progammable LoRa gateway for industrial IoT applications. A coverage map can be used to observe good and/or problem spots for the LoRa communication.

 The application receives messages and generates output to show (outdoor) coverage in Google Earth (or you can use any other application able to display KML data). The application is easily deployed on the MultiTech Conduit board or your local computer.

Overview

Skill level: Beginner

Who: Developers who want to test LoRa coverage

Ingredients

  • MultiTech Conduit
  • mDOT Box
  • Windows or Mac OS/X
  • Oracle Java 8
  • Reactive Blocks installation

Step-by-Step

1. Install Reactive Blocks on your computer from these instructions. Reactive Blocks is free for Open Source projects.

2. Sign in to Blocks on  htttp://blocks.bitreactive.com and select “Teams” from the top menu:


 

3. After you have selected the “Teams” command you should see the window below. Select the “Other teams”

 

4. Scroll down until you see the “MultiTech” team. Open it by clicking on it

5. Join the “MultiTech team” by clicking the “Join this Team” button

 

6. Start the Reactive Blocks application and select the “Import” command

 

7. Select the option to import all libraries

8. Browse down until you find the “LoRa (MultiTech) applications” and select it.

9. Select next and accept the terms to continue.

10. After the download is completed,  you will see the application “MT EvB Recorder” under “Projects”. You can open it with a double-click. 

11. After you have opened the application “MT EvB Recorder” you will need to change the Java code in order to use the IP-address of your Conduit board. Open the Java method “getSpecificLoraGateway” by right-clicking it, then select the “Go into” command 

12. Enter the IP-address of your Conduit board in the Java code 

 

13. You need to build the application before you run it and deploy it to the conduit board. This is done using the Reactive Blocks code generator that creates a complete Java project from the structure of the building blocks.  To generate the code, right-click the application “MT EvB Recorder”  and then select “Re-Build for Java Standard Edition – J2SE”

 

14. Once the build is complete, you can launch the application. In the Package Explorer view under the newly created project br.test.lora.mtevbrecorder_exe you will find a file named MTEvBRecorder.launch.  Right click that file and run the application

 your application connected successfully your window console should display something like this: 

15. If your application failed to connect to the Conduit you must enable remote access to LoRa data. Log in to the Conduit using your favorite SSH-client and edit the file /etc/mosquitto/mosquitto.conf.

16. Make sure the setting bind_address 127.0.0.1 is commented out (as it is in the image below)

 

17. The application should now connect to the Conduit, however having to run your application from within Eclipse/Reactive Blocks is rather inconvenient. We will show you how to pack the application into a runnable JAR file. Right click on the generated project br.test.lora.mtevbrecorder_exe and select the “Export” command 

18. Select the option “Runnable JAR”

 

19. In the following window, select the correct Launch configuration, and the correct output file for the Export destination. (In the export destination, you can use the browse button to put the .jar file in a directory of choice.)

20. You can now run the generated JAR file locally on your computer from a terminal window with the command java -jar MTEvBRecorder.jar: 

21. … or on the Conduit. (On the conduit you may need to download and install a JRE from Oracle: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html)

 

22. Now it is time to fire up the mDot Box. Select the command “Survey GPS”, wait for the mDot to connect to your Conduit and obtains GPS lock. Then you can start walking around. More information here:  http://www.multitech.net/developer/products/multiconnect-mdot-box-and-evb/

23. The Conduit will continuously receive the position data from the mDot Box and convert it into KML data and pack it in a KMZ file. Once you are done with the survey you can, therefore, show the track in “Google Earth” or any other application that displays KML data. Open the KMZ file from Google Earth:

24.and select the correct KMZ file: The file is generated in the same directory where the application was started. The file is updated with all received points every 5 minutes.

25. You will be able to see the path in Google Earth. Below you can see what it looked like when I took a walk outside our office building. Each point is color-coded.  Green indicates a good signal quality, yellow is fair signal quality and red is poor signal quality. 

26. You can now proceed to build more complex applications.  If you have a closer look at the Reactive Blocks application, “MT EvB Recorder”, you can see that the diagram consists of three distinct parts:  Unpacking data, KML generation, and KMZ. If you click on these blocks you can study the details 

Visit the Reactive Blocks tutorial page to learn more about how to build your own applications.

 

 

Congratulations Eclipse Open IoT Challenge Winners

anne News, Projects

Congratulations to the Eclipse Opent IoT Challenge 4.0 Winners:

Fourth place  Alya with their smart mirror solution and fifth place Cloud Oscilloscope also deserves a word of appraising. You guys rock! Read the complete write up by Eclipse her.

78 teams entered of which 15 teams submitted a final report. The winners have been selected by a panel of judges comprised of representatives from Bitreactive, CONTACT Software, Eurotech, Intel, Red Hat and Sierra Wireless.

This is the fourth time Bitreactive has been one of the Eclipse IoT Challenge sponsors which means we follow the competitors through their progress from start to finish. Once again, this has been a fun learning experience and I am so impressed with the creativity, innovation and amount of work the participants have put into their solutions.  The final grading is based on the level of the applicability to a specific industry,  completeness, use of open source technology and community involvement. Community involvement means that a great idea and final report alone cannot make up for the lack of sharing thoughts and ideas throughout the weeks of development.

 

 

Eclipse IoT Challenge 4.0

anne News

We are pleased to announce that the Eclipse IoT Challenge is back in its 4th edition. Bitreactive is again one of the proud sponsors and look forward to follow the competitors closely.

If you have a new IoT idea and would like to build your solution based on open source software and standards you are qualified to enter. As in the previous competitions, heavy weight is put on how you document your progress and engage with the community. This competition is all about showcasing the great possibilities of open source in IoT solutions.  You can check out the 2016 winners here.

In the previous years, several of the top contestants used Reactive Blocks in their application development. We are hoping that also this time around contestants will find the benefits of our ready to use open source building blocks and modifiable example systems to finish their projects faster.

Participants are required to submit a proposal (http://iot.eclipse.org/open-iot-challenge/) for their solution before November 13, 2017. All participants will then have until March 15, 2018 to build their IoT solutions. The winners will be announced the end of March 2018.

We are pleased to be supporting this initiative!

BALT Sleep Monitor

anne News

The quality of one’s sleep has a substantial impact on the quality of life. Not only do we feel more awake and focused after a good night’s sleep, it also improves our overall health and even increases our life-expectancy.

In order to give a better understanding of the sleep quality of patients, Bitreactive developed the BALT Sleep Monitor, a sleep monitoring application based on a ballistocardiographic sensor and our Reactive Gateway. The device follows the sleep of a patient and supports live monitoring of bed-occupancy, movement-intensity, and even heart-rate. Each morning it summarizes the collected data of the night into an intuitive status-update which makes it easy for the healthcare personnel to prepare adequately for the coming day.

For pricing or more information about the BALT Sleep Monitor, contact Sales !

Reactive Blocks at the IoT Virtual Meetup

anne Events, News

The IoT Virtual Meetup is a place dedicated for discussions and presentations of technologies for IoT application development. Today Bitreactive will present how to visually develop IoT solutions with Reactive Blocks. What are the possibilities of visual development? How can a formal analysis help you develop stateful applications?  With a live demo you get to see how you quickly can implement applications for the Kura platform and deploy it to your IoT gateway.

See the meetup that was presented live on March 8th at 5PM Central European time ( 8AM Pacific Time, 11AM Eastern) here: