Michael Zanetti
ea73d28213
Fix node type parsing
...
Parsing of NodeTypeEndDevice and NodeTypeRouter were swapped.
2022-08-30 22:48:19 +02:00
Michael Zanetti
fd12d0518b
Explicitly stop the ZCL timeout timer
...
Also don't use a QueuedConnection, as it's not guaranteed the
sender will still live on by the time slot is called.
2022-05-12 17:33:35 +02:00
Michael Zanetti
c20d14b793
Fix a crash when ZDO requests time out
2022-04-23 12:07:20 +02:00
Michael Zanetti
806065ff5c
Timeout ZDO replies
...
I've been observing devices that won't reply to ZDO node descriptor requests,
at least not on the first attempt as well as out-of-spec devices which claim
to have an endpoint x but then won't reply on getting the endpoint descriptor.
I have a Lumi (lumi.sensor_switch.aq2) button here which allows to reproduce
both of those. It will never reply on the first attemt.
Anyhow, it happens that the ZDO, waiting on the data indication never finishes
because there does not seem to be a timeout connected to it and it fails initialisation.
Adding a timeout, the code retries and it seems to succeed on the second attempt.
2022-03-07 12:07:40 +01:00
Michael Zanetti
9782ad5eac
Remove a duplicate debug print and fix some typos
2021-11-06 15:47:29 +01:00
Simon Stürz
40d6fdaa90
Move common data process mechanism to network base class
2020-12-09 10:53:33 +01:00
Simon Stürz
1eed81562a
Fix initialization error due to timeout issue and improve debugging
2020-12-02 12:03:44 +01:00
Simon Stürz
e245f7c845
Introduce binding management and cleaning
2020-11-25 13:06:31 +01:00
Simon Stürz
61114fc773
Restructure error handling depnding on layer and add MAC layer errors to replies
2020-11-24 18:14:54 +01:00
Simon Stürz
66637cc389
Add read binding tables for testing
2020-11-23 18:26:19 +01:00
Simon Stürz
0814624216
Add bind group to ZDO
2020-11-16 07:54:45 +01:00
Simon Stürz
008fd0c55b
Rename to reachable and set state on messages received and prepare lqi request
2020-11-12 17:48:12 +01:00
Simon Stürz
86a5579ff8
Basic networking working with NXP modem firmware
2020-10-20 16:37:32 +02:00
Simon Stürz
ed5517fbf1
Implement reply timeout and restructure uart communication queue
2020-06-30 16:49:09 +02:00
Simon Stürz
8f1043ba9f
Implement lqi updating of nodes and finishe on/off and level cluster
2020-06-14 14:39:10 +02:00
Simon Stürz
74995ce401
Implement NWL Layer error handling
2020-05-30 16:30:39 +02:00
Simon Stürz
69ed7e3496
Implement new clusters and restructure ZCL frame flow and implement attribute reports
2020-05-28 18:03:33 +02:00
Simon Stürz
7e5643a1cf
Add on off cluster and use zigbedatatype for atributes
2020-05-27 21:56:41 +02:00
Simon Stürz
029ca76bae
Make basic node adding mechanism work
2020-05-20 19:54:58 +02:00
Simon Stürz
7cdf772b1a
Start implementing clusters
2020-05-06 12:33:26 +02:00