Comments (8)
Let us double check as we don't use the simulator lately as the CI is using real gateway and devices and the unit tests use a bit different code. As the 32SupportdFcnt was probably added after the simulator was completed. @Mandur do you have an idea?
One quick test is to add to your device twin: "Supports32BitFCnt": false. Try also with true. As we do caching a restart (or call the clearcache method) of the netwrk server module (ev. clear the Redis cache too) would be required.
from iotedge-lorawan-starterkit.
I try to add a desiresd property "Supports32BitFCnt" and set it yo true, now the interal property of the Engine is set to true, but the MIC validation fails anyway in function payload.CheckMic
from iotedge-lorawan-starterkit.
I would tend to believe that for the Simulator as with most of the Lora devices Supports32BitFCnt must be set to false. This is also the default.
Are you sure that the keys are not inverted? Maybe you could try to use the same value for the ntw and the app key.
Could be that we have a bug in the Simulator
from iotedge-lorawan-starterkit.
I set Supports32BitFCnt to false, that was the default value and the MIC validation fails.
Setting AppSKey, NetSkey if they are the same doesn't seem affecting the MIC validation from a quick test.
Question: having a quick look at the code of the Engine I don't see the use of the testconfig.json, where is it used?
does the payload.CheckMic in the Engine need the testconfig.json?
from iotedge-lorawan-starterkit.
Hello @pietrobr, Thanks for reporting the issue. I think the problem is our documentation that is missing an element. Could you please try to add the following settings to your debug settings of the LoRaEngine : IOTEDGE_DEVICEID to "gateway". PS. You could set it to any string, as you are not using gateway mode I don't think it will matter.
Let me know if that fix it
from iotedge-lorawan-starterkit.
Hi @Mandur I've tried to set the string "gateway" with and without quotes, but nothing changed.
I'm not sure if the IOTEDGE_DEVIEID is used in payload.CheckMic that it's where the MIC validation fails.
from iotedge-lorawan-starterkit.
Hmmm, sorry you are right, when I tried to replicate your error this is the problem I had... I am unable to replicate the error you are facing :(. It would be of great help to get the settings you are using so I could reproduce
from iotedge-lorawan-starterkit.
As the problem was the mismatch of the ntw and app key we close the issue as resolved.
from iotedge-lorawan-starterkit.
Related Issues (20)
- Failed integration test, possible race condition HOT 1
- [Story] Testing of release workflow steps on PR creation
- [Story] Enforce using the same dotnet versions accross github workflows
- Make the load test pass HOT 1
- Fix the Label on PRs
- All CIs should be using federated Identities when possible and functional HOT 1
- [Story] Create pull requests from release workflow
- [Bug] If building the provisioning cli fails, release workflow looks green
- [Story] Create Arduino Sample for Class B beaconing HOT 2
- Document twin settings for Class B beaconing HOT 2
- DRs set to 0 in US915 router config recognized as FSK instead of "undefined" HOT 11
- When running E2E CI manually it still fail trying to update PR Label HOT 1
- Release pipeline: Azure Functions zip improperly created HOT 1
- Deployment Failed: 'PrincipalNotFound' error when deploying Discovery Service HOT 1
- QUESTION: Azure IoT TLS upgrade HOT 3
- Wrong manifest creation in release pipeline HOT 1
- Enhance Class B documentation
- Deployment is not idempotent when the deployDevice parameter is enabled HOT 1
- Add timestamp/datetime to console logs HOT 4
- Remove dynamic binding introduced with #1841
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotedge-lorawan-starterkit.