Issue #265 has been updated by Stefano Lenzi. Category set to zigbee.basedriver Status changed from New to In Progress Assignee set to Stefano Lenzi Target version set to org.aaloa.zb4osgi.zigbee.basedriver-0.8.0
Yes your approch is a good a idea for restoring the actual status of the device. Another two points that we are missing are: # persistance between reboot of the ZB4O stack so that it remember the bound devices # we should also rely on ZigBee command for getting the active binding of each device ---------------------------------------- Bug #265: Binding disalignment must be handled correctly http://zb4o.aaloa.org/redmine/issues/265#change-673 Author: Philipp Buluschek Status: In Progress Priority: Normal Assignee: Stefano Lenzi Category: zigbee.basedriver Target version: org.aaloa.zb4osgi.zigbee.basedriver-0.8.0 Has a patch: No Has license agreement signed: No In @ZigBeeDeviceImpl.unbind(int clusterId)@, the unbind response of the device may be that no binding exists (if the zb4o and the device got disaligned - which happens if for example you reset the device). This response has code 0x88, so the check should read: <pre> public boolean unbind(int clusterId) throws ZigBeeBasedriverException { ... if( response == null || (response.Status != 0 && response.Status != 0x88) ){ // 0x88 - device says it has no binding, so remove it locally ... </pre> If such disalignment case happens, ZB4O thinks the binding exists so it will not renew the binding on a call to ZigBeeDeviceImpl.bind(). This is bad, as in reality the binding does not exist, and it is impossible to tell ZB4O to redo it. I'm not sure how this can be fixed. This should probably be a different bug... -- DO NOT ANSWER TO THIS E-MAIL ADDRESS, NO ONE WILL READ IT. PLEASE WRITE TO [email protected] ZigBee 4 OSGi - Redmine E-Mail Notificatioon You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://zb4o.aaloa.org/redmine
_______________________________________________ Dev mailing list [email protected] http://zb4osgi.aaloa.org/mailman/listinfo/dev
