RAK5205 - restart Join procedure automatically



  • With the default app interval setting, the node is sending a message every minute.
    It is not inline with the TTN fair use policy plus I do not need to have one message sent every minute and prefer to save battery.

    If I modify the app interval parameter from 10 to 100.
    There is no clear documentation about min / max value of this parameter and how it is related to the delay between uplink messages

    Anyway, after modifications, the node is restarting the join procedure after sending 1 or 2 messages

    If I modify the app interval parameter from 10 to 100

    0_1546427759798_Screenshot from 2019-01-02 11-41-01.png

    If I change back the parameter from 100 to 10, the problem disappears.

    0_1546427792931_Screenshot from 2019-01-02 11-58-36.png

    What value should I use for the app interval to not have this problem and send one uplink message every 10 minutes?



  • @kastayou Hi,The firmware opens the independent watchdog, the main program has the operation of feeding the dog, the interval time is too long will cause the watchdog reset, I re-edited a firmware, using the timer to feed the dog, you can solve the real problem.RAK811_HF_TRACKER.bin



  • Hi Leopold, Thank you for the feedback.

    Did the fix has been pushed to the source code available on Github? It seems that you are creating here an undocumented new branch of the firmware :/
    The firmware says that it is version 2.00.1.0 but this version is not mentionned on the release note.

    With this version of the firmware, I have a regression. The messages are sent as confirmed messages even if it is configured as unconfirmed.

    Configuration OK!
    app_interval = 600
    gps_stime = 60
    msg_confirm = 0
    power_save = 0
    Selected LoraWAN 1.0.2 Region: EU868
    Current ModeLoRaWAN.
    Initialization OK!

    What is the limit of the app interval? If I configured it to 600 I have again the same initial problem.

    The problem is that since the project is available only for Keil which is not free, I cannot modify the source code and compile a new firmware by myself.



  • @kastayou Hi,Kastayou.The new version of firmware based on the platform is still improving the compatibility of different RAK811 modules, and will be updated on github after integration.RAK5205 is one version of the platform.The version 2.00.1.0 no re_join occurred with our test.Can you explain the details of your problem to me, please?



  • @leopold
    I have freshly loaded the firmware and configure my keys, set the app interval to 600 (10 minutes) and set message confirm to 0 (I want to send unconfirmed message to comply with the TTN fair use policy).

    My RAK5205 is connected to a 18650 lithium battery to the right port and connected to USB to monitor the debug messages.

    And I do not do anything else. Since the module is near my laptop, sometimes the node is moved and it detects motion.

    I have two issues:

    • even if I have configured the RAK5205 node to send unconfirmed messages, messages are sent as confirmed messages (I can see that on the TTN application console)
    • Sometimes, the RAK5205 is restarting. It is not easily reproductible. Sometimes it happens frequently and sometimes, it happens several times in a row. I have not understood why

    Here are the debug logs (note, I did not do anything on the node. No reset, not unplugged from USB)

    *FAIL.The Satellite signal not found!Bat: 3781mv
    ACC X:0mg Y:0mg Z:0mg
    T: 27.65 degC, P: 1020.13 hPa, H 37.12 %rH , G: 9608 ohms
    Welcome to RAK811.
    Version: 2.00.1.0
    LIS3DH init success!
    ACC X:304mg Y:96mg Z:-928mg
    BME680 init success!
    T: 27.40 degC, P: 1020.21 hPa, H 43.26 %rH , G: 5101 ohms
    Please Configurate parameters...
    Configuration OK!
    app_interval = 600
    gps_stime = 60
    msg_confirm = 0
    power_save = 0
    Selected LoraWAN 1.0.2 Region: EU868
    Current ModeLoRaWAN.
    Initialization OK!

    OTAA mode:
    DevEui: XX XX XX XX XX XX XX XX
    AppEui: XX XX XX XX XX XX XX XX
    AppKey: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
    OTAA Join Start...
    OTAA Join Success!
    ACC X:64mg Y:-80mg Z:-176mg
    FAIL.The Satellite signal not found!ACC X:400mg Y:-32mg Z:-32mg
    ACC X:112mg Y:-256mg Z:-16mg
    Bat: 3768mv
    ACC X:96mg Y:0mg Z:-160mg
    ACC X:160mg Y:-96mg Z:-80mg
    ACC X:-48mg Y:-96mg Z:-256mg
    ACC X:96mg Y:-32mg Z:-240mg
    ACC X:-64mg Y:176mg Z:64mg
    ACC X:-64mg Y:48mg Z:-144mg
    ACC X:240mg Y:-112mg Z:-80mg
    ACC X:240mg Y:-112mg Z:-80mg
    ACC X:96mg Y:-256mg Z:-64mg
    ACC X:112mg Y:-208mg Z:-64mg
    ACC X:16mg Y:0mg Z:-128mg
    ACC X:128mg Y:-64mg Z:-80mg
    ACC X:-160mg Y:112mg Z:48mg
    T: 27.76 degC, P: 1020.19 hPa, H 41.47 %rH , G: 9528 ohms
    ACC X:208mg Y:-112mg Z:-80mg
    ACC X:-400mg Y:96mg Z:96mg
    ACC X:-80mg Y:32mg Z:-208mg
    ACC X:320mg Y:-80mg Z:-64mg
    ACC X:-336mg Y:112mg Z:80mg
    LIS3DH no ack
    LIS3DH no ack
    Welcome to RAK811.
    Version: 2.00.1.0
    LIS3DH init success!
    ACC X:352mg Y:112mg Z:-912mg
    BME680 init success!
    T: 28.11 degC, P: 1020.23 hPa, H 45.21 %rH , G: 5322 ohms
    Please Configurate parameters...
    Configuration OK!
    app_interval = 600
    gps_stime = 60
    msg_confirm = 0
    power_save = 0
    Selected LoraWAN 1.0.2 Region: EU868
    Current ModeLoRaWAN.
    Initialization OK!

    OTAA mode:
    DevEui: XX XX XX XX XX XX XX XX
    AppEui: XX XX XX XX XX XX XX XX
    AppKey: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
    OTAA Join Start...
    OTAA Join Success!
    FAIL.The Satellite signal not found!Bat: 4136mv
    ACC X:352mg Y:112mg Z:-912mg
    T: 28.65 degC, P: 1020.25 hPa, H 40.35 %rH , G: 9416 ohms
    ACC X:0mg Y:-112mg Z:288mg
    Welcome to RAK811.
    Version: 2.00.1.0
    LIS3DH init success!
    ACC X:1360mg Y:-32mg Z:-544mg
    BME680 init success!
    T: 29.63 degC, P: 1020.25 hPa, H 41.30 %rH , G: 6830 ohms
    Please Configurate parameters...
    Configuration OK!
    app_interval = 600
    gps_stime = 60
    msg_confirm = 0
    power_save = 0
    Selected LoraWAN 1.0.2 Region: EU868
    Current ModeLoRaWAN.
    Initialization OK!

    OTAA mode:
    DevEui: XX XX XX XX XX XX XX XX
    AppEui: XX XX XX XX XX XX XX XX
    AppKey: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
    OTAA Join Start...
    ACC X:-16mg Y:48mg Z:-160mg
    ACC X:-32mg Y:32mg Z:-336mg
    ACC X:-96mg Y:16mg Z:-240mg
    ACC X:-80mg Y:16mg Z:-176mg
    ACC X:96mg Y:128mg Z:80mg
    ACC X:-64mg Y:48mg Z:128mg
    ACC X:32mg Y:32mg Z:-144mg
    ACC X:16mg Y:240mg Z:-48mg
    ACC X:0mg Y:-48mg Z:-224mg
    OTAA Join Success!
    FAIL.The Satellite signal not found!Bat: 3775mv
    ACC X:0mg Y:-48mg Z:-224mg
    T: 29.76 degC, P: 1020.23 hPa, H 39.65 %rH , G: 10969 ohms
    ACC X:-80mg Y:-16mg Z:144mg
    ACC X:128mg Y:-16mg Z:-48mg
    ACC X:16mg Y:0mg Z:-192mg
    ACC X:-16mg Y:-48mg Z:160mg
    ACC X:64mg Y:0mg Z:144mg
    ACC X:80mg Y:-32mg Z:-176mg
    ACC X:-48mg Y:16mg Z:-192mg
    ACC X:0mg Y:16mg Z:-224mg
    ACC X:48mg Y:80mg Z:-256mg
    ACC X:64mg Y:-48mg Z:208mg
    ACC X:208mg Y:32mg Z:112mg
    LIS3DH no ack
    LIS3DH no ack
    ACC X:0mg Y:0mg Z:0mg
    FAIL.The Satellite signal not found!Bat: 4161mv
    ACC X:0mg Y:0mg Z:0mg
    T: 29.92 degC, P: 1020.27 hPa, H 41.22 %rH , G: 8808 ohms*

    I will not continue to use this firmware and start from the one available on github where the source code is available.
    The two problems I have:

    • Project on github is only available for keil and I do not have it
    • It is not possible to configure the app interval to 600

    So my best option is to start from this source code:
    https://github.com/Ebiroll/RAK811_BreakBoard which can be compiled using platformio and vscode.



  • @kastayou Hi,kastayou . "Project on github is only available for keil and I do not have it":I'm sorry for it supported Keil only currently, but the open source code on github you could try to transplant other platform.
    "It is not possible to configure the app interval to 600": We have test it ,and didn't occure this problem(You'd better turn off the watchdog whether you can eliminate the problem that you encounter).but it has another issue about "LIS3DH no ack".You could try this firmware that has fixed this issue. .0_1548058946161_RAK811_HF_TRACKER.bin

    In addition,we are integrating a platform, fixing some problems with the previous firmware, and redefining the version number.of course, with new documentation. Please notice the release open source code of github.


Log in to reply
 

Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.