Design of ZigBee Industrial Ethernet Gateway Based on ARM9 Processor

Publisher:渤海湾Latest update time:2013-10-24 Source: eefocusKeywords:ARM9 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Introduction:

At present, there are more and more applications where multiple standards and protocols coexist, and gateways that act as a bridge for protocol conversion play a key role. The two most popular local wireless technologies are undoubtedly Wi-Fi and Bluetooth. However, for low-power, low-bandwidth control applications, such as sensor networks in factories, ZigBee may be a better choice. Equipped with a powerful processor, ZigBee can efficiently complete many complex applications under the constraints of low power consumption and low bandwidth.

ZigBee has become one of the most popular technologies in industrial wireless communication due to its many advantages such as low cost, low power consumption, and flexible networking. ZigBee is a low-speed network with a transmission speed of 10KB/S to 250KB/S. The diverse interconnection methods make the networking method flexible and robust.

This article introduces a design of ZigBee industrial Ethernet gateway based on AT91SAM9260, which realizes a transparent access between ZigBee and industrial Ethernet. The upper layer adopts ZigBee protocol, which is applied to Ethernet protocol conversion for short-distance wireless control, monitoring, data transmission, etc. in industrial sites, and has an embedded WebServer to realize remote monitoring and remote data interaction of field instruments. The system application block diagram is shown in Figure 1. Users can directly access or modify instrument data through the WebServer embedded in the ZigBee Ethernet gateway to realize remote monitoring and remote diagnosis of field instruments. When the gateway is connected to GPRS or the Internet, you can access industrial field instrument data at any time no matter where you are, realize remote configuration, remote diagnosis and remote operation of field instruments, and enable different sensor monitoring networks around the world to share information. Figure 1 ZigBee Ethernet gateway application diagram 1 Hardware design



The gateway hardware is shown in Figure 2. The system is based on AT91SAM9260, which is a high-performance ARM9 processor from ATMEL. The main frequency can reach 200M, with Ethernet MAC, expanded Ethernet PHY module, ZigBee wireless communication module, Nand FLASH and SDRAM. In the figure, K9F2G08 is 256M Nand FLASH, HY57V64162 is 64M SDRAM, and is directly connected to the address line, data line, chip select line, and read and write line of AT91SAM9260 without decoding.

DM9161 is an Ethernet PHY chip, 10M/100M compatible, and implements the Ethernet physical layer. CC2520 is TI's second-generation ZigBee/IEEE 802.15.4 RF transceiver, with the best selectivity/coexistence and excellent link budget features in the industry today. It aims to meet the requirements of ZigBee/IEEE 802.15.4 and proprietary wireless systems in various applications, and provides a wide range of hardware support, including data packet processing, data buffering, burst transmission, data encryption, data authentication, idle channel evaluation, link quality indication, and data packet timing information, etc., and communicates and controls data with AT91SAM9260 through SPI. Figure 2 Gateway hardware block diagram 2 Software design



The gateway software uses the embedded Linux-2.6.28 kernel, adds ZigBee services to the upper layer application, and realizes the conversion between ZigBee and Ethernet protocols. The Ethernet data message is received through the UDP port, the frame header and frame tail are removed, the ZigBee short address is attached, and it is sent to CC2520 through the serial port and encapsulated as a ZigBee message. The ZigBee message of the field data is converted by CC2520 to serial port data reception, the ZigBee short address is removed, the UDP frame header and frame tail are attached, and then forwarded by the Ethernet port. The software design architecture is shown in Figure 3. [page] Figure 3 Gateway software design architecture The software execution flow chart is shown in Figure 4. The underlying hardware initialization includes clock settings, GPIO management, serial port configuration, Ethernet interface MII configuration, and PHY chip settings. Then the CC2520 initialization configuration wireless communication module complies with the ZigBee protocol standard. After the CC2520 is initialized, the module can realize transparent serial port transmission and interact with the ARM processor for data. In order to adapt to the development trend of short-frame real-time and deterministic communications, Ethernet communication uses the UDP/IP protocol to start the Linux kernel multi-task scheduling management to perform tasks such as sending and receiving serial port data, receiving and sending UDP, and embedded WebServer. Figure 4 Software execution flow 3 ZigBee and Ethernet protocol conversion software design







The TCP/IP protocol uses MAC addresses to identify hardware addresses and uses the ARP protocol to resolve hardware addresses to IP addresses. Therefore, the conversion from ZigBee to ARP addresses must be completed to ensure normal communication. Each node in ZigBee has its own MAC address, which is composed of a 64-bit long address and a 16-bit short address. This article designs and implements the adaptation layer and ARP in the ZigBee protocol to complete the mapping of MAC addresses to Ethernet IP addresses in ZigBee. The workflow diagram is shown in Figure 5. When the gateway receives an Ethernet data packet normally sent to the local IP, it is sent to the upper layer UDP (TCP) for processing after protocol judgment, and finally to the gateway application for processing. The gateway application analyzes and determines which node in the ZigBee network needs to be forwarded to, and resolves the corresponding node MAC address in ZigBee through the ARP address of the ZigBee end, and sends the corresponding data packet to the node to complete a data communication.

Similarly, when the ZigBee end receives the data packet, it will send the data packet to the corresponding node or device through the same analysis. Through the embedded WebServer, users can access, modify, and configure the ZigBee node in real time. Figure 5 Gateway protocol working block diagram 4 Conclusion



The WebServer is embedded in the gateway, which can access or modify the data of field instruments at any time through Ethernet, realizing remote control, remote diagnosis, etc. This product effectively solves the problem of connecting the short-distance ZigBee wireless communication to Ethernet in industrial sites, and approaches the Internet of Things in a new way.

Keywords:ARM9 Reference address:Design of ZigBee Industrial Ethernet Gateway Based on ARM9 Processor

Previous article:Design of Charging Station Monitoring System Based on MCGS
Next article:Design of GUI for digital encrypted telephone system based on MiniGUI

Recommended ReadingLatest update time:2024-11-16 20:57

ARM9_S3C2440 Learning (IV) Differences between FIQ and IRQ
ARM processors have two levels of external interrupts: FIQ and IRQ, which are activated by level-sensitive low-level (LOW) signals to enter the processor. In order to generate an interrupt, the corresponding disable bit in the CPSR must be cleared. Fast Interrupt Request (FIQ), IRQ stands for Interrupt Request, whic
[Microcontroller]
ZigBee-based universal wireless sensor network hardware design
introduction As an emerging technology, wireless sensor networks have become a hot topic of research at home and abroad. They have shown broad application prospects in the fields of military, environment, health, family, business, space exploration and disaster relief . Many units at home and abroad have ca
[Industrial Control]
Differences between ARM7 and ARM9
1. ARM7 is a von Neumann structure, and ARM9 is a Harvard structure. The so-called von Neumann structure and Harvard structure mean that the von Neumann structure program (instructions) and data are stored in the same memory, while the Harvard structure program (instructions) and data have their own independent memory.
[Microcontroller]
Application of ZigBee Technology in ARM CNC System Networking
0 Preface   At present, embedded CNC systems receive G machining codes generated by CAD/CAM software through serial ports or Ethernet ports. However, using serial ports for transmission usually requires another host to be equipped next to the CNC system, while using Ethernet ports for transmission will increase th
[Microcontroller]
Application of ZigBee Technology in ARM CNC System Networking
Development of seismic intensity meter based on IPv6 and ARM9
Using low-power miniature capacitive tri-axial accelerometer as the sensing component, an ARM9-based embedded system with customized Linux as the master control system, and wireless communication technology that complies with the 802.11b standard as the network access method of the instrument, we have developed an S
[Microcontroller]
Development of seismic intensity meter based on IPv6 and ARM9
ARM9(S3C2440) ADC
Analog signal/digital signal (1) An analog signal is a physical quantity that is continuous in time and value, and has an infinite number of values. Most physical quantities perceived from nature are analog in nature, such as speed, pressure, temperature, sound, etc. (2) Digital signals are discrete in both time a
[Microcontroller]
Greenhouse intelligent monitoring system based on ARM+Zigbee
Platform Selection Instructions Design Notes
[Microcontroller]
Greenhouse intelligent monitoring system based on ARM+Zigbee
ZigBee-CC2530 MCU-button control of the start and stop of the marquee
Program source code #include "ioCC2530.h" //reference CC2530 header file #define LED1 (P1_0) //LED1 port macro definition #define LED2 (P1_1) //LED1 port macro definition unsigned char flag_Pause=0; //The running flag of the running light, 1 means pause, 0 means run. /********************************************
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号