241 Commits

Author SHA1 Message Date
Michael Zanetti
22837865f1 Fixes reconnecting the ZigBee controller after a reset during runtime
Resets may occur by unplugging the stick or calling a softReset() from
the software side.

Additionally resets the stick when 5 subsequent timeouts happen
as there are firmwares of the CC2652 available which tend to
crash occationally.
2022-12-30 20:49:45 +01:00
jenkins
0639a35750 Merge PR #78: Electrical measurement: Fix data parsing 2022-12-10 14:52:21 +01:00
jenkins
d8598e18b2 Merge PR #75: Fix an occational crash in the deconz backend 2022-12-10 14:52:19 +01:00
Michael Zanetti
684e0dc53d Electrical measurement: Fix data parsing
Read individual entries instead of a whole list from the input stream
2022-12-02 11:29:34 +01:00
Michael Zanetti
b797b883e5 Fix an occational crash in the deconz backend
May happen if the queue runs full and controller requests time out
2022-11-19 00:36:05 +01:00
Michael Zanetti
75d286b29a Expose raw dataIndications and allow sending raw commands on ZigbeeCluster 2022-11-04 18:25:05 +01:00
jenkins
d18b0a1be9 Merge PR #73: Fix parsing of floating point data types 2022-10-17 11:20:05 +02:00
jenkins
16b9ea03eb Merge PR #72: Register the OTA server cluster on the TI backend 2022-10-17 11:20:04 +02:00
jenkins
705bf28cc3 Merge PR #71: Silence a warning about unhandled callbacks 2022-10-17 11:20:02 +02:00
jenkins
4ea83aa44c Merge PR #70: Update all debug operators and make use of state saver 2022-10-17 11:20:00 +02:00
jenkins
761877fea2 Merge PR #68: Add Fan Control cluster implementation 2022-10-17 11:19:59 +02:00
jenkins
6200856678 Merge PR #67: Deconz: Fixes for command queuing 2022-10-17 11:19:57 +02:00
jenkins
b427648eb0 Merge PR #66: Implement timeout settings for occupancy sensing cluster 2022-10-17 11:19:56 +02:00
jenkins
bbbbbbc521 Merge PR #65: Complete the OTA cluster implementation 2022-10-17 11:19:55 +02:00
Michael Zanetti
5bc57b89c7 Fix parsing of floating point data types 2022-10-17 00:50:52 +02:00
Michael Zanetti
7ebe593379 Register the OTA server cluster on the TI backend
This is required by some devices (at least Tradfri) in order to
query us for images.
2022-10-15 01:28:43 +02:00
Michael Zanetti
9f96e2cc2c Handle controller busy states properly 2022-10-15 01:22:54 +02:00
Michael Zanetti
f0c7172755 Silence a warning about unhandled callbacks
The firmware provides parsed messages for those responses but
we don't use them as nymea-zigbee parses this on its own.
2022-10-14 22:40:35 +02:00
Simon Stürz
2aa22ee262 Update all debug operators and make use of state saver 2022-10-13 12:48:43 +02:00
Michael Zanetti
33d3ad10e9 Add API to interact with bindings 2022-10-13 10:11:11 +02:00
Michael Zanetti
acfd73c271 Obtain LQI neighbor and routing tables from the network 2022-10-13 10:10:57 +02:00
Michael Zanetti
ac7972df35 Complete the OTA cluster implementation 2022-10-12 12:17:30 +02:00
Michael Zanetti
4141de2200 Implement timeout settings for occupancy sensing cluster 2022-10-12 12:16:53 +02:00
Michael Zanetti
e16e04d79e queue requests that are sent before the stack is ready 2022-10-12 12:16:10 +02:00
Michael Zanetti
f2511a9b25 Add Fan Control cluster implementation 2022-10-12 12:15:25 +02:00
jenkins
32316dd43c Merge PR #63: Fix permit joining in deconz backend 2022-09-23 16:33:18 +02:00
Michael Zanetti
23f53f38ee Fix permit joining in deconz backend
The router broadcast address 0xFFFC is not a group addres, but a
"regular" address. Setting the destinationAddressMode to GroupAddress
caused the message to not be broadcastet and permit joining was only
enabled on the coordinator.

This caused mainly the issue that joining a network would not work
if the coordinator is out of reach.
In addition to that, there are quite a bit of end devices out there
which behave badly in finding new parents and will stick to the node
they joined in the first place forever, causing them to have bad
signal if further away from the coordinator, even though there
would be routers with much better LQI.

Additionally it fixes a permit joining issue in the TI backend which would
prevent a call to setPermitJoining(0) to explicitly allow joining
only on the coordinator.

The change of radius from 10 to 30 probably isn't needed for 99% of the
networks, however, it may still help for that one percent that does
indeed have a network depth of > 10. Looking at other implementations
out there, 30 seems to be the common sense.
2022-09-10 20:12:17 +02:00
Michael Zanetti
ea73d28213 Fix node type parsing
Parsing of NodeTypeEndDevice and NodeTypeRouter were swapped.
2022-08-30 22:48:19 +02:00
jenkins
b9ff17ace8 Merge PR #59: NXP backend: Fix release file parsing and allow multiple release files as list 2022-08-19 15:41:04 +02:00
Simon Stürz
7acb35d11c Fix release file parsing and allow multiple release files as list 2022-08-09 14:25:45 +02:00
Michael Zanetti
ebf004af01 Implement Electricalmeasurement server command handling 2022-07-04 14:08:44 +02:00
jenkins
a5d49d7b64 Merge PR #57: Implement commands for metering cluster 2022-06-30 15:04:00 +02:00
jenkins
50e329b1ce Merge PR #56: Add Time cluster implementation 2022-06-30 15:03:58 +02:00
jenkins
2883080413 Merge PR #55: Fix a crash if the controller takes too long to start 2022-06-30 15:03:57 +02:00
Michael Zanetti
92cdc4bc84 Implement commands for metering cluster
Main reasoning behind this is actually that Tuya devices seem
to send a CancelMessage command every other minute and are currently
spamming the log with unhandled ZCL indication warnings.

Instead of just silencing the warning (which is very useful most of the times)
I decided to complete the implementation of the metering cluster and
actually make it a handled ZCL indication.
2022-06-20 23:30:18 +02:00
Michael Zanetti
725272e1fa Add Time cluster implementation 2022-06-20 00:03:50 +02:00
Michael Zanetti
e9d594ee5b Fix a crash if the controller takes too long to start
This may happen on very rare occations after a nymea restart
if the controller is taking too long to initialize but still succeeds
in the end. Also increases the timeout for the procedure.
2022-06-08 23:30:05 +02:00
jenkins
3bd8787e41 Merge PR #54: Make NXP update provider independent from the chip module type 2022-06-07 23:06:20 +02:00
jenkins
0b92eb4968 Merge PR #53: Explicitly stop the ZCL timeout timer 2022-06-07 23:06:19 +02:00
jenkins
d8c74fd52e Merge PR #52: Fix a debug message 2022-06-07 23:06:17 +02:00
jenkins
59025c0c2e Merge PR #50: Fix a typo in the illuminancemeasurement cluster 2022-06-07 23:06:16 +02:00
jenkins
19d262b459 Merge PR #49: Add IAS WD cluster 2022-06-07 23:06:15 +02:00
Simon Stürz
874c55f809 Make NXP update provider independent from the chip module type 2022-05-17 14:55:34 +02:00
Michael Zanetti
c90ed3ab09 Fix a typo in the illuminancemeasurement cluster 2022-05-13 11:22:07 +02:00
Michael Zanetti
365386ea71 Add IAS WD cluster 2022-05-13 11:21:20 +02:00
Michael Zanetti
d210d696e0 Add Battery Alarm State support to PowerConfiguration cluster 2022-05-13 11:20:49 +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
e0bf02b115 Fix a debug message 2022-05-12 17:11:51 +02:00
jenkins
53bd313766 Merge PR #47: Timeout ZCL replies 2022-04-25 23:53:22 +02:00
jenkins
ed87b53d50 Merge PR #46: Fix permit joining duration/remaining signals 2022-04-25 23:53:20 +02:00