Hi Philipp, As you may know I'm also working with the OSGi Alliance for defining a official ZigBee Base Driver, at the moment the specification is a bit frozen, but you can look at its progress on GitHub at https://github.com/osgi/design/tree/master/rfcs/rfc0192
Please read my comment below... On Wed, Nov 5, 2014 at 4:10 PM, Philipp Buluschek < [email protected]> wrote: > Dear Stefano, dear all > > In my current understanding, an endpoint is registered with the dongle > only when a cluster/device tries to send something. In this case, it is > done by the call stack > ... > AFLayer.getSendingEndpoint() > AFLayer.createEndPoint() > SimpleDriver.sendAFRegister() > > Yes you are right! > I am interested to register an endpoint with pre-chosen clusters at > startup, without ever sending data, so that (for example) > MatchDescriptorRequests are answered correctly by the dongle. > Is there a method to pre-register an endpoint with predefined clusters? > At the moment there is no way to do that... it is kind of part of the designing of the issue http://zb4o.aaloa.org/redmine/issues/33 , the general idea would be to extend somehow the ZigBeeDevice interface so that the ZigBee Base Driver can find all the ZigBeeDevice service on the OSGi framework marked for exporting (i.e. with a property like ZIGBEE_EXPORT as it happens for the UPnP Base Driver ) and create them on the dongle as soon as the network is started RFC-192 covers such "Exporting" scenario but ZB4O requires some changes to cover it... > > One of the challenges is, that the driver actually needs to be started > before the AFRegister can be sent. > Do you see a better method than publishing the DriverState as an Event, so > that we can act upon that? > You are right that we should integrate the EventAdmin so that both SimpleDriver and ZigBee Base Driver can push event on its state, but I haven't spent any time on defining such meaningful state that we should send trough the Event Admin > > Regards Philipp > > Dr. Stefano Lenzi OSGi Invited Researcher Tel: +39 050 621 2844 Fax: +39 050 315 2811 Skype: kismet-sl Istituto di Scienza e Tecnologie dell’Informazione “A. Faedo” Via Moruzzi, 1, 56124 - Pisa - Italy - Stanza C66
_______________________________________________ Dev mailing list [email protected] http://zb4osgi.aaloa.org/mailman/listinfo/dev
