Hello Stefano, hello all

Thanks for discovering that bug!
I guess the fix is as simple as adding a conversation3Way.notifyAll(); in DriverCC2530.unLock3WayConversation()

But after looking into the locking code, I wonder why the locking is so restrictive. If I understand the 3waylock code correctly, it doesn't allow to have two same requests on the air at the same time. A response is waited for at most the TIMEOUT time which should be > 7.5 sec in HA networks.

Suppose you have 10 sleeping devices which wake-up every 7.5 secs and you want to send them each a value. You will have a mean waiting time of 3.75 secs for each requests so the whole cycle will take nearly 40 secs. (even if you do it with 10 threads)

What is the reason for not letting several requests out at the same time? I suppose we can triage the answers correctly (see bugs #275 and #276).

Regards Philipp


On 13.11.2014 09:09, [email protected] wrote:
Issue #277 has been reported by Stefano Lenzi.
------------------------------------------------------------------------


  Bug #277: Deadlock when multiple thread try to send the same request
  <http://zb4o.aaloa.org/redmine/issues/277>

  * Author: Stefano Lenzi
  * Status: New
  * Priority: High
  * Assignee: Stefano Lenzi
  * Category: zigbee.CC2530.driver
  * Target version: org.aaloa.zb4osgi.zigbee.CC2530.driver-1.X
  * Has a patch: No
  * Has license agreement signed: No

When multiple thread try to send the same request by means of *DriverCC2530* (i.e.: both of them invoke the method /sendZDOIEEEAddressRequest/ ) then the one that will be set in the wait state due to the /waitAndLock3WayConversation/ will never be awaken.

------------------------------------------------------------------------

DO NOT ANSWER TO THIS E-MAIL ADDRESS, NO ONE WILL READ IT. PLEASE WRITE TO [email protected] <mailto:[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


--
________________________________________

 Philipp Buluschek, Dr.-Ing.
 Adhoco AG
 Althardstr. 70
 CH-8105 Regensdorf

 Phone:  +41 52 264 5081
 Mobile: +41 79 800 8218
________________________________________

_______________________________________________
Dev mailing list
[email protected]
http://zb4osgi.aaloa.org/mailman/listinfo/dev

Reply via email to