Reply
Posts: 23
Registered: ‎02-13-2014

Channel change with sleepy end-node

Hi Everyone,

 

I have a sleep end-node on channel 12. I change the co-ordinator channel to 13 to see if my device will find the new channel. It begins calling "status = emberFindAndRejoinNetworkWithReason(secure, channels, EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE);" Seems to report error code 0x70 which is "EMBER_ZCL_STATUS_REQUEST_DENIED".

 

The channel mask is "EMBER_ALL_802_15_4_CHANNELS_MASK".

 

Any reason why it won't rejoin the new channel?

 

EMBER_NETWORK_DOWN 145
Move attempt 0 nwk 0: 0x00
EMBER_JOIN_FAILED 171
sleep 12663 ms (until End Device Support Plugin Move NWK 0 Event)
wakeup 6322 ms
EMBER_NETWORK_DOWN 145
EMBER_JOIN_FAILED 171
sleep 2969 ms (until End Device Support Plugin Move NWK 0 Event)
wakeup 2969 ms
EMBER_NETWORK_DOWN 145
Move attempt 1 nwk 0: 0x70
EMBER_JOIN_FAILED 171
sleep 34009 ms (until End Device Support Plugin Move NWK 0 Event)
wakeup 34009 ms
EMBER_NETWORK_DOWN 145
Move attempt 1 nwk 0: 0x70
EMBER_JOIN_FAILED 171
sleep 48480 ms (until End Device Support Plugin Move NWK 0 Event)
wakeup 48480 ms
EMBER_NETWORK_DOWN 145
Move attempt 1 nwk 0: 0x70
EMBER_JOIN_FAILED 171
sleep 61279 ms (until End Device Support Plugin Move NWK 0 Event)
wakeup 61279 ms
EMBER_NETWORK_DOWN 145

Posts: 5
Registered: ‎09-04-2015

Re: Channel change with sleepy end-node

Hi @jlabute

If you don't mind me asking, what method did you use to change the channel on Coordinator? The reason for the question is that I just want to make sure that you have not left current network by accident.

Posts: 131
Registered: ‎11-06-2014

Re: Channel change with sleepy end-node

Good point, @wanindra.

 

@jlabute could you provide a few details?

Posts: 23
Registered: ‎02-13-2014

Re: Channel change with sleepy end-node

Hi Guys,

 

Thanks. The co-ordinator is from Control4 and it has the option to change the channel from a PC application called Composer (connected by ethernet). Once the co-ordinator changes channel, my sleepy device eventually awakes and tried to do a network move after a number of polls fail.

 

Does emberFindAndRejoinNetworkWithReason(...) on the sleepy device try to find the new channel? if not, I am trying to incrementally change channels when I get an EMBER_JOINED_FAILED. I am not sure what the proper method should be... or if emberFindAndRejoinNetworkWithReason should work for me.

 

Thanks Robot Happy

 

<a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Ninja</font></font> </a> YK
Posts: 54
Registered: ‎02-13-2017

Re: Channel change with sleepy end-node

I suggest you to use sniffer to check what happens over the air.

Posts: 131
Registered: ‎11-06-2014

Re: Channel change with sleepy end-node

Hi @jlabute,

 

Yes, emberFindAndRejoinNetworkWithReason(...) should work. Note that you can specify the channel mask over which the end device should scan.

 

Our End Device Support plugin makes use of this method too. Refer to end-device-move.c.

 

As @YK suggested, have you analyzed the packet trace to see what's going on? 

 

Best regards,

Yuping