How to dectypt the messages sent by mDot box in Lora demo mode
Home › Forums › Conduit: AEP Model › How to dectypt the messages sent by mDot box in Lora demo mode
Tagged: Node Red Code
- This topic has 11 replies, 4 voices, and was last updated 7 years, 4 months ago by
Richard Wenner.
-
AuthorPosts
-
September 29, 2017 at 8:16 am #21021
Vinesh Hanumantharayappa
ParticipantHi,
I am very new to Conduit. So far I am able to try the LoRa demo option in mDot Box. I am getting some data in encrypted form (like a series of small images). I need a function which decrypts it into the data sent by the mDot box. Your help will be highly appreciated.
Thank you
September 29, 2017 at 9:23 am #21023Peter Ferland
BlockedThe data packet format is described here: http://www.multitech.net/developer/software/dot-box-and-evb-software/data-packet-format/
If you are using nodered make sure that the LoRa input node is in binary mode so you an decode it.
September 29, 2017 at 9:43 am #21024Steve Kovarik
ModeratorHello Vinesh
Assuming you have a MultiTech Conduit Gateway AEP version that has Node-Red,
once you are in Node-Red drag a “LoRa in” node, a “Function” node and the
“Debug out” node onto the canvas then connect the “LoRa in” to the “Function”
node and connect the “Debug out” node to the “Function node”. Next double click
on the “Function” node and delete [return msg;] on line 2. Then copy and
paste the code at the link below into the Function node.
Then select “OK” and “Deploy”. Now as LoRa packets are received and show up
in the debug tab you should notice “temp”, “x,y,z”, “baro_preasure” and “lux”
with decrypted data sent from the MTDOT-BOX in LoRa Demo mode.
https://webfiles.multitech.com/mmm/EVBParserLatest.txt-Best Regards
October 4, 2017 at 2:52 am #21069Vinesh Hanumantharayappa
ParticipantThank you Steve
October 5, 2017 at 4:52 pm #21114Steve Kovarik
ModeratorHi Vinesh
Another option is to follow the video at this link https://www.youtube.com/watch?v=r7ez4pd9N2c
The code to create the function node at the 6 minute mark is at this link
https://webfiles.multitech.com/mmm/LoRaDemoFnNode.txt
-Best Regards
October 6, 2017 at 1:48 am #21116Vinesh Hanumantharayappa
ParticipantThank you Steve, is it possible for you to provide a code for the function block which decrypts the location data in Survey GPS mode. Or suggest me any way to obtain GPS data of mDot box to Gateway. I just wanna get GPS coordinates on the Node Red’s debug console for further processing
October 13, 2017 at 11:56 am #21174Steve Kovarik
ModeratorVinesh
Using the MTDOT-BOX outside in “Single Survey” or “Survey Sweep” modes can
send GPS data to the Conduit. You must first configure the MTDOT-BOX to
send data to the Conduit using the command AT+DATA=1 and save with AT&W
You will also need to insert a micro SD memory card behind the Conduit front
panel to store survey data. Here is a link to DOTBOX_GOOGLE Node Red flow
that can be imported and used to view GPS data on Google maps. As shown at
the 14:40 time in the video at this link https://www.youtube.com/watch?v=r7ez4pd9N2c
https://webfiles.multitech.com/mmm/DotBox_Google.txtOctober 22, 2017 at 8:34 pm #21251Richard Wenner
ParticipantWhy is everything here like drawing teeth? If Vinesh had not raised his question – where would the data have been seen?
October 23, 2017 at 11:59 am #21252Steve Kovarik
ModeratorHi Richard
My apology, our developer site, videos and forums are intended to help
developers of all skill levels use our products. Unfortunately it is very
difficult for us to cover every possible use case in these mediums.By default all survey data is stored on the MTDOT-BOX and can be viewed on
the screen or downloaded off the device for analysis. This is documented on
our developer site http://www.multitech.net/developer/software/dot-box-and-evb-software/survey-sweep/We are happy to provide a path for our customers to “ask” and obtain answers
due to the myriad of applications that our Development Platform can be used
in. We are open to any recommendations that you may have to help us help you
(our customers) better.-Best Regards
October 24, 2017 at 3:41 am #21261Richard Wenner
ParticipantSteve, You are making me feel bad at my late-night outburst now! These sites are all great and extremely well documented (first class) but obviously written by folk who know the products AND these site(s) very well. Cross-referencing say the video with that mass of Node Red code would have helped. The videos are minutely detailed and then miss out these vital links. They just appear from nowhere.
October 24, 2017 at 9:41 am #21267Steve Kovarik
ModeratorHi Richard
Thank you for taking the time to provide feedback, it is through the insight
from those on the outside looking in that we are able to truly improve our
customers experience. I thank you for that. I will personally see to it that
future videos are more detailed and complete. Thanks for using MultiTech!-Best Regards
November 27, 2017 at 8:06 am #21902Richard Wenner
ParticipantI did a brief video on the topic https://youtu.be/WizST6gighs
-
AuthorPosts
- You must be logged in to reply to this topic.