Home/Support/Support Forum/Python script - Allow Joins?

Python script - Allow Joins?

0 votes
Hi Everyone.

I have a few ConnectPortX2 Zigbee to Ethernet gateways.

I am wondering if in the python script if there is a commandto have the device to 'allow joins'? I know I can set the 'NJ' parameter... and rebooting the device will have it allow joins for the time set

zigbee.ddo_set_param(X2Address, 'NJ', 0xB8)

but is there a command to put the device in to a mode where it will allow joins without rebooting?

thanks

Jeff
asked Jun 5, 2012 in IEEE 802.15.4 by jlabute New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
You should not have to reboot the device, just issue the command.

From the XBee ZB guide http://ftp1.digi.com/support/documentation/90000976_K.pdf

Node Join Time. Set/Read the time that a Coordinator/Router allows nodes to join. This value can be changed at run time without requiring a Coordinator or Router to restart. The time starts once the Coordinator or Router has started. The timer is reset on power-cycle or when NJ changes.
answered Jun 12, 2012 by kurte New to the Community (29 points)
0 votes
Thanks Kurte...

•Pressing the commissioning button twice (enables joining for 1 minute)

•Issuing the CB command with a parameter of 2 (software emulation of a 2 button press - enables
joining for 1 minute).

'NJ' works only if the value changes which is what I didn't know... and it takes too much effort to change the script while developing. I like the CB command perhaps... I will test it to see it it really works.
answered Jun 21, 2012 by jlabute New to the Community (1 point)
...