CN107172573B - zigbee terminal communication data processing method - Google Patents

zigbee terminal communication data processing method Download PDF

Info

Publication number
CN107172573B
CN107172573B CN201710330130.5A CN201710330130A CN107172573B CN 107172573 B CN107172573 B CN 107172573B CN 201710330130 A CN201710330130 A CN 201710330130A CN 107172573 B CN107172573 B CN 107172573B
Authority
CN
China
Prior art keywords
terminal
mcu
local area
coordinator
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710330130.5A
Other languages
Chinese (zh)
Other versions
CN107172573A (en
Inventor
黄欣欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710330130.5A priority Critical patent/CN107172573B/en
Publication of CN107172573A publication Critical patent/CN107172573A/en
Application granted granted Critical
Publication of CN107172573B publication Critical patent/CN107172573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an zigbee terminal communication data processing method which comprises a coordinator, a Micro Control Unit (MCU), a network storage device and a plurality of terminal devices, wherein the MCU, the coordinator, all the terminal devices and the network storage device jointly form zigbee local area networks, MAC addresses, device names and device types are stored in the terminal devices, all the terminal devices are connected into the zigbee local area networks through the coordinator, the coordinator distributes networking short addresses to each terminal device, the MCU is internally provided with a FLASH chip, an equipment list database is arranged in the FLASH chip of the MCU, the MCU uploads the equipment list database to the network storage device through the FLASH chip, and the network storage device is a cloud server or a display terminal.

Description

zigbee terminal communication data processing method
Technical Field
The invention relates to the technical field of wireless communication, in particular to a method for processing communication data of zigbee terminals.
Background
The ZigBee is a low-power consumption local area network protocol based on the IEEE802.15.4 standard, according to the international standard, the ZigBee technology is short-distance and low-power consumption wireless communication technologies, the basic working process of the ZigBee technology is that data of a device terminal → a coordinator or a router (gateway) → MCU. IEEE MAC address: a global -only address, which is distributed by the international IEEE organization, is written into a chip when the chip leaves a factory and cannot be modified, remains different in the whole life cycle of the device, and the short address is distributed when the device joins in ZigBee networks, is only in the networks and is used for address identification when data is transmitted and received in the networks.
Generally, zigbee terminal equipment reports data according to determined heartbeat, where the data requirements include a mac address, a short address, an equipment type, a data state value of the equipment, and the like of the equipment, and then the MCU packages and reports the data, it can be seen that in the data reported each time, the mac address and the equipment type of the data are repeated, and the length of the transmitted data is long.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide zigbee terminal communication data processing methods, which can optimize data reported by zigbee equipment, reduce repeated reported data content and improve the work efficiency of a Micro Control Unit (MCU) for processing data.
The purpose of the invention is realized by the following technical scheme:
zigbee terminal communication data processing method comprises a coordinator, a Micro Control Unit (MCU), a network storage device and a plurality of terminal devices, wherein the MCU, the coordinator, all the terminal devices and the network storage device jointly form zigbee local area networks, MAC addresses, device names and device types are stored in the terminal devices, all the terminal devices are connected to enter the zigbee local area networks through the coordinator, network access short addresses are distributed to each terminal device by the coordinator, a FLASH chip is arranged in the MCU, a device list database is arranged in a FLASH chip of the MCU, the MCU uploads the device list database to the network storage device through the FLASH chip, the device list database stores a plurality of device information, each device information stores the MAC address, the device name, the device type, the channel value and the network access short address of the corresponding terminal device, and the network storage device is a cloud server or a display terminal, and the method comprises the following steps:
A. the method comprises the following steps that a Micro Control Unit (MCU) is connected into a zigbee local area network through a coordinator, terminal equipment sends a network access application to the coordinator, if the coordinator verifies that the network access application is successful, the coordinator replies a network access permission instruction to the MCU and the terminal equipment, then the terminal equipment is connected into the zigbee local area network through the coordinator, and the coordinator distributes network access short addresses to each terminal equipment;
when terminal devices are connected and enter a zigbee local area network, a device list database of a FLASH chip in a micro control unit MCU sets device information corresponding to the terminal devices, wherein the device information stores MAC addresses, device names, device types and network access short addresses of the corresponding terminal devices, so that all the terminal devices are connected and enter the zigbee local area network, and the device list database of the FLASH chip in the micro control unit MCU stores device information corresponding to all the terminal devices;
B. a certain terminal device is disconnected from a zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to a Micro Control Unit (MCU), the MCU matches the MAC address of the terminal device in a device list database to find device information corresponding to the terminal device, and then updates the network access short address corresponding to the terminal device in the device information;
C. if a certain terminal device is disconnected from the zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to the micro control unit MCU, the micro control unit MCU matches the MAC address of the terminal device in a device list database to find the device information corresponding to the terminal device, then updates the network access short addresses of the terminal device corresponding to the device information and uploads the network access short addresses to the network storage device;
D. normal communication of a zigbee local area network formed by the MCU, the coordinator, all the terminal devices and the network storage device is realized; when the micro control unit MCU sends a control command or an inquiry command to the terminal equipment in the zigbee local area network, the micro control unit MCU can identify the equipment information corresponding to the terminal equipment through the equipment list database, then the micro control unit MCU finds the terminal equipment through the equipment information, so that the terminal equipment responds to the control operation after receiving the control command or the inquiry command, and the terminal equipment feeds back a control result and inquired state data to the micro control unit MCU through the zigbee local area network.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention can optimize the data reported by the zigbee equipment, reduce the repeated reported data content and improve the working efficiency of the MCU processing data.
Drawings
FIG. 1 is a schematic flow chart of step A of the present invention;
FIG. 2 is a schematic flow chart of step C of the present invention;
FIG. 3 is a schematic flow chart of step C of the present invention.
Detailed Description
The invention is further illustrated in detail by in conjunction with the following examples:
examples
As shown in fig. 1 to 3, zigbee terminal communication data processing methods include a coordinator, a micro control unit MCU, a network storage device, and a plurality of terminal devices, where the micro control unit MCU, the coordinator, all the terminal devices, and the network storage device together form zigbee local area networks, the terminal devices store MAC addresses, device names, and device types, all the terminal devices enter the zigbee local area networks through the coordinator connection, the coordinator allocates network access short addresses to each terminal device, the micro control unit MCU internally has a FLASH chip, the FLASH chip of the micro control unit MCU has a device list database, the micro control unit MCU uploads the device list database to the network storage device through the FLASH chip, the device list database stores a plurality of device information, each device information stores MAC addresses, device names, device types, channel values, and network access short addresses of corresponding terminal devices, and the network storage device is a cloud server or a display terminal, and the method includes:
A. the method comprises the following steps that a Micro Control Unit (MCU) is connected into a zigbee local area network through a coordinator, terminal equipment sends a network access application to the coordinator, if the coordinator verifies that the network access application is successful, the coordinator replies a network access permission instruction to the MCU and the terminal equipment, then the terminal equipment is connected into the zigbee local area network through the coordinator, and the coordinator distributes network access short addresses to each terminal equipment;
when terminal devices are connected and enter a zigbee local area network, a device list database of a FLASH chip in a micro control unit MCU sets device information corresponding to the terminal devices, wherein the device information stores MAC addresses, device names, device types and network access short addresses of the corresponding terminal devices, so that all the terminal devices are connected and enter the zigbee local area network, and the device list database of the FLASH chip in the micro control unit MCU stores device information corresponding to all the terminal devices;
B. a certain terminal device is disconnected from a zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to a Micro Control Unit (MCU), the MCU matches the MAC address of the terminal device in a device list database to find device information corresponding to the terminal device, and then updates the network access short address corresponding to the terminal device in the device information;
C. if a certain terminal device is disconnected from the zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to the micro control unit MCU, the micro control unit MCU matches the MAC address of the terminal device in a device list database to find the device information corresponding to the terminal device, then updates the network access short addresses of the terminal device corresponding to the device information and uploads the network access short addresses to the network storage device;
D. normal communication of a zigbee local area network formed by the MCU, the coordinator, all the terminal devices and the network storage device is realized; when the micro control unit MCU sends a control command or an inquiry command to the terminal equipment in the zigbee local area network, the micro control unit MCU can identify the equipment information corresponding to the terminal equipment through the equipment list database, then the micro control unit MCU finds the terminal equipment through the equipment information, so that the terminal equipment responds to the control operation after receiving the control command or the inquiry command, and the terminal equipment feeds back a control result and inquired state data to the micro control unit MCU through the zigbee local area network.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (1)

  1. The method is applied to a zigbee local area network, the zigbee local area network is composed of a coordinator, a Micro Control Unit (MCU), a network storage device and a plurality of terminal devices, MAC addresses, device names and device types are stored in the terminal devices, all the terminal devices are connected into the zigbee local area network through the coordinator, the coordinator allocates networking short addresses to each terminal device, the Micro Control Unit (MCU) is internally provided with a FLASH chip, a device list database is arranged in the FLASH chip of the MCU, the MCU uploads the device list database to the network storage device through the FLASH chip, the device list database stores a plurality of device information, each device information stores the MAC address, the device name, the device type, the channel value and the networking short address of the corresponding terminal device, and the network storage device is a cloud server or a display terminal, and the method comprises the following steps:
    A. the method comprises the following steps that a Micro Control Unit (MCU) is connected into a zigbee local area network through a coordinator, terminal equipment sends a network access application to the coordinator, if the coordinator verifies that the network access application is successful, the coordinator replies a network access permission instruction to the MCU and the terminal equipment, then the terminal equipment is connected into the zigbee local area network through the coordinator, and the coordinator distributes network access short addresses to each terminal equipment;
    when terminal devices are connected and enter a zigbee local area network, a device list database of a FLASH chip in a micro control unit MCU sets device information corresponding to the terminal devices, wherein the device information stores MAC addresses, device names, device types and network access short addresses of the corresponding terminal devices, so that all the terminal devices are connected and enter the zigbee local area network, and the device list database of the FLASH chip in the micro control unit MCU stores device information corresponding to all the terminal devices;
    B. a certain terminal device is disconnected from a zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to a Micro Control Unit (MCU), the MCU matches the MAC address of the terminal device in a device list database to find device information corresponding to the terminal device, and then updates the network access short address corresponding to the terminal device in the device information;
    C. if a certain terminal device is disconnected from the zigbee local area network, then the terminal device is connected into the zigbee local area network, the coordinator allocates network access short addresses to the terminal device and reports the MAC address and the network access short addresses of the terminal device to the micro control unit MCU, the micro control unit MCU matches the MAC address of the terminal device in a device list database to find the device information corresponding to the terminal device, then updates the network access short addresses of the terminal device corresponding to the device information and uploads the network access short addresses to the network storage device;
    D. normal communication of a zigbee local area network formed by the MCU, the coordinator, all the terminal devices and the network storage device is realized; when the micro control unit MCU sends a control command or an inquiry command to the terminal equipment in the zigbee local area network, the micro control unit MCU can identify the equipment information corresponding to the terminal equipment through the equipment list database, then the micro control unit MCU finds the terminal equipment through the equipment information, so that the terminal equipment responds to the control operation after receiving the control command or the inquiry command, and the terminal equipment feeds back a control result and inquired state data to the micro control unit MCU through the zigbee local area network.
CN201710330130.5A 2017-05-11 2017-05-11 zigbee terminal communication data processing method Active CN107172573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710330130.5A CN107172573B (en) 2017-05-11 2017-05-11 zigbee terminal communication data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710330130.5A CN107172573B (en) 2017-05-11 2017-05-11 zigbee terminal communication data processing method

Publications (2)

Publication Number Publication Date
CN107172573A CN107172573A (en) 2017-09-15
CN107172573B true CN107172573B (en) 2020-01-31

Family

ID=59815853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710330130.5A Active CN107172573B (en) 2017-05-11 2017-05-11 zigbee terminal communication data processing method

Country Status (1)

Country Link
CN (1) CN107172573B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110972148B (en) * 2019-11-14 2022-08-09 惠州市千秋软件开发有限公司 ZigBee device networking method
CN112261679A (en) * 2020-10-22 2021-01-22 常熟开关制造有限公司(原常熟开关厂) ZigBee network rapid networking configuration method and ZigBee network
CN113794610B (en) * 2021-09-02 2023-05-26 深圳创维-Rgb电子有限公司 Gateway communication method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327517A (en) * 2013-06-26 2013-09-25 东南大学 Testbed and method for testing state of wireless sensor network
CN105120504A (en) * 2015-07-15 2015-12-02 深圳市通普科技有限公司 ZIGBEE dynamic address networking control method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094349A1 (en) * 2007-03-14 2009-04-09 Amx, Llc Device roaming on a zigbee network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327517A (en) * 2013-06-26 2013-09-25 东南大学 Testbed and method for testing state of wireless sensor network
CN105120504A (en) * 2015-07-15 2015-12-02 深圳市通普科技有限公司 ZIGBEE dynamic address networking control method and system

Also Published As

Publication number Publication date
CN107172573A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN103166874B (en) A kind of message forwarding method and equipment
CN107172573B (en) zigbee terminal communication data processing method
CN104618907A (en) ZigBee networking realizing method based on two-dimensional code
CN110429708B (en) Method and system for realizing plug and play of power distribution equipment
CN109327361B (en) Lora terminal networking method
CN105185085A (en) Data communication system, method and device
CN103929823A (en) Electric wireless private network channel access control method based on service classification
CN204795616U (en) ZIGBEE network access control device
CN104320502B (en) Terminating gateway IP address distribution method, the method for data transfer, MME and system
CN106982222A (en) The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment
CN102611710A (en) Data interaction method and data interaction system for scheduling master station and transformer substation based on MMS (Multimedia Messaging Service)
US8472420B2 (en) Gateway device
CN107147743B (en) Communication method of Internet of things system based on simplified Internet of things communication protocol
CN102811435A (en) Method and system for smart phone user identity identification
CN105578515A (en) Heartbeat frequency parameter maintenance method and server
CN104301906A (en) Method for relay communication between gateways of wireless sensor network
CN103929377A (en) Wired network and wireless network combined dispatching method and system and related devices
CN103414798A (en) Communication method, device and system based on network address translation
CN104168273B (en) The method and system of TCP agent are realized under a kind of thin ap mode
CN108810881B (en) Network distribution method, equipment and system
CN102694790B (en) Method of converging a plurality of communication standards and packaging or signal transmission method
CN101119295B (en) Method for configuring physical layer classification parameter of high speed downlink sharing channel
CN105228085A (en) A kind of unlimited group network system based on bluetooth BLE4.0 and information transmitting methods
CN104717640A (en) Realization method for wireless network communication based on positioning
CN104579805A (en) A novel network traffic identifying method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant