Capecchi Olivier
Forum Replies Created
-
AuthorPosts
-
Capecchi OlivierParticipant
Hello Mike,
Thanks a lot, that’s exactly what I was looking for !
Sincerely yours,
OlivierCapecchi OlivierParticipantHello Deng,
Could you give a full description of what you tried ? I had some difficulties in using the debug port too but at the end I managed it so if you describe me your trials I will perhaps be able to help you a bit.
Cheers,
LucasCapecchi OlivierParticipantCompleting my last post :
To read the data arriving to your PC through a UDP Port (solution nยฐ2) : the data is found in the string “data” on the debug port. This string is in Base64. To get the data decrypted is a bit tricky. The procedure is described on the LoRaWan protocol ยง4.3.3. To help understand better the procedure, read this forum post from TTN : https://www.thethingsnetwork.org/forum/t/parse-data/789/21
Basically : you will have to create your own A bloc (using your mDot device address you put in it, at+da?) and encrypt it in AES128 using the Application Session Key you coded in your mDot box (at+dsk? to get it). You can do this through encrypting tools on the internet. Then you will have both the S bloc (A bloc encrypted) and your payload and writing both in binary format, you do “payload XOR Sbloc”. In Excel 2013 there is both HEXBIN and XOR formulaes to help you with this.
I managed it after only 6 hours, I’m improving ๐
Good luck and cheers,
LucasCapecchi OlivierParticipantHello Fabian,
I don’t know if you managed your problem but here are two solution to your question :
1/ Open a loriot.io account and register your gateway. It’s free and they provide you with the binary to forward the packets from your gateway to their server. Then create an app and register your mDOT (quite straigthforward). Then configure your mDOT using the NA, NwKey and DsKey supplied by Loriot. When everything is set, you should see the packets arriving from your mDOT on the Loriot server. Then use the “websocket” app from Loriot to get the websocket link that you use in Node-RED, with the input Node “websocket”. Connect this node to a debug Node and you will read your data. Be patient, since I’m no IT genius for example it took me about 20 hours to get this result… ๐
2/ Second option is to configurate your Gateway as packet forwarder (howto on this site) and to make it forward the packets to your computer IP. Configure also the port (for example 1700). On your computer, in Node-RED, use a “UDP input” node and set it to listen to your computer port 1700. Connect it to a debug node and here your are…. Well, are you are not since you will be able to read the packet but not to understand it. The payload is 28 bytes and I don’t have any idea of what is inside it, even coming from my mDOT that I know well already… I didn’t have time to start a topic on this forum to ask Multitech how the payload is encrypted when we set the Conduit to basice packet forwarder….
Good luck,
Cheers,
LucasDecember 29, 2016 at 4:46 pm in reply to: How many Node-RED flows can run simultaneously on one AEP ? #16171Capecchi OlivierParticipantHello Peter,
Thanks for the quick answer. Ok, I think I got it how we are going to manage all the packet forwarded to the “main” Conduit through one flow.
We will start soon the tries.
Sincerely yours,
LucasCapecchi OlivierParticipantHi Peter,
I finally manage to reset the Conduit using the Debug port and some precious help from the Multitech support guys (thanks guys !).
But I’m a bit disappointed about the reset button that is not working at all (and seems that I’m not the only one to have faced this issue).
Anyhow, lesson learned !
Cheers,
Lucas -
AuthorPosts