Why do you want to set this? Are you trying to force use of a single channel? This risks picking a useless channel.
Normally, you leave the SC=0x1FFE in all devices and let the coordinator try to find a clear, usage channel. The other devices ‘scan’ through all enabled channels to find a coordinator.
Why do you want to set this? Are you trying to force use of a single channel? This risks picking a useless channel.
Normally, you leave the SC=0x1FFE in all devices and let the coordinator try to find a clear, usage channel. The other devices ‘scan’ through all enabled channels to find a coordinator.
thanks for the answer but i need to set the channel or the range channel…
Okay, understand that there are 2 weird things here.
First, Zigbee channels are numbered 11 to 26. Why? Are they planning to steal channels 0-10 from lower spectrum some day? heck if I know.
Second, these are often given as hex, as 0x0B to 0x1A. Digi docs sometimes are a bit cavaler and just talk about channel 0D without including the 0x.
So when you mention “17” - make sure you understand if you want 17 (so 0x11) or 23 (so 0x17)
Do a Google search of ‘Zigbee channels’ and you’ll find lots of nice graphs and details.
So >MY UNDERSTANDING< (which may be wrong) is that 0x281 would be channels 11, 18 and 20 (0x0B, 0x12 and 0x14). So the first channel (11 or 0xB) is 0x0001.
Ok, but i can’t understand the mechanism to translate the sequence of channel (11,18,20) to hex number 0x281 or sigle channel 0xB to 0x0001. For example if i want set the sequence 12,13,16 how can calculate the corrisponding number?
So if you want the four channels which do not overlap the standard 3 WiFi bands, you’d want ZB channels 15, 16, 21, and 22. So you would set the coordinator’s scan_channel/SC to 0x0C30.
Generally, leave all other nodes with the default SC. They will waste a small amount of time during the original association, but it allows you to change your mind more easily in the future & only change one SC value.
C:\Users\Diegui\Desktop\Papeo\Ramos\Teoría de Información y Código\Software\waspmote-ide-v.01-windows\hardware\cores\wasp_v018/WaspXBeeCore.h:1621: error: ‘Sd2Card’ does not name a type
In function ‘void setup()’:
In function ‘void printEnergyChannel()’:
Bad error line: -4