Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Reply To: mDot Device Class C work flow

$
0
0

Momo, for class C to work, you need to also tell the gateway(*) that node ‘X’ is a class C device. In the class_c_example.cpp there is a send function to send data to the gateway, but this does not mean that the node receives data only after sending. If you initialized the mDot as class C, it will be continuously listening for packages from the gateway – not just after sending (as a class A device would).

(*) Now: how to set up a node as class C on the gateway:
1. Connect to the gateway whichever way is easier for you. I usually just connect through the microUSB port on the back and connect to the gateway through putty (COM device).
2. Type: lora-query -n to list all the connected nodes. Find your class C node in the list and remember what number it is (00000000X).
3. Then type lora-query –u 00000000X class C to set node X as a class C device. When both the node is initialized as Class C and the gateway knows that this node is Class C, you should be able to receive packets from the gateway right away.
4. Type /etc/init.d/lora-network-server restart to restart the gateway and save the new configuration.


Viewing all articles
Browse latest Browse all 7111

Trending Articles