CN108449094A - One kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio - Google Patents

One kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio Download PDF

Info

Publication number
CN108449094A
CN108449094A CN201810259286.3A CN201810259286A CN108449094A CN 108449094 A CN108449094 A CN 108449094A CN 201810259286 A CN201810259286 A CN 201810259286A CN 108449094 A CN108449094 A CN 108449094A
Authority
CN
China
Prior art keywords
zigbee
wifi
modules
signal
mac
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.)
Granted
Application number
CN201810259286.3A
Other languages
Chinese (zh)
Other versions
CN108449094B (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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201810259286.3A priority Critical patent/CN108449094B/en
Publication of CN108449094A publication Critical patent/CN108449094A/en
Application granted granted Critical
Publication of CN108449094B publication Critical patent/CN108449094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/0003Software-defined radio [SDR] systems, i.e. systems wherein components typically implemented in hardware, e.g. filters or modulators/demodulators, are implented using software, e.g. by involving an AD or DA conversion stage such that at least part of the signal processing is performed in the digital domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The present invention relates to one kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio, belongs to wireless communication technology field.This method step:In GNU Radio Software Radio platforms, arrange parameter, then clock recovery module is connected after being made the difference with the signal after demodulation carries out clock recovery then output symbol data, the detection of physical frame is realized in module Packet Sink modules, and decodes entire Medium Access Control (MAC) Protocol Data Unit with the help of packet length field;Complete transformation of the ZigBee mac frames to WiFi mac frames;Packaged data frame is sent into the modulation that WiFi PHY modules carry out signal, is then fed into USRP and sends out.The present invention solves the problems, such as that ZigBee transmission speeds are excessively slow, improves the operability to ZigBee, and transmission range is farther, rate bigger, convenient to be interconnected with user terminal.

Description

One kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio
Technical field
The invention belongs to wireless communication technology fields, are related to one kind and realizing that ZigBee and Wifi is mutually grasped based on GNU Radio Make method.
Background technology
In recent years, the wireless sensor network technology being concerned is quickly grown, meanwhile, wireless control, wireless networking, The vocabulary such as wireless location gradually affect our life, bring us great convenience.Cordless communication network is with modern mutual Networking technology and being widely used for computer technology and be gradually valued by people, unique advantage also contributes to social life Various aspects living.It is with emerging ZigBee wireless sensor networks (Wireless Sensor Networks, WSN) at present The wireless sensor of representative is quickly grown, and becomes a new trend in communication transmission technology field.Its price is low, power consumption The characteristics such as small, self-organization is strong are useful in many occasions.In a particular area by ZigBee node distribution, according to particular demands knot The information closed dissimilar sensor perception, acquire various monitoring objects, then self-organizing form network, pass through the network of composition Transfer information to user monitoring end.Wireless sensor network is effective extension in the human perception external world, be sensor with Wireless communications path between observer, significantly expands detection range.However the transmission speed of ZigBee but becomes Limit a factor of its development.
Meanwhile all kinds of transmission networks are quickly grown, WiFi network (Wireless Fidelity) is with itself special performance It has obtained a little popularizing well, has there is good development prospect.WiFi is the network technology based on IEEE802.11 agreements, Essence is with kind of a commercial verification.The terminal devices such as mobile phone, tablet computer in people's daily life are formally by feat of WiFi technology Internet is simply and easily accessed, advantage is embodied in transmission rate height, operating distance length, is easy to the features such as establishment.WiFi It is the bridge being seamlessly connected between user terminal and internet.From medical field, environmental monitoring to smart home, it is permeated in society The various aspects that can be lived.
In order to solve, ZigBee transmission speeds are excessively slow and raising is to the operability of ZigBee, ZigBee-WiFi networks It is suggested, is mainly used in smart home and Coal Mine Safety Monitoring System.ZigBee-WiFi networks not only have ZigBee nets The advantages of network, and on its basis, the function of WiFi is increased, transmission range is farther, rate bigger, it is often more important that convenient It is interconnected with user terminal.The problem of ZigBee-WiFi network most criticals is how to realize the interoperability of ZigBee and Wi-Fi.
GNU Radio can be referred to as open source software radio again, GNU Radio using software radio thought, Nearly all thing that can be completed by software has all been write as software code in practical communication system, appoints what must be completed by hardware Business leaves general hardware device (being typically USRP) for complete, so the combination of GNU Radio and USRP can complete items Communication task provides the services such as transmission path, receiving path and channel sense for communication system.At present realize ZigBee with The mutual operation method of Wi-Fi is mostly hard-wired, and this method has flexibility poor, is limited to hardware condition, and passes through Software realization can flexibly change any one link according to actual needs.So passing through software realization ZigBee and Wi-Fi The implementation method of interoperability has certain research significance.
Invention content
Realizing that ZigBee and Wifi interoperates based on GNU Radio in view of this, the purpose of the present invention is to provide one kind Method can flexibly change any one link according to actual needs, overcome the ineffective activity of existing hardware implementation method.
In order to achieve the above objectives, the present invention provides the following technical solutions:
One kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio, and this approach includes the following steps:
S1:In GNU Radio Software Radio platforms, the centre frequency (Center Freq) of setting USRP Source For 2.48GHz, sampling rate (Sps) is 4M, and gain type (Gain Type) is Normalized, output type Complex Float 32;After USRP receives ZigBee signals according to this setting, the rxin of IEEE 802.15.4PHY modules is initially entered Port, then signal stream can enter Quadrature Demod modules and be demodulated, then connect a Single Pole It is extensive then to connect clock after being made the difference with the signal after demodulation by IIR Filter and filter data type is set as Float Multiple module (Clock Recovery) carries out clock recovery then output symbol data, is realized in module Packet Sink modules The detection of physical frame, and decode entire Medium Access Control (MAC) Protocol Data Unit (MPDU) with the help of packet length field;Synchronizer Need to detect the lead code 0x00 of 4 bytes, as soon as a complete Medium Access Control (MAC) Protocol Data Unit (MPDU) is found, it is added It is added to a message queue;The ports the rxout completion OQPSK modes for eventually flowing to IEEE 802.15.4PHY modules demodulate;
S2:In signal after the demodulation of OQPSK, signal is sent into IEEE 802.15.4MAC modules and carries out ZigBee The decapsulation of mac frame MPDU simultaneously keeps in data, the module mainly by frame head MHR and postamble MFR remove and incite somebody to action Data load MSDU is temporary;
S3:By previous step keep in data be sent into WiFi MAC modules according to 802.11 standard logarithmics of IEEE according to carry out weight It is newly packaged, is packaged into WiFi mac frames, S2 to S3 completes transformation of the ZigBee mac frames to WiFi mac frames;
S4:Packaged data frame is sent into modulation of the WiFi PHY modules according to 802.11 standards of IEEE progress signal;
S5:The WiFi signal modulated is sent in USRP and is sent out.
The beneficial effects of the present invention are:The present invention solves the problems, such as that ZigBee transmission speeds are excessively slow, improves pair The operability of ZigBee not only has the advantages that ZigBee-network, but also on its basis, increases the function of WiFi, passes It is defeated apart from farther, rate bigger, it is often more important that it is convenient to be interconnected with user terminal.
Description of the drawings
In order to keep the purpose of the present invention, technical solution and advantageous effect clearer, the present invention provides following attached drawing and carries out Explanation:
Fig. 1 is the software realization block diagram of present invention GNU Radio in Software Radio platform;
Fig. 2 is IEEE 802.15.4PHY module details of the present invention;
Fig. 3 is ZigBee and WiFi networking schematic diagrams;
Fig. 4 is schematic diagram of the embodiment of the present invention.
Specific implementation mode
Below in conjunction with attached drawing, the preferred embodiment of the present invention is described in detail.
The present invention can using the very big of software radio GNU Radio on USRP platforms in order to achieve the above-mentioned object of the invention Operability realizes the interoperability of ZigBee and WiFi, as shown in Figure 1, the process of realization includes the following steps,:
Step 1:The present invention is entirely to be completed in GNU Radio Software Radio platforms, in USRP Source Frequency of heart (Center Freq) is set as 2.48GHz, and sampling rate (Sps) is 4M, and gain type (Gain Type) is Normalized, output type are Complex Float 32.USRP according to this setting receive ZigBee signals after, first into Enter the ports rxin (IEEE 802.15.4PHY module details are as shown in Figure 2) of IEEE 802.15.4PHY modules, then signal Stream can enter Quadrature Demod modules and be demodulated, then connect a Single Pole IIR Filter and Filter data type is set as Float, and clock recovery module (Clock is then connected after being made the difference with the signal after demodulation Recovery clock recovery then output symbol data) are carried out, the inspection of physical frame is realized in module Packet Sink modules It surveys, and decodes entire Medium Access Control (MAC) Protocol Data Unit (MPDU) with the help of packet length field.Synchronizer needs to detect 4 The lead code 0x00 of a byte, a complete Medium Access Control (MAC) Protocol Data Unit (MPDU) are found, it would be added to a message Queue.The ports the rxout completion OQPSK modes for eventually flowing to IEEE 802.15.4PHY modules demodulate;As shown in Figure 2.
Step 2:In signal after the demodulation of OQPSK, signal is sent into IEEE 802.15.4MAC modules and is carried out The decapsulation of ZigBee mac frames MPDU simultaneously keeps in data, mainly removes frame head MHR and postamble MFR in the module Fall and data load MSDU is kept in into (IEEE 802.15.4MAC frames are as shown in the table);
Step 3:The data that previous step is kept in be sent into WiFi MAC modules according to IEEE 802.11 standard logarithmics according into Row repacks, is packaged into WiFi mac frames, and Step 2 to Step 3 completes ZigBee mac frames and turns to WiFi mac frames Become (WiFi mac frames are as shown in the table, and the difference of ZigBee mac frames and WiFi mac frames can be found compared with upper table);
Step 4:Packaged data frame is sent into WiFi PHY modules and carries out signal according to 802.11 standards of IEEE Modulation;
Step 5:The WiFi signal modulated is sent in USRP and is sent out;
ZigBee technology is used with low rate, short distance, low-power consumption, self-organization are strong, wide coverage occasion, is applicable in In the acquisition of the small data at live end;WiFi is then to have the characteristics that remote, high-speed network technology, since it can facilitate Access Internet network the characteristics of and be concerned.ZigBee is combined by the present invention with WiFi network, by software without Line level platform GNU Radio realize the interoperability of ZigBee and WiFi, as shown in Figure 3.
The main reason for ZigBee can be widely used is its powerful networking capability.ZigBee communication includes three at present Kind communication mode, i.e. broadcast, multicast and unicast.Each node has specific distribution address, and router node and terminal node can By the address for setting sending object, to be transferred in the coordinator of formulation.Broadcast is to work as terminal node to transmission data around When, all node devices in the network can receive data, but this mode can cause the congestion of network, and should limit makes With.Multicast is to be grouped nodes, and the identical equipment of group number is communicated, and such packet mode is conducive to the pipe of network Reason is suitable for complicated catenet.Unicast communication modes are also known as program request, the communication being only limitted in network between particular device. Communication connection is established between 2 points, data cannot be received by other node.
The present embodiment uses the ZigBee node of this Electronic Science and Technology Co., Ltd. of Xiamen City hilllock using the communication mode of broadcast CC2530 coordinates the USRP N210 and its daughter board UBX-40 to complete the interoperability of ZigBee and WiFi, as shown in Figure 4.
ZigBee node CC2530 transmission datas frame is to USRP1 and computer PC1 (personal computer), USRP1 handles Signal after frequency conversion is sent to the Software Radio platform GNU Radio of PC1, and module configuration is as follows:The center of USRP Source Frequency (Center Freq) is set as 2.48GHz, and sampling rate (Sps) is 4M, and gain type (Gain Type) is Normalized, output type are Complex Float 32;Then signal stream can enter Quadrature Demod modules It is demodulated, then connects a Single Pole IIR Filter and filter data type is set as Float, then Clock recovery module (ClockRecovery) is connected after being made the difference with the signal after demodulation carries out clock recovery then output symbol Data realize the detection of physical frame in module Packet Sink modules, and decode with the help of packet length field whole A Medium Access Control (MAC) Protocol Data Unit (MPDU);In signal after the demodulation of OQPSK, signal is sent into IEEE 802.15.4MAC moulds Block carries out the decapsulation of ZigBee mac frames MPDU and keeps in data, in the module mainly by frame head MHR and frame Tail MFR removes and keeps in data load MSDU.Then temporal data is added WiFi again according to 802.11 standards of IEEE again Frame head postamble, physics modulation can be carried out in WiFi PHY modules by then Resealing the data of packing, then passed through USRP1 and sent Into USRP2 and PC2, USRP2 and PC2 is equivalent to a WiFi receiving terminal at this time, is responsible for solving the signal that USRP1 is sent It adjusts and decapsulates.The interoperability of ZigBee and WiFi are completed to here.
Finally illustrate, preferred embodiment above is merely illustrative of the technical solution of the present invention and unrestricted, although logical It crosses above preferred embodiment the present invention is described in detail, however, those skilled in the art should understand that, can be Various changes are made to it in form and in details, without departing from claims of the present invention limited range.

Claims (1)

1. one kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio, it is characterised in that:This method includes following step Suddenly:
S1:Use open source software radio GNU Radio, setting general software radio peripheral hardware USRP (Universal Software Radio Peripheral) Source centre frequency (Center Freq) be 2.48GHz, sampling rate (Sps) it is 4M, gain type (Gain Type) is Normalized, and output type is Complex Float 32;USRP according to After this setting receives ZigBee signals, the ports rxin of IEEE 802.15.4PHY modules, then signal stream meeting are initially entered It enters Quadrature Demod modules to be demodulated, then connect a Single Pole IIR Filter and filters Device data type is set as Float, and clock recovery module (Clock is then connected after being made the difference with the signal after demodulation Recovery clock recovery then output symbol data) are carried out, the inspection of physical frame is realized in module Packet Sink modules It surveys, and decodes entire Medium Access Control (MAC) Protocol Data Unit (MPDU) with the help of packet length field;Synchronizer needs to detect 4 The lead code 0x00 of a byte, a complete Medium Access Control (MAC) Protocol Data Unit (MPDU) are found, it would be added to a message Queue;The ports the rxout completion OQPSK modes for eventually flowing to IEEE802.15.4PHY modules demodulate;
S2:In signal after the demodulation of OQPSK, signal is sent into IEEE 802.15.4MAC modules and carries out ZigBee mac frames The decapsulation of MPDU simultaneously keeps in data, mainly removes frame head MHR and postamble MFR in the module and carries data Lotus MSDU is temporary;
S3:The data that previous step is kept in are sent into WiFi MAC modules according to 802.11 standard logarithmics of IEEE according to being beaten again It wraps, be packaged into WiFi mac frames, S2 to S3 completes transformation of the ZigBee mac frames to WiFi mac frames;
S4:Packaged data frame is sent into modulation of the WiFi PHY modules according to 802.11 standards of IEEE progress signal;
S5:The WiFi signal modulated is sent in USRP and is sent out.
CN201810259286.3A 2018-03-27 2018-03-27 Method for realizing ZigBee and Wifi interoperation based on GNU Radio Active CN108449094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810259286.3A CN108449094B (en) 2018-03-27 2018-03-27 Method for realizing ZigBee and Wifi interoperation based on GNU Radio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810259286.3A CN108449094B (en) 2018-03-27 2018-03-27 Method for realizing ZigBee and Wifi interoperation based on GNU Radio

Publications (2)

Publication Number Publication Date
CN108449094A true CN108449094A (en) 2018-08-24
CN108449094B CN108449094B (en) 2021-03-16

Family

ID=63196928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810259286.3A Active CN108449094B (en) 2018-03-27 2018-03-27 Method for realizing ZigBee and Wifi interoperation based on GNU Radio

Country Status (1)

Country Link
CN (1) CN108449094B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109548046A (en) * 2018-11-16 2019-03-29 清华大学 A kind of channel self-adapting is across protocol communication system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349325A (en) * 2000-10-12 2002-05-15 深圳市中兴通讯股份有限公司 Multiple carrier software radio transceiver and its intelligent antenna performance improving method
US20040246993A1 (en) * 2003-06-04 2004-12-09 Samsung Electronics Co., Ltd. Method and apparatus for transmitting and receiving multi-protocol data frames
CN102014036A (en) * 2010-12-13 2011-04-13 南京大学 Software wireless technology-based heterogeneous network experimental device
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core
CN105491690A (en) * 2015-11-20 2016-04-13 青岛中科软件股份有限公司 Embedded wireless intelligent home gateway based on ARM9
CN105704125A (en) * 2016-01-15 2016-06-22 王新珩 Multiprotocol interoperation communication device and method
CN107182135A (en) * 2017-06-14 2017-09-19 合肥赛度电子科技有限公司 A kind of low-power Wifi and Zigbee SIP modules

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349325A (en) * 2000-10-12 2002-05-15 深圳市中兴通讯股份有限公司 Multiple carrier software radio transceiver and its intelligent antenna performance improving method
US20040246993A1 (en) * 2003-06-04 2004-12-09 Samsung Electronics Co., Ltd. Method and apparatus for transmitting and receiving multi-protocol data frames
CN102014036A (en) * 2010-12-13 2011-04-13 南京大学 Software wireless technology-based heterogeneous network experimental device
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core
CN105491690A (en) * 2015-11-20 2016-04-13 青岛中科软件股份有限公司 Embedded wireless intelligent home gateway based on ARM9
CN105704125A (en) * 2016-01-15 2016-06-22 王新珩 Multiprotocol interoperation communication device and method
CN107182135A (en) * 2017-06-14 2017-09-19 合肥赛度电子科技有限公司 A kind of low-power Wifi and Zigbee SIP modules

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张成凯: ""不同中继行为下对物理层通信系统性能的分析"", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109548046A (en) * 2018-11-16 2019-03-29 清华大学 A kind of channel self-adapting is across protocol communication system and method
CN109548046B (en) * 2018-11-16 2020-12-04 清华大学 Channel self-adaptive cross-protocol communication system and method

Also Published As

Publication number Publication date
CN108449094B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN104067587B (en) Method and apparatus for device configuration file in wireless network
CN112565351A (en) Mobile meter reading method based on WiSUN protocol
CN103916214B (en) Radio communication device and the method performed by radio communication device
Ni et al. Implementation of wireless gateway for smart home
CN101834913A (en) Wireless sensor network, mobile terminal and interconnection method and system thereof
CN100566274C (en) The Wireless LAN access device that is used for remote content monitoring
CN107071994A (en) Intelligent lamp system and its network-building method
CN202957989U (en) Crops growth environment monitoring device based on Zigbee
CN214592002U (en) 5G intelligent Internet of things gateway
Peng et al. A low energy consumption WSN node
CN108449094A (en) One kind realizing ZigBee and Wifi mutual operation methods based on GNU Radio
CN104348523A (en) Data transmission method for wireless sensor node
WO2018045829A1 (en) Wireless local area network communications method, receiver, access point and station
CN206775539U (en) Multilink unmanned plane population system based on Internet of Things
CN204759722U (en) Local communication system and concentrated system of checking meter that micropower is wireless
CN201577088U (en) Short wave network control terminal
Bomgni et al. Multihop uplink communication approach based on layer clustering in lora networks for emerging iot applications
CN203786547U (en) Intelligent home system based on wireless sensor
CN207560033U (en) A kind of LoRa communication terminals being combined based on Mesh types network and Star Network
Watanabe et al. An energy-efficient architecture of wireless home network based on MAC broadcast and transmission power control
Hua et al. Smart home based on the Zigbee wireless
CN109451597B (en) WiFi amplifier automatic networking system and method thereof
Zhang et al. A Study on an Energy Conservation and Interconnection Scheme between WSN and Internet Based on the 6LoWPAN
CN201657338U (en) Ethernet wireless gateway based on Zigbee technology
Li et al. Research on robot network communication system in underground coal mine based on ZigBee

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