Closed hallard closed 2 months ago
Hi @hallard! We appreciate you submitting your first issue for our open-source project. š
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. š¤š
can you help me to make grove LCD Display program i face configuration essue can you give me overlay file for this
can you help me to make grove LCD Display program i face configuration essue can you give me overlay file for this
@Ashu12Aj please ask your question on Discord (https://chat.zephyrproject.org/) -- this is an entirely different issue you've commented on, so I doubt anyone will be able to help you here :)
@hallard The LoRaWAN US915 region has been designed/specified to use 64x125kHz+8x500kHz channels. Which means that so called 64 channels gateways are are expected to be used. The reasons for this requirement are related to the FCC rules. The FCC allows to use less channels but in this case the RF output levels must be decreased. For further information please refer to the following Regional Parameters RP2-1.0.4 specification note:
The issue being that most network providers in US based regions have decided to deploy 8x125kHz+1x500kHz channels gateways for different reasons (mainly costs).
By doing so one needs to accept the compromises that must taken in consideration when such choice happens.
From a certification point of view as well as network operation all end-devices must support the 64+8 channels, The reason being that your today's network makes use of 8 channels gateways however in the future this may change i.e. 64 channels gateways are added to the network or for some reason the 8 channels gateways are changed to use a different bank of 8 channels or your end-device is at some point connected to a network using the 2nd block of 8 channels and then moves to a network using another bank of channels.
The drawback of using 8 channel gateways is that we must accept that an end-device must potentially do several trials before being heard by a gateway and finalize the join procedure. However once the join procedure is finalized the network server instructs the end-device to only activate the required channels using the CFList field of the Join Accept frame.
To speed up and reduce the amount of join trials the RP2-1.0.4 specification recommends the below algorithm.
As an example lets assume that the network uses the 8th bank of 8 channels. This means that at least 8 trials will be necessary prior to join the network.
In conclusion I would say that your observed behavior looks to be normal. Another point being that RF signals can be interfered by other signals which if you are unlucky and your first join request supposed to be received isn't then 9 other trials will take place before being joined and this process may repeat up until the join procedure is successful.
As a side comment the RSSI values shown in your screenshots are way to high. Your end-device is shouting out loud on the receiver. I would recommend to move your end-device away from the gateway (at least 10 meters and a wall). For good conditions try to get RSSI values between -70dBm and -90dBm. By doing so I am confident that you will observe a lot less issues joining the network.
@mluis1, thank you very much for this crystal clear explanation about joining process on 64+8 channels. As I said, it's a deal (longer join process) that we can handle because once joined all should be fine.
I'm surprised that the issue may comes from end device too close to gateway (that's indeed the case) because it's far for the first time we're using US 915 devices in same situation (and lot of devices are different, even one already made from Elsys or other manufacturers) and it is the first time we're just unable to join. We already join with same device (with mbed lorawan stack) without any issue and even sometime with RSSI signal near -40dB (because as you say, we're close from GW). So of course I will test going far away from the GW but I'm pretty sure it will not change anything because it is something we handle day by day.
Here the logs and capture I've just tested few minutes ago in same situation, same location, same sensor, same gateway, mbed stack US915 (instead of zephyr one), as you can see works immediately even with -56 RSSI, same process with lorawan class a zephyr sample just never join.
[LoRaWAN] initialize: Success
[LoRaWAN] set callbacks: Success
[LoRaWAN] device set to class A: Success
[LoRaWAN] LoRa set_confirmed_msg_retries(3) : Success
MBED join wait : 3 seconds (random wait)
LoRa connect() joining...
Reset if no join in 24 h
LoRa Event joined
[LoRaWAN] enable adaptive datarate: Success
LoRa scheduled payload[1] on port:1 => 00
LoRa cb_set_battery_level(3048mV) for 2x1.5V AA battery => F8 (97%)
LoRa Event TX done
So if someone would be able to do same test trying to connect nrf52840dk+semtech SX1262 shield on TTN it would be awesome we can confirm it just works (or not)
Anyway there is something different, mbed try to join in SF8 and zephyr in SF10 (that may be too high for RSSI as you mention, I'll test far from gw in a couple of hours)
I've done other tests according @mluis1 recommendation, I'm able going further because now TTN accept join and send downlink join but device still does not join
here TTN log
and Serial console
please note to enforce testing LORAWAN_SYSTEM_MAX_RX_ERROR
is set to 100
instead of 20
Once setting back to 20
looks like I had a chance to get further (one out of 100) but still no join. And with the following error
Hi
@mluis1 just to give more informations to investigate, today I decided to give a try with nrf52840dk + semtech shield with mbed (so same hardware, same infrastructure) and guess what, it worked 1st time without any issue.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug
When using US915 LoRaWAN class_a sample we're unable to join on TTN
First to mention, there is no subband (FSB) selection possible under kconfig (see FSB usage explanation) so as US915 has 64 channels and our gateway has only 8 channels, we miss about lot of joins request that are not in our subband (just as a reminder, not related to our issue)
Using NRF52840 + semtech_sx1262mb2das shield, tried also with RAK4631 same issue
To Reproduce
We changed
main.c
to loop for join to better track of this issueExpected behavior
Device to join LoRaWAN .
Impact
LoRaWAN not working US915 on TTN in our config (not sure on others LNS)
Logs and console output
Gateway Logs
As you can see only 2 of the 14 joins are seen, it's because of FSB mentioned above.
TN LOG
Additional context
We have some RAK3172 (STM32WL5) we are using with mbed for long time and we tried on this one to check our infrastructure and also tried with EU868
As you can see the issue is only happening on US915 with Zephyr.
We also tried to increase RX error from 20 to 100 just in case with
CONFIG_LORAWAN_SYSTEM_MAX_RX_ERROR=100
not solving the issue.Any help would be greatly appreciated @mluis1 @martinjaeger @carlescufi , FTI we already made some first investigations with @kartben
Thanks