-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoRaWAN 1.1 uplink issues #2171
Comments
Thanks for reporting, |
@rvolosatovs, Is this patch deployed on the enterprise cloud-hosted version? I am still getting the below dropped uplink error on gateway logs in console,
|
This error by itself does not indicate that something is wrong, it is normal for gateways to receive and forward traffic of unknown devices due to nature of LoRaWAN. Do you miss device traffic? |
@rvolosatovs , This is traffic from my end device.
|
Could you try simulating an uplink from your device after join via:
And confirm that you get a downlink with |
Hi @rvolosatovs, my first uplink does contain the RekeyInd mac command and is persisted till RekeyConf is received. Please find below my first uplink data,
|
I ran the asked command and got the error below,
In my gateway logs in console I got |
Please try this (make sure dev nonce is high enough):
You should receive a join-accept, then use the data from the join-accept to simulate an uplink:
Unfortunately, Log
|
Please make sure the device does not send uplinks when executing the commands |
@rvolosatovs,
my gateway received the join accept uplink but got dropped with below error (also gateway got disconnected again, had to restart),
cli version info:
In your test end device can you try the RekeyInd mac command with piggybacked data(like how I mentioned above) as first uplink from your side and see if that works? |
What band are you in? You will have to configure
I have done that, see #2171 (comment) (under |
@rvolosatovs, I meant have you tested with a similar uplink data(
Tried this, got same error and disconnect gateway. |
The gateway "disconnect" you see after executing the command does not influence the connectivity of the actual physical gateway.
Unfortunately, I do not have a physical 1.1 device at hand, so cannot test it that way. Which device are you using?
That's weird, is your gateway configured for the right frequency plan? |
Well my gateway stops receiving traffic after running that cli command. TTI console shows gateway last seen: disconnected.
Using STM32 discovery board.
Yes, I am able to successfully perform join with my end device. |
And which firmware are you using with it? |
LoRaMac-Node |
Please see Lora-net/LoRaMac-node#862 I suggest you register your device as MAC version |
We are using the feature branch which supports v1.1. Please check that branch also. We are tried this with TTI v3.6.0 and, join and uplinks were working properly. |
The issue is present in both |
Feature/5.0.0 only. Agree on the brute force method for selecting the right key for MIC for handling join accept frame, but join accept (from join-request) does work with v1.1.0 NS. Haven't tested rejoin-request though. |
That must then indicate either a bug in the Network Server or Network Server operating in 1.0-compatiblity mode. |
My end device does use the right key for encryption and MIC calculation, which is why the v1.1 join procedure is working. Coming back to the issue of this topic, could you have someone test the v1.1 uplinks in TTI cloud? |
I just opened a pull request, which fixes a bug I found in LoRaWAN 1.1 spec implementation #2307 related to
|
Any reason why session information is blank in the device overview page in console, simultaneously session keys are also not shown in the general settings page inside network layer tab. Previously it did show all the keys that were generated after the join procedure. Also what issues would cause this dropped uplink error message? (my dev address is correctly received after join accept)
|
The reason why you don't see any session information is because the session is not confirmed yet (i.e. a device still has not sent an uplink using the derived DevAddr, which Network Server would successfully process) Assuming right |
Got my uplinks working. So the issue is that my first uplink is with Also I see the NS sending |
Additional finding was that console logs shows incorrect channel index for 2 particular instances, though Tx MIC was correctly accepted by NS. In the IN865 region, frequency 865.985 Mhz has id-2(its the 3rd of the 3 fixed channels according to specs) but console show id-3 and conversely channel id-3, 865.2325 Mhz(i.e. received in CFList) is label id-2 in the console.
Also when tx channel index is 0, console logs skips that data point in the json. |
I'll quickly reopen this issue so that it doesn't get lost, but maybe we should open new issues for these problems instead. @rvolosatovs please triage the last 2 comments from @sidpat. |
The
Sorry, I cannot reproduce this, see:
MAC commands in FOpts are treated exactly the same as the ones in |
The TTI console only shows
Then the implementation is incorrect. The v1.1 specs has a slightly different scheme for encryption for FOpts and frame-payload. Compare the respective Created a pull-request here - #2339 |
Currently zero values are not rendered, so if
Good one, thank you! I will review it now and do the changes necessary to make it work. |
…ture/doc-images-clickable Make doc images clickable and TTES specific
Summary
TTN enterprise cloud hosted: Uplinks not working anymore.
Steps to Reproduce
What do you see now?
The console shows the following 2 messages in the gateway logs after an uplink,
dropped uplink:
dropped uplink:
What do you want to see instead?
successful uplinks
Environment
TTN enterprise cloud-hosted (things were working 5 days ago, probably the new update broke something)
How do you propose to implement this?
...
Can you do this yourself and submit a Pull Request?
...
The text was updated successfully, but these errors were encountered: