CN105682249B - It is a kind of for establishing the method and apparatus of connection based on beacon - Google Patents
It is a kind of for establishing the method and apparatus of connection based on beacon Download PDFInfo
- Publication number
- CN105682249B CN105682249B CN201410652271.5A CN201410652271A CN105682249B CN 105682249 B CN105682249 B CN 105682249B CN 201410652271 A CN201410652271 A CN 201410652271A CN 105682249 B CN105682249 B CN 105682249B
- Authority
- CN
- China
- Prior art keywords
- beacon equipment
- beacon
- equipment
- information
- flag information
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The purpose of the application is to provide a kind of for establishing the method and apparatus of connection based on beacon, and specifically, the first beacon equipment end obtains the link order about the second beacon equipment initiated by the first beacon equipment;Detect whether to obtain the flag information of second beacon equipment;When obtaining the flag information, connection request is sent to second beacon equipment according to the link order, is connect with establishing first beacon equipment with the equipment of second beacon equipment.Compared with prior art, the application confirms that the operating mode of second beacon equipment enters reception pattern according to the flag information that second beacon equipment is issued by the first beacon equipment, the communication connection with the second beacon equipment can effectively be established, and the case where capable of being convenient to carry out maintenance and management to the second beacon equipment, avoiding by factors such as environment, geographical locations without convenient for safeguarding and management.
Description
Technical field
This application involves computer fields more particularly to a kind of for establishing the technology of connection based on beacon.
Background technique
Operating mode there are two types of the common beacon equipment (being called Beacon equipment) based on bluetooth technology with low power consumption is usual,
Broadcast mode and broadcast reception mode.
Wherein, broadcast mode, which refers to, sends broadcasting packet every certain time interval, since any information cannot be received,
So beacon equipment once enters broadcast mode, any connection just cannot be carried out to beacon equipment.The advantages of operating mode
It is power saving, due to only carrying out unidirectional broadcast, the receiving end of beacon equipment has been at sleep state, so the work of beacon equipment
It is long to make the service life.Disadvantage is also obvious, due to that cannot support communication of the peripheral equipment to the beacon equipment, so can not
Configuration rewriting is carried out to beacon equipment, to can not be corrected and safeguard.
Broadcast reception mode refers to one broadcasting packet of every transmission, and the period for all following a receiver to open receives fortune
Seek the connection request of equipment.So being contrasted distinctness with broadcast mode, power consumption is one times almost big, but can prop up
Hold connection configuration.
In conjunction with both operating modes, some equipment manufacturer installs a key on beacon equipment, is cut by key
Change broadcast mode and broadcast reception mode.However, this method has serious defect in the application of certain scenes, that is, exist
After beacon equipment deployment, physical environment may inconvenient button operation, for example beacon equipment is deployed to market or airport
When roof, staff is not easy to carry out button operation.
As the above analysis, the above-mentioned operating mode switching mode based on key brings maintenance, correction beacon equipment
Very big workload.Technical staff needs to improve the operating mode switching mode of existing beacon equipment.
Summary of the invention
The purpose of the application is to provide a kind of for establishing the method and apparatus of connection based on beacon.
According to the one aspect of the application, provides and a kind of be used to establish connection based on beacon at the first beacon equipment end
Method, comprising:
Obtain the link order about the second beacon equipment initiated by the first beacon equipment;
Detect whether to obtain the flag information of second beacon equipment;
When obtaining the flag information, connection request is sent to second beacon equipment according to the link order, with
First beacon equipment is established to connect with the equipment of second beacon equipment.
According to the another aspect of the application, additionally provides one kind and be used to establish connection based on beacon at the second beacon equipment end
Method, comprising:
The mark letter of second beacon equipment is sent when the second beacon equipment switches to reception pattern from broadcast mode
Breath;
Connection request transmitted by first information equipment is received, first beacon equipment is established and is set with second beacon
Standby equipment connection.
According to the application's in another aspect, additionally provide it is a kind of for establishing the first beacon equipment of connection based on beacon,
It include: first device, for obtaining the link order about the second beacon equipment initiated by the first beacon equipment;Third dress
It sets, for detecting whether obtaining the flag information of second beacon equipment;5th device, for when the acquisition mark letter
Breath sends connection request to second beacon equipment according to the link order, to establish first beacon equipment and institute
State the equipment connection of the second beacon equipment.
According to the application's in another aspect, additionally provide it is a kind of for establishing the second beacon equipment of connection based on beacon,
Include: second device, is set for sending second beacon when the second beacon equipment switches to reception pattern from broadcast mode
Standby flag information;4th device is established first beacon and is set for receiving connection request transmitted by first information equipment
The standby equipment with second beacon equipment is connect.
According to the application's in another aspect, additionally provide it is a kind of for establishing the third beacon equipment of connection based on beacon,
It include: first device, for obtaining the link order about the second beacon equipment initiated by the first beacon equipment;Second dress
It sets, the mark for sending second beacon equipment when the second beacon equipment switches to reception pattern from broadcast mode is believed
Breath;3rd device, for detecting whether obtaining the flag information of second beacon equipment;5th device, for when acquisition institute
Flag information is stated, connection request is sent to second beacon equipment according to the link order, to establish first beacon
Equipment is connect with the equipment of second beacon equipment;4th device is asked for receiving connection transmitted by first information equipment
It asks, establishes first beacon equipment and connect with the equipment of second beacon equipment.
Compared with prior art, first beacon equipment in the application is issued according to second beacon equipment
Flag information confirms that the operating mode of second beacon equipment enters reception pattern, can effectively establish and the second beacon
The communication connection of equipment, so that the first beacon equipment and the second beacon equipment can carry out equipment connection automatically, thus instead of
The various inconvenience manually participated in;Meanwhile the operating mode of second beacon equipment being come by more changing into automatic change manually
Realization is established equipment with first beacon equipment and is connect, and can be convenient to carry out maintenance and management to the second beacon equipment, keep away
The case where having exempted from by factors such as environment, geographical locations without convenient for safeguarding and management.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is shown according to a kind of for being established the first beacon equipment and one of connection based on beacon of the application one aspect
Plant the second beacon equipment schematic diagram for establishing connection based on beacon;
Fig. 2 shows set according to a kind of first beacon for establishing connection based on beacon of one preferred embodiment of the application
Standby schematic diagram;
Fig. 3 is shown according to a kind of for being established the second beacon of connection based on beacon of the application another preferred embodiment
Equipment schematic diagram;
Fig. 4 is shown according to a kind of for being established the second beacon of connection based on beacon of the application another preferred embodiment
Equipment schematic diagram;
Fig. 5 is shown according to a kind of for being established the third beacon of connection based on beacon of the application another preferred embodiment
Equipment schematic diagram;
Fig. 6 is shown according to a kind of for being established the method flow diagram of connection based on beacon of the application other side;
Fig. 7 is shown according to a kind of for being established the method flow of connection based on beacon of one preferred embodiment of the application
Figure;
Fig. 8 is shown according to a kind of for being established the method flow of connection based on beacon of the application another preferred embodiment
Figure.
Fig. 9 is shown according to a kind of for being established the method flow of connection based on beacon of the application another preferred embodiment
Figure.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and memory.Memory may include impermanent in computer-readable medium
Property memory, the forms such as random access memory (RAM) and/or Nonvolatile memory, such as read-only memory (ROM) or flash memory
(flash RAM).Memory is the example of computer-readable medium.Computer-readable medium includes permanent and impermanency, can
Mobile and non-removable media can be accomplished by any method or technique information storage.Information can be computer-readable finger
It enables, data structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase change memory
(PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of arbitrary access are deposited
Reservoir (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other in
Deposit technology, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic box type magnetic
Band, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium, can be used for storing can be set by calculating
The information of standby access.As defined in this article, computer-readable medium does not include non-temporary computer readable media
(transitory media), such as data-signal and carrier wave of modulation.
Fig. 1 is shown according to a kind of for being established the first beacon equipment and one of connection based on beacon of the application one aspect
Plant the second beacon equipment for establishing connection based on beacon.Wherein, first beacon equipment 1 includes first device 11, the
Three devices 13 and the 5th device 15.Second beacon equipment 2 includes: second device 22 and the 4th device 24.Specifically, described
Second device 22 sends second beacon equipment 2 when second beacon equipment 2 switches to reception pattern from broadcast mode
Flag information to the 3rd device 13, the 3rd device 13 detects whether to obtain the mark of second beacon equipment 2
Information sends connection to the 4th device 24 according to link order and asks when the 5th device 15 obtains the flag information
Ask, the 4th device 24 receives connection request transmitted by first information equipment, establish first beacon equipment 1 with it is described
The equipment of second beacon equipment 2 connects.Wherein, the link order is first beacon that the first device 11 obtains, described
The link order about the second beacon equipment 2 that equipment 1 is initiated.
Here, first beacon equipment 1 can be by the network of the device comprising blue-tooth device or other realization beacon functions
Host, single network server or multiple network server collection etc. are realized.Those skilled in the art will be understood that above-mentioned first letter
Marking device 1 is only for example, other first beacon equipments 1 that are existing or being likely to occur from now on are such as applicable to the application, is also answered
Within the application protection scope, and it is incorporated herein by reference.Here, first beacon equipment 1 includes
It is a kind of to carry out automatically the electronic equipment of numerical value calculating and information processing, hardware according to the instruction for being previously set or storing
Including but not limited to microprocessor, specific integrated circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedding
Enter formula equipment etc..
Here, second beacon equipment 2 be comprising in first beacon equipment 1 blue-tooth device or other realization
The electric terminal of the corresponding blue-tooth device of the device of beacon function is realized.For example, bluetooth headset, Bluetooth terminal etc..Ability
Field technique personnel will be understood that above-mentioned second beacon equipment 2 is only for example, other second letters that are existing or being likely to occur from now on
Marking device 2 is such as applicable to the application, should also be included within the application protection scope, and is contained in by reference herein
This.Here, second beacon equipment 2 includes that one kind can be automatic to carry out numerical value meter according to the instruction for being previously set or storing
The electronic equipment with information processing is calculated, hardware includes but is not limited to microprocessor, specific integrated circuit (ASIC), programmable gate
Array (FPGA), digital processing unit (DSP), embedded device etc..
Specifically, first beacon equipment 1 determines the Working mould of second beacon equipment 2 using Clock Synchronization Technology
Formula switch instant, when the second device 22 issues a flag information, first beacon equipment 1 generates or from other equipment
Place obtains a link order, and the link order is sent to the first device by routine interface or http agreement etc.
11。
Alternatively, generation or one link order of acquisition from other equipment that first beacon equipment 1 is asynchronous.
Here, the link order includes: that instruction first beacon equipment 1 is set with second beacon equipment 2
The instruction of standby connection.It can also be included but is not limited to any of the following: being used to indicate second beacon equipment 2 and connected in equipment
The instruction of working condition is provided after connecing, is used to indicate the operating mode relevant information that second beacon equipment 2 changes itself
Instruction etc..Wherein, the working condition of second beacon equipment 2 includes but is not limited to: the case where electric quantity of power supply, second letter
Abnormal conditions etc. in marking device 2.The operating mode relevant information includes but is not limited to: wide in second beacon equipment 2
Broadcast the allocation strategy etc. of mode and reception pattern.
For example, the monitoring software timing in first beacon equipment 1 is generated comprising obtaining second beacon equipment 2
The link order of cell condition, and pass to the first device 11.
For another example, the monitoring software in first beacon equipment 1 is according to the battery of obtained second beacon equipment 2
Situation generates the allocation strategy for the broadcast mode and reception pattern for adjusting second beacon equipment 2, then will be comprising described
The link order of strategy passes to the first device 11.
The second device 22 switches between broadcast mode and reception pattern according to default rule, when from broadcast mode
When switching to reception pattern, a flag information is sent.
Here, the rule refers to switching law of second beacon equipment 2 between broadcast mode and reception pattern.Institute
Stating rule can be random switching, be also possible to that at least one reception pattern is arranged after at least two broadcast modes.For example,
A reception pattern is inserted into after the every five broadcast mode end cycles of rule settings.Preferably, it is contemplated that extension institute as far as possible
The battery-powered time of the second beacon equipment 2 is stated, the rule is one reception mould of insertion after at least two broadcast modes
Formula.
Here, the broadcast mode refers to that second beacon equipment 2 only sends broadcast signaling according to the preset period 1.
For example, second beacon equipment 2 opened the timing week for sending broadcast signaling under the control of clock control signal every 3 minutes
Phase.
Here, the reception pattern refers to second beacon equipment 2 according to preset second round and first beacon
Equipment 1 communicates and receives the connection request that first beacon equipment 1 is sent, and establishes and leads in order to first beacon equipment 1
Letter connection.The operating mode for the connection request that the reception pattern can be issued only comprising reception first beacon equipment 1.Example
Such as, second beacon equipment 2 opens the timing cycles for receiving connection request immediately after sending the flag information, with
Just the connection request is received.For another example, second beacon equipment 2 was delayed after sending the flag information preset
The timing cycles for receiving connection request are opened afterwards.The reception pattern can also not only receive the connection request but also the company of sending
Connect response.For example, second beacon equipment 2 after sending the flag information, first open for send broadcast signaling when
The sequence period is then turned on the timing cycles for receiving connection request.
Here, the flag information is used to inform that first beacon equipment 1, second beacon equipment 2 will be in
Or come into reception pattern.The flag information can individually be broadcasted by the second device 22 when mode is converted, can also
It, can also be by be carried in the last one broadcast signaling before broadcast mode switches to reception pattern by the second device 22
The second device 22 carries in first signaling after broadcast mode switches to reception pattern.
The 3rd device 13 receives flag information provided by the second device 22, and detects whether to obtain the mark
Will information.
Specifically, if the second device 22 individually sends the flag information, the acquisition of 3rd device 13 is simultaneously true
Surely the flag information is obtained.If the second device 22 assigns into the flag information in broadcast signaling, the third
Device 13 parses obtained each broadcast signaling according to preset protocol rule, and detect in obtained broadcast signaling whether
Include the flag information.The 3rd device 13 will notify the 5th device 15, instead after detecting the flag information
It, then not notify.
Preferably, the 3rd device 13 also obtains link order transmitted by the first device 11, and is saved.
For example, the first device 11 passes it to the 3rd device 13 after obtaining the link order, it is described
3rd device 13 not timely responds to, but saves it in memory, with use when follow up device is run.
5th device 15 is when obtaining the flag information, according to the link order to second beacon equipment 2
Connection request is sent, is connect with establishing first beacon equipment 1 with the equipment of second beacon equipment 2.
Here, the 5th device 15 sends connection request to second beacon equipment 2 according to the link order
Mode includes but is not limited to: 1) the 5th device 15 extracts saved link order according to preset storage address, if institute
It states first device 11 and has preserved link order, then issue connection request to second beacon equipment 2, conversely, then not sending out
It send.Here, the 5th device 15 can issue the connection request comprising the link order, it is empty for can also issuing content
Connection request.
For example, if the second device 22 is opened immediately after issuing the flag information for receiving connection request
Timing cycles, then the 5th device 15 determine obtain the flag information after immediately into second beacon equipment 2
4th device 24 issues the connection request, to ensure that it is described that the 4th device 24 can receive during this timing
Connection request.
2) it is equipped with trigger in the 5th device 15, the link order is triggered when receiving the flag information,
And connection request is sent to second beacon equipment 2 after a time slot.Wherein, the width of the time slot should correspond to described the
Two devices 22 send the flag information to the time interval opened for receiving the timing cycles of connection request.Preferably, institute
It is corresponding with the transmission interval of the flag information to state time slot.
For example, the 5th device 15 determine obtain the flag information when, according to preset correspondence described the
The transmission interval that two devices 22 send the flag information is delayed, then sends the company by triggering the link order
Connect request.
4th device 24 receives connection request transmitted by the 5th device 15, establishes first beacon equipment
1 connect with the equipment of second beacon equipment 2.
Specifically, the 4th device 24 receives the connection request during timing of reception pattern, then establishes
First beacon equipment 1 is connect with the equipment of second beacon equipment 2.
Fig. 2 shows be used to establish the first beacon equipment of connection based on beacon according to another of the application.Described
One beacon equipment 1 also includes the 7th other than comprising first device 11 described in Fig. 1,3rd device 13 and the 5th device 15
Device 17, if forbidding sending beacon message for establishing the equipment connection, until exiting the equipment connection.
Specifically, first beacon equipment 1 is before carrying out equipment connection with the second beacon equipment 2, when one section
Between issue beacon message, in favor of other blue-tooth devices identification.When the second device 22 switches to reception mould from broadcast mode
When formula, a flag information is sent.When the 3rd device 13 receives and detects the flag information, the 5th device is notified
15 send connection request according to fourth device 24 of the link order into second beacon equipment 2, to establish described the
One beacon equipment 1 is connect with the equipment of second beacon equipment 2.The 4th device 24 receive the connection request,
And established during equipment connect with first beacon equipment 1, the 7th device 17 is forbidden sending beacon using broadcast mode
Information is connect with effectivelying prevent first beacon equipment 1 to establish equipment with other second beacon equipments 2.
Fig. 3, which is shown, is used to establish the second beacon equipment of connection based on beacon according to another of the application.Described second
In beacon equipment 2 other than comprising second device 22 shown in fig. 1 or fig. 2 and the 4th device 24, further includes: the 6th device 26,
For the operating mode relevant information of second beacon equipment 2 to be arranged.
Here, the operating mode relevant information includes following at least any one: the time span letter of the broadcast mode
Breath;The time span information of the reception pattern;The time span percent information of the relatively described reception pattern of the broadcast mode;
The time span information of the flag information.
Here, the 6th device 26 can set the operating mode phase under the operation of technical staff or when software is run
Close information.For example, the 6th device 26 is initialized in electricity operation on second beacon equipment 2 or unlatching Bluetooth function
The setting operating mode relevant information.
Fig. 4 the application is shown another be used to establish the second beacon equipment of connection based on beacon.Second beacon
The 6th dress shown in Fig. 3 can also be included in equipment 2 other than comprising second device 22, the 4th device 24 shown in Fig. 1 or 2
26 and the 8th device 28 are set, is believed for adjusting the operating mode correlation according to the consumption information of second beacon equipment 2
Breath.Wherein, the consumption information includes but is not limited to: the information about power etc. of power supply.
Here, the 8th device 28 can be according to default rule independent operating.Wherein, the default rule include but
It is not limited to: periodically obtaining the consumption information of second beacon equipment 2, and default consumption information and operating mode relevant information
Adjustment relationship.
For example, the electric quantity of power supply that the 8th device 28 detects second beacon equipment 2 is lower than preset value, it will be described
The time span percent information of the relatively described reception pattern of broadcast mode is increased according to the adjustment relationship, more to save
Electricity.
8th device 2 can also be run based on the link order.For example, the first device 11 obtains in advance
The link order for having taken the time span information comprising extending the reception pattern, when the second device 22 is cut from broadcast mode
When shifting to reception pattern, a flag information is sent.When the 3rd device 13 receives and detects the flag information, institute is notified
The 5th device 15 is stated to be sent according to fourth device 24 of the link order into second beacon equipment 2 comprising the connection
The connection request of instruction is connect with establishing first beacon equipment 1 with the equipment of second beacon equipment 2.Described 8th
The time span of the reception pattern is extended the period of a reception pattern based on the link order by device 28.
Fig. 5 is shown according to a kind of for being established the third beacon equipment of connection based on beacon of the application.The third letter
It include first device 31, second device 32,3rd device 33, the 4th device 34 and the 5th device 35 in marking device 3.Optionally,
It can also include at least one of the 6th device 36, the 7th device 37, the 8th device 38.
Here, the work of the first device 31, second device 32,3rd device 33, the 4th device 34 and the 5th device 35
Make first device 11 described in process and Fig. 1, second device 22,3rd device 13, the 4th device 24 and the 5th device 15
The course of work is same or similar, therefore this will not be detailed here.
Described in the course of work of 6th device 36, the 7th device 37 and the 8th device 38 is corresponding with Fig. 2 to 4
The course of work of 6th device 26, the 7th device 17 and the 8th device 28 is same or similar, therefore this will not be detailed here.
Specifically, the third beacon equipment 3 can be using in the second device 32 and the 4th device 34 and Fig. 1 to Fig. 4
Any first beacon equipment 1 establishes equipment connection.
It is set for example, the first device 11 in first beacon equipment 1 is obtained ahead of time to be used to indicate with the third beacon
It is standby to establish the link order of connection, and the 3rd device 13 is transferred to be saved.The 6th dress in the third beacon equipment 2
36 are set in bluetooth starting, that is, the operating mode relevant information of the second device 32 is set.Then, the third beacon equipment
Second device 32 in 3 carries out broadcast mode according to preset working mode change relevant information when converting to reception pattern, extensively
The beacon message comprising flag information is broadcast, 13 reception of 3rd device in first beacon equipment 1, and it is described detecting
When flag information, the 5th device 15 and the 7th device 17 are notified.Wherein, the 7th device in first beacon equipment 1
17 stop the broadcast mode of place beacon equipment, to forbid sending beacon message until equipment connection terminates.At the same time,
The 5th device 15 in first beacon equipment 1 is based on the received flag information of institute and link order, and broadcasts according to corresponding
After the time interval of the flag information is delayed, the 4th device 34 of Xiang Suoshu issues connection request, to establish and described the
The equipment of three beacon equipments 3 connects.After equipment connection is established, the 8th device 38 in the third beacon equipment 3 according to
Adjustable strategies provided by first beacon equipment 1 or the operating mode that itself is adjusted according to built-in adjustable strategies
Relevant information, and notify first beacon equipment 1.
Alternatively, the third beacon equipment 3 also using the first device 31,3rd device 33 and the 5th device 35 with
Any second beacon equipment 2 establishes equipment connection in Fig. 1 to Fig. 4.
It should be noted that those skilled in the art should understand that first device 31 in the third beacon equipment 3,
The first dress in first beacon equipment 1 shown in three devices 33, the 5th device 35 and optional 7th device 37 and Fig. 1 to Fig. 4
The course of work for setting 11,3rd device 13, the 5th device 15 and the 7th device 17 is same or similar, therefore this will not be detailed here.
Fig. 6 shows a kind of method for establishing connection based on beacon according to the application one aspect.Wherein, the side
Method is mainly executed by the first beacon equipment and the second beacon equipment.First beacon equipment mainly executes step S11, S13
And S15.Second beacon equipment mainly executes step S22 and S24.Specifically, in step s 11, first beacon is set
It is standby to obtain the link order about the second beacon equipment initiated by itself;In step S22, second beacon equipment from
Broadcast mode sends the flag information of second beacon equipment to first beacon equipment when switching to reception pattern;In step
In rapid S13, first beacon equipment detects and confirms the flag information for obtaining second beacon equipment;In step S15,
First beacon equipment sends connection request to second beacon equipment according to link order;In step s 24, described
Two beacon equipments receive the connection request, and the equipment for establishing first beacon equipment and second beacon equipment connects
It connects.
Here, first beacon equipment can be by the network host comprising blue-tooth device, single network server or multiple
Network server collection etc. is realized.Those skilled in the art will be understood that above-mentioned first beacon equipment is only for example, other are existing
Or the first beacon equipment being likely to occur from now on is such as applicable to the application, should also be included within the application protection scope, and
It is incorporated herein by reference.Here, first beacon equipment include it is a kind of can be according to being previously set or store
Instruction, the automatic numerical value that carries out calculate and the electronic equipment of information processing, and hardware includes but is not limited to microprocessor, dedicated integrated
Circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..
Here, second beacon equipment is to include bluetooth corresponding with the blue-tooth device in first beacon equipment
The electric terminal of device is realized.For example, bluetooth headset, Bluetooth terminal etc..Those skilled in the art will be understood that above-mentioned second
Beacon equipment is only for example, other second beacon equipments that are existing or being likely to occur from now on are such as applicable to the application, is also answered
Within the application protection scope, and it is incorporated herein by reference.Here, second beacon equipment includes one
Kind can be according to the instruction for being previously set or storing, the automatic electronic equipment for carrying out numerical value calculating and information processing, hardware packet
Include but be not limited to microprocessor, specific integrated circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), insertion
Formula equipment etc..
Specifically, in step s 11, first beacon equipment determines that second beacon is set using Clock Synchronization Technology
The standby working mode change moment, and when second beacon equipment executes step S22 to issue a flag information, described the
One beacon equipment generates or obtains from other equipment a link order.
Alternatively, generation or one link order of acquisition from other equipment that first beacon equipment is asynchronous.
Here, the link order includes: that instruction first beacon equipment and second beacon equipment carry out equipment
The instruction of connection.It can also be included but is not limited to any of the following: being used to indicate second beacon equipment and connected in equipment
The instruction of working condition is provided afterwards, is used to indicate the instruction that second beacon equipment changes the operating mode relevant information of itself
Deng.Wherein, the working condition of second beacon equipment includes but is not limited to: the case where electric quantity of power supply, second beacon sets
Abnormal conditions etc. in standby.The operating mode relevant information includes but is not limited to: broadcast mode in second beacon equipment
With the allocation strategy of reception pattern etc..
For example, the monitoring software timing in first beacon equipment generates the electricity comprising obtaining second beacon equipment
The link order of pond situation.
For another example, the monitoring software in first beacon equipment is according to the battery feelings of obtained second beacon equipment
Condition generates the allocation strategy for the broadcast mode and reception pattern for adjusting second beacon equipment.
In step S22, second beacon equipment is cut between broadcast mode and reception pattern according to default rule
It changes, when switching to reception pattern from broadcast mode, sends a flag information.
Here, the rule refers to switching law of second beacon equipment between broadcast mode and reception pattern.Institute
Stating rule can be random switching, be also possible to that at least one reception pattern is arranged after at least two broadcast modes.For example,
A reception pattern is inserted into after the every five broadcast mode end cycles of rule settings.Preferably, it is contemplated that extension institute as far as possible
The battery-powered time of the second beacon equipment is stated, the rule is one reception mould of insertion after at least two broadcast modes
Formula.
Here, the broadcast mode refers to that second beacon equipment only sends broadcast signaling according to the preset period 1.
For example, second beacon equipment opened the timing week for sending broadcast signaling under the control of clock control signal every 3 minutes
Phase.
Here, the reception pattern refers to that second beacon equipment is set according to preset second round and first beacon
Standby communication, and the connection request that first beacon equipment is sent is received, in order to which first beacon equipment establishes communication link
It connects.The operating mode for the connection request that the reception pattern can be issued only comprising reception first beacon equipment.For example, described
Second beacon equipment opens the timing cycles for receiving connection request immediately after sending the flag information, to receive
State connection request.For another example, second beacon equipment is opened after preset delay and is used for after sending the flag information
Receive the timing cycles of connection request.The reception pattern can also not only receive the connection request but also issue connection response.Example
Such as, second beacon equipment first opens the timing cycles for sending broadcast signaling, then open after sending the flag information
It enables in the timing cycles for receiving connection request.
Here, the flag information is used to inform first beacon equipment, second beacon equipment will be in or
Come into reception pattern.The flag information can individually be broadcasted by second beacon equipment when mode is converted, can also
It, can be with to be carried in the last one broadcast signaling before broadcast mode switches to reception pattern by second beacon equipment
It is carried in first signaling after broadcast mode switches to reception pattern by second beacon equipment.
In step s 13, first beacon equipment receives flag information provided by second beacon equipment, and examines
It surveys and whether obtains the flag information.
Specifically, if second beacon equipment individually sends the flag information, first beacon equipment is obtained
And it determines and obtains the flag information.If second beacon equipment assigns into the flag information in broadcast signaling, institute
It states the first beacon equipment and parses obtained each broadcast signaling according to preset protocol rule, and detect obtained broadcast letter
It whether include the flag information in order.First beacon equipment executes step S13 after detecting the flag information,
Conversely, then not executing.
Preferably, first beacon equipment is saved obtained link order.
For example, first beacon equipment not timely responds to after obtaining the link order, but save it in
In memory, with starting execution waiting after receiving the flag information.
In step S15, first beacon equipment is when obtaining the flag information, according to the link order to institute
It states the second beacon equipment and sends connection request, connected with the equipment for establishing first beacon equipment and second beacon equipment
It connects.
Here, first beacon equipment sends connection request to second beacon equipment according to the link order
Mode includes but is not limited to: 1) first beacon equipment extracts saved link order according to preset storage address, if
First beacon equipment has preserved link order, then connection request is issued to second beacon equipment, conversely, then refusing
It sends.Here, first beacon equipment can issue the connection request comprising the link order, can also issue content is
Empty connection request.
For example, if second beacon equipment is opened immediately after issuing the flag information for receiving connection request
Timing cycles, then first beacon equipment determine obtain the flag information after sent out immediately to second beacon equipment
The connection request out, to ensure that second beacon equipment can receive the connection request during this timing.
2) it is equipped with trigger in first beacon equipment, the connection is triggered when receiving the flag information and is referred to
It enables, and sends connection request to second beacon equipment after a time slot.Wherein, the width of the time slot should correspond to described
Second beacon equipment sends the flag information to the time interval opened for receiving the timing cycles of connection request.It is preferred that
Ground, the time slot are corresponding with the transmission interval of the flag information.
For example, first beacon equipment determine obtain the flag information when, according to described in preset correspondence
The transmission interval that second beacon equipment sends the flag information is delayed, then by triggering the link order to send
State connection request.
In step s 24, second beacon equipment receives connection request transmitted by first beacon equipment, establishes
First beacon equipment is connect with the equipment of second beacon equipment.
Specifically, second beacon equipment receives the connection request during timing of reception pattern, then builds
First beacon equipment is found to connect with the equipment of second beacon equipment.
Fig. 7 shows the method for being used to establish connection based on beacon according to another of the application.In the connection method
It also include step S17, that is, if first beacon equipment is built other than comprising step S11, S13, S15 and step S22, S24
The equipment connection is stood, forbids sending beacon message, until exiting the equipment connection.
Specifically, first beacon equipment is before carrying out equipment connection with the second beacon equipment, at regular intervals
Beacon message is issued, in favor of the identification of other blue-tooth devices.When second beacon equipment switches to reception mould from broadcast mode
When formula, a flag information is sent.When first beacon equipment receives and detects the flag information, referred to according to the connection
It enables to second beacon equipment and sends connection request, to establish setting for first beacon equipment and second beacon equipment
Standby connection.It receives the connection request in second beacon equipment and establishes equipment with first beacon equipment and connect
Period, first beacon equipment is forbidden sending beacon message using broadcast mode, to effectively prevent first beacon equipment
Equipment is established with other second beacon equipments to connect.
Fig. 8 shows the method for being used to establish connection based on beacon according to another of the application.It is removed in the connection method
Outside comprising step S11, S13, S15 and step S22, S24, further includes: step S26, described in second beacon equipment setting
The operating mode relevant information of second beacon equipment.
Here, the operating mode relevant information includes following at least any one: the time span letter of the broadcast mode
Breath;The time span information of the reception pattern;The time span percent information of the relatively described reception pattern of the broadcast mode;
The time span information of the flag information.
Here, second beacon equipment can set the operating mode under the operation of technical staff or when software is run
Relevant information.For example, second beacon equipment upper electricity operation or open Bluetooth function when, the setting of the initialization work
Operation mode relevant information.
Fig. 9 shows another method for being used to establish connection based on beacon of the application.In addition to packet in the connection method
Outside S11 containing step, S13, S15 and step S22, S24, S26, further includes: step S28, second beacon equipment is according to
The consumption information of second beacon equipment adjusts the operating mode relevant information.Wherein, the consumption information includes but is not limited to:
The information about power etc. of power supply.
Here, second beacon equipment can be according to default rule independent operating.Wherein, the default rule includes
But it is not limited to: periodically obtains the consumption information of second beacon equipment, and default consumption information and operating mode relevant information
Adjustment relationship.
For example, second beacon equipment, which detects electric quantity of power supply, is lower than preset value, the broadcast mode is relatively described
The time span percent information of reception pattern is increased according to the adjustment relationship, so as to more power saving.
Second beacon equipment can also be run based on the link order.For example, first beacon equipment
The link order for obtaining the time span information comprising extending the reception pattern in advance, when second beacon equipment is from wide
When broadcasting pattern switching to reception pattern, a flag information is sent.First beacon equipment receives and detects the mark letter
When breath, the connection request comprising the link order is sent to second beacon equipment according to the link order, to establish
First beacon equipment is connect with the equipment of second beacon equipment.Second beacon equipment is based on the link order
The time span for receiving reception pattern is extended to the period of a reception pattern.
In conclusion the application's is a kind of for establishing the method and apparatus of connection based on beacon, first beacon is set
The standby operating mode that second beacon equipment is confirmed according to the flag information that second beacon equipment is issued, which enters, to be connect
Receipts mode can establish the communication connection with the second beacon equipment, effectively so as to the first beacon equipment and the second beacon equipment
Equipment connection can be carried out automatically, thus instead of the various inconvenience manually participated in;Meanwhile by the work of second beacon equipment
Operation mode by more changing into automatic change manually, to realize that establishing equipment with first beacon equipment connect, and can be convenient to
Maintenance and management is carried out to the second beacon equipment, is avoided by factors such as environment, geographical locations without convenient for safeguarding and management
Situation;The link order in addition, first beacon equipment not makes an immediate response, but first saved, then set to the second beacon
After preparation goes out flag information, then the link order is triggered, it, can will be at the front end before link order to send connection request
It manages the processing work connecting with equipment effectively to separate, to reduce the dependence that front-end processing work is connected by equipment, improves work effect
Rate;In addition, due to the slot time that sent and received of information, therefore the transmission connection of first beacon equipment delay is asked
It asks, can effectively reduce and the reception pattern of the second beacon equipment is nonsynchronous happens;In addition, second beacon equipment
The ratio of two kinds of operating modes is adjusted by monitoring itself energy consumption, is capable of active balance power supply power supply duration and two-way communication
Contradiction between power consumption.So the application effectively overcomes various shortcoming in the prior art and has high industrial utilization
Value.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application
Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory,
Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example
Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt
When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution.
And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including a device according to one embodiment of the application, which includes using
Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to
When enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the application are triggered
Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple
Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table
Show title, and does not indicate any particular order.
Claims (19)
1. a kind of method for being used to establish connection based on beacon at the first beacon equipment end, comprising:
Obtain the link order about the second beacon equipment initiated by the first beacon equipment;
Detect whether to obtain the flag information of second beacon equipment, the flag information by second beacon equipment from
Transmission when broadcast mode switches to reception pattern;
When obtaining the flag information, connection request is sent to second beacon equipment according to the link order, to establish
First beacon equipment is connect with the equipment of second beacon equipment.
2. according to the method described in claim 1, wherein, this method further include:
If establishing the equipment connection, forbid sending beacon message, until exiting the equipment connection.
3. method according to claim 1 or 2, wherein the mark for detecting whether to obtain second beacon equipment
Information includes:
The link order is stored, and detects whether to obtain the flag information of second beacon equipment.
4. described to be sent according to the link order to second beacon equipment according to the method described in claim 1, wherein
Connection request includes:
The link order is triggered, and sends connection request to second beacon equipment after a time slot.
5. according to the method described in claim 4, wherein, the time slot is corresponding with the transmission interval of the flag information.
6. a kind of method for being used to establish connection based on beacon at the second beacon equipment end, comprising:
The flag information of second beacon equipment is sent when the second beacon equipment switches to reception pattern from broadcast mode;
Connection request transmitted by the first beacon equipment is received, first beacon equipment and second beacon equipment are established
Equipment connection.
7. according to the method described in claim 6, wherein, this method further include:
The operating mode relevant information of second beacon equipment is set.
8. according to the method described in claim 7, wherein, this method further include:
The operating mode relevant information is adjusted according to the consumption information of second beacon equipment.
9. method according to claim 7 or 8, wherein the operating mode relevant information includes following at least any one:
The time span information of the broadcast mode;
The time span information of the reception pattern;
The time span percent information of the relatively described reception pattern of the broadcast mode;
The time span information of the flag information.
10. a kind of for establishing the first beacon equipment of connection based on beacon, comprising:
First device, for obtaining the link order about the second beacon equipment initiated by the first beacon equipment;
3rd device, for detecting whether obtain the flag information of second beacon equipment, the flag information is by described the
The transmission when switching to reception pattern from broadcast mode of two beacon equipments;
5th device, for being sent and being connected to second beacon equipment according to the link order when obtaining the flag information
Request is connect, is connect with establishing first beacon equipment with the equipment of second beacon equipment.
11. the first beacon equipment according to claim 10, wherein the equipment further include:
7th device, if forbidding sending beacon message for establishing the equipment connection, until exiting the equipment connection.
12. the first beacon equipment described in 0 or 11 according to claim 1, wherein the 3rd device is used for:
The link order is stored, and detects whether to obtain the flag information of second beacon equipment.
13. the first beacon equipment according to claim 10, wherein described to be believed according to the link order to described second
Marking device sends connection request
The link order is triggered, and sends connection request to second beacon equipment after a time slot.
14. the first beacon equipment according to claim 13, wherein the transmission interval of the time slot and the flag information
It is corresponding.
15. a kind of for establishing the second beacon equipment of connection based on beacon, comprising:
Second device, for sending second beacon equipment when the second beacon equipment switches to reception pattern from broadcast mode
Flag information;
4th device, for receiving connection request transmitted by the first beacon equipment, establish first beacon equipment with it is described
The equipment of second beacon equipment connects.
16. the second beacon equipment according to claim 15, wherein the equipment further include:
6th device, for the operating mode relevant information of second beacon equipment to be arranged.
17. the second beacon equipment according to claim 16, wherein the equipment further include:
8th device, for adjusting the operating mode relevant information according to the consumption information of second beacon equipment.
18. the second beacon equipment according to claim 16 or 17, wherein the operating mode relevant information includes following
Any one of at least:
The time span information of the broadcast mode;
The time span information of the reception pattern;
The time span percent information of the relatively described reception pattern of the broadcast mode;
The time span information of the flag information.
19. it is a kind of for establishing the third beacon equipment of connection based on beacon, including such as any one of claim 10 to 14 institute
The first beacon equipment stated, and the second beacon equipment as described in any one of claim 15 to 18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410652271.5A CN105682249B (en) | 2014-11-17 | 2014-11-17 | It is a kind of for establishing the method and apparatus of connection based on beacon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410652271.5A CN105682249B (en) | 2014-11-17 | 2014-11-17 | It is a kind of for establishing the method and apparatus of connection based on beacon |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105682249A CN105682249A (en) | 2016-06-15 |
CN105682249B true CN105682249B (en) | 2019-06-28 |
Family
ID=56944661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410652271.5A Active CN105682249B (en) | 2014-11-17 | 2014-11-17 | It is a kind of for establishing the method and apparatus of connection based on beacon |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105682249B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007005859A (en) * | 2005-06-21 | 2007-01-11 | Sony Corp | Radio communication system, radio communication apparatus and beacon cycle management method thereof |
CN101540709A (en) * | 2008-03-18 | 2009-09-23 | 索尼株式会社 | Communication apparatus and communication method, communication system and computer program |
CN101754471A (en) * | 2008-12-09 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for switching work modes of wireless local area network access device |
CN101997956A (en) * | 2009-08-17 | 2011-03-30 | 联想(北京)有限公司 | Method for switching work mode of mobile terminal and mobile terminal |
CN102342160A (en) * | 2009-03-03 | 2012-02-01 | 诺基亚公司 | Beaconing mode for wireless communication |
CN103166795A (en) * | 2013-03-05 | 2013-06-19 | 成都市未来合力科技有限责任公司 | Automatic dependent surveillance-broadcast (ADS-B) testing beacon equipment and channel intelligent switching control management method |
CN103888548A (en) * | 2014-04-18 | 2014-06-25 | 重庆金瓯科技发展有限责任公司 | Bluetooth beacon monitoring and management system |
CN203803012U (en) * | 2013-11-26 | 2014-09-03 | 重庆源北安防科技有限公司 | Positioning beacons and positioning system for fire-fighting Internet of Things |
CN104053155A (en) * | 2014-07-08 | 2014-09-17 | 北京深思数盾科技有限公司 | Data protection method, device and system for iBeacon base station |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7706404B2 (en) * | 2004-12-28 | 2010-04-27 | Intel Corporation | Using the dynamic beacon to enhance power saving capabilities for low power UWB devices |
KR101431335B1 (en) * | 2012-11-13 | 2014-08-20 | 경북대학교 산학협력단 | Apparatus and method for managing beacon messaging period of vehicular communication |
-
2014
- 2014-11-17 CN CN201410652271.5A patent/CN105682249B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007005859A (en) * | 2005-06-21 | 2007-01-11 | Sony Corp | Radio communication system, radio communication apparatus and beacon cycle management method thereof |
CN101540709A (en) * | 2008-03-18 | 2009-09-23 | 索尼株式会社 | Communication apparatus and communication method, communication system and computer program |
CN101754471A (en) * | 2008-12-09 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for switching work modes of wireless local area network access device |
CN102342160A (en) * | 2009-03-03 | 2012-02-01 | 诺基亚公司 | Beaconing mode for wireless communication |
CN101997956A (en) * | 2009-08-17 | 2011-03-30 | 联想(北京)有限公司 | Method for switching work mode of mobile terminal and mobile terminal |
CN103166795A (en) * | 2013-03-05 | 2013-06-19 | 成都市未来合力科技有限责任公司 | Automatic dependent surveillance-broadcast (ADS-B) testing beacon equipment and channel intelligent switching control management method |
CN203803012U (en) * | 2013-11-26 | 2014-09-03 | 重庆源北安防科技有限公司 | Positioning beacons and positioning system for fire-fighting Internet of Things |
CN103888548A (en) * | 2014-04-18 | 2014-06-25 | 重庆金瓯科技发展有限责任公司 | Bluetooth beacon monitoring and management system |
CN104053155A (en) * | 2014-07-08 | 2014-09-17 | 北京深思数盾科技有限公司 | Data protection method, device and system for iBeacon base station |
Non-Patent Citations (1)
Title |
---|
iBeacon如何工作;寻亚楠;《百度》;20140628;全文 |
Also Published As
Publication number | Publication date |
---|---|
CN105682249A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102345874B1 (en) | How to set the wake-up signal duration, how to acquire it, network devices and terminals | |
CN102892193B (en) | Data transmission method and equipment | |
CN104601203B (en) | A kind of low-power consumption bluetooth equipment dynamically adjusts the method and device of Connecting quantity | |
US8611268B1 (en) | Access point power save mechanism for wireless communication systems | |
RU2014113093A (en) | SYSTEM AND METHOD FOR CONFIGURING NETWORK PARAMETERS WITH RADIO ACCESS FOR USER EQUIPMENT CONNECTED WITH A WIRELESS NETWORK SYSTEM | |
RU2015120362A (en) | METHOD FOR RE-SELECTING CELLS BASED ON PROCESSING PRIORITIES IN A WIRELESS COMMUNICATION SYSTEM, AND A DEVICE FOR ITS SUPPORT | |
DE602005005178D1 (en) | METHOD FOR CONNECTING DEVICES TO A WIRELESS PEER TO PEER NETWORK | |
EP3190771B1 (en) | Method and device for managing instant communication application program, and mobile terminal thereof | |
RU2016135225A (en) | COMMUNICATION SYSTEM | |
WO2013106060A3 (en) | Reduced signaling overhead during radio resource control (rrc) state transitions | |
CN103200314A (en) | Intelligent sleep method of mobile terminal and intelligent sleep device of mobile terminal | |
EP3152963A1 (en) | User equipment, cellular communication network node and method of controlling operation of a user equipment | |
EP3171661A1 (en) | Wireless ad hoc network, center node, dynamic selection method and storage medium | |
RU2012126543A (en) | SEARCH CALL AND ENERGY CONSUMPTION MANAGEMENT SCHEMES FOR ACCESS TO A LOCAL NETWORK | |
RU2008146196A (en) | METHOD FOR REGULATING THE ACTIVATION FREQUENCY IN A WIRELESS COMMUNICATION SYSTEM | |
US9954787B2 (en) | Intelligent terminal power-saving management method and apparatus | |
RU2012120111A (en) | TERMINAL FOR COMMUNICATION WITH A COMMUNICATION SATELLITE | |
CN108156651B (en) | Switching control method and system between radio silent state and transmission state | |
US20130343353A1 (en) | Internet Of Things long range many units communication networks | |
US8532132B2 (en) | Communication method in a home-automation installation | |
CN105682249B (en) | It is a kind of for establishing the method and apparatus of connection based on beacon | |
US9191894B2 (en) | Power saving for multi-hop communications | |
CN106658683B (en) | Distributed wireless equipment awakening management method and system | |
EP2012481A3 (en) | Method and related apparatus for transmitting and receiving the configuration mode of service carrier frequency time slots | |
CN106922011B (en) | Wireless centralized meter reading system and management method for controlling low-power-consumption communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1225894 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |