The content of the invention
It is an object of the present invention to provide a kind of wireless network broadcast information transmission system based on iBeacon and its sideMethod, can be in the case where not influenceing the original offer location information of iBeacon equipment, additionally it is possible to carries out broadcast transmission advertisement letterBreath, even if iBeacon equipment in the case of without network environment, can still broadcast transmission advertising message, so as to informationPopularization has larger effect.
To achieve the above object, the present invention uses following technical scheme.
A kind of wireless network broadcast information transmission system based on iBeacon, including an iBeacon equipment, it is describedIBeacon equipment includes an information sending module, and described information sending module is used to send out to mobile terminal based on iBeacon agreementsSend broadcast message;The broadcast message includes the first broadcast packet and the second broadcast packet;Wherein the first broadcast packet includes identification of the manufacturerInformation, the first identification information and the second identification information, the identification of the manufacturer information are used to identify belonging to the iBeacon equipmentManufacturer;First, second identification information is used to identify the iBeacon equipment;Second broadcast packet, which includes the first mark, to be believedBreath, the second identification information and advertising message;The advertising message further comprises the second broadcast packet id information, second broadcastBag id information is used for the identification to the receiving module of mobile terminal, and the sequence to the second broadcast packet and combination offer foundation.
Alternatively, the first broadcast packet length is less than or equal to 32 bytes.
Alternatively, the advertising message length of second broadcast packet is 25 bytes.
The present invention also provides a kind of wireless network broadcast information-pushing method based on iBeacon, is based on using above-mentioned stateIBeacon wireless network broadcast information transmission system, including step:(1)The iBeacon equipment sends the first broadcast packet extremelyMobile terminal;(2)After one first setting time, the iBeacon equipment sends the second broadcast packet to mobile terminal;(3)After one second setting time, then it is repeated in performing step(1)And step(2).
Alternatively, first setting time and the second setting time are fixed or variable.
The present invention provides a kind of wireless network broadcast information-pushing method based on iBeacon, is based on using above-mentionedIBeacon wireless network broadcast information transmission system, including step:(a)The iBeacon equipment sends the first broadcast packet extremelyMobile terminal;(b)After one first setting time, the second broadcast packet is sent to the iBeacon equipment continuity to movementTerminal;(c)After one second setting time, then it is repeated in performing step(a)And step(b).
Alternatively, it is fixed or variable that the broadcast message, which pushes the first setting time and the second setting time,'s.
It is an advantage of the current invention that in the case where not influenceing the original offer location information of iBeacon equipment, additionally it is possible to enterRow broadcast transmission advertising message, even if iBeacon equipment in the case of without network environment, can still broadcast transmission advertisement letterBreath, so as to which the popularization to information has larger effect.
Embodiment
Below in conjunction with the accompanying drawings to the wireless network broadcast information transmission system provided by the invention based on iBeacon and its sideThe embodiment of method elaborates.
Shown in Figure 1, a kind of wireless network broadcast information transmission system based on iBeacon, including an iBeacon are setIt is standby(Do not show in figure), the iBeacon equipment includes an information sending module 100, and described information sending module 100 is used to be based onIBeacon agreements send broadcast message to mobile terminal.The broadcast message includes the first broadcast packet 110 and the second broadcast packet120。
Wherein, the first broadcast packet 110 includes identification of the manufacturer information 111, the first identification information 113 and the second identification information115.The identification of the manufacturer information 111 is used to identify the manufacturer belonging to the iBeacon equipment.First identification information 113It is used for specially which iBeacon equipment to be identified in whole wireless network with the second identification information 115.EachIBeason equipment is respectively provided with the first identification information 113(Major ID)With the second identification information 115(Minor ID), eachA 16 system numbers of the ID to be made up of four positions.For example, Major ID:156A, Minor ID:3B32, corresponding oneIBeacon equipment, as mobile terminal reception MajorID=156A, MinorID=3B32 information, the mobile terminal rootAccording to above-mentioned identification information and by server or local search, the iBeacon equipment associated with above-mentioned identification information is inquiredPosition, then mobile terminal can obtain the position being presently in.
The length of first broadcast packet 110 is less than or equal to 32 bytes, can then ensure that the first broadcast packet 110 is transmittingDuring integrality and reliability, also effectively prevent broadcast when communication congestion.
In the present embodiment, the first broadcast packet 110 is defined as location information.According to the agreement of bluetooth 4.0, in the prior artIBeacon equipment is supported to send location information(That is the identification information of itself), can not but push the more letter of some particular contentsBreath(Such as advertising message).If recipient(Such as mobile terminal)In the case of without network environment, then it can not obtainThe particular content that iBeacon equipment is pushed.Therefore, herein described iBeacon equipment utilizations broadcast the first broadcast packet of transmissionOff time between 110 transmits the second broadcast packet 120 to broadcast.Second broadcast packet 120 is a broadcast packet newly defined, differentIn existing first broadcast packet 110.Second broadcast packet 120 is used for the particular content for transmitting advertising message, i.e., the second broadcastBag 120 is defined as advertising message.Then, the mobile terminal(Do not show in figure)Receiving module 200(Such as receive APP applicationsProgram)In addition to it can receive location information, additionally it is possible to receive advertising message.And the push of advertising message is using eachOff time between secondary transmission location information and carry out.
Second broadcast packet 120 includes the first identification information 121, the second identification information 123 and advertising message 125.DescribedOf length no more than 32 bytes of two broadcast packets.The advertising message length of second broadcast packet 120 is 25 bytes, then may be usedTo ensure integrality and reliability of second broadcast packet 120 in transmit process, the communication congestion in broadcast is also effectively prevented.The advertising message further comprises the second broadcast packet id information(Do not show in figure), the second broadcast packet id information is for movingThe reception APP application programs of dynamic terminal receiving module 200 provide identification, and sequence to the second broadcast packet and combination provide according toAccording to.Therefore, in order to preferably advertisement information, it is necessary to the particular content of advertising message be split, to ensure oftenOne advertising message length is 25 bytes, and then can also ensure the integrality and security of packet.For the ease of recipient(Such as mobile terminal)Advertising message can correctly be read, it is therefore desirable to include the second advertisement bag ID in the advertising messageInformation, with enable the mobile terminal receiving module 200 according to the second advertisement bag id information and will corresponding to it is all wideInformation is accused to be ranked up and combine.Such as receiving module 200 includes first and receives APP application programs, it is according to the second advertisement bagId information(Odd number package informatin)And the advertising message of all odd number bags is ranked up and combined.Receiving module also connects including secondAPP application programs are received, it is according to the second advertisement bag id information(Even number package informatin)And the advertising message of all even number bags is carried outSequence and combination.And the second broadcast packet id information can enable the receiving module 200 of mobile terminal to identify and use correspondingReception APP application programs come obtain correlation advertising message.
That is, work of unpacking is carried out in the iBeacon equipment ends, in the mobile terminal(According to the second advertisement bag IDInformation)Package work is carried out, to obtain required advertising message.
Referring to Fig. 2, the present invention also provides a kind of wireless network broadcast information-pushing method based on iBeacon, in useState the wireless network broadcast information transmission system based on iBeacon, including step:S210, the iBeacon equipment send theOne broadcast packet is to mobile terminal;S220, after one first setting time, the iBeacon equipment sends the second broadcast packet extremelyMobile terminal;S230, after one second setting time, then be repeated in perform step S210 and step S220.
It will be detailed below above-mentioned steps.
S210, the iBeacon equipment send the first broadcast packet to mobile terminal.
First, the information sending module of the iBeacon equipment sends location information to mobile terminal.
S220, after one first setting time, the iBeacon equipment sends the second broadcast packet to mobile terminal.
Then, within the off time sent each time between location information, advertising message is sent to mobile terminal.It is if wideIt is longer to broadcast the particular content of the advertising message of transmission, can be unpacked(Or subpackage), such as the second broadcast packet A is divided intoMultiple second broadcast packets such as A1, A2, A3, i.e. the second broadcast packet are at least one broadcast packet.
S230, after one second setting time, then be repeated in perform step S210 and step S220.
After the second setting time, the iBeacon equipment sends location information again, is then set again by firstAfter fixing time, the iBeacon equipment can send remaining advertising message in advertising message.For example, the institute in step S220State iBeacon equipment and have sent the second broadcast packet A1, then the iBeacon equipment described in step S230 need to continue to send remainingSecond broadcast packet A2, A3 etc..
First setting time and the second setting time are fixed or variable.In the present embodiment, described firstSetting time and the second setting time use the set time.
Referring to Fig. 3, the present invention provides a kind of wireless network broadcast information-pushing method based on iBeacon, and use is above-mentionedWireless network broadcast information transmission system based on iBeacon, including step:S310, iBeacon equipment transmission first are wideBag is broadcast to mobile terminal;S320, after one first setting time, send the second broadcast to the iBeacon equipment continuityWrap to mobile terminal;S330, after one second setting time, then be repeated in perform step S310 and step S320.
S310, the iBeacon equipment send the first broadcast packet to mobile terminal.
S320, after one first setting time, send the second broadcast packet to movement to the iBeacon equipment continuityTerminal.
S330, after one second setting time, then be repeated in perform step S310 and step S320.
The difference of above-mentioned embodiment and another embodiment of the application is that the former is to be divided the second broadcast packetBag, the iBeacon equipment are to send first broadcast packet to retransmit second broadcast packet, are then sent first wide one timeBag is broadcast, then retransmits second broadcast packet.And the second broadcast packet is also carried out subpackage, but the iBeacon equipment by the latterIt is to send first broadcast packet, then continuously transmits multiple second broadcast packets, then retransmit first broadcast packet, afterwardsMultiple second broadcast packets are continuously transmitted again.Broadcast message first setting time of push and the second setting time are fixed or canBecome.In another embodiment of the application, first setting time and the second setting time use the set time.
Further, since each broadcast packet includes multiple data, therefore during each transmission broadcast packet, multiple data in broadcast packetBetween can have one the 3rd setting time.No matter currently transmitted first broadcast packet or the second broadcast packet, it is described 3rd setting whenBetween be identical.3rd setting time can be set.
That is, between transmission time when the 3rd setting time is sends broadcast packet in broadcast packet between multiple dataEvery.No matter currently transmitted first broadcast packet or the second broadcast packet, the 3rd setting time is identical.And during the first settingBetween, the second setting time is between the first broadcast packet and the second broadcast packet(Or between bag and bag)Switching time betweenEvery.First setting time and the second setting time can adjust.If the first setting time and the second setting time are longer, cutThe number transmitted by broadcast packet between alternatively is more.
Switching mode between above-mentioned first broadcast packet and the second broadcast packet needs to be adjusted according to actual conditions, andSuitable switching mode is selected according to specific application scenarios.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the artMember, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be regarded asProtection scope of the present invention.