issue with MANUAL join mode

Home Forums Conduit: AEP Model issue with MANUAL join mode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20113
    Steeve Zissou
    Participant

    Dear all,
    I’d like to use the MANUAL mode for my LoRaWAN network but somehow my nodes needs to be manually removed and added on the conduit every time they are turned on.
    My issue is that every I turn on my mDot I need to execute the following lines on the gateway (adapted from http://www.multitech.net/developer/software/lora/lora-network-server/ )
    :

    lora-query -d 01:02:03:04
    lora-query -a 01:02:03:04 A 0102030401020304 <DEV-EUID>  <APP-KEY&gt>

    I would expect to execute those two lines once for all even after multiple on/off cycles of my mDOt (as long as the parameters haven’t changed).
    Surprisingly, if I don’t execute those two lines the packets sent by my node are not received by the gateway; And as soon as I execute the commands they are received.
    Obviously, for my IoT application, it would be suboptimal to have minions behind every individual conduit running those two lines of codes every time a node is turned on :).
    Could anyone tell me how to set the network once for all so that every time the mDOT joins the conduit (in manual mode) without any intervention on the conduit?
    I am using the latest version of loraquery, MbedOS… on mdot and conduit.
    I’d be more than happy to provide you with more information in order to help solving this problem.
    Thanks!

    • This topic was modified 6 years, 9 months ago by Steeve Zissou.
    #20120
    Jason Reiss
    Keymaster

    In MANUAL join mode the session counter values need to stay in sync.

    The counter on the dots must not decrease.

    See AT+SS and AT+RS to save and restore the session counters.

    Or from mDot.h:

    /**
    * Resets current network session, essentially disconnecting from the network
    * has no effect for MANUAL network join mode
    */
    void resetNetworkSession();

    /**
    * Restore saved network session from flash
    * has no effect for MANUAL network join mode
    */
    void restoreNetworkSession();

    /**
    * Save current network session to flash
    * has no effect for MANUAL network join mode
    */
    void saveNetworkSession();

    #20262
    Steeve Zissou
    Participant

    Thank you Jason,
    It works !
    Best,
    Steeve

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.