[riot-notifications] [RIOT-OS/RIOT] SX127x Join procedure failed (The Things Network) (#16419)

Jacco Veldscholten notifications at github.com
Mon May 17 13:55:59 CEST 2021


> > Update:
> > After trying to rejoin and send stuff i got again some data in the console! (ABP)
> 
> It's something!
> 
> Could you send me transmissions stats? (SNR, RSSI, etc). You should be able to see that details if you click the message.
> 
> > Trying to join with OTAA. But the gateway is to slow to send out the Join Accept. Is there a way to extend the RX ?
> 
> Yes, this is possible:
> 
> ```
> /**
>  * @defgroup net_gnrc_lorawan_conf GNRC LoRaWAN compile configurations
>  * @ingroup net_gnrc_conf
>  * @{
>  */
> /**
>  * @brief maximum timer drift in per mille
>  *
>  * @note this is only a workaround to compensate inaccurate timers.
>  *
>  * E.g a value of 1 means there's a positive drift of 0.1% (set timeout to
>  * 1000 ms => triggers after 1001 ms)
>  */
> #ifndef CONFIG_GNRC_LORAWAN_TIMER_DRIFT
> #define CONFIG_GNRC_LORAWAN_TIMER_DRIFT 10
> #endif
> 
> /**
>  * @brief the minimum symbols to detect a LoRa preamble
>  */
> #ifndef CONFIG_GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT
> #define CONFIG_GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT 30
> #endif
> /** @} */
> ```
> 
> Try to change CONFIG_GNRC_LORAWAN_TIMER_DRIFT in order to adjust the drift. You can extend the RX window time with CONFIG_GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT.
> 
> In any case, if there's a timing issue, joining with a lower DR shouldn't affect the timings. Could you try joining e.g with DR0?
> 
> ```
> ifconfig 3 set dr 0
> ifconfig 3 set deveui <DEVEUI>
> ifconfig 3 set appeui <APPEUI>
> ifconfig 3 set appkey <APPKEY>
> ifconfig 3 up
> /* Wait 7 seconds */
> ifconfig /*<-- should show Link: Up */
> ```

Many many many many many thanks. It works! You're are hero mate!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/16419#issuecomment-842264026
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210517/15c0496c/attachment.htm>


More information about the notifications mailing list