-
Notifications
You must be signed in to change notification settings - Fork 67
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
Feature request: add setters for uplink and downlink counters #41
Comments
User modifications of uplinj/downlink counters are pointless. For testing a system those had to be injected at a way lower level (i.e. syntheic test case). There are no known rollover issues in 1.0.2. There is not rejoin required as pointed out in the other issue. The problem was observed with ST's code, which is derived off a LoRaMac-node 4.4.2 develop branch. |
@GrumpyOldPizza, when I say system testing, I mean interaction between a node and a network server., not just testing the module and firmware (although it's good to hear you had it covered). |
Please show me a real use case (not just an abstract one) where this makes sense, and would actually do the right thing. |
I'll add a "::setUpLinkCounter()". Not sure about the value, but easy enough to do. A "::setDownLinkCounter()" does not make sense, and this counter is driven by the gateway. |
As I said before, this is not be used in mission mode, but only during the system integration testing. Not having this is not a show stopper, but makes such testing harder than it should be. If this is a low effort add on (which I expected to be), it would be useful to have in the toolbox. setDownLinkCounter() is OK to be skipped. |
Ok. setUpLinkCounter() is not implementable right now. The backing EEPROM code enforces a strict increasing order. Applying all sorts of trickery does not seem to be worth it at this point of time. Perhaps when the stack will be upgraded to 1.0.3 or 1.1. |
Sounds reasonable. Thanks for trying. |
I'd like you to consider adding setters for uplink and downlink counters to help with testing the system at corner conditions when the counters roll over. Without these, it will take a very looong time to reach those conditions.
Also, could you please clarify these comments from another issue?
#27 (comment)
#27 (comment)
Will version 1.0.2 work correctly with 32-bit counter rollover, or should the network rejoin happen just before 16-bit counter expiry, as @SloMusti advises?
When the counter rolls over, does the application code need to do anything special (eg. force re-join)? Is there an error generated from send functions?
The text was updated successfully, but these errors were encountered: