WO2010133020A1 - Zigbee网络中的数据传输方法、终端处理器和终端设备 - Google Patents

Zigbee网络中的数据传输方法、终端处理器和终端设备 Download PDF

Info

Publication number
WO2010133020A1
WO2010133020A1 PCT/CN2009/071836 CN2009071836W WO2010133020A1 WO 2010133020 A1 WO2010133020 A1 WO 2010133020A1 CN 2009071836 W CN2009071836 W CN 2009071836W WO 2010133020 A1 WO2010133020 A1 WO 2010133020A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
zigbee
module
adapter
communication module
Prior art date
Application number
PCT/CN2009/071836
Other languages
English (en)
French (fr)
Inventor
杨晖
邢志浩
唐厚成
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2009/071836 priority Critical patent/WO2010133020A1/zh
Priority to CN2009801237473A priority patent/CN102100122A/zh
Priority to EP09844773A priority patent/EP2427026A4/en
Publication of WO2010133020A1 publication Critical patent/WO2010133020A1/zh
Priority to US13/298,750 priority patent/US20120057587A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method, a terminal processor, and a terminal device in a Zi gbee network. Background technique
  • Zi gbee wireless sensor network technology is developed based on the IEEE 802. 15. 4 standard communication protocol.
  • Zigbee has a transmission range of 10 to 100 meters in radius and supports transmission data rates of 20 to 250 Kbps, while each Zigbee Coordinator Supports up to 255 devices, and a Zigbee network supports up to 65,535 devices.
  • As an emerging wireless networking communication technology Zigbee has the characteristics of close proximity, low speed, low cost, low power consumption, etc. It is gradually applied in telecommunication systems, and a mobile terminal device with Zi gbee function appears.
  • Zigbee-enabled devices are connected directly to mobile devices via external external connections (such as USB cables).
  • external external connections such as USB cables.
  • this type of implementation has not disclosed the design details of the mobile phone side, and, integration, portability and Power management is not ideal.
  • a mobile terminal device composed of a transceiver and a mobile phone processor based on the IEEE802. 15. 4 physical layer, which directly communicates with the mobile phone processor based on the IEEE802. 15. 4 physical layer transceiver, and the mobile phone processor needs real time. Receive and process packets from the radio frequency space and send packets to the radio frequency space.
  • the Zigbee related function module is implemented in the WIPI (Wi reles s Internet Platform for Interoperab ili ty, wireless Internet interactive platform) in the mobile phone processor, and the mobile phone processor includes the IEEE 802. 15. 4 transceiver driver and transceiver.
  • the WIPI application platform is composed of Zi gbee control application, Zigbee user application, Zigbee control interface, Zigbee network interface and Zigbee support interface. Therefore, the mobile phone processor not only needs to handle mobile phone applications, but also shoulders the tasks of the Zigbee network layer such as the establishment and maintenance of the Zi Gbee network.
  • the transceiver based on IEEE802. 15. 4 communicates directly with the mobile phone processor, and the mobile phone processor receives and processes the data of the transceiver in real time, which increases the running load of the mobile phone processor; the Zigbee network layer function is implemented in the mobile phone processor, and the mobile phone The processor needs to establish and maintain the Zigbee network in real time, which increases the development cost and increases the burden of network maintenance. Summary of the invention
  • the embodiments of the present invention provide a data transmission method, a terminal processor, and a terminal device in a Zigbee network, which can reduce the operation load of the terminal and reduce the development cost.
  • a data transmission method in a Zigbee network comprising:
  • the connection driver module receives the data sent by the Zigbee communication module through the connection device;
  • the adapter performs conversion and task processing on the data
  • the application module receives the converted and task-processed data and performs an application operation thereon.
  • a terminal processor includes:
  • An adapter located between the connection driver module and the application module, for converting and processing data transmitted between the connection driver module and the application module;
  • An application module connected to an adapter, that is used to apply data after adapter conversion and task processing.
  • a terminal device including a Zigbee communication module, a connection device, and a terminal processor, wherein the Zigbee communication module is connected to a connection device for establishing and maintaining a Zigbee network, between the Z i gbee network and the connection device Perform two-way data transmission;
  • the connecting device is located between the Zigbee communication module and the terminal processor, and is used for bidirectional data transmission between the Zigbee communication module and the terminal processor;
  • the terminal processor is connected to the connection device, configured to perform conversion and task processing on data transmitted by the connection device, and perform application operations on the converted and task-processed data. Work.
  • a data transmission method, a terminal processor, and a terminal device in a Zigbee network, the terminal processor and the Zigbee communication module are effectively connected by a connection device, and the terminal processor is integrated with the Zigbee communication module.
  • the terminal device is configured to be connected to the device having the Zigbee function through an external connection, so that the terminal device has better integration and portability; the Zigbee communication module is compared with the prior art.
  • the ability to build and maintain a Zigbee network reduces the operational burden of the terminal processor and reduces development and maintenance costs compared to the prior art.
  • the adapter provides management assurance for the terminal processor and the Zigbee communication module.
  • FIG. 1 is a flowchart of a data transmission method in a Zi gbee network according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a data transmission method in a Zi gbee network according to Embodiment 2 of the present invention
  • FIG. 3 is provided according to an embodiment of the present invention; Schematic diagram of the structure of the Zigbee communication module;
  • FIG. 4 is a schematic structural diagram of a mobile phone processor according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a network discovery process of a gateway abstraction module according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a network discovery process of a gateway abstraction module according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a Zi gbee network according to Embodiment 3 of the present invention
  • FIG. 8 is a flowchart of a data transmission method in a Zi gbee network according to Embodiment 4 of the present invention
  • FIG. 9 is a schematic structural diagram of a terminal processor according to Embodiment 5 of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal processor according to Embodiment 6 of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal device according to Embodiment 7 of the present invention. detailed description
  • all data transmissions are implemented in a Zigbee network, but are not limited to a Zigbee network, and other data transmission methods, terminal processors, and terminal devices may be employed in other wireless networks. .
  • the embodiment provides a data transmission method in a Zigbee network, which can reduce the running load of the terminal and reduce the development cost.
  • the method when data is sent by a Zigbee communication module to a terminal processor, the method includes:
  • connection driver module receives the data sent by the Zigbee communication module by using the connection device. Further, the connection driver module processes the data sent by the Zigbee communication module through the connection device, and if it is determined that the data is network-related data, the data is sent to the adapter.
  • the adapter performs conversion and task processing on the data.
  • the conversion and task processing specifically includes:
  • Data service processing or management service processing is performed on the application-related data according to the type of the application-related data.
  • the application module receives the converted and task-processed data and applies the operation to the data.
  • the data received by the application module after the conversion and task processing specifically includes two Ways:
  • Manner 1 The converted and task-processed data is received by the gateway abstraction module.
  • Method 2 directly receiving the converted and task-processed data.
  • the terminal processor and the Zigbee communication module are effectively connected through a connection device, and the terminal processor and the Zi gbee communication module are integrated to form a terminal device, and Compared with the prior art, the terminal device does not need to be additionally connected to the Zigbee-enabled device through an external connection, so that the terminal device has better integration and portability; the Zigbee communication module can establish and maintain a Zigbee network. Compared with the prior art, the operation load of the terminal processor can be alleviated, and the development and maintenance costs are reduced.
  • the terminal device takes a mobile phone as an example
  • the terminal processor takes a mobile phone processor as an example, and is described in detail below.
  • the method when data is sent by the Zigbee communication module to the mobile phone processor, the method includes:
  • the S20 Zi gbee communication module receives data related to Zigbee applications through the Zigbee network.
  • the Zigbee communication module is mainly responsible for completing the establishment and maintenance of the Zigbee network and data communication with the application layer.
  • the Zigbee communication module includes: a physical layer based on IEEE802. 15.4, a MAC (Media Acces s Control) layer based on IEEE802. 15.4, a Zigbee-based network layer, and based on Zi gbee's application interface.
  • the Zigbee communication module receives or transmits data through an RF (Radio Frequency) to implement communication between the mobile phone and the outside world.
  • RF Radio Frequency
  • the Zi gbee communication module sends the data to the mobile phone processor through the connection device;
  • the connection device is used to connect the mobile phone processor and the Zi gbee communication module, and the connection device may be an SPI (Seia ia l Per iphera l Interface , serial peripheral interface), UART (Universal Asynchronous Receiver/Transmit), and other mobile phone processors usually have an interface. 5203.
  • the connection driver module in the mobile phone processor processes the data sent by the connection device. If the data is determined to be related to the Zigbee network, the data is sent to the Zigbee adapter.
  • the Zigbee adapter converts data related to the Zigbee chip in the data into application-related data.
  • the Zigbee adapter is located between an application module and a connection driver module, and a Zigbee chip universal interface is disposed in the Zigbee adapter, and the Zigbee chip universal interface is used to implement data conversion, and the Zigbee chip is implemented.
  • the general-purpose interface is a general-purpose interface designed for Zigbee chips of different manufacturers or different interfaces.
  • the Zigbee adapter performs data service processing or management service processing on the data related to the application according to the type of data information related to the application.
  • the data service unit is configured to perform data service processing, where the data service processing refers to processing a data service between the application module and the Zigbee communication module;
  • the Zigbee adapter is provided with a management service unit for performing management service processing, and the management service processing refers to processing a management task between the mobile phone processor itself and the Zigbee communication module.
  • the management service processing refers to processing a management task between the mobile phone processor itself and the Zigbee communication module. For example: When the mobile phone has special conditions such as shutdown, no power, etc., send the mobile phone shutdown notification command to the Zi gbee communication module; when the Zi gbee communication module has a special condition, such as: Z igbee communication module has no signal, the data packet is not successfully transmitted or The device abnormality requires a restart, and the abnormality state is notified to the mobile phone processor, and the management service unit may decide to report to the application module or process it by itself.
  • the Zigbee adapter sends the data processed by the data service unit or the management service unit to the application module, and the application module performs an application operation on the data.
  • the application module includes an application module of the mobile phone operating system itself, and an application module related to the Zigbee application.
  • the sending the data processed by the data service unit or the management service unit to the application module includes two ways:
  • Method 1 When the mobile phone is a gateway device, the Zigbee adapter draws the data through the gateway The image module is sent to the application module;
  • Method 2 When the mobile phone is not a gateway device, the Zigbee adapter sends the data directly to the application module.
  • the gateway abstraction module is mainly for abstracting the gateway function and simplifying the interaction information between the gateway and the Zigbee communication module.
  • the functions of the gateway abstraction module include: local node management, remote mirror management, network security management, and data communication management.
  • Local node management Provides an interface for reading/writing the node attributes and network attributes of the local Zigbee communication module, including: parameters in the device descriptor defined by the Zigbee specification, PANID (Per sona l Area Network Ident) If ier, local area network identifier, channel information, etc.; in addition, it provides an interface for the network discovery function, which acquires the address and topology information of the network for the gateway device, and aims to provide the acquisition network topology for the application layer of the gateway device.
  • the interface of information provides the possibility for the gateway to master and control the information of the entire network.
  • Remote Mirror Management Provides an interface for managing the mirroring of remote node properties.
  • ZD0 Zigbee Device Object
  • the remote mirror node can be controlled to manage the entire network.
  • Network Security Management Implement key management functions in the Zigbee specification to provide effective network security for the entire Zigbee network. According to the Zigbee specification, two key generation methods are provided, so two key command interfaces are provided to the application layer, and the key generation and maintenance process follows the Zi gbee standard specification, which will not be described in detail herein.
  • Data communication management Supports establishing a connection with a remote node through direct addressing, performing data communication, or directly communicating data with an endpoint in a local Zigbee communication module.
  • the network discovery process in the gateway abstraction module includes:
  • the S50K application layer initiates a network discovery command to the gateway abstraction layer, where the network discovery command carries a timeout period.
  • the gateway abstraction layer starts traversing the root node in the locally maintained routing table, and requests to obtain network topology information.
  • the process of requesting acquisition of network topology information conforms to the Zigbee specification.
  • the definition is as follows:
  • the IEEE_addr_Req command is sent unicast to the node that needs to traverse. If the receiver replies to the IEEE_addr_Rsp command, the gateway abstraction layer sends the network topology information carried in the command to the application layer.
  • the network discovery process in the gateway abstraction module may also adopt the following method: S601-S602 is the same as steps S601-S602;
  • the application layer Before the network discovery timeout, the application layer sends a cancel network discovery command, and the network discovery traversal process ends.
  • the data transmission method in the Zigbee network provided by the embodiment of the present invention the mobile phone processor and the Z i gbee communication module are effectively connected through a connection device, and the mobile phone processor and the i ibebee communication module are integrated to form a mobile phone.
  • the mobile terminal does not need to be additionally connected to the Zigbee-enabled device through an external connection, so that the mobile phone has better integration and portability;
  • the Zigbee communication module can establish and Maintaining the Zi gbee network, reducing the operational burden of the mobile phone processor and reducing development and maintenance costs;
  • the gateway abstraction module provides an interface for network discovery functions, obtaining network address and topology information for the gateway device, and enabling the gateway The function abstraction simplifies the interaction between the gateway and the Zigbee communication module, which provides the possibility for the gateway to master and control the information of the whole network, thereby reducing the development difficulty for the Zigbee mobile phone to implement the gateway function;
  • the Z igbee adapter is designed as a mobile phone.
  • a subset of functions which can provide management guarantee for the mobile phone processor and the Zigbee communication module; the common interface of the Zi gbee chip in the Zigbee adapter provides a unified operation interface for shielding different Zigbee chips, so that the software part of the mobile phone processor It is versatile.
  • the embodiment provides a data transmission method in a Zigbee network, which can reduce the running load of the terminal and reduce the development cost.
  • the method when the data is sent by the terminal processor to the Zigbee communication module When sent, the method includes:
  • the S70 application module sends data to the adapter.
  • the application module specifically includes two ways to generate data to the adapter:
  • Method 1 Send data to the adapter through the gateway abstraction module
  • Method 2 Send the data directly to the adapter.
  • the adapter performs task processing and conversion on the data.
  • the task processing and conversion specifically includes:
  • connection driver module sends the task processed and converted data to the Zigbee communication module through the connection device.
  • the terminal processor and the Zigbee communication module are effectively connected through a connection device, and the terminal processor is integrated with the Z i gbee communication module to form a terminal device, and Compared with the prior art, the terminal device does not need to be additionally connected to the Zigbee-enabled device through an external connection, so that the terminal device has better integration and portability; the Zigbee communication module can establish and maintain Zigbee Compared with the prior art, the network can reduce the running load of the terminal processor and reduce the development and maintenance costs.
  • the terminal device takes a mobile phone as an example
  • the terminal processor takes a mobile phone processor as an example, and is described in detail below.
  • the method when data is sent by the mobile phone processor to the Zigbee communication module, the method includes:
  • the S80 and Zigbee application-related application modules send data to the Zigbee adapter.
  • the sending the data information to the Zigbee adapter includes two ways:
  • Method 1 When the mobile phone is a gateway device, an application module related to the Zigbee application will be Method 2: When the mobile phone is not a gateway device, an application module related to the Zigbee application directly sends the data to the Zigbee adapter.
  • the gateway abstraction module is mainly for abstracting the gateway function and simplifying the interaction information between the gateway and the Zigbee communication module.
  • the functions of the gateway abstraction module include: local node management, remote mirror management, network security management, and data communication management.
  • the network discovery process of the gateway abstraction module is the same as that described in the second embodiment, and details are not described herein again.
  • the Zigbee adapter performs data service processing or management service processing on the application-related data according to the data information type.
  • the Zi gbee adapter is provided with a data service unit and a management service unit, and performs data service processing and management service processing, respectively.
  • the processing operations performed by the data service unit and the management service unit are the same as those described in step S205 in the second embodiment, and details are not described herein again.
  • the Zigbee adapter converts the data processed by the data service unit or the management service unit into data related to the chip.
  • the Zigbee adapter is provided with a Zigbee chip universal interface, and the Zigbee chip universal interface is used to implement data conversion.
  • the Z i gbee chip universal interface is designed for different manufacturers or different interfaces of the Zibebe chip. General purpose interface.
  • the Zigbee adapter sends the data related to the Zigbee chip to the connection driver module.
  • connection driver module sends the chip-related data to the Zigbee communication module through the connection device.
  • the connection device is configured to connect the mobile phone processor and the Zigbee communication module, and the connection device may be an interface generally provided by a mobile phone processor such as an SPI or a UART.
  • the Zigbee communication module sends the chip-related data to the Zigbee network.
  • the Zigbee communication module is mainly responsible for completing the establishment and maintenance of the Zigbee network and data communication with the application layer.
  • the structure of the Z i gbee communication module is as shown in FIG. 3.
  • the data transmission method in the Zigbee network provided by the embodiment of the present invention, the mobile phone processor and The Zigbee communication module is effectively connected through the connection device, so that the mobile phone has better integration and portability; the Zigbee communication module can establish and maintain the Zi gbee network, thereby reducing the running load of the mobile phone processor. Reduced development and maintenance costs; Gateway abstraction module provides network discovery function interface, obtains network address and topology information for gateway devices, and can abstract the function of gateway, simplifying the relationship between gateway and Zigbee communication module The interactive information provides the possibility for the gateway to master and control the information of the whole network, thereby reducing the development difficulty for the Zigbee mobile phone to implement the gateway function.
  • the design of the Zigbee adapter provides a subset of functions for the maintenance of the mobile phone processor and the Zigbee communication module. Provides management guarantee for the mobile phone processor and the Zigbee communication module; the unified interface of the Zi gbee chip universal interface provided by the Zigbee adapter for shielding different Zigbee chips makes the software part of the mobile phone processor universal.
  • the embodiment provides a terminal processor, which can reduce the running load of the terminal and reduce the development cost.
  • the terminal processor includes:
  • the adapter 92 is located between the connection driving module 91 and the application module 93, and is used for converting and processing data transmitted between the connection driving module 91 and the application module 93;
  • the application module 93 is connected to the adapter 92 for applying the data processed by the adapter 92 and processed by the task.
  • the terminal processor is connected to the Zigbee communication module through a connection device, and the terminal processor and the Zigbee communication module are integrated to form a terminal device.
  • the terminal device is compared with the prior art.
  • the device does not need to be additionally connected to the device with Zi gbee function through an external connection, so that the terminal device has better integration and portability; the Zigbee communication module can establish and maintain a Zigbee network, and existing Compared with technology, it can reduce the running load of the terminal processor and reduce development and maintenance costs.
  • the adapter can handle the terminal.
  • the Z ig bee communication module provides management assurance.
  • the terminal processor includes:
  • connection driver module 101 is connected to the adapter 102 and the Zigbee communication module for bidirectional data transmission between the adapter 102 and the Zigbee communication module through the Zigbee network.
  • the adapter 102 is located between the connection driver module 101 and the application module 103 for converting and processing data transmitted between the connection driver module 101 and the application module 103.
  • the application module 103 is connected to the adapter 102 for performing application operations on the data converted and task processed by the adapter 102.
  • the adapter 102 includes:
  • the converting unit 1021 is configured to convert the chip-related data in the data into an application-related manner.
  • the converting unit 1021 is a Zigbee chip universal interface, and the Z i gbee chip universal interface is used.
  • the Z i gbee chip universal interface is a universal interface designed for different vendors or different interfaces of the i i gbee chip.
  • the data service unit 1022 is configured to process data services in which the application module interacts with the Zi gbee communication module.
  • the management service unit 1023 is configured to process management tasks between the terminal processor itself and the Zigbee communication module. For example: When the mobile phone has special conditions such as shutdown, no power, etc., send the mobile phone shutdown notification command to the Zigbee communication module; when the Zigbee communication module has a special condition, such as: Zi gbee communication module has no signal, the data packet is not sent successfully or the device is abnormal. A reboot is required to notify the handset processor of an abnormal state, and the management service unit 1023 may decide to report to the application module or process it by itself.
  • the gateway abstraction module 104 is configured to forward data between the application module 103 and the adapter 102.
  • the gateway abstraction module 104 is mainly for abstracting the gateway function and simplifying the interaction information between the gateway and the Zigbee communication module.
  • the functions of the gateway abstraction module include: a local node Management, remote image management, network security management, and data communication management.
  • the terminal processor provided by the embodiment of the present invention, the terminal processor and the Zigbee communication module are effectively connected through a connection device, and the terminal processor and the Zigbee communication module are integrated to form a terminal device, which is compared with the prior art.
  • the terminal device does not need to be additionally connected to the device having the GIS function through the external connection, so that the terminal device has better integration and portability;
  • the Zigbee communication module can establish and maintain the Zigbee network, thereby reducing
  • the operation burden of the terminal processor reduces the development and maintenance costs;
  • the gateway abstraction module provides an interface for the network discovery function, obtains the address and topology information of the network for the gateway device, and can abstract the function of the gateway, simplifying
  • the interaction information between the gateway and the Zigbee communication module provides the possibility for the gateway to master and control the information of the entire network, thereby reducing the development difficulty for implementing the gateway function of the Zigbee terminal device;
  • the Zigbee adapter is designed as a terminal processor and
  • the embodiments of the present invention provide a terminal device, which can reduce the running load of the terminal and reduce the development cost.
  • the terminal device includes a Zigbee communication module 1101, a connection device 1102, and a terminal processor 1103, where
  • the Zigbee communication module 1101 is connected to the connection device 1102 for establishing and maintaining a Zigbee network, and performs bidirectional data transmission between the Zigbee network and the connection device 1102.
  • the Zigbee communication module 1101 is mainly responsible for completing establishment and maintenance of the Zigbee network and data communication with the application layer.
  • the Zi gbee communication module includes: a physical layer based on IEEE 802.15.4, a MAC layer based on IEEE 802.15.4, a Zigbee-based network layer, and a Zigbee-based application interface.
  • the Zigbee communication module receives or transmits data through the RF to implement communication between the terminal device and the outside world.
  • the connection device 1102 is located between the Zigbee communication module 1101 and the terminal processor 1103 for bidirectional data transmission between the Zigbee communication module 1101 and the terminal processor 1103.
  • the connection device may be an interface generally provided by a mobile phone processor such as an SPI or a UART.
  • the terminal processor 1103 is connected to the connection device 1102, configured to perform conversion and task processing on data transmitted by the connection device 1102, and perform an application operation on the converted and task-processed data.
  • the terminal processor 1103 includes:
  • An adapter located between the connection driver module and the application module, for converting and processing data transmitted between the connection driver module and the application module;
  • An application module connected to an adapter, that is used to apply data after adapter conversion and task processing.
  • the terminal processor and the Zigbee communication module are effectively connected through a connection device, and the terminal processor and the Zigbee communication module are integrated to form a terminal device, and the terminal device is compared with the prior art.
  • the terminal device There is no need to additionally connect with a device having a Zi gbee function through an external connection, so that the terminal device has better integration and portability; the Zigbee communication module can establish and maintain a Zigbee network, which is related to the prior art. Compared, it can reduce the running load of the terminal processor and reduce development and maintenance costs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

ZIGBEE网络中的数据传输方法、 终端処理器和
终端设备 技术领域
本发明涉及通信技术领域, 特别涉及一种 Zi gbee网络中的数据传输方法、 终端处理器和终端设备。 背景技术
Zi gbee无线传感器网络技术是基于 IEEE 802. 15. 4标准的通信协议研制开 发的, Zigbee具有半径为 10到 100米的传输范围, 并支持 20到 250Kbps的传输 数据速率, 同时每个 Zigbee协调器最多支持 255个设备, 一个 Zigbee网络最多 可支持 65535个设备。作为一种新兴的无线组网通信技术, Zigbee具有近距离、 低速率、低成本、低功耗等特点, 逐渐应用在电信系统中, 出现了具有 Zi gbee 功能的移动终端设备。
目前, 有直接通过手机外部连线(如 USB连接线等)将具有 Zigbee功能的 设备连接到手机设备上, 但是, 这类实现方法尚未公开手机侧的设计细节, 而且, 集成性、 便携性和电源管理方面都不够理想。
此外, 还有一种基于 IEEE802. 15. 4物理层的收发机和手机处理器组成的 移动终端设备, 将基于 IEEE802. 15. 4物理层的收发机与手机处理器直接通信, 手机处理器需要实时接收和处理来自无线射频空间的数据包, 以及向无线射 频空间发送数据包。 其中, Z igbee相关的功能模块在手机处理器中的 WIPI ( Wi reles s Internet Pla tform for Interoperab i l i ty, 无线互联网交互平 台) 中实现, 手机处理器包括 IEEE802. 15. 4收发机驱动、 收发机硬件抽象层、 WIPI实时引擎、 应用管理和 WIPI应用平台。 其中, WIPI应用平台又由 Zi gbee 控制应用、 Zigbee用户应用、 Zigbee控制接口、 Zigbee网络接口和 Z igbee支 持接口组成。 因此, 手机处理器不仅需要处理手机应用, 还肩负着 Zi gbee网 络的建立和维护等 Zigbee网络层的任务。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 将基于 IEEE802. 15. 4的收发机直接与手机处理器通信, 由手机处理器实 时接收处理收发机的数据, 加重了手机处理器的运行负担; Zigbee网络层功 能在手机处理器中实现, 手机处理器需要实时进行 Zigbee网络的建立和维护, 加大了开发成本, 增加了网络维护的负担。 发明内容
本发明的实施例提供一种 Z igbee网络中的数据传输方法、 终端处理器和 终端设备, 能够减少终端的运行负担, 降低开发成本。
本发明实施例采用的技术方案为:
一种 Zigbee网络中的数据传输方法, 包括:
连接驱动模块通过连接设备接收 Zigbee通信模块发送的数据;
适配器对所述数据进行转换和任务处理;
应用模块接收所述经过转换和任务处理后的数据, 对其进行应用操作。 一种终端处理器, 包括:
连接驱动模块, 连接适配器与 Zigbee通信模块, 用于通过 Zigbee网络在 适配器与 Zigbee通信模块之间进行双向数据传输;
适配器, 位于连接驱动模块和应用模块之间, 用于对连接驱动模块与应 用模块之间传输的数据进行转换和任务处理;
应用模块, 与适配器连接, 用于对经过适配器转换和任务处理后的数据 进行应用操作。
一种终端设备, 包括 Zigbee通信模块、 连接设备和终端处理器, 其中, 所述 Zigbee通信模块, 与连接设备连接, 用于建立和维护 Zigbee网络, 通过所述 Z i gbee网络与连接设备之间进行双向数据传输;
所述连接设备, 位于 Zigbee通信模块和终端处理器之间, 用于 Zigbee通 信模块与终端处理器之间的双向数据传输;
所述终端处理器, 与连接设备连接, 用于对通过所述连接设备传输的数 据进行转换和任务处理, 并对所述经过转换和任务处理后的数据进行应用操 作。
本发明实施例 Z igbee网络中的数据传输方法、 终端处理器和终端设备, 所述终端处理器与 Z igbee通信模块之间通过连接设备进行有效连接, 将终端 处理器与 Zigbee通信模块集成在一起, 组成终端设备, 与现有技术相比, 终 端设备不需要另外通过外部连线与具有 Zigbee功能的设备进行连接, 使得所 述终端设备具有较好的集成性和便携性; 所述 Zigbee通信模块能够建立和维 护 Zigbee网络, 与现有技术相比, 能够减轻终端处理器的运行负担, 降低开 发和维护成本; 此外, 适配器能够为终端处理器和 Zigbee通信模块提供管理 保障。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其它的附图。
图 1为本发明实施例一提供的 Zi gbee网络中的数据传输方法流程图; 图 2为本发明实施例二提供的 Zi gbee网络中的数据传输方法流程图; 图 3为本发明实施例提供的 Zigbee通信模块组成结构示意图;
图 4为本发明实施例提供的手机处理器的结构示意图;
图 5为本发明实施例提供的网关抽象模块的网络发现过程示意图; 图 6为本发明实施例提供的网关抽象模块的网络发现过程示意图; 图 7为本发明实施例三提供的 Zi gbee网络中的数据传输方法流程图; 图 8为本发明实施例四提供的 Zi gbee网络中的数据传输方法流程图; 图 9为本发明实施例五提供的终端处理器结构示意图;
图 10为本发明实施例六提供的终端处理器结构示意图;
图 11为本发明实施例七提供的终端设备结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例 , 都属于本发明保护的范围。
为使本发明技术方案的优点更加清楚, 下面结合附图和实施例对本发明 作详细说明。
在本发明的所有实施例中, 所有的数据传输是在 Z igbee网络中实现的, 但是并不局限于 Z i gbee网络, 其它无线网络也可以采用所述数据传输方法、 终端处理器和终端设备。
实施例一
本实施例提供一种 Zigbee网络中的数据传输方法, 能够减轻终端的运行 负担, 降低开发成本。
如图 1所示, 在 Zigbee网络中, 当数据由 Zigbee通信模块向终端处理器发 送时, 所述方法包括:
S101、 连接驱动模块通过连接设备接收 Zigbee通信模块发送的数据。 进一步, 连接驱动模块会处理 Z i gbee通信模块通过连接设备发送的数据, 如果判断所述数据为与网络相关的数据, 则将所述数据向适配器发送。
5102、 适配器对所述数据进行转换和任务处理。
其中, 所述转换和任务处理具体包括:
将所述数据中与芯片相关的数据转换为与应用相关的数据;
根据所述与应用相关的数据的类型, 对所述与应用相关的数据进行数据 服务处理或管理服务处理。
5103、 应用模块接收所述经过转换和任务处理后的数据, 对其进行应用 操作。
其中, 所述应用模块接收所述经过转换和任务处理后的数据具体包括两 种方式:
方式一: 通过网关抽象模块接收所述经过转换和任务处理后的数据; 方式二: 直接接收所述经过转换和任务处理后的数据。
本发明实施例提供的 Zigbee网络中的数据传输方法, 所述终端处理器与 Zigbee通信模块之间通过连接设备进行有效连接, 将终端处理器与 Zi gbee通 信模块集成在一起, 组成终端设备, 与现有技术相比, 终端设备不需要另外 通过外部连线与具有 Zigbee功能的设备进行连接, 使得所述终端设备具有较 好的集成性和便携性; 所述 Zigbee通信模块能够建立和维护 Zigbee网络, 与 现有技术相比, 能够减轻终端处理器的运行负担, 降低开发和维护成本。
实施例二
在本实施例中, 终端设备以手机为例, 终端处理器以手机处理器为例, 下面进行详细说明。
如图 2所示, 在 Zigbee网络中, 当数据由 Zigbee通信模块向手机处理器发 送时, 所述方法包括:
S20 Zi gbee通信模块通过 Zigbee网络接收与 Zigbee应用相关的数据。 其中, 所述 Zigbee通信模块主要负责完成 Zigbee网络的建立和维护, 以 及与应用层之间的数据通信。 如图 3所示, 所述 Zigbee通信模块包括: 基于 IEEE802. 15. 4的物理层、 基于 IEEE802. 15. 4的 MAC ( Media Acces s Control , 介质访问控制) 层、 基于 Zigbee的网络层和基于 Zi gbee的应用接口。 所述 Zigbee通信模块通过 RF ( Radio Frequency, 射频)接收或发送数据, 实现手 机与外界的通信。
S202、 Zi gbee通信模块将所述数据通过连接设备向手机处理器发送; 所述连接设备用于连接手机处理器和 Zi gbee通信模块, 所述连接设备可 以为 SPI ( Ser ia l Per iphera l Interface , 串行外围设备接口 )、 UART ( Universa l Asynchronous Receiver/Transmi t ter , 通用异步接收 /发送装 置)等手机处理器通常具备的接口。 5203、 手机处理器中的连接驱动模块处理连接设备发送的数据, 如果判 断所述数据是与 Zigbee网络相关的数据, 则将该数据向 Zigbee适配器发送。
5204、 Zigbee适配器将所述数据中与 Zi gbee芯片相关的数据转换为与应 用相关的数据。
如图 4所示, 所述 Zigbee适配器位于应用模块和连接驱动模块之间, 所述 Zigbee适配器中设置有 Zi gbee芯片通用接口, 采用所述 Zigbee芯片通用接口 来实现数据的转换, 所述 Zigbee芯片通用接口是针对不同厂商或者不同接口 的 Z i gbee芯片所设计的通用接口。
5205、 Zigbee适配器根据所述与应用相关的数据信息类型, 对所述与应 用相关的数据进行数据服务处理或者管理服务处理。
其中, 所述 Zi gbee适配器中设置有数据服务单元, 用于进行数据服务处 理, 其中, 所述数据服务处理指的是处理应用模块与 Zi gbee通信模块之间进 行交互的数据业务;
所述 Zigbee适配器中设置有管理服务单元, 用于进行管理服务处理, 所 述管理服务处理指的是处理手机处理器自身与 Zigbee通信模块之间的管理任 务。 例如: 当手机出现关机、 没电等特殊状况时, 向 Zi gbee通信模块发送手 机关机通知命令; 当 Zi gbee通信模块出现特殊状况时, 如: Z igbee通信模块 无信号、 数据包未发送成功或设备异常要求重启, 向手机处理器通知异常状 态, 所述管理服务单元可以决定向应用模块报告或者自行处理。
5206、 Zigbee适配器将所述经过数据服务单元或者管理服务单元处理后 的数据, 发送给应用模块, 由所述应用模块对所述数据进行应用操作。 其中, 所述应用模块包括手机操作系统本身的应用模块, 以及与 Z i gbee应用相关的 应用模块。
其中, 所述将所述经过数据服务单元或者管理服务单元处理后的数据, 发送给应用模块包括两种方式:
方式一:当所述手机为网关设备时, Zigbee适配器将所述数据通过网关抽 象模块发送给应用模块;
方式二: 当所述手机不是网关设备时, Z igbee适配器将所述数据直接发 送给应用模块。
其中, 所述网关抽象模块主要是为了将网关功能抽象化, 简化网关与 Zigbee通信模块之间的交互信息。 所述网关抽象模块的功能包括: 本地节点 管理、 远端镜像管理、 网络安全管理和数据通信管理。
本地节点管理: 提供了读 /写本地 Zigbee通信模块的节点属性和网络属性 的接口, 所述节点属性和网络属性包括: Zigbee规范定义的设备描述符中的 参数、 PANID ( Per sona l Area Network Ident if ier , 个域网标识符)、 信道 信息等; 此外, 还提供了网络发现功能的接口, 为网关设备获取网络的地址 和拓朴信息, 旨在为网关设备的应用层提供获取网络拓朴信息的接口, 为网 关掌握和控制全网信息提供了可能。
远端镜像管理: 提供了对远端节点属性的镜像进行管理的接口。 通过调 用 Zigbee规范中定义的 ZD0 ( Zigbee Device Object , Zigbee设备对象)命令, 可以对远端镜像节点进行控制, 以达到对整个网络的管理。
网络安全管理: 实现 Zigbee规范中的密钥管理功能, 为整个 Zigbee网络 提供有效的网络安全。 根据 Zigbee规范规定了两种密钥生成方式, 因此向应 用层提供两种密钥命令接口, 密钥生成和维护过程遵循 Zi gbee标准规范, 这 里不做详述。
数据通信管理: 支持通过直接寻址方式与远端节点建立连接, 进行数据 通信, 或直接与本地 Zigbee通信模块中的端点进行数据通信。
如图 5所示, 所述网关抽象模块中的网络发现过程包括:
S50K 应用层向网关抽象层发起网络发现命令, 其中, 所述网络发现命 令中携带超时时间。
S502、 网关抽象层以本地维护的路由表中的根节点开始遍历, 请求获取 其网络拓朴信息。 其中, 所述请求获取网络拓朴信息的过程遵循 Zigbee规范 的定义: 向需要遍历的节点单播发送 IEEE_addr_Req命令, 如接收方回复了 IEEE_addr_Rsp命令, 网关抽象层将该命令中携带的网络拓朴信息发送给应用 层。
S503、 当网络发现遍历过程持续的时间等于所述超时时间时, 网络发现 遍历过程结束。
如图 6所示, 所述网关抽象模块中的网络发现过程也可以采用下述方法: S601-S602与步骤 S601-S602相同;
S603、 在网络发现超时之前, 应用层发送取消网络发现命令, 网络发现 遍历过程结束。
本发明实施例提供的 Zigbee网络中的数据传输方法, 所述手机处理器与 Z i gbee通信模块之间通过连接设备进行有效连接, 将手机处理器与 1 i gbee通 信模块集成在一起, 组成手机终端, 与现有技术相比, 手机终端不需要另外 通过外部连线与具有 Zigbee功能的设备进行连接, 使得所述手机具有较好的 集成性和便携性; 所述 Z igbee通信模块能够建立和维护 Zi gbee网络, 从而减 轻了手机处理器的运行负担, 降低了开发和维护成本; 网关抽象模块提供了 网络发现功能的接口, 为网关设备获取网络的地址和拓朴信息, 此外, 能够 将网关的功能抽象化, 简化了网关与 Z igbee通信模块之间的交互信息, 为网 关掌握和控制全网信息提供了可能, 从而为 Zigbee手机实现网关功能降低了 开发难度; Z igbee适配器的设计为手机处理器与 Zigbee通信模块的维护提供 了功能子集, 能够为手机处理器和 Z igbee通信模块提供管理保障; Z igbee适 配器中的 Zi gbee芯片通用接口提供的针对不同 Z igbee芯片屏蔽后使用的统一 操作接口, 使得手机处理器的软件部分具有通用性。
实施例三
本实施例提供一种 Zigbee网络中的数据传输方法, 能够减轻终端的运行 负担, 降低开发成本。
如图 7所示, 在 Zigbee网络中, 当数据由终端处理器向 Z igbee通信模块发 送时, 所述方法包括:
S70 应用模块将数据向适配器发送。
其中, 所述应用模块将数据向适配器发生具体包括两种方式:
方式一: 将数据通过网关抽象模块向适配器发送;
方式二: 将所述数据直接向适配器发送。
5702、 适配器对所述数据进行任务处理和转换。
其中, 所述任务处理和转换具体包括:
根据所述数据的类型, 对所述数据进行数据服务处理或管理服务处理;
5703、 连接驱动模块将所述经过任务处理和转换后的数据通过连接设备 向 Zigbee通信模块发送。
本发明实施例 Zigbee网络中的数据传输方法, 所述终端处理器与 Z igbee 通信模块之间通过连接设备进行有效连接, 将终端处理器与 Z i gbee通信模块 集成在一起, 组成终端设备, 与现有技术相比, 终端设备不需要另外通过外 部连线与具有 Zigbee功能的设备进行连接, 使得所述终端设备具有较好的集 成性和便携性; 所述 Z igbee通信模块能够建立和维护 Zigbee网络, 与现有技 术相比, 能够减轻终端处理器的运行负担, 降低开发和维护成本。
实施例四
在本实施例中, 终端设备以手机为例, 终端处理器以手机处理器为例, 下面进行详细说明。
如图 8所示, 在 Zigbee网络中, 当数据由手机处理器向 Z igbee通信模块发 送时, 所述方法包括:
S80 与 Zigbee应用相关的应用模块将数据发送给 Zigbee适配器。
其中, 所述将数据信息发送给 Z igbee适配器包括两种方式:
方式一: 当所述手机为网关设备时, 与 Z igbee应用相关的应用模块将所 方式二: 当所述手机不是网关设备时, 与 Zigbee应用相关的应用模块将 所述数据直接发送 Zigbee适配器。
其中, 所述网关抽象模块主要是为了将网关功能抽象化, 简化网关与 Zigbee通信模块之间的交互信息。 所述网关抽象模块的功能包括: 本地节点 管理、 远端镜像管理、 网络安全管理和数据通信管理。
其中, 所述网关抽象模块的网络发现过程与实施例二所描述的相同, 在 此不再赘述。
5802、 Zigbee适配器根据所述数据信息类型, 对所述与应用相关的数据 进行数据服务处理或者管理服务处理。
其中, 所述 Zi gbee适配器中设置有数据服务单元和管理服务单元, 分别 进行数据服务处理和管理服务处理。 所述数据服务单元和管理服务单元所进 行的处理操作与实施例二中步骤 S205所描述的相同, 在此不再贅述。
5803、 Zigbee适配器将所述经过数据服务单元或管理服务单元处理后的 数据, 转换为与芯片相关的数据。
其中,所述 Zigbee适配器中设置有 Zigbee芯片通用接口,采用所述 Zigbee 芯片通用接口来实现数据的转换, 所述 Z i gbee芯片通用接口是针对不同厂商 或者不同接口的 Z i gbee芯片所设计的通用接口。
5804、 Zigbee适配器将所述与 Zigbee芯片相关的数据发送给连接驱动模 块。
5805、 连接驱动模块将所述与芯片相关的数据通过连接设备向 Zigbee通 信模块发送。 其中, 所述连接设备用于连接手机处理器和 Zigbee通信模块, 所述连接设备可以为 SPI、 UART等手机处理器通常具备的接口。
5806、 Zigbee通信模块将所述与芯片相关的数据通过 Zigbee网络向外发 送。 其中, 所述 Zigbee通信模块主要负责完成 Zigbee网络的建立和维护, 以 及与应用层之间的数据通信。 所述 Z i gbee通信模块的结构如图 3所示。
本发明实施例提供的 Zigbee网络中的数据传输方法, 所述手机处理器与 Zigbee通信模块之间通过连接设备进行有效连接, 使得所述手机具有较好的 集成性和便携性; 所述 Z igbee通信模块能够建立和维护 Zi gbee网络, 从而减 轻了手机处理器的运行负担, 降低了开发和维护成本; 网关抽象模块提供了 网络发现功能的接口, 为网关设备获取网络的地址和拓朴信息, 此外, 能够 将网关的功能抽象化, 简化了网关与 Z igbee通信模块之间的交互信息, 为网 关掌握和控制全网信息提供了可能, 从而为 Zigbee手机实现网关功能降低了 开发难度; Z igbee适配器的设计为手机处理器与 Zigbee通信模块的维护提供 了功能子集, 能够为手机处理器和 Z igbee通信模块提供管理保障; Z igbee适 配器中的 Zi gbee芯片通用接口提供的针对不同 Z igbee芯片屏蔽后使用的统一 操作接口, 使得手机处理器的软件部分具有通用性。
实施例五
本实施例提供一种终端处理器, 能够减轻终端的运行负担, 降低开发成 本。
如图 9所示, 所述终端处理器, 包括:
连接驱动模块 91 , 连接适配器 92与 Zigbee通信模块, 用于通过 Zigbee网 络在适配器 92与 Zigbee通信模块之间进行双向数据传输;
适配器 92 , 位于连接驱动模块 91和应用模块 93之间, 用于对连接驱动模 块 91与应用模块 93之间传输的数据进行转换和任务处理;
应用模块 93 , 与适配器 92连接, 用于对经过适配器 92转换和任务处理后 的数据进行应用操作。
本发明实施例终端处理器, 所述终端处理器与 Zigbee通信模块之间通过 连接设备进行有效连接, 将终端处理器与 Zigbee通信模块集成在一起, 组成 终端设备,与现有技术相比,终端设备不需要另外通过外部连线与具有 Zi gbee 功能的设备进行连接, 使得所述终端设备具有较好的集成性和便携性; 所述 Z igbee通信模块能够建立和维护 Z igbee网络, 与现有技术相比, 能够减轻终 端处理器的运行负担, 降低开发和维护成本; 此外, 适配器能够为终端处理 器和 Z i g bee通信模块提供管理保障。
实施例六
如图 10所示, 所述终端处理器, 包括:
连接驱动模块 101 , 连接适配器 102与 Zigbee通信模块, 用于通过 Zigbee 网络在适配器 102与 Z i gbee通信模块之间进行双向数据传输。
适配器 102 , 位于连接驱动模块 101和应用模块 103之间, 用于对连接驱动 模块 101与应用模块 103之间传输的数据进行转换和任务处理。
应用模块 103 , 与适配器 102连接, 用于对经过适配器 102转换和任务处理 后的数据进行应用操作。
其中, 所述适配器 102包括:
转换单元 1021 , 用于将所述数据中与芯片相关的数据转换为与应用相关 其中, 在本实施例中, 所述转换单元 1021为 Zigbee芯片通用接口, 采用 所述 Z i gbee芯片通用接口来实现数据的转换, 所述 Z i gbee芯片通用接口是针 对不同厂商或者不同接口的 Z i gbee芯片所设计的通用接口。
数据服务单元 1022 , 用于处理应用模块与 Zi gbee通信模块进行交互的数 据业务。
管理服务单元 1023 , 用于处理终端处理器自身与 Zigbee通信模块之间的 管理任务。 例如: 当手机出现关机、 没电等特殊状况时, 向 Zigbee通信模块 发送手机关机通知命令; 当 Zigbee通信模块出现特殊状况时, 如: Zi gbee通 信模块无信号、 数据包未发送成功或设备异常要求重启, 向手机处理器通知 异常状态, 所述管理服务单元 1023可以决定向应用模块报告或者自行处理。
其中, 所述终端处理器还包括:
网关抽象模块 104 , 用于将数据在应用模块 103和适配器 102之间转发。 其中, 所述网关抽象模块 104主要是为了将网关功能抽象化, 简化网关与 Zigbee通信模块之间的交互信息。 所述网关抽象模块的功能包括: 本地节点 管理、 远端镜像管理、 网络安全管理和数据通信管理。
本发明实施例提供的终端处理器, 所述终端处理器与 Zigbee通信模块之 间通过连接设备进行有效连接, 将终端处理器与 Zigbee通信模块集成在一起, 组成终端设备, 与现有技术相比, 终端设备不需要另外通过外部连线与具有 Z i gbee功能的设备进行连接, 使得所述终端设备具有较好的集成性和便携性; 所述 Zigbee通信模块能够建立和维护 Zigbee网络, 从而减轻了终端处理器的 运行负担, 降低了开发和维护成本; 网关抽象模块提供了网络发现功能的接 口, 为网关设备获取网络的地址和拓朴信息, 此外, 能够将网关的功能抽象 化, 简化了网关与 Z igbee通信模块之间的交互信息, 为网关掌握和控制全网 信息提供了可能, 从而为 Z i gbee终端设备实现网关功能降低了开发难度; Zigbee适配器的设计为终端处理器与 Z igbee通信模块的维护提供了功能子 集, 能够为终端处理器和 Zigbee通信模块提供管理保障; Zigbee适配器中的 Z i gbee芯片通用接口提供的针对不同 Z i gbee芯片屏蔽后使用的统一操作接 口, 使得终端处理器的软件部分具有通用性。
实施例七
本发明的实施例提供一种终端设备, 能够减轻终端的运行负担, 降低开 发成本。
如图 11所示, 所述终端设备, 包括 Zigbee通信模块 1101、 连接设备 1102 和终端处理器 1103 , 其中,
所述 Zigbee通信模块 1101 ,与连接设备 1102连接,用于建立和维护 Zigbee 网络, 通过所述 Z i gbee网络与连接设备 1102之间进行双向数据传输。
其中, 所述 Z igbee通信模块 1101主要负责完成 Zigbee网络的建立和维护, 以及与应用层之间的数据通信。所述 Zi gbee通信模块包括:基于 IEEE802. 15. 4 的物理层、 基于 IEEE802. 15. 4的 MAC层、 基于 Zigbee的网络层和基于 Zigbee的 应用接口。 所述 Z igbee通信模块通过 RF接收或发送数据, 实现终端设备与外 界的通信。 所述连接设备 1102 , 位于 Z i gbee通信模块 1101和终端处理器 1103之间, 用于 Zigbee通信模块 1101与终端处理器 1103之间的双向数据传输。 其中, 所 述连接设备可以为 SPI、 UART等手机处理器通常具备的接口。
所述终端处理器 1103 , 与连接设备 1102连接, 用于对通过所述连接设备 1102传输的数据进行转换和任务处理, 并对所述经过转换和任务处理后的数 据进行应用操作。
其中, 所述终端处理器 1103包括:
连接驱动模块, 连接适配器与 Zigbee通信模块, 用于通过 Zigbee网络在 适配器与 Zigbee通信模块之间进行双向数据传输;
适配器, 位于连接驱动模块和应用模块之间, 用于对连接驱动模块与应 用模块之间传输的数据进行转换和任务处理;
应用模块, 与适配器连接, 用于对经过适配器转换和任务处理后的数据 进行应用操作。
本发明实施例终端设备, 所述终端处理器与 Zigbee通信模块之间通过连 接设备进行有效连接, 将终端处理器与 Zigbee通信模块集成在一起, 组成终 端设备, 与现有技术相比, 终端设备不需要另外通过外部连线与具有 Zi gbee 功能的设备进行连接, 使得所述终端设备具有较好的集成性和便携性; 所述 Zigbee通信模块能够建立和维护 Z igbee网络, 与现有技术相比, 能够减轻终 端处理器的运行负担, 降低开发和维护成本。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存^ ^己忆体 ( Random Access Memory, RAM )等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。

Claims

权利 要求 书
1、 一种 Z igbee网络中的数据传输方法, 其特征在于, 包括:
连接驱动模块通过连接设备接收 Zigbee通信模块发送的数据;
适配器对所述数据进行转换和任务处理;
应用模块接收所述经过转换和任务处理后的数据, 对其进行应用操作。
2、 根据权利要求 1所述的 Zigbee网络中的数据传输方法, 其特征在于, 在 所述适配器对所述数据进行转换和任务处理之前, 还包括:
连接驱动模块判断所述数据为与网络相关的数据, 将所述数据向适配器发 送。
3、 根据权利要求 1所述的 Zigbee网络中的数据传输方法, 其特征在于, 所 述适配器对所述数据进行转换和任务处理包括:
将所述数据中与芯片相关的数据转换为与应用相关的数据;
根据所述与应用相关的数据的类型, 对所述与应用相关的数据进行数据服 务处理或管理服务处理。
4、 根据权利要求 1所述的 Zigbee网络中的数据传输方法, 其特征在于, 所 述应用模块接收所述经过转换和任务处理后的数据包括:
通过网关抽象模块接收所述经过转换和任务处理后的数据;
或者
直接接收所述经过转换和任务处理后的数据。
5、 一种终端处理器, 其特征在于, 包括:
连接驱动模块, 连接适配器与 Zigbee通信模块, 用于通过 Zigbee网络在适 配器与 Z i gbee通信模块之间进行双向数据传输;
适配器, 位于连接驱动模块和应用模块之间, 用于对连接驱动模块与应用 模块之间传输的数据进行转换和任务处理;
应用模块, 与适配器连接, 用于对经过适配器转换和任务处理后的数据进 行应用操作。
6、 根据权利要求 5所述的终端处理器, 其特征在于, 所述适配器包括:
数据服务单元, 用于处理应用模块与 Z igbee通信模块进行交互的数据业务; 管理服务单元, 用于处理终端处理器自身与 Zigbee通信模块之间的管理任
7、 根据权利要求 5所述的终端处理器, 其特征在于, 还包括:
网关抽象模块, 用于将数据在应用模块和适配器之间转发。
8、 一种终端设备, 其特征在于, 包括 Zigbee通信模块、 连接设备和终端处 理器, 其中,
所述 Zigbee通信模块, 与连接设备连接, 用于建立和维护 Zigbee网络, 通 过所述 Z i gbee网络与连接设备之间进行双向数据传牟
所述连接设备, 位于 Zigbee通信模块和终端处理器之间, 用于 Zigbee通信 模块与终端处理器之间的双向
Figure imgf000019_0001
所述终端处理器, 与连接设备连接, 用于对通过所述连接设备传输的数据 进行转换和任务处理, 并对所述经过转换和任务处理后的数据进行应用操作。
9、 根据权利要求 8所述的终端设备, 其特征在于, 所述终端处理器包括: 连接驱动模块, 连接适配器与 Zigbee通信模块, 用于通过 Zigbee网络在适 配器与 Z i gbee通信模块之间进行双向
Figure imgf000019_0002
适配器, 位于连接驱动模块和应用模块之间, 用于对连接驱动模块与应用 模块之间传输的数据进行转换和任务处理;
应用模块, 与适配器连接, 用于对经过适配器转换和任务处理后的数据进 行应用操作。
PCT/CN2009/071836 2009-05-18 2009-05-18 Zigbee网络中的数据传输方法、终端处理器和终端设备 WO2010133020A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2009/071836 WO2010133020A1 (zh) 2009-05-18 2009-05-18 Zigbee网络中的数据传输方法、终端处理器和终端设备
CN2009801237473A CN102100122A (zh) 2009-05-18 2009-05-18 Zigbee网络中的数据传输方法、终端处理器和终端设备
EP09844773A EP2427026A4 (en) 2009-05-18 2009-05-18 DATA TRANSMISSION PROCESS, DEVICE PROCESSOR AND DEVICE DEVICE IN THE ZIGBEE NETWORK
US13/298,750 US20120057587A1 (en) 2009-05-18 2011-11-17 Data transmission method in a zigbee network, terminal processor, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/071836 WO2010133020A1 (zh) 2009-05-18 2009-05-18 Zigbee网络中的数据传输方法、终端处理器和终端设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/298,750 Continuation US20120057587A1 (en) 2009-05-18 2011-11-17 Data transmission method in a zigbee network, terminal processor, and terminal device

Publications (1)

Publication Number Publication Date
WO2010133020A1 true WO2010133020A1 (zh) 2010-11-25

Family

ID=43125711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071836 WO2010133020A1 (zh) 2009-05-18 2009-05-18 Zigbee网络中的数据传输方法、终端处理器和终端设备

Country Status (4)

Country Link
US (1) US20120057587A1 (zh)
EP (1) EP2427026A4 (zh)
CN (1) CN102100122A (zh)
WO (1) WO2010133020A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933349A (zh) * 2016-06-30 2016-09-07 华南理工大学 用于Zigbee网络的智能终端通用扩展模块
CN107770881A (zh) 2017-10-27 2018-03-06 三星(中国)半导体有限公司 传输数据的方法及装置
CN108183855A (zh) * 2017-12-12 2018-06-19 开放物联(北京)科技发展有限公司 基于物联网的智能家居家庭网关软件架构的设计方法
CN109803026A (zh) * 2019-03-15 2019-05-24 山东普奥智能软件科技有限公司 物联网通信系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316408A (zh) * 2008-07-15 2008-12-03 中兴通讯股份有限公司 一种基于ZigBee技术的手机和远程无线控制方法
CN201207712Y (zh) * 2008-05-15 2009-03-11 比亚迪股份有限公司 一种移动通信终端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957086B2 (en) * 2002-05-01 2005-10-18 Microsoft Corporation Method for wireless capability discovery and protocol negotiation, and wireless device including same
GB0411528D0 (en) * 2004-05-24 2004-06-23 Koninkl Philips Electronics Nv Device abstraction layer for local networking system
JP4491350B2 (ja) * 2005-01-05 2010-06-30 Okiセミコンダクタ株式会社 無線集積回路
JP4457025B2 (ja) * 2005-02-17 2010-04-28 Okiセミコンダクタ株式会社 無線集積回路
TW200814666A (en) * 2006-09-06 2008-03-16 Compal Communications Inc ZigBee network module system
EP1895790B1 (en) * 2006-08-31 2013-10-23 STMicroelectronics International N.V. A communication method between a handset device and IC cards and corresponding system
TW200901729A (en) * 2007-06-20 2009-01-01 Tsui-Yun Jen Handheld intelligent mobile and fixed wireless device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201207712Y (zh) * 2008-05-15 2009-03-11 比亚迪股份有限公司 一种移动通信终端
CN101316408A (zh) * 2008-07-15 2008-12-03 中兴通讯股份有限公司 一种基于ZigBee技术的手机和远程无线控制方法

Also Published As

Publication number Publication date
EP2427026A1 (en) 2012-03-07
CN102100122A (zh) 2011-06-15
US20120057587A1 (en) 2012-03-08
EP2427026A4 (en) 2012-06-20

Similar Documents

Publication Publication Date Title
EP2803244B1 (en) Methods and apparatus for establishing a tunneled direct link setup (tdls) session between devices in a wireless network
US20190223100A1 (en) Method of Operating a Communication Device Operable in an Active Mode and in an Idle Mode, a Computer Program Product for Executing the Method, and the Communication Device Operable in an Active Mode and in an Idle Mode
US7656847B2 (en) Method and apparatus for utilizing bluetooth for WLAN service authentication and discovery
WO2018108033A1 (zh) 一种数据库迁移方法、装置、终端、系统及存储介质
JP5552151B2 (ja) Ethernetベース、ネットワークシステム及びデータ転送方法
JP2004147206A (ja) ネットワーク制御装置、制御方法およびそのプログラム
CN110545318B (zh) 一种依赖于gatt和指示进行适配的数据通信方法及系统
CN103125141A (zh) 移动宽带网络接口的聚合
WO2022143508A1 (zh) 一种近场中传输数据的方法、设备及系统
WO2012088906A1 (zh) 物联网终端互通的方法及系统
US11165708B2 (en) Systems and methods for enhanced autonegotiation
WO2010133020A1 (zh) Zigbee网络中的数据传输方法、终端处理器和终端设备
US20090213824A1 (en) Wireless local area network packet transmitting and receiving system
WO2013185696A2 (zh) 一种数据处理的方法与设备
WO2009049558A1 (fr) Dispositif et système d'accès sans fil
US10666492B1 (en) Method and apparatus of providing emergency communication services
US20230269791A1 (en) Networking Method, Networking System, and Electronic Device
US20230017306A1 (en) Communication method and apparatus
CN115174310B (zh) Pdn拨号及配置方法、系统、装置、设备及存储介质
WO2023273533A1 (zh) 网络管理方法及装置
WO2012155517A1 (zh) 终端扩展装置、系统及方法
JP2001036581A (ja) 通信帯域設定システムと方法
CN112398943A (zh) 信息互通方法、装置、存储介质及电子设备
CN110622470B (zh) 从因特网唤醒网络接入设备的方法
WO2023098484A1 (zh) 基于应用的切片选择方法、网关、终端和存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980123747.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09844773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009844773

Country of ref document: EP