질문 하시기 전에 검색을 통해 원하는 질문/답변 내용을 찾아봐주세요.

Zigbee broadcast communication questions among CM-5, CM-700 & CM-510

조회 수 1535 추천 수 0 2010.06.11 05:54:38
As we are having now a bunch of CM-5s, CM-510s and CM-700s, we are experimenting with using them to set a wireless sensor network, however we are finding some incompatibilities listed below.

1)  CM-5s with ZIG-100 modules can communicate fine between each other and with PC equipped with ZIG-100/Zig2Serial modules in both 1:1 and N:N modes.
 
2)  CM-700/510s with ZIG-110 modules can communicate fine between each other in 1:1 and N:N modes.  They can also communicate with PC equipped with ZIG-100/Zig2Serial modules in 1:1 mode.   However, in N:N mode, CM-700/510s with ZIG-110 modules cannot interact with ZIG-100 equipped CM-5s or PC (i.e. with ZIG-100/Zig2Serial set up).  It seemed that ZIG-110s are not set up (by default?) to talk to ZIG-100s in N:N mode?
 
My programmer thinks that the most likely problem is that the ZIG-100 and ZIG-110 modules are on different broadcast channels.  So, in N:N mode, is the default hardware selectable channel for the ZIG-100 the same as the default for the ZIG-110? If not, how can we program the ZIG-100s and/or the ZIG/110 to talk to each other via N:N mode?
 
Thank you very much for all your help.
Chi
 
 

댓글 '4'

ROBOTIS

2010.06.12 08:56:39
*.191.203.131

Just as you’ve guessed, there are only 4 broadcast channels. The reason why the N:N communication was not working is because the channel was not set properly.

The default channels for the CM-5 is 1. Normally, the channels are set so that they are unchangeable, but it can be adjusted with the R10 and R11 on the PCB.

The default channel for the CM-510 is 4, and the channel can not be changed. The default channel for the Zig2Serial is 1.

Please refer below and to the attachment on setting the channel for the Zig2Serial.

Channel

Zig2Serial Connection Status

1

R7 => Short

R6 => Short

R5 => Short

2

R7 => Short

R6 => Open

R5 => Short

3

R7 => Short

R6 => Short

R5 => Open

4

R7 => Short

R6 => Open

R5 => Open

R7 => Open

R6 => Don’t care

R5 => Don’t care

Overall, if you set the channel to 4, all can be communicated.

 

ROBOTIS

첨부

[레벨:30]ROBOTIS

2010.06.21 21:54:15
*.10.126.116

Here’s more information.

Instead of changing the place for the R10 and R11, please remove it.

The graph below should be easier to understand than a picture.

Normally, the CM-5’s R10 and R11 are shorted to 0 ohm. If you see the graph below it’s like being channel 1.

Once you remove R10 and R11, it will be channel 4.

  Broadcasting Channel Info based on the ZIG-100’s pin status.

Channel

Zig-100’s Pin Status

1

CHANNEL_SEL1 => Low

CHANNEL_SEL2 => Low

2

CHANNEL_SEL1 => High

CHANNEL_SEL2 => Low

3

CHANNEL_SEL1 => Low

CHANNEL_SEL2 => High

4

CHANNEL_SEL1 => High

CHANNEL_SEL2 => High

 

Here’s information on changing the  RC-100’s channel.

Setting the Broadcast Channel

If the  setting for the ZIG-100 on the RC-100Z is set to Broadcasting Mode (N:N communication  mode), you change into 4 different channels with the buttons.

Press the MODE button and desired channel number simultaneously, and the green LED will blink the number of times you have just set the channel to.

PRECAUTION 1 : Default channel is 1:1 communication mode, not N:N communication mode. Thus, doing the channel change procedure would be useless.

PRECAUTION 2 : When changing the channel, the ZIG-100’s communication may be disconnected for a moment.

PRECAUTION 3 : When the battery is taken out, the channel will return to its default channel.

Chi

2010.07.03 23:30:04
*.98.71.152

Dear Robotis,

Thank you very much for the extra information, but we would have too many CM-5s to modify if we went this route, so we decided to keep the Zig-100 "domain" (i.e. Channel 1 and CM-5s) SEPARATE from the Zig-110 "domain" (i.e. Channel 4 and CM-510/CM-700), and then use TWO USB2Dynamixel/Zig2Serial setups on the PC side (i.e. modify one special Zig2Serial to function on Channel 4 only and use 2 COM ports on the PC), and inside the code on the PC side we would just use the appropriate COM port to access either "domain" as we needed to.  Of course that is not yet allowed in the current ZigBee SDK, so Matthew had to implement a brute force approach (see Robotis's Q&A message 362 for details).  So right now, we can manage for the PC to become a base station picking up packets broadcasted from 2 independent sensor networks (one domain with CM-5s only, and the second one with a mixture of CM-510s and CM-700s).   Also this means that potentially we can use 4 ZigBee independent domains each using its own channel (but we have not tried this yet).

matt

2010.08.14 05:59:59
*.192.169.223

I cannot stress this enough: Use at your own risk!  I have never taken a C/C++ course, so better (safer) solutions are very likely.


This is the latest version of the zigbee sdk mentioned above, which allows a program to access multiple Zig2Serial dongles on multiple COM ports.  This version now uses an array of type LPHANDLE which point to the serial handles.  There are two major differences from the Robotis released drivers: 1) the added "multi_" to all function names and 2) the additional "int portHandle" parameter in all functions.  portHandle is the identifier for specifying which COM port is to be accessed; however, it is used as the index of the array so it MUST be a count (1,2,3,4,5,etc.).  portHandle is currently expected to be greater than 0, but this can easily be changed (I suspect this may have been to ensure that a COM port had been specified by the user, but I am not entirely sure anymore).


-Matt


Edited 8/27/2010: removed the sdk for revision and correction of a few typos.

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 [ROBOTIS] Please read before posting questions. ROBOTIS 2012-02-07 3805
350 Adding another servo to Gerwalk bot Chi Thai 2008-07-15 803
349 what about that mirror pose? leirbag 2008-05-04 841
348 help me build a humanation. FARHAN 2008-03-11 1027
» Zigbee broadcast communication questions among CM-5, CM-700 & CM-510 [4] Chi 2010-06-11 1535
346 how to use AX-12+ with CM-2+ [1] jatin 2010-06-09 786
345 speed control for endless turn rx64 and ex106 [3] taufik 2010-06-08 749
344 I want to order only the DMS SENSOR CABLE? [1] SAKIS 2010-06-07 728
343 Oh,my god! SOS! 12V DC power connected to CM-5 ,but CM-5 have... [1] iloveyou 2010-06-06 835
342 The connection problem of AX-12+ in the bioloid! [1] psjnudt 2010-06-04 826
341 My new CM-2+ dead! Help Help! [1] littletiff 2010-05-26 876
340 About the Premium Kits [1] ceci 2010-05-26 890
339 RoboPlus Task files V2.02 [1] drodier 2010-05-25 908
338 Problem with running mulitple motion pages on BCP file [1] Ram 2010-05-18 961
337 USB2Dynamixel and Dynamixel Manager not working for AX-12 on PC [14] Kofi 2010-05-17 1971
336 Motion Editor Page 1 malfunction [2] Marinekaizer 2010-05-17 1070
335 CM-510 control table to query sensor values [2] aprendiendo 2010-05-17 1035
334 humanoid [1] n-man 2010-05-14 1008
333 About Zigbee SDK using by MATLAB! [2] David 2010-05-10 1119
332 how to program of CM-2+ and CM-5 in behaviour control program [1] kishore 2010-04-29 1667
331 cm-5 fuse [1] n-man 2010-04-28 1684

XE Login