I red all forum posts on the topic and triple checked the net and session keys so really out of ideas now.
Wondering what would be the steps to manually check if the data is encoded/decoded properly by using the net and sess keys.
Or enable some additional debug logs to troubleshoot the issue.
The same gw has another identical tag which works absolutely fine which makes me thinks that the issue is not with the profile or lora settings.
https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/
trying this tool, but it always returns mic error even for the tag that works.
I am taking the data from the bytes field from the LoraWan logs
nmenoni
November 11, 2021, 12:12am
3
You can also check the LoRaWAN version you specified in the device profile. I have had similar issues because the wrong version configured.
Cheers!
Nico
1 Like
yeah I double-checked this as well. I am thinking to deep dive in the code and send some fake data to see how it is encoded/decoded
It looks like hardware damage on the sending device that tool I posted helped a lot but it would be great is the app server also shows the raw data as it comes from the concetrator.
Opened an issue as a feature request
opened 11:30PM - 16 Nov 21 UTC
<!--
We really appreciate your time effort in creating this issue, it's reall⦠y valuable for the quality of the project.
Before diving into the details, make sure to check off the following:
-->
- [x] I have searched the [issues](https://github.com/brocaar/chirpstack-application-server/issues) of this repository and believe that this is not a duplicate.
## Summary
## What is the use-case?
For troubleshooting I want to use https://github.com/anthonykirby/lora-packet to decode the bytes. Currently have a case where the net key and the app key are correct and suspect that the device is sending corrupt data so need to read the raw bytes to troubleshoot the issue
## Implementation description
In the gateway frames tab just add another field that shows the raw bytes.
## Can you implement this by yourself and make a pull request?
yes with some small guidance
brocaar
November 26, 2021, 1:51pm
6
Yes, I saw that issue. Currently Iām first working on some cleanup and refactoring of the code, but I do agree that having the raw base64 or hex payload could be helpful.