CN107343005B - Bootstrap information sending method and device based on multi-protocol stack - Google Patents
Bootstrap information sending method and device based on multi-protocol stack Download PDFInfo
- Publication number
- CN107343005B CN107343005B CN201710568032.5A CN201710568032A CN107343005B CN 107343005 B CN107343005 B CN 107343005B CN 201710568032 A CN201710568032 A CN 201710568032A CN 107343005 B CN107343005 B CN 107343005B
- Authority
- CN
- China
- Prior art keywords
- network
- stack
- sub
- bootstrap information
- protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/08—Upper layer protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of bootstrap information sending method and device based on multi-protocol stack;Wherein, this method is executed by beacon communication base station, and multiple protocol stacks are provided in beacon communication base station, and multiple protocol stacks are matched from different network channels respectively;Method includes: the network channel for identifying the accessible terminal in setting regions;The sub- stack of upper-layer protocol is respectively adopted and the sub- stack of lower-layer protocols handles bootstrap information;It wherein, include common upper-layer protocol in blueteeth network, WiFi network and Zigbee network in the sub- stack of upper-layer protocol;It include blueteeth network, WiFi network and the Zigbee network respectively corresponding lower-layer protocols of network interface card in the sub- stack of lower-layer protocols;Between the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols, connected by target socket;Treated bootstrap information by network channel is sent to accessible terminal.The present invention improves the compatibility of beacon communication mode.
Description
Technical field
The present invention relates to field of communication technology, more particularly, to a kind of bootstrap information sending method based on multi-protocol stack and
Device.
Background technique
In beacon (Beacon) communication technology, beacon base station is creating a signal by using bluetooth technology with low power consumption
Region, when equipment enters the region, corresponding application program can prompt the user whether to need to access this signal network.Pass through
Can be placed at the small wireless sensor and bluetooth technology with low power consumption in any object, user just can use beacon be installed answer
Smart phone transmits data.
However, user terminal need to open the beacon communication interface based on Bluetooth communication in above-mentioned beacon communication, could receive
Bootstrap information, if the mobile phone is not turned on bluetooth or the terminal is configured without the relevant software of beacon communication or hardware
Interface is then difficult to realize beacon communication, and beacon communication mode compatibility is poor, thus limit beacon communication application range and
Application effect.
For the problem that above-mentioned beacon communication mode compatibility is poor, not yet put forward effective solutions.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of bootstrap information sending method and dress based on multi-protocol stack
It sets, to improve the compatibility in a manner of beacon communication.
In a first aspect, the embodiment of the invention provides a kind of bootstrap information sending method based on multi-protocol stack, method by
Beacon communication base station executes, and multiple protocol stacks are provided in beacon communication base station, and multiple protocol stacks are logical from different networks respectively
Road matching;Network channel includes at least two kinds in blueteeth network, WiFi network or Zigbee network;Method includes: that identification is set
Determine the network channel of the accessible terminal in region;Be respectively adopted the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols to bootstrap information into
Row processing;It wherein, include common upper-layer protocol in blueteeth network, WiFi network and Zigbee network in the sub- stack of upper-layer protocol;
It include blueteeth network, WiFi network and the Zigbee network respectively corresponding lower-layer protocols of network interface card in the sub- stack of lower-layer protocols;Upper layer association
It discusses between sub- stack and the sub- stack of lower-layer protocols, is connected by target socket;By treated, bootstrap information passes through network channel hair
It send to accessible terminal.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on
The step of stating the network channel of the accessible terminal in identification setting regions, comprising: according in the signal of accessible terminal transmission
The protocol-identifier of carrying judges the network channel that can access terminal;It is true according to the priority of setting when network channel is multiple
Fixed final network channel;Wherein, the priority that sets is the network channel of determination according to the power consumption for sending bootstrap information
Sequentially.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein point
It Cai Yong the sub- stack of upper-layer protocol and lower-layer protocols sub- stack the step of bootstrap information is handled, comprising: extract pre-stored
Bootstrap information;Bootstrap information is handled using upper-layer protocol stack;Obtain current network channel under, the sub- stack of upper-layer protocol with
Target socket between the sub- stack of lower-layer protocols;According to target socket, the sub- stack of lower-layer protocols is determined;Using the sub- stack of lower-layer protocols
Bootstrap information is handled.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein on
Stating will treated the step of bootstrap information is sent to accessible terminal by network channel, comprising: general's treated beacon number
It is sent to accessible terminal according to by network channel, so that can access terminal push shows corresponding data.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect
Possible embodiment, wherein the above method further include: according to the signal strength in network channel, determine accessible terminal with
The distance of beacon communication base station;When distance is greater than preset threshold, the instruction for deleting data is sent to accessible terminal, so that can
Access terminal deletes the corresponding data of bootstrap information.
Second aspect, a kind of bootstrap information sending device based on multi-protocol stack of the embodiment of the present invention, device are set to letter
Communication base station is marked, multiple protocol stacks are provided in beacon communication base station, multiple protocol stacks are matched from different network channels respectively;
Network channel includes at least two kinds in blueteeth network, WiFi network or Zigbee network;Device includes: channel recognition module,
The network channel of accessible terminal in setting regions for identification;Data processing module, for upper-layer protocol to be respectively adopted
Stack and the sub- stack of lower-layer protocols handle bootstrap information;Wherein, in the sub- stack of upper-layer protocol comprising blueteeth network, WiFi network and
In Zigbee network, common upper-layer protocol;It is each comprising blueteeth network, WiFi network and Zigbee network in the sub- stack of lower-layer protocols
From the corresponding lower-layer protocols of network interface card;Between the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols, connected by target socket;Data hair
Module is sent, for treated bootstrap information by network channel to be sent to accessible terminal.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein on
State channel recognition module, comprising: judging unit, for sentencing according to the protocol-identifier carried in the signal that can access terminal transmission
The network channel of disconnected accessible terminal;Determination unit, for being determined most according to the priority of setting when network channel is multiple
Whole network channel;Wherein, the priority set is the sequence of the network channel of determination according to the power consumption for sending bootstrap information.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein on
State data processing module, comprising: data extracting unit, for extracting pre-stored bootstrap information;First processing units are used for
Bootstrap information is handled using upper-layer protocol stack;Acquiring unit, for obtaining under current network channel, upper-layer protocol
Target socket between stack and the sub- stack of lower-layer protocols;According to target socket, the sub- stack of lower-layer protocols is determined;Second processing list
Member, for being handled using the sub- stack of lower-layer protocols bootstrap information.
In conjunction with second aspect, the embodiment of the invention provides the third possible embodiments of second aspect, wherein on
It states data transmission blocks to be also used to:, will treated that bootstrap information is sent to by network channel is accessible in the form of notice
Terminal, so that bootstrap information is directly displayed to the screen of accessible terminal.
In conjunction with the third possible embodiment of second aspect, the embodiment of the invention provides the 4th kind of second aspect
Possible embodiment, wherein above-mentioned apparatus further include: apart from determining module, for according to the signal strength in network channel,
Determine accessible terminal at a distance from beacon communication base station;Data recall module, for recalling when distance is greater than preset threshold
It is sent to the bootstrap information of accessible terminal.
The embodiment of the present invention bring it is following the utility model has the advantages that
A kind of bootstrap information sending method and device based on multi-protocol stack provided in an embodiment of the present invention, beacon communication base
It is provided in standing multiple from different network channel match protocol stacks;Beacon communication base station identifies connecing in setting regions first
Enter the network channel of terminal, then is respectively adopted comprising the sub- stack of the common upper-layer protocol of multiple network and the respective lower layer of multiple network
The sub- stack of agreement handles bootstrap information, and being finally sent to treated bootstrap information by network channel can access end
End;In which, bootstrap information can be sent to terminal by multiple network channel using multiple network protocol stack, improve letter
Mark the compatibility of communication mode;Meanwhile being configured by multiple network protocol stack upper-layer protocol and the unified of lower-layer protocols, it improves
The stability and reliability that bootstrap information is sent.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the structural representation of the first bootstrap information sending method based on multi-protocol stack provided in an embodiment of the present invention
Figure;
Fig. 2 is the structural schematic diagram of protocol stack in a kind of beacon communication base station provided in an embodiment of the present invention;
Fig. 3 is the structural representation of the second provided in an embodiment of the present invention bootstrap information sending method based on multi-protocol stack
Figure;
Fig. 4 is a kind of structural representation of bootstrap information sending device based on multi-protocol stack provided in an embodiment of the present invention
Figure.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
In view of the problem that existing beacon communication mode compatibility is poor, the embodiment of the invention provides one kind based on more
The bootstrap information sending method and device of protocol stack;The technology can be applied under a variety of places such as shopping, exhibition, amusement, lead to
Cross a variety of network channels to the mobile terminals rapid and convenient such as mobile phone send bootstrap information during.
For convenient for understanding the present embodiment, first to a kind of based on multi-protocol stack disclosed in the embodiment of the present invention
Bootstrap information sending method describes in detail.
Embodiment one:
The structural schematic diagram of bootstrap information sending method of the first shown in Figure 1 based on multi-protocol stack, this method
Executed by beacon communication base station, be provided with multiple protocol stacks in beacon communication base station, multiple protocol stacks respectively from different networks
Channel matching;The network channel include at least blueteeth network, WiFi (Wireless Fidelity, Wireless Fidelity) network or
Two kinds in Zigbee (ZigBee protocol) network;This method comprises the following steps:
Step S102 identifies the network channel of the accessible terminal in setting regions;
Whether above-mentioned beacon communication base station can have turned on blueteeth network, WiFi in real time or in timing scan setting regions
The accessible terminal of network or Zigbee network interface;This, which can access terminal, to be the mobile terminals such as mobile phone, tablet computer.
Step S104, is respectively adopted the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols handles bootstrap information;
The structural schematic diagram of protocol stack in a kind of beacon communication base station shown in Figure 2;Protocol stack includes upper-layer protocol
Sub- stack and the sub- stack of lower-layer protocols;Comprising in blueteeth network, WiFi network and Zigbee network, common is upper in the sub- stack of upper-layer protocol
Layer protocol;It include blueteeth network, WiFi network and the Zigbee network respectively corresponding lower-layer protocols of network interface card in the sub- stack of lower-layer protocols;
Between the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols, connected by target socket;
In general, the agreement for including in the sub- stack of upper-layer protocol is associated with the software of data is sent;It is wrapped in the sub- stack of lower-layer protocols
The agreement contained is associated with the network card interface of data is sent, and by the sub- stack of setting upper-layer protocol and the sub- stack of lower-layer protocols, can incite somebody to action
Blueteeth network, WiFi network or the corresponding protocol stack of Zigbee network are integrated to be saved, and to the same processing of bootstrap information, is kept away simultaneously
Exempt from the problem of protocol stack mismatch that the specified protocol stack of software and network interface card are specified causes data to send failure or low efficiency.
Treated bootstrap information by network channel is sent to accessible terminal by step S106.
A kind of bootstrap information sending method based on multi-protocol stack provided in an embodiment of the present invention, beacon communication are set in base station
It is equipped with multiple from different network channel match protocol stacks;Beacon communication base station identifies the accessible terminal in setting regions first
Network channel, then be respectively adopted comprising the sub- stack of the common upper-layer protocol of multiple network and multiple network respective lower-layer protocols
Stack handles bootstrap information, and treated bootstrap information by network channel is finally sent to accessible terminal;The party
In formula, bootstrap information can be sent to terminal by multiple network channel using multiple network protocol stack, improve beacon communication
The compatibility of mode;Meanwhile being configured by multiple network protocol stack upper-layer protocol and the unified of lower-layer protocols, improve beacon number
According to the stability and reliability of transmission.
Embodiment two:
The structural schematic diagram of bootstrap information sending method of shown in Figure 3 second based on multi-protocol stack, this method
It is realized on the basis of the bootstrap information sending method based on multi-protocol stack provided in example 1, this method is by beacon communication
Base station executes, and multiple protocol stacks are provided in beacon communication base station, and multiple protocol stacks are matched from different network channels respectively;It should
Network channel includes at least two kinds in blueteeth network, WiFi network or Zigbee network;This method comprises the following steps:
Step S302 judges the net that can access terminal according to the protocol-identifier carried in the signal of accessible terminal transmission
Network channel;
For example, terminal can send the signal of some strength, and the signal when can access the blue tooth interface unlatching in terminal
Protocol-identifier relevant to Bluetooth communication can be carried, when the surface sweeping of beacon communication base station is to the signal, passes through the bluetooth in base station
Network protocol stack can identify that the terminal opens blue tooth interface, and then judge that the network channel of the terminal can be blueteeth network.
Step S304 determines final network channel according to the priority of setting when network channel is multiple;Wherein,
The priority set is the sequence of the network channel of determination according to the power consumption for sending bootstrap information.
For example, sending same data, sent by different network channels, power consumption is followed successively by bluetooth network from low to high
Network, WiFi network, Zigbee network;When same terminal not only opens blueteeth network, but also starts WiFi network, then by blueteeth network
It is determined as final network channel.
Step S306 extracts pre-stored bootstrap information;
Step S308 is handled bootstrap information using the sub- stack of upper-layer protocol;
Step S310 is obtained under current network channel, the target between the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols
socket;
In actual implementation, the corresponding target socket in heterogeneous networks channel can be pre-established;Pass through target socket
Agreement in the sub- stack of the upper-layer protocol of connection and the sub- stack of lower-layer protocols, can form the corresponding complete agreement in current network channel
Stack.
Step S312 determines the sub- stack of lower-layer protocols according to target socket;
Step S314 is handled bootstrap information using the sub- stack of lower-layer protocols.
Treated the bootstrap information by the network channel is sent to the accessible terminal by step S316,
So that the accessible terminal push shows corresponding data.
Due to bootstrap information timeliness with higher and region, generally use the corresponding data of bootstrap information are direct
It pushes and the mode shown is shown to terminal user.
Step S318 determines accessible terminal at a distance from beacon communication base station according to the signal strength in network channel;
Step S320 sends the instruction for deleting data to accessible terminal, so as to can connect when distance is greater than preset threshold
Enter the corresponding data of terminal deletion bootstrap information.
For example, the corresponding data of bootstrap information can be spectacular when above-mentioned beacon communication base station is installed on exhibition center
The relevant introduction of product;And when accessible terminal is far from beacon communication base station, then it represents user and has been moved off exhibition center, then base station
It can be sent to terminal and delete instruction, delete the related data obtained in terminal by bootstrap information, received to avoid user big
Amount outdated data or lose interest in data when, caused by the lower problem of Experience Degree.
A kind of bootstrap information sending method based on multi-protocol stack provided in an embodiment of the present invention, according to protocol-identifier and function
Consumption determines final network channel, then is respectively adopted respective comprising the sub- stack of the common upper-layer protocol of multiple network and multiple network
The sub- stack of lower-layer protocols handles bootstrap information, finally will treated that bootstrap information is sent to by network channel is accessible
Terminal;In which, bootstrap information can be sent to terminal by multiple network channel using multiple network protocol stack, improved
The compatibility of beacon communication mode;Meanwhile being configured by multiple network protocol stack upper-layer protocol and the unified of lower-layer protocols, it improves
The stability and reliability that bootstrap information is sent.
Further, corresponding in terminal to delete by sending the instruction for deleting data when distance is greater than preset threshold
Data;Which can delete the outdated data in user terminal or data of loseing interest in, and it is logical to bootstrap information to improve user
The Experience Degree of letter mode.
Embodiment three:
Corresponding to above method embodiment, a kind of bootstrap information sending device based on multi-protocol stack shown in Figure 4
Structural schematic diagram, which is set to beacon communication base station, multiple protocol stacks, multiple agreements is provided in beacon communication base station
Stack is matched from different network channels respectively;Network channel includes at least in blueteeth network, WiFi network or Zigbee network
Two kinds;The device includes following part:
Channel recognition module 40, for identification network channel of the accessible terminal in setting regions;
Data processing module 41, for be respectively adopted the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols to bootstrap information at
Reason;It wherein, include common upper-layer protocol in blueteeth network, WiFi network and Zigbee network in the sub- stack of upper-layer protocol;Lower layer
It include blueteeth network, WiFi network and the Zigbee network respectively corresponding lower-layer protocols of network interface card in the sub- stack of agreement;Upper-layer protocol
Between stack and the sub- stack of lower-layer protocols, connected by target socket;
Data transmission blocks 42, for treated bootstrap information by network channel to be sent to accessible terminal.
Further, above-mentioned channel recognition module, comprising:
Judging unit, for judging to can access terminal according to the protocol-identifier carried in the signal that can access terminal transmission
Network channel;
Determination unit, for determining final network channel according to the priority of setting when network channel is multiple;Its
In, the priority set is the sequence of the network channel of determination according to the power consumption for sending bootstrap information.
Further, above-mentioned data processing module, comprising:
Data extracting unit, for extracting pre-stored bootstrap information;
First processing units, for being handled using the sub- stack of upper-layer protocol bootstrap information;
Acquiring unit, the target for obtaining under current network channel, between the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols
socket;According to target socket, the sub- stack of lower-layer protocols is determined;
The second processing unit, for being handled using the sub- stack of lower-layer protocols bootstrap information.
Further, above-mentioned data transmission blocks are also used to: in the form of notice, by treated, bootstrap information passes through net
Network channel is sent to accessible terminal, so that bootstrap information is directly displayed to the screen of accessible terminal.
Further, above-mentioned apparatus further include:
Apart from determining module, for determining accessible terminal and beacon communication base according to the signal strength in network channel
The distance stood;
Data recall module, for recalling the bootstrap information for being sent to accessible terminal when distance is greater than preset threshold.
A kind of bootstrap information sending device based on multi-protocol stack provided in an embodiment of the present invention, beacon communication are set in base station
It is equipped with multiple from different network channel match protocol stacks;Beacon communication base station identifies the accessible terminal in setting regions first
Network channel, then be respectively adopted comprising the sub- stack of the common upper-layer protocol of multiple network and multiple network respective lower-layer protocols
Stack handles bootstrap information, and treated bootstrap information by network channel is finally sent to accessible terminal;The party
In formula, bootstrap information can be sent to terminal by multiple network channel using multiple network protocol stack, improve beacon communication
The compatibility of mode;Meanwhile being configured by multiple network protocol stack upper-layer protocol and the unified of lower-layer protocols, improve beacon number
According to the stability and reliability of transmission.
A kind of computer of bootstrap information sending method and device based on multi-protocol stack provided by the embodiment of the present invention
Program product, the computer readable storage medium including storing program code, the instruction that said program code includes can be used for
Previous methods method as described in the examples is executed, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of bootstrap information sending method based on multi-protocol stack, which is characterized in that the method is held by beacon communication base station
It goes, multiple protocol stacks is provided in the beacon communication base station, multiple protocol stacks are matched from different network channels respectively;
The network channel includes at least two kinds in blueteeth network, WiFi network or Zigbee network;The described method includes:
Identify the network channel of the accessible terminal in setting regions;
The sub- stack of upper-layer protocol is respectively adopted and the sub- stack of lower-layer protocols handles the bootstrap information;Wherein, the upper layer association
Discussing in sub- stack includes common upper-layer protocol in the blueteeth network, the WiFi network and the Zigbee network;Under described
Comprising the blueteeth network, the WiFi network and the Zigbee network, respectively the corresponding lower layer of network interface card is assisted in the sub- stack of layer protocol
View;Between the sub- stack of upper-layer protocol and the sub- stack of the lower-layer protocols, connected by target socket;Wherein, the upper layer association
Discuss the agreement and transmission number that the agreement for including in sub- stack is associated with the software of data is sent, and includes in the sub- stack of lower-layer protocols
According to network card interface it is associated;
Treated the bootstrap information by the network channel is sent to the accessible terminal.
2. the method according to claim 1, wherein the network of the accessible terminal in the identification setting regions
The step of channel, comprising:
According to the protocol-identifier carried in the signal of accessible terminal transmission, the network channel of the accessible terminal is judged;
When the network channel is multiple, the final network channel is determined according to the priority of setting;Wherein, described to set
Fixed priority is the sequence of the network channel of determination according to the power consumption for sending bootstrap information.
3. the method according to claim 1, wherein described be respectively adopted the sub- stack of upper-layer protocol and lower-layer protocols
The step of stack handles the bootstrap information, comprising:
Extract pre-stored bootstrap information;
The bootstrap information is handled using upper-layer protocol stack;
It obtains under current network channel, the target socket between the sub- stack of upper-layer protocol and the sub- stack of the lower-layer protocols;
According to the target socket, the sub- stack of lower-layer protocols is determined;
The bootstrap information is handled using lower-layer protocols sub- stack.
4. the method according to claim 1, wherein described, by treated, the bootstrap information passes through the net
The step of network channel is sent to the accessible terminal, comprising:
Treated the bootstrap information by the network channel is sent to the accessible terminal, so that described accessible
Terminal push shows corresponding data.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
According to the signal strength in the network channel, determine the accessible terminal at a distance from the beacon communication base station;
When the distance is greater than preset threshold, the instruction for deleting data is sent to the accessible terminal, so that described connect
Enter the corresponding data of bootstrap information described in terminal deletion.
6. a kind of bootstrap information sending device based on multi-protocol stack, which is characterized in that described device is set to beacon communication base
It stands, multiple protocol stacks is provided in the beacon communication base station, multiple protocol stacks are matched from different network channels respectively;
The network channel includes at least two kinds in blueteeth network, WiFi network or Zigbee network;Described device includes:
Channel recognition module, for identification network channel of the accessible terminal in setting regions;
Data processing module, for be respectively adopted the sub- stack of upper-layer protocol and the sub- stack of lower-layer protocols to the bootstrap information at
Reason;It wherein, include in the blueteeth network, the WiFi network and the Zigbee network, altogether in the sub- stack of the upper-layer protocol
Same upper-layer protocol;It include the blueteeth network, the WiFi network and the Zigbee network in the sub- stack of lower-layer protocols
The corresponding lower-layer protocols of respective network interface card;Between the sub- stack of upper-layer protocol and the sub- stack of the lower-layer protocols, pass through target socket
Connection;Wherein, the agreement for including in the sub- stack of the upper-layer protocol is associated with the software of data is sent, the sub- stack of lower-layer protocols
In include agreement with send the network card interface of data it is associated;
Data transmission blocks, for treated the bootstrap information by the network channel to be sent to the accessible end
End.
7. device according to claim 6, which is characterized in that the channel recognition module, comprising:
Judging unit, for judging the accessible terminal according to the protocol-identifier carried in the signal that can access terminal transmission
Network channel;
Determination unit, for determining that the final network is logical according to the priority of setting when the network channel is multiple
Road;Wherein, the priority set is the sequence of the network channel of determination according to the power consumption for sending bootstrap information.
8. device according to claim 6, which is characterized in that the data processing module, comprising:
Data extracting unit, for extracting pre-stored bootstrap information;
First processing units, for being handled using the sub- stack of upper-layer protocol the bootstrap information;
Acquiring unit, for obtaining under current network channel, between the sub- stack of upper-layer protocol and the sub- stack of the lower-layer protocols
Target socket;According to the target socket, the sub- stack of lower-layer protocols is determined;
The second processing unit, for being handled using the sub- stack of lower-layer protocols the bootstrap information.
9. device according to claim 6, which is characterized in that the data transmission blocks are also used to:
In the form of notice, treated the bootstrap information by the network channel is sent to the accessible terminal,
So that the bootstrap information is directly displayed to the screen of the accessible terminal.
10. device according to claim 9, which is characterized in that described device further include:
Apart from determining module, for determining the accessible terminal and the letter according to the signal strength in the network channel
Mark the distance of communication base station;
Data recall module, for recalling the beacon for being sent to the accessible terminal when the distance is greater than preset threshold
Data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710568032.5A CN107343005B (en) | 2017-07-12 | 2017-07-12 | Bootstrap information sending method and device based on multi-protocol stack |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710568032.5A CN107343005B (en) | 2017-07-12 | 2017-07-12 | Bootstrap information sending method and device based on multi-protocol stack |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107343005A CN107343005A (en) | 2017-11-10 |
CN107343005B true CN107343005B (en) | 2019-10-22 |
Family
ID=60219839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710568032.5A Active CN107343005B (en) | 2017-07-12 | 2017-07-12 | Bootstrap information sending method and device based on multi-protocol stack |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107343005B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108712784B (en) * | 2018-05-11 | 2020-07-24 | 成都六零加信息技术有限公司 | Communication method and device |
CN110891073B (en) * | 2019-12-30 | 2021-06-25 | 西安电子科技大学 | Multi-protocol stack communication method for mobile communication core network |
CN111343196B (en) * | 2020-03-19 | 2020-12-08 | 广州市城建开发集团名特网络发展有限公司 | Communication system and communication method compatible with multiple communication protocols |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102882637A (en) * | 2011-09-12 | 2013-01-16 | 微软公司 | Low energy beacon encoding |
CN106572075A (en) * | 2016-09-22 | 2017-04-19 | 北京理工大学 | Virtual heterogeneous network convergence method based on on-demand protocol conversion |
CN106788617A (en) * | 2016-04-01 | 2017-05-31 | 深圳蓝奥声科技有限公司 | Smart bluetooth beacon socket |
-
2017
- 2017-07-12 CN CN201710568032.5A patent/CN107343005B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102882637A (en) * | 2011-09-12 | 2013-01-16 | 微软公司 | Low energy beacon encoding |
CN106788617A (en) * | 2016-04-01 | 2017-05-31 | 深圳蓝奥声科技有限公司 | Smart bluetooth beacon socket |
CN106572075A (en) * | 2016-09-22 | 2017-04-19 | 北京理工大学 | Virtual heterogeneous network convergence method based on on-demand protocol conversion |
Also Published As
Publication number | Publication date |
---|---|
CN107343005A (en) | 2017-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105825583B (en) | A kind of intelligence vending machine | |
CN206712845U (en) | A kind of things-internet gateway equipment, internet of things equipment group network system | |
CN107343005B (en) | Bootstrap information sending method and device based on multi-protocol stack | |
CN105208545B (en) | Communication data management method, device and server based on virtual SIM card | |
CN102891978B (en) | Image processing method and terminal | |
CN109829122B (en) | Method and device for acquiring service entrance, storage medium and electronic device | |
CN102932775A (en) | Method and device for carrying out terminal identification by combining IMEI and UA | |
CN103731853A (en) | Cloud identification method, device and system of double-card mobile communication device | |
CN108810123A (en) | The method and apparatus for opening mobile cellular network service | |
CN105554845B (en) | A kind of method of access, router and terminal | |
CN104599211B (en) | A kind of physical examination data uploading method, wireless terminal and Business Management Platform | |
CN111093182B (en) | Network optimal resource selection system for CPE (customer premises equipment) | |
CN105912583A (en) | Member service data interaction method and device for mobile terminal | |
CN105848248A (en) | Cell phone roaming network searching method and apparatus | |
CN102882958A (en) | Automatic telephone number updating system and method | |
CN105049577A (en) | Electronic business card registration and exchange system and registration and exchange method | |
CN104661220B (en) | A kind of method and device for realizing authentication process | |
CN108346200A (en) | A kind of control method and device of smart lock | |
CN107509097A (en) | Video sharing method, apparatus and sharing service device | |
CN105704705A (en) | Method for switching terminals with shared eSIM information, terminal and server | |
CN103581233B (en) | A kind of method and system for being used in short-range communication manage label | |
CN106775807A (en) | Realize the intelligent robot system and information implantation method of application message transplanting | |
CN103648182B (en) | Business data transmission method and device, processor and mobile terminal | |
CN113395741B (en) | Network distribution system, method and device of equipment, electronic equipment and storage medium | |
CN109711512A (en) | Two-dimensional code generation method and device |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100000, room 2, building 1, No. 402, Zhongguancun East Road, Haidian District, Beijing Patentee after: Ziguang Hengyue Technology Co., Ltd Address before: 100000, room 2, building 1, No. 402, Zhongguancun East Road, Haidian District, Beijing Patentee before: BEIJING UNIS NETWORK TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |