* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Exercise in setting up a network using XBEE modules
Survey
Document related concepts
Transcript
DTU Diplom CITE 2013-09-24/osc Exercise in setting up a network using XBEE modules 1. Read the Xbee data Sheet p 33 to 76 – plus skim the rest of the datasheet for find the different kind of commands and frame format. 2. How is can a ZigBee network be configured and how is the routing done in each configuration – router tables etc. 3. Read chapter 9 in the data sheet. How is a frame defined? 4. The Arduino XBee library with the XBEE.cpp supports API2. If you want to be controlling the frame with you own code then use api 1 – easiest to learn but require more code-work for parsing the bytes 5. Before cooding you need configuring the devices for API – reload new firmware for coordinator API, End device API and evt. Router API 6. Configure 3 end-devices – the destination MAC ID/ address should be the coordinator 64 bit address/ID – The chosen api and PAN-ID. The end devices should be configured for using some I/O either analog or digital – do a lot of experiments 7. Start using the web based frame builder. Decide what you want to communicate – the XBeeTutorial 2 can give you some inspirations! 8. Test the frame in the X-CTU in the assemble packet – look in the terminal window for responses – the end-device does always acknowledge the frames 9. Then make a project in the Atmel Studio – and write some c-statements for transmitting and receiving the frames. A look in my example code – uploaded at Campusnet into XBee folder. 10. When you have got something working – then try to test the range for communication – how far away in line of sight and in not line of sight – compare with the data-sheet. 11. Then try to configure one of the end-devices as a router – the two remaining end-devices must have changed their destination address to the routers 64 bit MAC ID 12. Try to build a mesh net-work using all 3 end-devices as routers – can that be done? 13. The final project work – handed out the first lesson must contain some XBEE nodes! 14. Some hints here https://www.loveelectronics.co.uk/Tutorials/7/xbee-tutorial-how-to-set-up-yourxbees 15. Using the X-CTU Set an “end device” to sample with regular intervals on it’s A0 (pin20) – having the ntc-sensor connected – you should set the destination address to the coordinator 64 bit ID and then set the adc for A0 on and in the I/O sampling section set the IR parameter to a value. 16. Try using the adc converter – connect a NTC resistor as you did in the exercise with the Olimexino board – use the X-CTU to enable the adc port 0, the reference voltage is by default 1.2V. 17. Configure coordinator in API – frame modeand write a program for receiving samples from the enddevice.