This article is a mirror article of machine translation, please click here to jump to the original article.

View: 7630|Reply: 0

Zigbee Journey (1): Breaking the Ground

[Copy link]
Posted on 10/30/2014 11:14:57 PM | | | |
1. Preamble
     First of all, let me introduce myself~ I am a junior student from a university in Hubei. Due to my professional and personal hobbies, I have been interested in Zigbee recently. So I discussed with several classmates and pooled some money to buy a Zigbee development board based on the CC2430 chip, planning to take some time to explore it. So I thought of publishing a related blog post on the blog garden to introduce our journey of self-learning Zigbee.
     This series of blog posts is suitable for friends who have some theoretical or practical experience with the C-51 series microcontrollers and are interested in Zigbee technology. Part of the content of the blog post is based on the learning materials attached to the Internet and the development board, the rest of the content is original, welcome to reprint, please indicate the author and source while reprinting, thank you!
2. Introduction to Zigbee
      IoT→ sensors→ wireless sensor networks→ Zigbee
      Probably most people are seeing the word Zigbee for the first time, but if mentionedInternet of ThingsThese three words, I think friends who are more concerned about the latest technology trends should be familiar to them. Baidu Encyclopedia of the Internet of Things is defined as:
      Through radio frequency identification (RFID), infrared sensors, global positioning systems, laser scanners and other information sensing equipment, any object is connected to the Internet according to the agreed protocol, and information exchange and communication is carried out to realize a network of intelligent identification, positioning, tracking, monitoring and management of objects. (See details.)Baidu Encyclopedia)
      An important part of the Internet of Things issensors, which is responsible for collecting information from the real physical world. WhileWireless sensor network(Wireless Sensor Nnetwork, WSN) is a cutting-edge hot research field that has attracted much attention in the world. It integrates sensors, embedded computing, modern networks, wireless communication and distributed information processing technologies, and can complete the real-time monitoring, perception and collection of information on various environments or monitoring objects through various integrated micro sensors, which are transmitted wirelessly and transmitted to user terminals in the form of self-assembling multi-hop networks, so as to realize the connection of the physical world, the computer world and the ternary world of human society.
      When it comes to WSN, you can't help but mention Zigbee.
      ZigbeeIt is synonymous with IEEE 802.15.4 protocol and is a short-range, low-power wireless communication technology. The name comes from the bee's eight-character dance, which relies on the "dance" of flying and shaking its wings to convey information about the location of pollen with its companions. Zigbee is characterized by its proximity, low complexity, self-organization, low power consumption, low data rate, and low cost, making it particularly suitable for forming wireless sensor networks.
      Zigbee's application areas include:
  • Home and building networks: temperature control of air conditioning systems, automatic control of lighting, automatic control of curtains, gas metering control, remote control of household appliances, etc.;
  • Industrial control: automatic control of various monitors and sensors
  • Business: Smart labels, etc
  • Agricultural control: Collect various soil and climate information
  • Medical: Emergency pagers and medical sensors for the elderly and people with reduced mobility
     Zigbee's extremely broad application fields and huge development prospects are an important reason why we chose it as a learning object, and we also hope that more like-minded friends can join the Zigbee team.
3. Purchase of Zigbee development board
     Five students in our class made up about 500 yuan together on TaobaoEnjoy MCU Electronics Development StudioPurchased a ZigBee development kit based on the CC2430 chip (2 modules + 2 color displays + 1 emulator). Good customer reviews, exquisite product appearance, and comprehensive learning materials made us finally choose this Zigbee product.
4. Development environment configuration(1) Crack IAR (for learning and testing only, not for commercial use)
     We generally chooseIAREmbedded Workbench for MCS-51 7.51A is an IDE developed by Zigbee, and the following is a brief description of its cracking process:
     Start by downloading the IAR package and serial number generator, then start the IAR installation:
      Next all the way until the next screen appears:
     At this time, toAdmin statusOpen the cracked program:
     Product Type: Embedded Workbench For MCS-51 v7.50A, click "Get ID" to obtain the installation serial number and license.
     willLicense numberCopy it into the "License#" input box on the IAR installation interface, click Next, and then set the License KeyCopy it into the "License Key" input box on the IAR installation interface:
     Then follow the prompts all the way, and the Harmonious version of IAR development software will be installed~
(2) Zigbee debugger driver installation
     Download firstSmartRF driverAnd unzip it into a folder, and then pressZigbee Development Board → Debugger → USB interface for PCOpen the computer's Device Manager, you will find that there is an "unrecognized USB device", right-click, click "Update Driver Software", select "Browse Computer to Find Driver Software", and then select the folder path of the downloaded driver, click "Next", and you can successfully install the driver.
5. Zigbee learning route
     Next, let's talk about Zigbee's learning method, because I am also a rookie in this regard, and I have only had some 51 microcontroller class learning experience in my junior year. Here I refer to the table of contents of "Zigbee Technology Practice Tutorial" and set a learning route for Zigbee for myself:
(1) Preparation:
     Through a series of small experiments, we will become familiar with the important hardware modules in the CC2430 chip, including external interrupts, timers, AD, serial port communication, DMA, RF communication, etc.
(2) Basics:
     Learn more about the TI Z-Stack protocol and get hands-on with a simple Zigbee wireless sensor network.
(3) Improvement:
     Develop skills to develop actual Zigbee projects centered on a specific project.
6. Conclusion
     OK, that's all for the first article~ We have briefly introduced Zigbee, development board equipment, and the basic development environment. Next, we will use a very simple experiment to illustrate how IAR can be used to develop applications based on the CC2430 chip.







Previous:Tragic: Alibaba and Tmall blocked JD.com on Double 11
Next:Zigbee Journey (2): The first CC2430 program - LED light flashing experiment
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com