ZigeBee Newtork persistence - need for clarifications

30 views
Skip to first unread message

dario bonino

unread,
Apr 30, 2014, 4:31:24 AM4/30/14
to jemma-...@googlegroups.com

Dear Jemma developers,

I'm writing to get a clarification about survival of the ZigBee network after power losses. We (The Dog Gateway development team) are currently using an old version of the GAL server (C/C++) and the old closed source libraries contributed by Telecom Italia (latest version before the first Jemma release), and we are currently experiencing network instability problems on power losses.

Typically, when we power down the system running the GAL server and disconnect ZigBee devices from the power line (e.g., for moving the devices), at the subsequent re-start we get a GAL error on packet encryption / decryption. In such case, the only way for getting the network up again is to manually "disassociate" every device and the re-include them in the network. The real problem is that such an issue occurs almost any time we shutdown the machine running the GAL. To better clarify, the machine running the GAL is a RaspberryPi type B (with a flexygrid usb key for getting ZigBee connectivity), and is typically turned off by disconnecting the power chord (non-clean shutdown).

Is there any parameter in the GAL configuration who must be set to persist the network (key) and let it survive to power losses? we are currently using StartUpControl = 0  in the config.ini file used by the server. (I can provide the full config.ini if needed)

Thanks very much for your kind support

Best regards

Dario Bonino

Ranalli Andrea

unread,
Apr 30, 2014, 5:00:54 AM4/30/14
to jemma-...@googlegroups.com

Dear Dario,

You need to carefully se the “startupMode” attribute. There are in fact three possible scenario to startup a ZigBee network:

·         0 - StartupSetMode=0x18 (CommissioningMode) AND StartupControlMode=0x00 (Association) --> To be used the first time, when the network is created

·         1 - StartupSetMode=0x00 (use NVM) AND StartupControlMode=0x04 (SilentStart) --> To be used at running time

·         2 - StartupSetMode=0x18 (CommissioningMode) AND StartupControlMode=0x04 (SilentStart) --> To be used for TC

 

Thus, the first time you create a ZigBee network you should use the value “0”, then for all the rest of the times you shall set this value to “1” so that you’re sure that even after a power loss the network can restart using the previous setting, stored in the NotVolatileMemory.

 

Another alternative, every time before to launch a StartGatewayDevice procedure be sure to run a Reset procedure having the NotVolatileMemory as parameter: this would guarantee you that independently on the value set on the config.ini, the GAL will start always taking into account the previously stored settings.

 

Best regards,

 

Andrea

 

------------------------------------------------------------------
Telecom Italia
Andrea Ranalli

Open Innovation Research – Future Internet Trial (SI.OIR.FIT)

Via di val cannuta, 182 00166 Roma

Mobile phone: +39 331 60 42 768

Land phone: +39 06 3688 8266
Fax number: +39 06 2331 6872

 

Da: jemma-...@googlegroups.com [mailto:jemma-...@googlegroups.com] Per conto di dario bonino
Inviato: mercoledì 30 aprile 2014 10:31
A: jemma-...@googlegroups.com
Oggetto: [jemma-general] ZigeBee Newtork persistence - need for clarifications

--
JEMMA - Java Energy ManageMent Application framework - http://jemma.energy-home.org
---
You received this message because you are subscribed to the Google Groups "JEMMA General Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jemma-genera...@googlegroups.com.
To post to this group, send email to jemma-...@googlegroups.com.
Visit this group at http://groups.google.com/group/jemma-general.
To view this discussion on the web visit https://groups.google.com/d/msgid/jemma-general/40b5a95b-a650-4db1-a01f-46d5d8f08850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.

rispetta l'ambienteRispetta l'ambiente. Non stampare questa mail se non è necessario.

Dario Bonino

unread,
Apr 30, 2014, 5:03:32 AM4/30/14
to jemma-...@googlegroups.com
Dear Andrea,

thank you very much,

I'll amend the startup management according to your suggestion.

best regards

Dario
You received this message because you are subscribed to a topic in the Google Groups "JEMMA General Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jemma-general/Mh6A3lklY40/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jemma-genera...@googlegroups.com.

To post to this group, send email to jemma-...@googlegroups.com.
Visit this group at http://groups.google.com/group/jemma-general.

For more options, visit https://groups.google.com/d/optout.


-- 
Ing. Dario Bonino, Ph.D
Post-doc researcher @ PoliTo

e-m@il: dario....@gmail.com / dario....@polito.it
www: http://elite.polito.it/people/bonino
<foaf:Person>
	<foaf:firstName>Dario</foaf:firstName>
	<foaf:surname>Bonino</foaf:surname>
	<foaf:msnChatID>slid...@hotmail.com</foaf:msnChatID>
</foaf:Person> 
Reply all
Reply to author
Forward
0 new messages