This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to configure router, Enddevice and co-ordinator for sample application

Other Parts Discussed in Thread: CC2538, CC2530, Z-STACK

Hello everyone,

i am working on zstack 1.20 HA ... i know how to make ZED and ZC and how they are communicating....means till now i worked only on  ZC-----ZED configuration but now i want to do something more..now i want to implement

ZC------ZR-------ZED type of configuration.... i hav  2 cc2538 smartRFboard and 2 cc2530 smart rf board...and till now i worked on sample sw-------sample light and sample temp --------sample thermostat projects....

Now  i want to implement ZC-----ZR------ZED configuration for sample sw-------sample light and sample temp --------sample thermostat project..... i know how to make it ZC and ZED but i dont know how to make ZR or what are the changes i hav to do to make ZC----ZR----ZED configuration for above mention project........ 

if any one can help me and tell me how to do this  then it will be very helpful to me...

(Note :- i know that in IAR workspace from scroll down menu we should select ZR configuration instead of ZC and ZED but what else i hav to do in project or any other changes required in code to make ZC---ZR-----ZED configuration)

say i want to implement temp sensor as a ZED and thermostat as ZC so ZED will send current temp data to ZC but if i want a ZR in between then how i can do that ?what all the changes i hav to do? how i can configure a ZR which takes data from ZED and fwd it to ZC...

if anyone has any idea then plz help me...

plz relpy ..

Thanks & regards,

Maneesh singh 

  • You can use SampleLight and SampleSwitch to do ZC----ZR---ZED configuration in the following steps:

    1. Build one SampleLight as ZC, one SampleLight as ZR, and one SampleSwitch as ZED.

    2. Turn on SampleLight ZC to form a Zigbee network first.

    3. Turn on SampleLight ZR to join ZC.

    4. Turn on SampleSwitch ZED to join ZC or ZR.

    5. Turn off SampleLight ZC to make SampleSwitch ZED to make sure it joins SampleLight ZR.

    6. Turn on SampeLight ZC again to have a ZC---ZR----ZED zigbee network.

  • Hello YiKai Chen sir,

    Thanks for Reply...

    as u suggested 

    1. I Build one SampleLight as ZC, and one SampleLight as ZR, and one SampleSwitch as ZED.

    2. after that i Turn on SampleLight ZC  first.

    3. then i Turn on SampleLight ZR and it joins join ZC successfully .

    4. then i Turn on SampleSwitch ZED and it join ZR.

    5.now if i am pressing any button on ZED then i am able to switch on/off LED at ZR successfully

    but i want to  switch on/off LED at ZC not at ZR.....so if i press any button at ZED it should switch on/off led at ZC via ZR....

    6. becoz ZR i want to use as a range extender...

    7.Now when i Turn off SampleLight ZC to then ZR send Orphan request but still i am able to switch on/off LED at ZR successfully.

    7. so is same configuration i can use with Temp sensor and thermostat also? but i want (Temp sensor) ZED to send data to ZR and ZR should forward this data to ZC(Thermostat). and vice versa....

    8. i was testing with ZED and ZC with my cc2538 board and i was able to get only max 30-40 feet of range ..(i was testing it in my office ,.... indoor with wooden and concrete wall was in between).... but i notice that when 2 or more concrete wall is there in between  ZC and ZED then its max range reduces....why it is so?

    8. anyone hav any idea how much range practically we can get or anyone is getting in zigbee with cc2538 or cc2530?

    Thanks & Regards,

    Maneesh singh

     

  • 5&6, You can control ZR from ZED because you do binding from ZED to ZR. You can change binding to from ZED to ZC then you can get your expect ion.

    7, Yes, you can do the same configuration to SampleThemostat and SampleTemperature.

    8. I can have 80m transmotting distance in free space using cc2530.

  • Hello YiKai Chen sir,

    Thanks for reply..

    1) will you plz explain in more detail what u mean to this point ->

    5&6, You can control ZR from ZED because you do binding from ZED to ZR. You can change binding to from ZED to ZC then you can get your expect ion.

    you are right that i am doing binding from ZR to ZC and then i am doing binding from ZED to ZR................i am using EZ-MODE binding..... so what changes i need to do at ZED side or ZR side or both side to make my point no 5 and 6 to work..(i.e.able to send/ receive msg and cmd from ZED to ZC through ZR as a middleman...)

    2) that's strange for me....u said u got 80m of range?   in open ground (i.e. in outdoor with no wall or obstacle ) or in house/office (i.e. indoor with walls and obstacles) ? becoz when i tested with cc2530  i am hardly getting 12-13 meters of range....i tested it in my office which hav walls, wooden cabins and furniture...but i dindnt test it in any open ground... but if zigbee HA is designed to use inside the home only then  it should give good range inside the home/office but i dont know why i am not getting good range? is any parameter we need to tune or set for getting good range ? 

    Thanks & Regards,

    Maneesh

  • 1. I suggest you disable ez-mode then SW2 will become sending binding request. In this way, you can push SW2 on b ZC and ZED only to binding them.

    2. There are lots of factor will impact RF distance in home or offic. This is why Zigbee supports mesh network. I would suggest you test your RF distance in open space first.

  • Hello YiKai Chen sir,

    as u told i did the same ->

    1) from the compiler option i disabled the ZCL_EZMODE by writing xZCL_EZMODE on all the 3 board (ZC, ZED, ZR)

    2) now after flashing code i turned ON ZC and now as u suggested when i pressed the sw2 on both ZC and ZED nothing is happening and both the devices are not able to bind together....even though ZED and ZR or ZR and ZC are also not able to bind together.....

    3) i thing u didnt understand my requirement completely.... my requirement is i hav a ZED which will send data/cmd to ZR and ZR forward this data to  ZC....here i am using sample sw as a ZED which will send LED on/off cmd to ZR and ZR forward this data to ZC and based on the cmd ZC will toggle the led .....and if ZC sends any response/cmd to ZC then it will send it to ZR and ZR forward it to ZED....i hope now u got what i am trying to implement......

    4) i know how to communicate between ZED and ZC without ZR....but this time i want ZR in between ZED and ZC...

    ZED--------> ZR -------> ZC      and     ZED <-------- ZR <--------- ZC     valid.....   communication must through ZR

     

    ZED--------> ZC or ZED <--------ZC  is invalid ......i don't want this direct binding and communication bet ZED & ZC

    plz help me how i can implement ZR who takes data from ZED and forward it to ZC and vice versa....i don't want direct communication between ZC and ZED...it must go through ZR only......

    Thanks & Regards,

    Maneesh singh

  • 1. Please use ubiqua protocol analyzer to check if your ZC and ZED send binding request and bind correctly. By the way, you can't control message flow in a Zigbee mesh network. The message is routed by Z-Stack and that is why I give you steps to set up message path from ZED --ZR---ZC.