CN109474969A - Mixed communication method and system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack - Google Patents
Mixed communication method and system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack Download PDFInfo
- Publication number
- CN109474969A CN109474969A CN201811552624.9A CN201811552624A CN109474969A CN 109474969 A CN109474969 A CN 109474969A CN 201811552624 A CN201811552624 A CN 201811552624A CN 109474969 A CN109474969 A CN 109474969A
- Authority
- CN
- China
- Prior art keywords
- ble
- equipment
- protocol stack
- data
- transmission
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1215—Wireless traffic scheduling for collaboration of different radio technologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of mixed communication method and system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, it is communicated when there is low power loss communication requirement using IEEE 802.15.4, low-power consumption bluetooth is switched to when there is big data quantity communicating requirement to be communicated, sensing equipment default is in 802.15.4 transmission mode, listens to the transmission for whether having blue-teeth data by being periodically switched to low-power consumption bluetooth from IEEE 802.15.4.When discovery has Bluetooth data transfer, sensing equipment is maintained at BLE transmission mode, establishes connection with bluetooth equipment and transmits data, after being transmitted, switches back immediately to 802.15.4 transmission mode.The invention proposes new dual stack mixed communication methods, on limited central processing unit and storage resource, it is integrated with two kinds of protocol stacks of IEEE802.15.4 and low-power consumption bluetooth and may be implemented to stablize switching, the advantages of having both low power loss communication and high rate communication, transmission rate is promoted to highest 1Mbps, the reliable transmission for realizing big data quantity in IEEE 802.15.4 equipment, significantly improves communication bandwidth, stability and energy consumption characteristics.
Description
Technical field
The present invention relates to wireless communication technology fields, specifically a kind of blue based on IEEE 802.15.4 and low-power consumption
The mixed communication method and system of tooth dual stack.
Background technique
With the rapid development of communication technology, there has been proposed the demand communicated within the scope of several meters near people itself,
There have been personal area network (personal area network, PAN) and wireless personal domain networks in this way
The concept of (wireless personal area network, WPAN).WPAN network is that the equipment in short range is established
It is wirelessly connected, the multiple equipment within the scope of several meters is wirelessly linked together, is in communication with each other them even
Access LAN or Internet.
IEEE 802.15.4 brief introduction
IEEE 802.15.4 is the basis of the specifications such as ZigBee, WirelessHART, MiWi, and it is wireless to describe low rate
The physical layer and media access control protocol of personal area network belong to 802.15 working group of IEEE.In 868/915M, 2.4GHz
ISM band on, message transmission rate reaches as high as 250kbps.Its low-power consumption, inexpensive advantage obtain it in many fields
It obtained and was widely applied.
IEEE 802.15.4 network, which refers to, to be used same wireless channel in a POS and is marked by IEEE 802.15.4
The set also known as LR-WPAN network for one group of equipment that standard is in communication with each other.In this network, communicated according to possessed by equipment
Ability can be divided into full-function device (full-function device, FFD) and reduced function device (reduced-
function device,RFD).It can be communicated between FFD equipment and between FFD equipment and RFD equipment.RFD equipment it
Between be unable to direct communication, can only be communicated with FFD equipment, or data are forwarded by a FFD equipment outward.This and RFD phase
Associated FFD equipment is known as the coordinator (coordinator) of the RFD.RFD equipment is mainly used for simply controlling application, such as
The switch of lamp, passive infrared sensor etc., the data volume of transmission is less, occupies seldom to transfer resource and the communication resource,
RFD equipment can be using the implementation being dirt cheap in this way.
802.15.4 protocol stack based on real time operating system is by application layer, transport layer, network layer, 6LoWPAN layers, MAC
Layer, RDC layers and physical layer are constituted, as shown in Figure 1.
Application layer is located at top, and function is " processing ", can acquire data to sensing layer and be calculated, handled and known
Know and excavate, to realize the real-time control to physical world, accurate management and science decision.
It is that may be implemented to sense exclusively for the Routing Protocol of sensor network design that low-power consumption, which damages Routing Protocol (RPL),
Ad hoc network between device node.The data packet that each node transmission is exclusively used in networking passes through exquisiteness for the communication between node
Algorithm design determine optimal path.In addition when network changes or collapses, there are corresponding local route repair and global reparation
Mechanism.
Transmission control protocol/User Datagram Protocol (TCP/UDP) realizes transport network layer association as conventional internet
Discuss TCP and udp protocol.
Network-control message protocol (ICMP): RPL layers can be plus the packet header of ICMPv6 agreement when sending information.
Internet protocol the 6th edition (IPv6): using for reference the IP protocol stack of conventional internet, realizes a light-duty IP agreement
Stack only takes up the memory of several kB, is highly suitable for running on the embedded microcontroller of memory-limited.Simultaneously with realizing IPV6
Location framework, as the address IPV4 is fewer and fewer, IPV6 is following trend.
The function of low-consumption wireless personal area network agreement (6LoWPAN) based on IPv6 be to the head of network layer data packet into
Row compression reduces transmitted data amount, and carries out subpackage to the data of network layer.Since 802.15.4 transmission mode bandwidth has
Limit, the unstability of wireless transmission, transmitted data amount is the smaller the better, so the head too long to network layer data packet is needed to carry out
Compression.802.15.4 the maximum number of byte transmitted every time is 127, when data volume is greater than 127, needs to carry out subpackage.
Media access control (MAC) layer uses CSMA/CA agreement, realizes csma and conflict avoidance, when
Wireless data clash or due to air interference can not normal transmission to destination node, guarantee that data pass using retransmission mechanism
Defeated stability.
Wireless periodicity suspend mode (RDC): realizing the suspend mode of node periodicity, guarantees low power operation.
Physical layer (PHY) is using low-power consumption, the wireless standard IEEE 802.15.4 of low rate.
Low-power consumption bluetooth brief introduction
Low-power consumption bluetooth (Bluetooth Low Energy): being a kind of wireless technology standard, it can be achieved that fixed equipment, shifting
(UHF using the ISM band of 2.4~2.485GHz is wireless for short-range data exchange between dynamic equipment and building personal area network
Electric wave).
BLE frequency range is 2400MHz~2480MHz, channel width 2MHz;Using 40 wireless channels, wherein 3
Broadcast channel, 37 data channels;Using adaptive frequency hopping (Adaptive Frequency Hopping, AFH), guarantee BLE
Data can be still transmitted when in face of severe jamming.
The architecture of BLE protocol stack is as shown in Figure 2:
Physical layer (Physical Layer, PHY): it is the GFSK radio frequency of 1Mbps adaptive frequency hopping, works in and exempt from licensing
2.4GHz ISM (industry, science with medical treatment) frequency range.
Link layer (Link Layer, LL): radio frequency state for controlling devices, equipment will be in one of five kinds of states:
It waits, broadcast, scanning, initialization, connection.Broadcasting equipment, which does not need to establish connection, can send data, and scanning device connects
Receive the data that broadcasting equipment is sent;The equipment initiated the connection responds broadcasting equipment by sending connection request, if broadcast is set
It is standby to receive connection request, then broadcasting equipment and the equipment initiated the connection will enter connection status.The equipment initiated the connection claims
For host, the equipment for receiving connection request is known as slave.
Host Control Interface layer (Host Controller Interface, HCI): it is provided between host and controller
Standard communication interface.This layer can be software or hardware interface, such as UART, SPI, USB.
Logic link control and self-adapted protocol layer (Logical Link Control and Adaptation
Protocol, L2CAP): data packing service is provided for upper layer, Point-to-Point Data in logic is allowed to communicate.
Safety management layer (Security Manager, SM): defining pairing and the code key method of salary distribution, and for protocol stack its
Secure connection and data exchange between his layer and another equipment provide service.
Attribute protocol layer (Attribute protocol, ATT): allow equipment specific to one piece of another equipment displaying
Data, referred to as " attribute ".In ATT environment, the equipment for showing " attribute " is known as server, and paired equipment is known as
Client.Link layer state (host and slave) and the ATT role of equipment are independent from each other.Such as: host equipment both can be with
It is ATT server, is also possible to ATT client;Slave devices are also possible to ATT client either ATT server.
General-purpose attribute configuration file layer (Generic Attribute profile, GATT): the clothes using ATT are defined
Business frame.The structure of GATT specified configuration file (profile).In BLE, all numbers used by profile or service
It is known as " characteristic " according to block, two all data communications established between the equipment of connection are handled by GATT subprogram.
Data communication between the GATT layers of bluetooth equipment for having connected, application program and profile directly use GATT layers.
General-purpose accessing configuration file layer (Generic Access Profile, GAP): be responsible for processing equipment access module and
Program, including equipment find, establish connection, terminate connection, initialization security feature and device configuration.
IEEE 802.15.4 is compatible with the dual stack of bluetooth
Patent of invention (201610095148.3) discloses a kind of Zigbee and based on the communication gate between rate Bluetooth,
Smooth communication between two kinds of equipment of bluetooth and Zigbee can be achieved.But existing deficiency is, the bluetooth function based on rate
Consumption is higher, is not suitable for being applied on portable equipment and sensing node.
Patent of invention (201210076976.8) discloses a kind of radio network gateway data record for mixing Zigbee and bluetooth
Instrument, Zigbee module, low-power consumption bluetooth module, memory module, control module is integrated within one device, in Zigbee network
It realizes and communicates between blueteeth network.But existing deficiency is, additional bluetooth module is increased in Zigbee equipment, increases
Equipment cost is added, and the transmission of low volume data can only be carried out.
Utility model patent (201220622245.4) discloses a kind of Zigbee radio transmitting device based on bluetooth, knot
Bluetooth and Zigbee radio-frequency technique are closed, realizes bluetooth equipment to the remote networking of lower end control equipment to be controlled, and to be controlled to lower end
The control of control equipment and data are transmitted.But existing deficiency is, additional bluetooth module is increased in Zigbee equipment, increases
Equipment cost is added, and the transmission of low volume data can only be carried out.
Summary of the invention
The technical problem to be solved by the present invention is to lack in the prior art by 802.15.4 protocol stack and low-power consumption bluetooth
Protocol stack is integrated on one processor, and can be realized and select the mixed communication method of protocol stack transmission according to data volume and be
System.
The present invention solves above-mentioned technical problem by the following technical programs:
A kind of mixed communication method based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, sets applied to sensing
It is standby;It is described the following steps are included: sensing equipment default be in 802.15.4 transmission mode, by periodically from IEEE
802.15.4 it is switched to low-power consumption bluetooth listens to the transmission for whether having blue-teeth data;When discovery has Bluetooth data transfer, sensing
Equipment is maintained at BLE transmission mode, establishes connection with bluetooth equipment and transmits data, after being transmitted, switches back immediately to
802.15.4 transmission mode.
Preferably, specifically includes the following steps:
Step 1: equipment default operates in 802.15.4 transmission mode, reduces power consumption using dormancy awakening mechanism;
Step 2: in the wake-up phase, equipment listens to channel, if there is 802.15.4 data are transmitted, then maintains 802.15.4 mould
Formula carries out data transmission, until this is transmitted;
Step 3: in the phase of wake-up, after 802.15.4 data are transmitted, equipment saves 802.15.4 network parameter, later
Switch to BLE protocol stack;If handover failure enters step 7;
After step 4:BLE protocol stack switches successfully, if sending BLE broadcast from equipment as BLE;If being set as BLE master
It is standby, listen to BLE broadcast;
Step 5: if main equipment receives BLE broadcast or scanning response, or receiving scanning after sending BLE broadcast from equipment
Request or connection request, then enter step 6;Otherwise, 7 are entered step, equipment is returned according to preset protocol stack switching cycle
802.15.4 transmission mode;
Step 6: equipment keeps BLE transmission mode, establishes bluetooth connection;If bluetooth connection fails, 7 are entered step;It is no
Then, under BLE transmission mode, big data quantity transmission is completed;It in transmission process, is interrupted if there is bluetooth connection, then enters step
Rapid 7;
Step 7: terminating BLE transmission mode, equipment switches back into 802.15.4 transmission mode;
After step 8:802.15.4 protocol stack switches successfully, 802.15.4 network parameter is read from memory, rejoins original
There is 802.15.4 wireless sensor network;Otherwise, return step 2.
Preferably, the switching cycle of dual stack, 802.15.4 transmission mode therein and BLE transmission mode listen to letter
Road time ratio is 1:1.
Preferably, the switching method of protocol stack switch are as follows:
Step 1. first carries out 802.15.4 protocol stack initialization, applies for memory ram, configures radio-frequency module register, starting
802.15.4 protocol stack;
Step 2. equipment listens to 802.15.4 channel, judges whether to listen to 802.15.4 data packet, if so, entering step
3, otherwise, enter step 4;
The transmission of step 3.802.15.4 data;
Step 4.802.15.4 time of intercept terminate or 802.15.4 the data transfer ends after, 802.15.4 protocol stack knot
Beam discharges memory ram;
The initialization of step 5.BLE protocol stack, applies for memory ram, configures radio-frequency module register, starts new protocol stack;
Step 6. equipment is listened to BLE channel or is sent in BLE channel and broadcasts, and the transmission of BLE data packet is judged whether there is, if
It is to enter step 7, otherwise, enters step 8;
The transmission of step 7.BLE data;
Step 8.BLE time of intercept terminate or BLE the data transfer ends after, BLE protocol stack terminates, and enters step 1.
The present invention also provides a kind of hybrid communication system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack,
Applied to above-mentioned method;Including processor, it is integrated with 802.15.4 agreement, low-power consumption bluetooth agreement, agreement on a processor
Stack switching module;The processor is communicated with protocol stack switching module realizes 802.15.4 transmission mode and BLE transmission mode point
It is not communicated to connect with protocol stack switching module;
The protocol stack switching module has preset protocol stack switching cycle, and default is in 802.15.4 protocol stack;Agreement
Stack switching module, according to switching cycle, discharges the RAM of former protocol stack in the case where Current protocol mode stack does not have data transmission
Then memory starts as new protocol stack application memory ram, and by configuring radio-frequency module register, start new protocol stack, switch
Process successfully completes.
The present invention has the advantages that
The invention proposes new dual stack mixed communication method, technological core is to provide in processor and memory
Two kinds of protocol stacks of IEEE 802.15.4 and low-power consumption bluetooth are efficiently integrated on its limited embedded type sensor node of source electrode, and
Realize flexible, stable switching between the two, thus except the low power consumption characteristic for making the communication technology have IEEE 801.15.4,
The advantages of having both high rate communication, transmission rate is promoted to highest 1Mbps, it can be achieved that big data in IEEE 802.15.4 equipment
The reliable transmission of amount significantly improves communication bandwidth, stability and energy consumption characteristics.
It is bis- that mixed communication method provided by the invention can complete IEEE 802.15.4 and BLE under limited RF hardware
The integrated and switching of protocol stack, relative to traditional equipment, integrated level is high, small in size, saves equipment cost.
Detailed description of the invention
Fig. 1 is IEEE 802.15.4 appliance protocol stack system structure in background technique;
Fig. 2 is BLE appliance protocol stack system structure in background technique;
Fig. 3 is BLE main equipment and the connection flow chart from equipment in the embodiment of the present invention 1;
Fig. 4 is the mixed communication method schematic diagram of equipment in the embodiment of the present invention 1;
Fig. 5 is dual stack switching flow figure in the embodiment of the present invention 1;
Fig. 6 is the functional schematic of dual stack switch in the embodiment of the present invention 1;
Specific embodiment
The effect of to make to structure feature of the invention and being reached, has a better understanding and awareness, to preferable
Examples and drawings cooperation detailed description, is described as follows:
The hardware platform of this implementation uses double-core chip, includes Cortex-M3 and Cortex-M0 processor;It is integrated with nothing
Line radio-frequency module, and individually managed by Cortex-M0 processor;Support 2.4GHz frequency range wireless transmission.
Embodiment 1
As shown in Figure 3 and Figure 4, a kind of mixed communication side based on IEEE 802.15.4 and low-power consumption bluetooth dual stack
Method is as follows:
Step 1: equipment default operates in 802.15.4 transmission mode, reduces power consumption using dormancy awakening mechanism;
Step 2: in the wake-up phase, equipment listens to channel, if receiving 802.15.4 data, or has 802.15.4 data
It needs to send, then maintains 802.15.4 mode and carry out data transmission, be single packet or more packets according to data are received, judging to receive is
No completion;It is single packet or wraps more and combine to send status register according to data are sent, judges to send and whether complete;
Step 3: in the phase of wake-up, after 802.15.4 data are transmitted, equipment saves 802.15.4 protocol stack and network
Parameter;System calls BLE protocol stack initialization interface, completes RF controller register configuration, selects BLE protocol mode;It completes
BLE is configured from device broadcasts parameter or main equipment broadcast scan and Connecting quantity, executes the switching of BLE protocol stack;If switching
Failure, then enter step 7;
After step 4:BLE protocol stack switches successfully, if sending BLE broadcast as from equipment;If being listened to as main equipment
BLE broadcast;
Step 5: if main equipment receives BLE broadcast or scanning response, or receiving scanning after sending BLE broadcast from equipment
Request or connection request, then enter step 6;Otherwise, 7 are entered step, equipment is returned according to preset protocol stack switching cycle
802.15.4 transmission mode;
Step 6: equipment keeps BLE transmission mode, establishes bluetooth connection;If bluetooth connection fails, 7 are entered step;It is no
Then, under BLE transmission mode, big data quantity transmission is completed;It in transmission process, is interrupted if there is bluetooth connection, then enters step
Rapid 7;
Step 7: main equipment initiates to terminate connection request from equipment, terminates BLE transmission mode;System is read from memory
802.15.4 protocol stack parameter calls 802.15.4 protocol stack initialization interface, completes RF controller register configuration, selection
802.15.4 protocol mode;And the parameters such as dormancy awakening that protocol stack is arranged, equipment switch back into 802.15.4 transmission mode;
After step 8:802.15.4 protocol stack switches successfully, 802.15.4 network parameter is read from memory, rejoins original
There is 802.15.4 wireless sensor network;Otherwise, return step 2;
The switching cycle for the dual stack that the present embodiment is related to, 802.15.4 transmission mode therein and BLE transmission mode
Listen to channel time ratio be 1:1.
From the perspective of equipment, for BLE main equipment, mixed communication method is as follows:
Step 1: equipment default operates in 802.15.4 transmission mode, defers to the sleep-wake cycle of 802.15.4 equipment;
Step 2: in the wake-up phase, equipment listens to channel, if receiving 802.15.4 data, or has 802.15.4 data
It needs to send, then maintains 802.15.4 mode and carry out data transmission, be single packet or more packets according to data are received, judging to receive is
No completion;It is single packet or wraps more and combine to send status register according to data are sent, judges to send and whether complete;
Step 3: within the wake-up phase, equipment is after 802.15.4 time of intercept, or completes the transmission of 802.15.4 data
Afterwards, 802.15.4 protocol stack and network parameter are saved;System calls BLE protocol stack initialization interface, completes the deposit of RF controller
Device configuration, selects BLE protocol mode;BLE is completed to match from device broadcasts parameter or main equipment broadcast scan and Connecting quantity
It sets, executes the switching of BLE transmission mode, become BLE main equipment;If handover failure enters step 6;
After step 4:BLE protocol stack switches successfully, main equipment listens to BLE broadcast, broadcasts if discovery has to send from equipment,
Enter step 5;Otherwise, 5 are entered step;
Step 5: main equipment listens to the broadcast sent from equipment, replys scan request to from equipment, keeps BLE to pass later
Defeated mode establishes connection with from equipment, transmits data;In transmission process, is interrupted if there is bluetooth connection, then enter step 6;
Step 6: main equipment initiates to terminate connection request from equipment, terminates BLE transmission mode;System is read from memory
802.15.4 protocol stack parameter calls 802.15.4 protocol stack initialization interface, completes RF controller register configuration, selection
802.15.4 protocol mode;And the parameters such as dormancy awakening that protocol stack is arranged, main equipment switch back into 802.15.4 transmission mode;
After step 7:802.15.4 protocol stack switches successfully, 802.15.4 network parameter is read from memory, rejoins original
There is 802.15.4 wireless sensor network.
For BLE from equipment, mixed communication method is as follows:
Step 1: operating in 802.15.4 transmission mode from equipment default, defer to the sleep-wake cycle of 802.15.4 equipment;
Step 2: in the wake-up phase, equipment listens to channel, if being connected to 802.15.4 data, or has 802.15.4 data
It needs to send, then maintains 802.15.4 mode and carry out data transmission, be single packet or more packets according to data are received, judging to receive is
No completion;It is single packet or wraps more and combine to send status register according to data are sent, judges to send and whether complete;
Step 3: within the wake-up phase, equipment is after 802.15.4 time of intercept, or completes the transmission of 802.15.4 data
Afterwards, 802.15.4 protocol stack and network parameter are saved;System calls BLE protocol stack initialization interface, completes the deposit of RF controller
Device configuration, selects BLE protocol mode;BLE is completed to match from device broadcasts parameter or main equipment broadcast scan and Connecting quantity
It sets, executes the switching of BLE transmission mode, become BLE from equipment;
After step 4:BLE protocol stack switches successfully, BLE broadcast is sent from equipment, if during this BLE transmission, discovery
The scan request or connection request for having main equipment to reply, then enter step 4;Otherwise, 5 are entered step;
Step 5: listening to the scan request or connection request that main equipment is sent from equipment, BLE transmission mode is kept, with master
Equipment establishes connection, transmits data;In transmission process, is interrupted if there is bluetooth connection, then enter step 6;
Step 6: main equipment initiates to terminate connection request from equipment, terminates BLE transmission mode;System is read from memory
802.15.4 protocol stack parameter calls 802.15.4 protocol stack initialization interface, completes RF controller register configuration, selection
802.15.4 protocol mode;And the parameters such as dormancy awakening that protocol stack is set, 802.15.4 transmission mode is switched back into from equipment;
After step 7:802.15.4 protocol stack switches successfully, 802.15.4 network parameter is read from memory, rejoins original
There is 802.15.4 wireless sensor network.
As shown in figure 5, the wherein switching method of protocol stack switch are as follows:
Step 1. first carries out 802.15.4 protocol stack initialization, applies for memory ram, configures radio-frequency module register, starting
802.15.4 protocol stack;
Step 2. equipment listens to 802.15.4 channel, judges whether to listen to 802.15.4 data packet, if so, entering step
3, otherwise, enter step 4;
The transmission of step 3.802.15.4 data;
Step 4.802.15.4 time of intercept terminate or 802.15.4 the data transfer ends after, 802.15.4 protocol stack knot
Beam discharges memory ram;
The initialization of step 5.BLE protocol stack, applies for memory ram, configures radio-frequency module register, starts new protocol stack;
Step 6. equipment is listened to BLE channel or is sent in BLE channel and broadcasts, and the transmission of BLE data packet is judged whether there is, if
It is to enter step 7, otherwise, enters step 8;
The transmission of step 7.BLE data;
Step 8.BLE time of intercept terminate or BLE the data transfer ends after, BLE protocol stack terminates, and enters step 1.
Embodiment 2
A kind of hybrid communication system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, equipment application is in upper
The method for stating embodiment 1;Including processor, it is integrated with 802.15.4 agreement, low-power consumption bluetooth agreement, protocol stack on a processor
Switching module;The processor is communicated with protocol stack switching module realizes 802.15.4 transmission mode and BLE transmission mode;
Protocol stack switching module is preset with protocol stack switching cycle, and default is in 802.15.4 protocol stack;Protocol stack switching
Module, according to switching cycle, discharges the memory ram of former protocol stack in the case where Current protocol mode stack does not have data transmission,
Then start to start new protocol stack, handoff procedure for new protocol stack application memory ram, and by configuring radio-frequency module register
It successfully completes.
Embodiment 3
A kind of hybrid communication system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, equipment application is in upper
The method for stating embodiment 1, in the present embodiment, the wakeup time of 802.15.4 equipment are set as 125 milliseconds, dormancy time setting
It is 875 milliseconds;802.15.4 it is about 8 milliseconds that the time of a data packet is transmitted in agreement, and low-power consumption bluetooth can be about 3
Connection is established in millisecond, is sent data and is disconnected;802.15.4 the switching time of protocol stack and BLE protocol stack is in microsecond
In the time range of grade;Therefore, it can be achieved that being switched during 802.15.4 at least once wakes up by 802.15.4 protocol stack
This set of complete protocol stack switching of 802.15.4 protocol stack and mixed communication are switched back into BLE protocol stack, then by BLE protocol stack
Process.
Working principle:
The present embodiment proposes new dual stack mixed communication method, collects respectively on the processor of wireless sensor device
At having 802.15.4 agreement, low-power consumption bluetooth agreement, protocol stack switching module;IEEE is used when there is low power loss communication requirement
802.15.4 it is communicated, low-power consumption bluetooth progress is flexibly switched to when having big data quantity communicating requirement and energy consumption less-restrictive
Communication, sensing equipment default is in 802.15.4 transmission mode, by being periodically switched to low-power consumption from IEEE 802.15.4
Bluetooth listens to the transmission for whether having blue-teeth data.When discovery has Bluetooth data transfer, sensing equipment is maintained at BLE transmission mould
Formula establishes connection with bluetooth equipment and transmits data, after being transmitted, switches back immediately to 802.15.4 transmission mode.
Bluetooth technology with low power consumption has been used, using BLE protocol stack, there is stronger Scalability, such as specific
Functional requirement, ATT attribute protocol complexities can be greatly reduced, and safety management function also can simplify process even cancellation and add
Close function, logical link control and adaptation protocol can omit Connecting quantity more new function etc. according to demand, in limited hardware
In resource, the integrated and switching that a set of RF hardware completes 802.15.4 and BLE dual stack is realized.Based on this feature,
Software translating file just has the controllable feature of size, which solves the problems, such as Flash deficiency.For RAM deficiency problem,
Using application Memory Allocation technology, i.e., when any agreement starts, to system application Memory Allocation;At the end of releasing memory.It utilizes
The technology can solve the problems, such as RAM deficiency.
Protocol stack switching module has preset protocol stack switching cycle, and default is in 802.15.4 protocol stack.Protocol stack is cut
Mold changing block is not in the case where Current protocol mode stack has data transmission, according to switching cycle, in the RAM for discharging former protocol stack
It deposits, then starts to start new protocol stack for new protocol stack application memory ram, and by configuring radio-frequency module register, switched
Journey successfully completes.
To sum up, the characteristics of being cut using low-power consumption bluetooth protocol stack and memory application and release tech, double-core chip
Hardware platform can be very good to support dual stack integrated and handoff functionality.
The basic principles, main features and advantages of the present invention have been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and what is described in the above embodiment and the description is only the present invention
Principle, various changes and improvements may be made to the invention without departing from the spirit and scope of the present invention, these variation and
Improvement is both fallen in the range of claimed invention.The present invention claims protection scope by appended claims and its
Equivalent defines.
Claims (5)
1. a kind of mixed communication method based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, it is characterised in that: application
In sensing equipment;The sensing equipment default is in 802.15.4 transmission mode, by periodically cutting from IEEE 802.15.4
Change to low-power consumption bluetooth listens to the transmission for whether having blue-teeth data;When discovery has Bluetooth data transfer, sensing equipment is maintained at
BLE transmission mode establishes connection with bluetooth equipment and transmits data, after being transmitted, switches back immediately to 802.15.4 transmission mould
Formula.
2. a kind of mixed communication based on IEEE 802.15.4 and low-power consumption bluetooth dual stack according to claim 1
Method, it is characterised in that: specifically includes the following steps:
Step 1: equipment default operates in 802.15.4 transmission mode, reduces power consumption using dormancy awakening mechanism;
Step 2: in the wake-up phase, equipment listens to channel, if there is 802.15.4 data transmit, then maintain 802.15.4 mode into
Row data transmission, until this is transmitted;
Step 3: in the phase of wake-up, after 802.15.4 data are transmitted, equipment saves 802.15.4 network parameter, switches later
To BLE protocol stack;If handover failure enters step 7;
After step 4:BLE protocol stack switches successfully, if sending BLE broadcast from equipment as BLE;If being detectd as BLE main equipment
BLE is listened to broadcast;
Step 5: if main equipment receives BLE broadcast or scanning response, or receiving scan request after sending BLE broadcast from equipment
Or connection request, then enter step 6;Otherwise, 7 are entered step, equipment is returned according to preset protocol stack switching cycle
802.15.4 transmission mode;
Step 6: equipment keeps BLE transmission mode, establishes bluetooth connection;If bluetooth connection fails, 7 are entered step;Otherwise, exist
Under BLE transmission mode, big data quantity transmission is completed;In transmission process, is interrupted if there is bluetooth connection, then enter step 7;
Step 7: terminating BLE transmission mode, equipment switches back into 802.15.4 transmission mode;
After step 8:802.15.4 protocol stack switches successfully, 802.15.4 network parameter is read from memory, is rejoined original
802.15.4 network;Return step 2.
3. a kind of mixing based on IEEE 802.15.4 and low-power consumption bluetooth dual stack according to claim 1 or 2 is logical
Letter method, it is characterised in that: the switching cycle of dual stack are as follows: 802.15.4 transmission mode listens to letter with BLE transmission mode
Road time ratio is 1:1.
4. a kind of mixing based on IEEE 802.15.4 and low-power consumption bluetooth dual stack according to claim 1 or 2 is logical
Letter method, it is characterised in that: the switching method of protocol stack switch are as follows:
Step 1. first carries out 802.15.4 protocol stack initialization, applies for memory ram, configures radio-frequency module register, starting
802.15.4 protocol stack;
Step 2. equipment listens to 802.15.4 channel, judges whether to listen to 802.15.4 data packet, if so, 3 are entered step, it is no
Then, 4 are entered step;
The transmission of step 3.802.15.4 data;
Step 4.802.15.4 time of intercept terminate or 802.15.4 the data transfer ends after, 802.15.4 protocol stack terminates, and releases
Put memory ram;
The initialization of step 5.BLE protocol stack, applies for memory ram, configures radio-frequency module register, starts new protocol stack;
Step 6. equipment is listened to BLE channel or is sent in BLE channel and broadcasts, and the transmission of BLE data packet is judged whether there is, if so, into
Enter step 7, otherwise, enters step 8;
The transmission of step 7.BLE data;
Step 8.BLE time of intercept terminate or BLE the data transfer ends after, BLE protocol stack terminates, and enters step 1.
5. a kind of hybrid communication system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack, it is characterised in that: equipment
Applied to any described method of the claims 1 to 4;Including processor, be integrated on a processor 802.15.4 agreement,
Low-power consumption bluetooth agreement, protocol stack switching module;The processor is communicated with protocol stack switching module realizes 802.15.4 transmission
Mode and BLE transmission mode;
The protocol stack switching module is preset with protocol stack switching cycle, and default is in 802.15.4 protocol stack;Protocol stack switching
Module, according to switching cycle, discharges the memory ram of former protocol stack in the case where Current protocol mode stack does not have data transmission,
Then start to start new protocol stack, handoff procedure for new protocol stack application memory ram, and by configuring radio-frequency module register
It successfully completes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811552624.9A CN109474969B (en) | 2018-12-19 | 2018-12-19 | Hybrid communication method and system based on IEEE802.15.4 and Bluetooth low energy protocol stack |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811552624.9A CN109474969B (en) | 2018-12-19 | 2018-12-19 | Hybrid communication method and system based on IEEE802.15.4 and Bluetooth low energy protocol stack |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109474969A true CN109474969A (en) | 2019-03-15 |
CN109474969B CN109474969B (en) | 2021-03-05 |
Family
ID=65676545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811552624.9A Active CN109474969B (en) | 2018-12-19 | 2018-12-19 | Hybrid communication method and system based on IEEE802.15.4 and Bluetooth low energy protocol stack |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109474969B (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109921968A (en) * | 2019-03-26 | 2019-06-21 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, the networking control method of household appliance and system |
CN109951833A (en) * | 2019-03-26 | 2019-06-28 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, household appliance and its networking control method and system |
CN110381488A (en) * | 2019-07-17 | 2019-10-25 | 钟代笛 | Universal personal health equipment data characteristics transmission method based on low-power consumption bluetooth |
CN110493775A (en) * | 2019-08-23 | 2019-11-22 | 重庆大学 | The communication means and system being adapted to by ATT and abnormality processing |
CN110545265A (en) * | 2019-08-19 | 2019-12-06 | 重庆大学 | data communication system and method for carrying out adaptation depending on ATT and indication |
CN110545318A (en) * | 2019-08-19 | 2019-12-06 | 钟代笛 | data communication method and system for carrying out adaptation depending on GATT and indication |
CN110891073A (en) * | 2019-12-30 | 2020-03-17 | 西安电子科技大学 | Multi-protocol stack communication method for mobile communication core network |
CN111065080A (en) * | 2019-12-20 | 2020-04-24 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
CN111132111A (en) * | 2019-12-26 | 2020-05-08 | 歌尔股份有限公司 | BLE-based audio sharing method and system and computer-readable storage medium |
CN111328056A (en) * | 2020-01-20 | 2020-06-23 | 钟代笛 | Communication method and system for carrying out protocol adaptation based on ATT and read-write instruction |
CN111355704A (en) * | 2020-01-09 | 2020-06-30 | 重庆高开清芯智联网络科技有限公司 | IPV6 network system based on bluetooth low-power consumption |
CN111436039A (en) * | 2019-10-23 | 2020-07-21 | 珠海市杰理科技股份有限公司 | Bluetooth reconnection method and system, Bluetooth master and slave device reconnection method and Bluetooth master and slave devices |
CN112153686A (en) * | 2020-09-24 | 2020-12-29 | 中国电子科技集团公司第二十八研究所 | Service self-networking method based on service discovery data synchronization |
CN112822643A (en) * | 2021-01-14 | 2021-05-18 | 深圳市芯中芯科技有限公司 | Bluetooth device multi-connection networking method and system based on BLE broadcasting |
CN113068161A (en) * | 2020-01-02 | 2021-07-02 | 广东博智林机器人有限公司 | Bluetooth low-energy-consumption communication method, device and system and storage medium |
CN113206689A (en) * | 2020-12-31 | 2021-08-03 | 珠海市杰理科技股份有限公司 | Communication method and device, Bluetooth slave device and Bluetooth communication system |
CN114070706A (en) * | 2020-08-05 | 2022-02-18 | 中标软件有限公司 | Method for realizing low-power consumption Bluetooth equipment communication under domestic operating system |
CN117693001A (en) * | 2023-11-27 | 2024-03-12 | 青岛登云智谷科技有限公司 | Low-power distribution network and operation monitoring system and method based on BLE protocol |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471704A (en) * | 2007-12-26 | 2009-07-01 | 陈澎 | Dual-mode equipment and network management method |
WO2012076405A1 (en) * | 2010-12-10 | 2012-06-14 | Telefonica, S.A. | Method for the reduction of energy consumption and radio interference in a radio access node |
CN103828479A (en) * | 2011-09-30 | 2014-05-28 | 英特尔公司 | Device, system and method of bluetooth communication |
CN105657639A (en) * | 2015-12-25 | 2016-06-08 | 泰凌微电子(上海)有限公司 | Dual-mode device and synchronous communication realizing method thereof |
CN108900883A (en) * | 2018-06-07 | 2018-11-27 | 深圳市亿联智能有限公司 | It is a kind of using Bluetooth transmission remote signal and the transmission method of audio data |
-
2018
- 2018-12-19 CN CN201811552624.9A patent/CN109474969B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471704A (en) * | 2007-12-26 | 2009-07-01 | 陈澎 | Dual-mode equipment and network management method |
WO2012076405A1 (en) * | 2010-12-10 | 2012-06-14 | Telefonica, S.A. | Method for the reduction of energy consumption and radio interference in a radio access node |
CN103828479A (en) * | 2011-09-30 | 2014-05-28 | 英特尔公司 | Device, system and method of bluetooth communication |
CN105657639A (en) * | 2015-12-25 | 2016-06-08 | 泰凌微电子(上海)有限公司 | Dual-mode device and synchronous communication realizing method thereof |
CN108900883A (en) * | 2018-06-07 | 2018-11-27 | 深圳市亿联智能有限公司 | It is a kind of using Bluetooth transmission remote signal and the transmission method of audio data |
Non-Patent Citations (1)
Title |
---|
ONUR CARHACIOGLU: "Time-domain cooperative coexistence of BLE and IEEE 802.15.4 networks", 《IEEE》 * |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951833A (en) * | 2019-03-26 | 2019-06-28 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, household appliance and its networking control method and system |
CN109921968A (en) * | 2019-03-26 | 2019-06-21 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, the networking control method of household appliance and system |
CN109921968B (en) * | 2019-03-26 | 2021-02-02 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control device, and networking control method and system of household electrical appliance |
CN110381488B (en) * | 2019-07-17 | 2022-12-16 | 钟代笛 | Universal personal health equipment data characteristic value transmission method based on low-power-consumption Bluetooth |
CN110381488A (en) * | 2019-07-17 | 2019-10-25 | 钟代笛 | Universal personal health equipment data characteristics transmission method based on low-power consumption bluetooth |
CN110545265A (en) * | 2019-08-19 | 2019-12-06 | 重庆大学 | data communication system and method for carrying out adaptation depending on ATT and indication |
CN110545318B (en) * | 2019-08-19 | 2021-11-30 | 钟代笛 | Data communication method and system for carrying out adaptation depending on GATT and indication |
CN110545318A (en) * | 2019-08-19 | 2019-12-06 | 钟代笛 | data communication method and system for carrying out adaptation depending on GATT and indication |
CN110545265B (en) * | 2019-08-19 | 2021-12-31 | 重庆大学 | Data communication system and method for carrying out adaptation depending on ATT and indication |
CN110493775A (en) * | 2019-08-23 | 2019-11-22 | 重庆大学 | The communication means and system being adapted to by ATT and abnormality processing |
CN110493775B (en) * | 2019-08-23 | 2021-10-12 | 重庆大学 | Communication method and system adapted by ATT and exception handling |
CN111436039A (en) * | 2019-10-23 | 2020-07-21 | 珠海市杰理科技股份有限公司 | Bluetooth reconnection method and system, Bluetooth master and slave device reconnection method and Bluetooth master and slave devices |
CN111065080A (en) * | 2019-12-20 | 2020-04-24 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
CN111065080B (en) * | 2019-12-20 | 2023-07-18 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
CN111132111B (en) * | 2019-12-26 | 2023-12-22 | 歌尔股份有限公司 | BLE-based audio sharing method, system and computer readable storage medium |
CN111132111A (en) * | 2019-12-26 | 2020-05-08 | 歌尔股份有限公司 | BLE-based audio sharing method and system and computer-readable storage medium |
CN110891073A (en) * | 2019-12-30 | 2020-03-17 | 西安电子科技大学 | Multi-protocol stack communication method for mobile communication core network |
CN113068161A (en) * | 2020-01-02 | 2021-07-02 | 广东博智林机器人有限公司 | Bluetooth low-energy-consumption communication method, device and system and storage medium |
CN113068161B (en) * | 2020-01-02 | 2022-12-13 | 广东博智林机器人有限公司 | Bluetooth low-energy-consumption communication method, device and system and storage medium |
CN111355704B (en) * | 2020-01-09 | 2022-04-29 | 重庆高开清芯智联网络科技有限公司 | IPV6 network system based on bluetooth low-power consumption |
CN111355704A (en) * | 2020-01-09 | 2020-06-30 | 重庆高开清芯智联网络科技有限公司 | IPV6 network system based on bluetooth low-power consumption |
CN111328056B (en) * | 2020-01-20 | 2023-03-24 | 钟代笛 | Communication method and system for carrying out protocol adaptation based on ATT (advanced technology transfer) and read-write command |
CN111328056A (en) * | 2020-01-20 | 2020-06-23 | 钟代笛 | Communication method and system for carrying out protocol adaptation based on ATT and read-write instruction |
CN114070706A (en) * | 2020-08-05 | 2022-02-18 | 中标软件有限公司 | Method for realizing low-power consumption Bluetooth equipment communication under domestic operating system |
CN114070706B (en) * | 2020-08-05 | 2024-05-14 | 中标软件有限公司 | Method for realizing communication of low-power consumption Bluetooth equipment under domestic operating system |
CN112153686A (en) * | 2020-09-24 | 2020-12-29 | 中国电子科技集团公司第二十八研究所 | Service self-networking method based on service discovery data synchronization |
CN112153686B (en) * | 2020-09-24 | 2023-03-03 | 中国电子科技集团公司第二十八研究所 | Service self-networking method based on service discovery data synchronization |
CN113206689A (en) * | 2020-12-31 | 2021-08-03 | 珠海市杰理科技股份有限公司 | Communication method and device, Bluetooth slave device and Bluetooth communication system |
CN112822643A (en) * | 2021-01-14 | 2021-05-18 | 深圳市芯中芯科技有限公司 | Bluetooth device multi-connection networking method and system based on BLE broadcasting |
CN117693001A (en) * | 2023-11-27 | 2024-03-12 | 青岛登云智谷科技有限公司 | Low-power distribution network and operation monitoring system and method based on BLE protocol |
CN117693001B (en) * | 2023-11-27 | 2024-05-17 | 青岛登云智谷科技有限公司 | Low-power distribution network and operation monitoring system and method based on BLE protocol |
Also Published As
Publication number | Publication date |
---|---|
CN109474969B (en) | 2021-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109474969A (en) | Mixed communication method and system based on IEEE 802.15.4 and low-power consumption bluetooth dual stack | |
Nikoukar et al. | Low-power wireless for the internet of things: Standards and applications | |
CN106454996B (en) | Method and apparatus for low power consumption data transfer | |
CN104105194B (en) | Method, equipment and computer program product for the synchronous packet sender selection in wireless network | |
US9693217B2 (en) | Method, apparatus, and computer program product for service discovery proxy for wireless communication | |
Bachir et al. | MAC essentials for wireless sensor networks | |
Bhagwat | Bluetooth: technology for short-range wireless apps | |
US9185745B2 (en) | Method, apparatus, and computer program product for relay operation in Wi-Fi networks | |
EP1762041B1 (en) | Control of a short-range wireless terminal | |
Camps-Mur et al. | Enabling always on service discovery: Wifi neighbor awareness networking | |
US20060114866A1 (en) | Method and apparatus for sharing channel among coordinator-based wireless networks | |
JP2005101756A (en) | Wireless communication system, wireless communication apparatus, wireless communications method, and computer program | |
Bruno et al. | WLAN Technologies for mobile ad hoc networks | |
Koubâa et al. | IEEE 802.15. 4: a federating communication protocol for time-sensitive wireless sensor networks | |
Johansson et al. | Personal area networks: Bluetooth or IEEE 802.11? | |
Wang et al. | Multi-channel MAC protocols in wireless ad hoc and sensor networks | |
KR20140010973A (en) | Method for channel switching in wireless personal area network and apparatus for same | |
Sati et al. | Adapting the beacon interval for opportunistic network communications | |
Raychaudhuri et al. | Cognitive radio technology: From distributed spectrum coordination to adaptive network collaboration | |
Ghosh et al. | Low power communication protocols: ZigBee, 6LoWPAN and ZigBee IP | |
Záruba et al. | Off‐the‐shelf enablers of ad hoc networks | |
SINGH | MOBILITY AND ENERGY EFFICIENT MECHANISM FOR 6LOWPAN DEVICES TO SUPPORT GLOBAL HEALTHCARE SYSTEM. | |
Robertazzi et al. | Wireless networks | |
Kim et al. | ZigBee and IEEE 802.15. 4 standards | |
Cassaniti | A Multi-Hop 6LoWPAN Wireless Sensor Network for Waste Management Optimization |
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 |