kbanks
05-23-2008, 08:56 AM
(reposted from a customer email)
Can we implement “Moving Net” command to a Client app? This would simplify our problems with new nodes.
From Portal, or from client software that you write yourself, you can change the "net" (Network ID) two different ways.
To change the Network ID immediately (but temporarily), use the setNetId() function documented on or near page 9 of the SNAP Reference Manual. The unit will revert to it's previously saved network ID the next time it reboots.
To change the persistent network ID setting, use the Change Configuration function in Portal (the button that looks like a gear on the toolbar), or manually invoke the saveNvParam() function yourself.
The saveNvParam() function is on or near page 9 of the SNAP Reference Manual.
For more about the NV Parameters, and using saveNvParam() and loadNvParam(), look at the thread Help 2 Understand NV area from 02/28/2008.
To change the live setting and the persisted setting, you will want to use both setNetId() and saveNvParam().
Keep in mind that if you are talking to a unit "over the air", if you change it's "live" network ID or channel, you have essentially cut yourself off from that unit.
When I configure radio related settings, I usually do it through a direct serial connection.
Can we implement “Moving Net” command to a Client app? This would simplify our problems with new nodes.
From Portal, or from client software that you write yourself, you can change the "net" (Network ID) two different ways.
To change the Network ID immediately (but temporarily), use the setNetId() function documented on or near page 9 of the SNAP Reference Manual. The unit will revert to it's previously saved network ID the next time it reboots.
To change the persistent network ID setting, use the Change Configuration function in Portal (the button that looks like a gear on the toolbar), or manually invoke the saveNvParam() function yourself.
The saveNvParam() function is on or near page 9 of the SNAP Reference Manual.
For more about the NV Parameters, and using saveNvParam() and loadNvParam(), look at the thread Help 2 Understand NV area from 02/28/2008.
To change the live setting and the persisted setting, you will want to use both setNetId() and saveNvParam().
Keep in mind that if you are talking to a unit "over the air", if you change it's "live" network ID or channel, you have essentially cut yourself off from that unit.
When I configure radio related settings, I usually do it through a direct serial connection.