Comments (8)
@cdjackson I noticed a post in the silicon labs community about it and I'm still experiencing this. I would be happy to help debug it. Has there been any progress on it, any direction I should look first?
from com.zsmartsystems.zigbee.
Yep - this issue was the bane of my life for quite a while and I discussed it both on the forum and privately with Silabs for quite a while. In the end, it stopped happening and I've not worked out how to reproduce it. However, as more people have used the Zigbee binding in openHAB, there have been 2 people with this issue that I know of so I'm keen to find it.
For reference, the post you mention is here.
Unfortunately I don't really have any pointers on where to look and at the moment I can't reproduce it (I've tried a few times recently due to the OH issues). Do you have the Silabs devkit? I would suggest to discuss on the Silabs forum, but they will probably ask for the debug info from the chip.
from com.zsmartsystems.zigbee.
Do you know if the people who are experiencing the problem are also using the HUSBZB-1? I'd be happy to ship you one of mine if you are looking for a device that continues to experience the problem.
I do have the dev kit so I can reach out to them for some help. But i don't think I can get debug information off of the chip on this. When you were experiencing the problem were you using the CEL mesh connect modules that came with the dev kit or some other radio?
from com.zsmartsystems.zigbee.
from com.zsmartsystems.zigbee.
So I ended up rewriting ZigBeeDongleEzsp.initialize() to not use the stackConfiguration hashmap or stackPolicies hash map and instead just call setConfiguration or setPolicy for each setting, one after the other. In addition I tweaked the order and parameters some. Since that change I have not seen this error again.
This is what I do for the configuration:
// Perform any stack configuration
this.setConfiguration(EzspConfigId.EZSP_CONFIG_STACK_PROFILE, 2);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_SECURITY_LEVEL, 5);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_SUPPORTED_NETWORKS, 1);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_APPLICATION_ZDO_FLAGS, 0x04);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_TRUST_CENTER_ADDRESS_CACHE_SIZE, 2);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_KEY_TABLE_SIZE, 1);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_MAX_END_DEVICE_CHILDREN, 20);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_TX_POWER_MODE, 1);
this.setConfiguration(EzspConfigId.EZSP_CONFIG_END_DEVICE_POLL_TIMEOUT, 113)
And this for the Policy:
setPolicy(EzspPolicyId.EZSP_TC_KEY_REQUEST_POLICY, EzspDecisionId.EZSP_DENY_TC_KEY_REQUESTS);
setPolicy(EzspPolicyId.EZSP_APP_KEY_REQUEST_POLICY, EzspDecisionId.EZSP_ALLOW_APP_KEY_REQUESTS);
setPolicy(EzspPolicyId.EZSP_TRUST_CENTER_POLICY, EzspDecisionId.EZSP_ALLOW_PRECONFIGURED_KEY_JOINS);
from com.zsmartsystems.zigbee.
Thanks for the comment...
not use the stackConfiguration hashmap or stackPolicies hash map
I don't see how this can make any difference. This should be 100% exactly the same as calling the methods individually. What does the log show at EZSP/ASH level - I would guess it's 100% identical unless it somehow changes the timing.
I tweaked the order
I've also tried in the past to mess around with the order as I've felt it makes a difference.
I think it would be good if you can isolate the actual cause - possibly by reversing these changes until it stops working again? Without understanding the problem, there's no way to know if this is fixed...
from com.zsmartsystems.zigbee.
The issue with changing to the individual commands rather than using the map is that the order of the commands can change. I came across the issue with the stack profile changing, and noticed that it always failed if this setting was set last, rather than in the order it is set into the map. I've now changed this to use a TreeMap
so that order is fixed, and this seems to have stopped such problems.
I beleive from my discussions with Silabs over the stack order problem a couple of years back that order shouldn't mater, but that doesn't seem to be correct.......
I hope that this change will also fix this issue.
from com.zsmartsystems.zigbee.
π
from com.zsmartsystems.zigbee.
Related Issues (20)
- InitiateKeyEstablishmentRequestCommandSuccess(com.zsmartsystems.zigbee.app.seclient.ZclKeyEstablishmentServerTest) is unstable HOT 6
- Separate logs generated by multiple network managers in multiple files HOT 2
- Type of incoming/outgoing frame counters HOT 2
- ASH frame handler - receive queue is full HOT 2
- ArrayIndexOutOfBoundsException during shuffle of outstanding queues (transaction manager) HOT 6
- ConcurrentModificationException while iterating queues HOT 4
- Support for Silicon Labs multiprotocol stack when using Silabs Multi-PAN RPC (Radio Co-Processor) firmware HOT 1
- Queues not shutting down properly HOT 1
- [REQUEST] Standard "Open ZigBee Coordinator Backup Format" support for Zigbee network backups and restoring from and to other ecosystems/platforms?
- Should ZigBeeDongleTelegesis return NO_NETWORK when Network Information Command returns "NoPAN"? HOT 3
- Animal sniffer reports errors on projects HOT 3
- Optimize thread pools to spare resource consumption HOT 5
- EZSP v12 (EmberZNet Serial Protocol versions 12) for Silicon Labs Ember NCP dongles? HOT 12
- Possibly a problem with OTA upgrades HOT 6
- Insecure Zigbee Network Encryption Key Generation HOT 3
- EZSP v13 (EmberZNet Serial Protocol versions 13) for Silicon Labs Ember NCP dongles?
- Configurable transactionTimeout in XBee public API HOT 5
- Console doesn't start - CC2531 HOT 2
- NPE while initializing transport layer HOT 6
- NPE in ZigBeeNetworkDiscoverer HOT 2
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 com.zsmartsystems.zigbee.