Hello, I have few questions regarding zigbee4java.
Currently we are working with zigbee on-off light. When lamp is on, we have no problem to connect to it and to operate its capabilities (on-off and brightness).
We decided to make status about availability of lamp (something like 3-d capability - "online"-"offline").
And here we have some problems. After lamp is switching off from rosette, we are receiving next exception during polling:
org.bubblecloud.zigbee.api.cluster.impl.api.core.ZigBeeClusterException: Read Attribute 0 failed due to: org.bubblecloud.zigbee.network.impl.ZigBeeNetworkManagerException: Unable to send cluster on the ZigBee network due to: Z_MAC_NO_ACK(233) (null)
at org.bubblecloud.zigbee.api.cluster.impl.core.AttributeImpl.doClusterWideRead(AttributeImpl.java:185) ~[ZigBeeDevicesAPI-2.3.18.jar:?]
at org.bubblecloud.zigbee.api.cluster.impl.core.AttributeImpl.getValue(AttributeImpl.java:108) ~[ZigBeeDevicesAPI-2.3.18.jar:?]
at com.vz.gw.device.zigbee.ZigBeeOnOffLight$1.run(ZigBeeOnOffLight.java:68) [ZigBeeDevicesAPI-2.3.18.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Z_MAC_NO_ACK code looks good and clear.
But when we switch the lamp on (back after switching off), then we have some problems with lamp communications.
Almost always we see next timeout error:
ERROR ZigBeeOnOffLight:55 - ERROR:
org.bubblecloud.zigbee.api.ZigBeeDeviceException: org.bubblecloud.zigbee.api.cluster.impl.api.core.ZigBeeClusterException: Read Attribute 0 failed due to: org.bubblecloud.zigbee.network.impl.ZigBeeBasedriverTimeOutException: Timeout expired before receiving any data
at org.bubblecloud.zigbee.api.cluster.impl.OnOffImpl.getOnOff(OnOffImpl.java:64) ~[ZigBeeDevicesAPI-2.3.18.jar:?]
at com.vz.gw.device.zigbee.ZigBeeOnOffLight$1.run(ZigBeeOnOffLight.java:52) [ZigBeeDevicesAPI-2.3.18.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Caused by: org.bubblecloud.zigbee.api.cluster.impl.api.core.ZigBeeClusterException: Read Attribute 0 failed due to: org.bubblecloud.zigbee.network.impl.ZigBeeBasedriverTimeOutException: Timeout expired before receiving any data
at org.bubblecloud.zigbee.api.cluster.impl.core.AttributeImpl.doClusterWideRead(AttributeImpl.java:185) ~[?:?]
at org.bubblecloud.zigbee.api.cluster.impl.core.AttributeImpl.getValue(AttributeImpl.java:108) ~[?:?]
at org.bubblecloud.zigbee.api.cluster.impl.OnOffImpl.getOnOff(OnOffImpl.java:61) ~[?:?]
... 2 more
Setting proprties actually works but with different pauses and the above exception.
We tried to sent org.bubblecloud.zigbee.v3.zcl.protocol.command.commissioning.RestartDeviceCommand but it didn't help.
Interestingly, but after restarting of all application the lamp communication comes back to normal.
Please, tell me, maybe you have experienced something similar. Or we are doing something wrong.
Thanks for any response.
With regards, Pavlo Pryimak.
-- реклама -----------------------------------------------------------
Дистанционный курс MINI-MBA. Акционная скидка 68%
Цена 7800 грн.
http://goo.gl/1dpFdJ