Harmony Clean Flat Responsive WordPress Blog Theme

Zigbee networking

오전 6:19 Unknown 0 Comments Category :

Hi everyone. Happy new year. It is long time for posting. You guys also know how much busy in the end of semester haha. I had some project in my courses and in one of them, I used Zigbee to transfer data from devise to devise. There are so much information about Zigbee. So, in the time, I will let you know how you set the Zigbee module.
In order to connect Zigbees each others, you need to set some address in the Zigbee module.

A. go to this website https://www.digi.com/products/xbee-rf-solutions/xctu-software/xctu and download X-CTU software.


There are some X-CTU version depends on your OS.

B. connect your Zigbee module with Arduino or Raspberry pi(in this time, I used xbee s2). There are two way to connect xbee with Arduino or Raspberry.


  1. Using shield to connect them.
    Xbee shield is one of the modules to connect with arduino and raspberry pi.




    P.S. There should be a switch on the shield to control trasnferring data or code from arduino to xbee. If there isn't switch like mine, you need to find Tx and Rx pin. There should be 3 pins which are Din, Dout, and digital pin. Depends on connecting Rx and Tx's pin with Din or Dout, the on and off will be different.
  2. You can connect them without shield too. But you need a adapter to connect xbee with arduino or raspberry pi.




    P.S. you need to connect module's Rx with Tx in arduino and module's Tx with Rx in arduino.
  3. You can connect xbee with raspberry pi by using xbee module.


C. make your arduino empty which means upload empty code like this. 





D. Go to X-CTU and fine your xbee. In order to find xbee in X-CTU, you should connect xbee with shield and put the shield on the arduino which has empty code.


go to the add module, click port what you connect with arduino and find xbee like this: 






If you succeed to find xbee, you can see your xbee in the right side like this:




For you information, if there is a code in the arduino, you can see this screen 



When you succeed to find it, click your module and let's set your module. The most important option is PAN ID, Destination address high and destination address low. PAN ID means personal area network that share date with other modules which has same PAN ID. Destination address high and low are the address to find other modules from low address to high address(such as maxium address to minimum address).


















set the same PAN ID among your xbee which means that put your xbees in the same network area. And then set the Destination address High to 13A200 and Destination address Low to the other xbee's serial number's low. If you use more than 2 xbees, fine the lowest one and put it there(the serial number is hexademical).


if you finish all the setting, you need to check that the connection is working or not, Let's go to console working mode.



















If you can see this screen, your xbee can communicate each other. This is the end of setting for xbee. Next time,  I will show you how to transfer data from arduino to arduino. Thanks.

RELATED POSTS

0 개의 댓글