CN105682249A - Method and device for establishing connection based on beacon - Google Patents

Method and device for establishing connection based on beacon Download PDF

Info

Publication number
CN105682249A
CN105682249A CN201410652271.5A CN201410652271A CN105682249A CN 105682249 A CN105682249 A CN 105682249A CN 201410652271 A CN201410652271 A CN 201410652271A CN 105682249 A CN105682249 A CN 105682249A
Authority
CN
China
Prior art keywords
beacon equipment
equipment
beacon
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.)
Granted
Application number
CN201410652271.5A
Other languages
Chinese (zh)
Other versions
CN105682249B (en
Inventor
曹海涛
李香富
罗俊
任万喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410652271.5A priority Critical patent/CN105682249B/en
Publication of CN105682249A publication Critical patent/CN105682249A/en
Application granted granted Critical
Publication of CN105682249B publication Critical patent/CN105682249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention aims to provide a method and device for establishing a connection based on a beacon. The method comprises the following specific steps: acquiring a connection instruction about second beacon equipment initiated by first beacon equipment by a first beacon equipment side; detecting whether mark information of the second beacon equipment is obtained; and when the mark information is obtained, transmitting a connecting request to the second beacon equipment according to the connection instruction, so as to establish an equipment connection between the first beacon equipment and the second beacon equipment. Compared with the prior art, the method for establishing the connection based on the beacon provided by the invention confirms that a work mode of the second beacon equipment enters a receiving mode through the first beacon equipment according to the mark information sent out by the second beacon equipment, so that a communication connection with the second beacon equipment can be established effectively, the second beacon equipment can be conveniently maintained and managed, and the condition that the maintenance and management are not convenient due to environment, geographical location and other factors can be avoided.

Description

A kind of for setting up the method and apparatus connected based on beacon
Technical field
The application relates to computer realm, particularly relates to a kind of for setting up the technology connected based on beacon.
Background technology
The common beacon equipment based on low-power consumption Bluetooth technology (being again Beacon equipment) generally has two kinds of mode of operations, broadcast mode and broadcast reception mode.
Wherein, broadcast mode refers to and sends broadcasting packet every certain time interval, owing to can not receive any information, so beacon equipment is once enter broadcast mode, just beacon equipment can not be carried out any connection. The advantage of this mode of operation is power saving, and owing to only carrying out unidirectional broadcast, the receiving terminal of beacon equipment has been at sleep state, so the working life of beacon equipment is longer. Shortcoming is also obvious, owing to can not support the ancillary equipment communication to described beacon equipment, rewrites so beacon equipment cannot carry out configuration, thus cannot be carried out correction and safeguarding.
Broadcast reception mode refers to often one broadcasting packet of transmission, all follows the period that a receptor is opened, and receives the connection request of operating facilities. So, be contrasted distinctness with broadcast mode, power consumption is almost big one times, but can support connect configuration.
In conjunction with both mode of operations, some equipment manufacturer installs a button on beacon equipment, is switched broadcast mode and broadcast reception mode by button. But, this method there is serious defect in the application of some scene, namely after beacon equipment is disposed, physical environment is likely to inconvenient button operation, when beacon equipment is such as deployed to the roof on market or airport, staff is not easy to carry out button operation.
As the above analysis, the above-mentioned mode of operation switching mode based on button is to safeguarding, correct that beacon equipment brings very big workload. Technical staff needs the mode of operation switching mode of existing beacon equipment is improved.
Summary of the invention
The purpose of the application is to provide a kind of for setting up the method and apparatus connected based on beacon.
An aspect according to the application, it is provided that a kind of method being used at the first beacon equipment end setting up connection based on beacon, including:
Obtain the link order about the second beacon equipment initiated by the first beacon equipment;
Detect whether to obtain the flag information of described second beacon equipment;
When obtaining described flag information, send connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment.
Another aspect according to the application, additionally provide a kind of the second beacon equipment end for based on beacon set up connect method, including:
The flag information of described second beacon equipment is sent when the second beacon equipment switches to reception pattern from broadcast mode;
Receive the connection request that first information equipment sends, set up described first beacon equipment and be connected with the equipment of described second beacon equipment.
Another further aspect according to the application, additionally provides a kind of for setting up the first beacon equipment connected based on beacon, including: 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 described second beacon equipment; 5th device, for when obtaining described flag information, sending connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment.
Another further aspect according to the application, additionally provides a kind of for setting up the second beacon equipment connected based on beacon, including: the second device, for sending the flag information of described second beacon equipment when the second beacon equipment switches to reception pattern from broadcast mode; 4th device, for receiving the connection request that first information equipment sends, sets up described first beacon equipment and is connected with the equipment of described second beacon equipment.
Another further aspect according to the application, additionally provides a kind of for setting up the 3rd beacon equipment connected based on beacon, including: first device, for obtaining the link order about the second beacon equipment initiated by the first beacon equipment; Second device, for sending the flag information of described second beacon equipment when the second beacon equipment switches to reception pattern from broadcast mode; 3rd device, for detecting whether obtain the flag information of described second beacon equipment; 5th device, for when obtaining described flag information, sending connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment; 4th device, for receiving the connection request that first information equipment sends, sets up described first beacon equipment and is connected with the equipment of described second beacon equipment.
Compared with prior art, according to the flag information that described second beacon equipment sends, described first beacon equipment in the application confirms that the mode of operation of described second beacon equipment enters reception pattern, can effectively set up and the communication connection of the second beacon equipment, so that the first beacon equipment and the second beacon equipment can carry out equipment connection automatically, thus instead of all inconvenience of artificial participation; Simultaneously, by the mode of operation of described second beacon equipment by manually more changing into automatic change, realize setting up equipment with described first beacon equipment to be connected, can be convenient to the second beacon equipment is carried out maintenance and management, it is to avoid be not easy to the situation of maintenance and management by the factor such as environment, geographical position.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 illustrate according to one aspect of the application a kind of for based on beacon set up connect the first beacon equipment and a kind of for based on beacon set up connect the second beacon equipment schematic diagram;
Fig. 2 illustrates a kind of the first beacon equipment schematic diagram for setting up connection based on beacon according to one preferred embodiment of the application;
Fig. 3 illustrates a kind of the second beacon equipment schematic diagram for setting up connection based on beacon according to another preferred embodiment of the application;
Fig. 4 illustrates a kind of the second beacon equipment schematic diagram for setting up connection based on beacon according to another preferred embodiment of the application;
Fig. 5 illustrates a kind of the 3rd beacon equipment schematic diagram for setting up connection based on beacon according to another preferred embodiment of the application;
Fig. 6 illustrates a kind of method flow diagram for setting up connection based on beacon according to another aspect of the application;
Fig. 7 illustrates a kind of method flow diagram for setting up connection based on beacon according to one preferred embodiment of the application;
Fig. 8 illustrates a kind of method flow diagram for setting up connection based on beacon according to another preferred embodiment of the application.
Fig. 9 illustrates a kind of method flow diagram for setting up connection based on beacon according to another preferred embodiment of the application.
In accompanying drawing, same or analogous accompanying drawing labelling represents same or analogous parts.
Detailed description of the invention
Below in conjunction with accompanying drawing, the application is described in further detail.
In one typical configuration of the application, terminal, the equipment of service network and trusted party all include one or more processor (CPU), input/output interface, network interface and internal memory. internal memory potentially includes the forms such as the volatile memory in computer-readable medium, random access memory (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flashRAM). internal memory is the example of computer-readable medium. computer-readable medium includes permanent and impermanency, removable and non-removable media can by any method or technology to realize information storage. information can be computer-readable instruction, data structure, the module of program or other data. the example of the storage medium of computer includes, but it is not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device. according to defining herein, computer-readable medium does not include non-temporary computer readable media (transitorymedia), such as data signal and the carrier wave of modulation.
Fig. 1 illustrate according to one aspect of the application a kind of for based on beacon set up connect the first beacon equipment and a kind of for based on beacon set up connect the second beacon equipment. Wherein, described first beacon equipment 1 includes first device the 11, the 3rd device 13 and the 5th device 15. Described second beacon equipment 2 includes: the second device 22 and the 4th device 24. Specifically, described second device 22 sends the flag information of described second beacon equipment 2 to described 3rd device 13 when described second beacon equipment 2 switches to reception pattern from broadcast mode, described 3rd device 13 detects whether to obtain the flag information of described second beacon equipment 2, when described 5th device 15 obtains described flag information, connection request is sent to described 4th device 24 according to link order, described 4th device 24 receives the connection request that first information equipment sends, and sets up described first beacon equipment 1 and is connected with the equipment of described second beacon equipment 2.Wherein, described link order is the link order about the second beacon equipment 2 that the first beacon equipment 1 that described first device 11 obtains, described is initiated.
At this, described first beacon equipment 1 can by comprising blue-tooth device or other realize the network host of device of beacon function, single network server or multiple webserver collection etc. and realize. Those skilled in the art will be understood that above-mentioned first beacon equipment 1 is only for example, and other existing or first beacon equipments 1 of being likely to occur from now on, as being applicable to the application, also should be included within the application protection domain, and be incorporated herein with way of reference at this. At this, described first beacon equipment 1 include a kind of can according to setting in advance or the instruction of storage, automatically carrying out the electronic equipment of numerical computations and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
At this, described second beacon equipment 2 is comprise to realize with the blue-tooth device in described first beacon equipment 1 or other electric terminals realizing the corresponding blue-tooth device of the device of beacon function. Such as, bluetooth earphone, Bluetooth terminal etc. Those skilled in the art will be understood that above-mentioned second beacon equipment 2 is only for example, and other existing or second beacon equipments 2 of being likely to occur from now on, as being applicable to the application, also should be included within the application protection domain, and be incorporated herein with way of reference at this. At this, described second beacon equipment 2 include a kind of can according to setting in advance or the instruction of storage, automatically carrying out the electronic equipment of numerical computations and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Specifically, described first beacon equipment 1 utilizes Clock Synchronization Technology to determine the working mode change moment of described second beacon equipment 2, when described second device 22 sends a flag information, described first beacon equipment 1 generates or obtains a link order from other equipment, and described link order is sent to described first device 11 by routine interface or http agreement etc.
Or, generation that described first beacon equipment 1 is asynchronous or obtain a link order from other equipment.
At this, described link order includes: indicate described first beacon equipment 1 to carry out, with described second beacon equipment 2, the instruction that equipment is connected. It can also include but not limited to following any one: for indicating described second beacon equipment 2 to provide the instruction of working condition after equipment connects, for indicating described second beacon equipment 2 to change the instruction etc. of mode of operation relevant information of self. Wherein, the working condition of described second beacon equipment 2 includes but not limited to: the abnormal conditions etc. in the situation of electric quantity of power supply, described second beacon equipment 2. Described mode of operation relevant information includes but not limited to: the allocation strategy etc. of broadcast mode and the pattern of reception in described second beacon equipment 2.
Such as, the monitoring software timing in described first beacon equipment 1 generates the link order comprising the cell condition obtaining described second beacon equipment 2, and passes to described first device 11.
And for example, the monitoring software in described first beacon equipment 1 cell condition according to obtained described second beacon equipment 2, generate the allocation strategy for the broadcast mode and the pattern of reception adjusting described second beacon equipment 2, then the link order comprising described strategy is passed to described first device 11.
Described second device 22 switches between broadcast mode and reception pattern according to default rule, when switching to reception pattern from broadcast mode, sends a flag information.
At this, described rule refers to described second beacon equipment 2 switching law between broadcast mode and reception pattern. Described rule can be random switching, it is also possible to be arrange at least one reception pattern after at least two broadcast mode. Such as, insert one after every five the broadcast mode end cycles of described rule settings and receive pattern. Preferably, it is contemplated that extend the battery-powered time of described second beacon equipment 2, described rule is insert one after at least two broadcast mode to receive pattern as far as possible.
At this, described broadcast mode refers to that described second beacon equipment 2 only sends broadcast signaling according to the default period 1. Such as, described second beacon equipment 2 opened, every 3 minutes, the timing cycles sending broadcast signaling under the control of clock control signal.
At this, described reception pattern refers to that described second beacon equipment 2 is according to communicating with described first beacon equipment 1 default second round and receiving the connection request that described first beacon equipment 1 is sent, in order to described first beacon equipment 1 sets up communication connection. Described reception pattern can only comprise the mode of operation receiving the connection request that described first beacon equipment 1 sends. Such as, described second beacon equipment 2 opens the timing cycles for receiving connection request immediately after sending described flag information, in order to receive described connection request. And for example, described second beacon equipment 2, after sending described flag information, opens the timing cycles for receiving connection request after default time delay. Described reception pattern not only can also receive described connection request but also send connection response. Such as, described second beacon equipment 2, after sending described flag information, is first opened the timing cycles for sending broadcast signaling, is then turned on the timing cycles for receiving connection request.
At this, described flag information is used for informing described first beacon equipment 1, and described second beacon equipment 2 is about to be in or come into reception pattern. Described flag information individually can be broadcasted when patten transformation by described second device 22, can also carry in last broadcast signaling before broadcast mode switches to reception pattern by described second device 22, it is also possible to carried in first signaling after broadcast mode switches to reception pattern by described second device 22.
Described 3rd device 13 receives the flag information that described second device 22 provides, and detects whether to obtain described flag information.
Specifically, if described second device 22 individually sends described flag information, then described 3rd device 13 obtains and determines the described flag information of acquisition. If described flag information is assigned in broadcast signaling by described second device 22, then described 3rd device 13 resolves obtained each broadcast signaling according to default protocol rule, and detects whether comprise described flag information in obtained broadcast signaling. Described 3rd device 13, after described flag information being detected, will notify described 5th device 15, otherwise, then not notify.
Preferably, described 3rd device 13 also obtains the link order that described first device 11 sends, and is preserved.
Such as, described first device 11, after obtaining described link order, passes it to described 3rd device 13, and described 3rd device 13 not timely responds to, but saves it in internal memory, to use when follow up device runs.
Described 5th device 15, when obtaining described flag information, sends connection request according to described link order to described second beacon equipment 2, is connected with the equipment of described second beacon equipment 2 setting up described first beacon equipment 1.
At this, the mode that described 5th device 15 sends connection request according to described link order to described second beacon equipment 2 includes but not limited to: the 1) link order that described 5th device 15 preserves according to default storage address extraction, if described first device 11 has preserved link order, then send connection request to described second beacon equipment 2, otherwise, then not send. At this, described 5th device 15 can send the connection request comprising described link order, it is also possible to sends the connection request that content is sky.
Such as, if described second device 22 is after sending described flag information, open the timing cycles for receiving connection request immediately, then described 5th device 15 sends described connection request to the 4th device 24 in described second beacon equipment 2 immediately after determining the described flag information of acquisition, to guarantee to be able to receive that described connection request in described 4th device 24 is during this sequential.
2) described 5th device 15 is provided with trigger, triggers described link order when receiving described flag information, and send connection request to described second beacon equipment 2 after a time slot. Wherein, the width of described time slot should correspond to described second device 22 and send the described flag information interval to the timing cycles opened for receiving connection request. Preferably, the transmission interval of described time slot and described flag information is corresponding.
Such as, described 5th device 15 is when determining the described flag information of acquisition, and the transmission interval sending described flag information according to default described second device 22 of correspondence carries out time delay, sends described connection request again through triggering described link order.
Described 4th device 24 receives the connection request that described 5th device 15 sends, and sets up described first beacon equipment 1 and is connected with the equipment of described second beacon equipment 2.
Specifically, described 4th device 24 receive pattern sequential during in receive described connection request, then set up described first beacon equipment 1 and be connected with the equipment of described second beacon equipment 2.
Fig. 2 illustrates another first beacon equipment for connecting according to the application based on beacon foundation. Described first beacon equipment 1, except comprising first device the 11, the 3rd device 13 described in Fig. 1 and except the 5th device 15, also comprises the 7th device 17, if connecting for setting up described equipment, forbidding sending beacon message, connecting until exiting described equipment.
Specifically, described first beacon equipment 1, carrying out with the second beacon equipment 2 before equipment is connected, sends beacon message at set intervals, is beneficial to other blue-tooth device identification. When described second device 22 switches to reception pattern from broadcast mode, send a flag information. When described 3rd device 13 receives and described flag information detected, notify that described 5th device 15 sends connection request according to described link order to the 4th device 24 in described second beacon equipment 2, be connected with the equipment of described second beacon equipment 2 setting up described first beacon equipment 1. During described 4th device 24 receives described connection request and equipment of setting up with described first beacon equipment 1 is connected, described 7th device 17 is forbidden utilizing broadcast mode to send beacon message, is connected effectively to prevent described first beacon equipment 1 from setting up equipment with other second beacon equipments 2.
Fig. 3 illustrates another second beacon equipment for connecting according to the application based on beacon foundation.Except comprising the second device 22 shown in Fig. 1 or Fig. 2 and except the 4th device 24 in described second beacon equipment 2, also include: the 6th device 26, for arranging the mode of operation relevant information of described second beacon equipment 2.
At this, described mode of operation relevant information includes following at least any one: the time span information of described broadcast mode; The time span information of described reception pattern; The time span percent information of the relatively described reception pattern of described broadcast mode; The time span information of described flag information.
At this, described 6th device 26 can set described mode of operation relevant information under the operation of technical staff or during running software. Such as, described 6th device 26 described second beacon equipment 2 power on operation or open Bluetooth function time, the described mode of operation relevant information of initialized setting.
Fig. 4 illustrates another second beacon equipment for connecting of the application based on beacon foundation. Described second beacon equipment 2 can also comprise the 6th device 26 shown in Fig. 3 except comprising the second device the 22, the 4th device 24 shown in Fig. 1 or 2, and the 8th device 28, adjust described mode of operation relevant information for the consumption information according to described second beacon equipment 2. Wherein, described consumption information includes but not limited to: the information about power etc. of power supply.
At this, described 8th device 28 can according to default regular independent operating. Wherein, described default rule includes but not limited to: regularly obtain the consumption information of described second beacon equipment 2 the adjustment relation of default consumption information and mode of operation relevant information.
Such as, described 8th device 28 detects the electric quantity of power supply of described second beacon equipment 2 lower than preset value, is increased according to described adjustment relation by the time span percent information of relatively described for described broadcast mode reception pattern, in order to power saving more.
Described 8th device 2 can also be run based on described link order. Such as, described first device 11 obtains the link order comprising the time span information extending described reception pattern in advance, when described second device 22 switches to reception pattern from broadcast mode, sends a flag information. When described 3rd device 13 receives and described flag information detected, notify that described 5th device 15 sends, to the 4th device 24 in described second beacon equipment 2, the connection request comprising described link order according to described link order, be connected with the equipment of described second beacon equipment 2 setting up described first beacon equipment 1. The time span of described reception pattern is extended a cycle receiving pattern based on described link order by described 8th device 28.
Fig. 5 illustrates a kind of the 3rd beacon equipment for setting up connection based on beacon according to the application. Described 3rd beacon equipment 3 comprises first device the 31, second device the 32, the 3rd device the 33, the 4th device 34 and the 5th device 35. Alternatively, it is also possible to comprise at least one in the 6th device the 36, the 7th device the 37, the 8th device 38.
At this, described first device the 31, second device the 32, the 3rd device the 33, the 4th device 34 and the work process of the 5th device 35 are same or similar with the work process of first device the 11, second device the 22, the 3rd device the 13, the 4th device 24 described in Fig. 1 and the 5th device 15, therefore are not described in detail in this.
Work process described sixth device 26, seventh device 17 corresponding to Fig. 2 to 4 of described 6th device the 36, the 7th device 37 and the 8th device 38 and the work process of the 8th device 28 are same or similar, therefore are not described in detail in this.
Specifically, described 3rd beacon equipment 3 may utilize described second device 32 and the 4th device 34 described first beacon equipment 1 arbitrary with Fig. 1 to Fig. 4 is set up equipment and be connected.
Such as, the first device 11 in described first beacon equipment 1 obtains in advance sets up, with described 3rd beacon equipment, the link order being connected for indicating, and transfers to described 3rd device 13 to be preserved. The 6th device 36 in described 3rd beacon equipment 2, when bluetooth starts, namely arranges the mode of operation relevant information of described second device 32. Then, the second device 32 in described 3rd beacon equipment 3 according to default working mode change relevant information carry out broadcast mode be converted to reception pattern time, the broadcast packet beacon message containing flag information, the 3rd device 13 in described first beacon equipment 1 receives it, and when described flag information being detected, notify described 5th device 15 and the 7th device 17. Wherein, the 7th device 17 in described first beacon equipment 1 stops the broadcast mode of place beacon equipment, to forbid sending beacon message until the connection of described equipment terminates. Meanwhile, the 5th device 15 in described first beacon equipment 1 is based on the flag information received and link order, and after carrying out time delay according to the interval of the correspondence described flag information of broadcast, send connection request to described 4th device 34, be connected with the equipment of described 3rd beacon equipment 3 to set up. After equipment connection establishment, adjustable strategies that the 8th device 38 in described 3rd beacon equipment 3 provides according to described first beacon equipment 1 or the mode of operation relevant information adjusting self according to built-in adjustable strategies, and notify described first beacon equipment 1.
Or, described 3rd beacon equipment 3 is also with described first device the 31, the 3rd device 33 and the 5th device 35 described second beacon equipment 2 arbitrary with Fig. 1 to Fig. 4 is set up equipment and be connected.
It should be noted that, those skilled in the art should understand that first device the 31, the 3rd device the 33, the 5th device 35 in described 3rd beacon equipment 3 and optional 7th device 37 are same or similar with the work process of first device the 11, the 3rd device the 13, the 5th device 15 in the first beacon equipment 1 shown in Fig. 1 to Fig. 4 and the 7th device 17, therefore be not described in detail in this.
Fig. 6 illustrates a kind of method for setting up connection based on beacon according to one aspect of the application. Wherein, described method is mainly performed by the first beacon equipment and the second beacon equipment. Described first beacon equipment mainly performs step S11, S13 and S15. Described second beacon equipment mainly performs step S22 and S24. Specifically, in step s 11, described first beacon equipment obtains the link order about the second beacon equipment initiated by self; In step S22, described second beacon equipment sends the flag information of described second beacon equipment to described first beacon equipment when switching to reception pattern from broadcast mode; In step s 13, described first beacon equipment detects and confirms to obtain the flag information of described second beacon equipment; In step S15, described first beacon equipment sends connection request according to link order to described second beacon equipment; In step s 24, described second beacon equipment receives described connection request, and sets up described first beacon equipment and be connected with the equipment of described second beacon equipment.
At this, described first beacon equipment can be realized by comprising the network host of blue-tooth device, single network server or multiple webserver collection etc.Those skilled in the art will be understood that above-mentioned first beacon equipment is only for example, and other existing or first beacon equipments of being likely to occur from now on, as being applicable to the application, also should be included within the application protection domain, and be incorporated herein with way of reference at this. At this, described first beacon equipment include a kind of can according to setting in advance or the instruction of storage, automatically carrying out the electronic equipment of numerical computations and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
At this, described second beacon equipment is that the electric terminal comprising the blue-tooth device corresponding with the blue-tooth device in described first beacon equipment realizes. Such as, bluetooth earphone, Bluetooth terminal etc. Those skilled in the art will be understood that above-mentioned second beacon equipment is only for example, and other existing or second beacon equipments of being likely to occur from now on, as being applicable to the application, also should be included within the application protection domain, and be incorporated herein with way of reference at this. At this, described second beacon equipment include a kind of can according to setting in advance or the instruction of storage, automatically carrying out the electronic equipment of numerical computations and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Specifically, in step s 11, described first beacon equipment utilizes Clock Synchronization Technology to determine the working mode change moment of described second beacon equipment, and when described second beacon equipment performs step S22 to send a flag information, described first beacon equipment generates or obtains a link order from other equipment.
Or, generation that described first beacon equipment is asynchronous or obtain a link order from other equipment.
At this, described link order includes: indicate described first beacon equipment to carry out, with described second beacon equipment, the instruction that equipment is connected. It can also include but not limited to following any one: for indicating described second beacon equipment to provide the instruction of working condition after equipment connects, for indicating the instruction etc. of mode of operation relevant information of described second beacon equipment change self. Wherein, the working condition of described second beacon equipment includes but not limited to: the abnormal conditions etc. in the situation of electric quantity of power supply, described second beacon equipment. Described mode of operation relevant information includes but not limited to: the allocation strategy etc. of broadcast mode and the pattern of reception in described second beacon equipment.
Such as, the timing of the monitoring software in described first beacon equipment generates the link order comprising the cell condition obtaining described second beacon equipment.
And for example, the cell condition according to obtained described second beacon equipment of the monitoring software in described first beacon equipment, generate the allocation strategy for the broadcast mode and the pattern of reception adjusting described second beacon equipment.
In step S22, described second beacon equipment switches between broadcast mode and reception pattern according to default rule, when switching to reception pattern from broadcast mode, sends a flag information.
At this, described rule refers to described second beacon equipment switching law between broadcast mode and reception pattern. Described rule can be random switching, it is also possible to be arrange at least one reception pattern after at least two broadcast mode. Such as, insert one after every five the broadcast mode end cycles of described rule settings and receive pattern. Preferably, it is contemplated that extend the battery-powered time of described second beacon equipment, described rule is insert one after at least two broadcast mode to receive pattern as far as possible.
At this, described broadcast mode refers to that described second beacon equipment only sends broadcast signaling according to the default period 1.Such as, described second beacon equipment opened, every 3 minutes, the timing cycles sending broadcast signaling under the control of clock control signal.
At this, described reception pattern refers to that described second beacon equipment is according to default second round and described first beacon equipment communication, and receives the connection request that described first beacon equipment is sent, in order to described first beacon equipment sets up communication connection. Described reception pattern can only comprise the mode of operation receiving the connection request that described first beacon equipment sends. Such as, described second beacon equipment opens the timing cycles for receiving connection request immediately after sending described flag information, in order to receive described connection request. And for example, described second beacon equipment, after sending described flag information, opens the timing cycles for receiving connection request after default time delay. Described reception pattern not only can also receive described connection request but also send connection response. Such as, described second beacon equipment, after sending described flag information, is first opened the timing cycles for sending broadcast signaling, is then turned on the timing cycles for receiving connection request.
At this, described flag information is used for informing described first beacon equipment, and described second beacon equipment is about to be in or come into reception pattern. Described flag information individually can be broadcasted when patten transformation by described second beacon equipment, can also carry in last broadcast signaling before broadcast mode switches to reception pattern by described second beacon equipment, it is also possible to carried in first signaling after broadcast mode switches to reception pattern by described second beacon equipment.
In step s 13, described first beacon equipment receives the flag information that described second beacon equipment provides, and detects whether to obtain described flag information.
Specifically, if described second beacon equipment individually sends described flag information, then described first beacon equipment obtains and determines the described flag information of acquisition. If described flag information is assigned in broadcast signaling by described second beacon equipment, then described first beacon equipment resolves obtained each broadcast signaling according to default protocol rule, and detects whether comprise described flag information in obtained broadcast signaling. Described first beacon equipment, after described flag information being detected, performs step S13, otherwise, then not perform.
Preferably, obtained link order is preserved by described first beacon equipment.
Such as, described first beacon equipment not timely responds to after described link order obtaining, but saves it in internal memory, with waiting receive described flag information after start and perform.
In step S15, described first beacon equipment, when obtaining described flag information, sends connection request according to described link order to described second beacon equipment, is connected with the equipment of described second beacon equipment setting up described first beacon equipment.
At this, the mode that described first beacon equipment sends connection request according to described link order to described second beacon equipment includes but not limited to: the 1) link order that described first beacon equipment preserves according to default storage address extraction, if described first beacon equipment has preserved link order, then send connection request to described second beacon equipment, otherwise, then not send. At this, described first beacon equipment can send the connection request comprising described link order, it is also possible to sends the connection request that content is sky.
Such as, if described second beacon equipment is after sending described flag information, open the timing cycles for receiving connection request immediately, then described first beacon equipment sends described connection request to described second beacon equipment immediately after determining the described flag information of acquisition, to guarantee to be able to receive that described connection request in described second beacon equipment is during this sequential.
2) described first beacon equipment is provided with trigger, triggers described link order when receiving described flag information, and send connection request to described second beacon equipment after a time slot. Wherein, the width of described time slot should correspond to described second beacon equipment and send the described flag information interval to the timing cycles opened for receiving connection request. Preferably, the transmission interval of described time slot and described flag information is corresponding.
Such as, described first beacon equipment is when determining the described flag information of acquisition, and the transmission interval sending described flag information according to default described second beacon equipment of correspondence carries out time delay, sends described connection request again through triggering described link order.
In step s 24, described second beacon equipment receives the connection request that described first beacon equipment sends, and sets up described first beacon equipment and is connected with the equipment of described second beacon equipment.
Specifically, described second beacon equipment receive pattern sequential during in receive described connection request, then set up described first beacon equipment and be connected with the equipment of described second beacon equipment.
Fig. 7 illustrates another method for setting up connection based on beacon according to the application. In described method of attachment except comprising step S11, S13, S15 and step S22, S24, also comprise step S17, i.e. if described first beacon equipment is set up described equipment and connected, forbidding sending beacon message, connecting until exiting described equipment.
Specifically, described first beacon equipment, carrying out with the second beacon equipment before equipment is connected, sends beacon message at set intervals, is beneficial to other blue-tooth device identification. When described second beacon equipment switches to reception pattern from broadcast mode, send a flag information. When described first beacon equipment receives and described flag information detected, send connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment. During described second beacon equipment receives described connection request and equipment of setting up with described first beacon equipment is connected, described first beacon equipment is forbidden utilizing broadcast mode to send beacon message, is connected effectively to prevent described first beacon equipment from setting up equipment with other second beacon equipments.
Fig. 8 illustrates another method for setting up connection based on beacon according to the application. In described method of attachment except comprising step S11, S13, S15 and step S22, S24, also including: step S26, described second beacon equipment arranges the mode of operation relevant information of described second beacon equipment.
At this, described mode of operation relevant information includes following at least any one: the time span information of described broadcast mode; The time span information of described reception pattern; The time span percent information of the relatively described reception pattern of described broadcast mode; The time span information of described flag information.
At this, described second beacon equipment can set described mode of operation relevant information under the operation of technical staff or during running software.Such as, described second beacon equipment power on operation or open Bluetooth function time, the described mode of operation relevant information of initialized setting.
Fig. 9 illustrates another method for setting up connection based on beacon of the application. In described method of attachment except comprising step S11, S13, S15 and step S22, S24, S26, also including: step S28, described second beacon equipment adjusts described mode of operation relevant information according to the consumption information of described second beacon equipment. Wherein, described consumption information includes but not limited to: the information about power etc. of power supply.
At this, described second beacon equipment can according to default regular independent operating. Wherein, described default rule includes but not limited to: regularly obtain the consumption information of described second beacon equipment the adjustment relation of default consumption information and mode of operation relevant information.
Such as, described second beacon equipment detects electric quantity of power supply lower than preset value, is increased according to described adjustment relation by the time span percent information of relatively described for described broadcast mode reception pattern, in order to power saving more.
Described second beacon equipment can also be run based on described link order. Such as, described first beacon equipment obtains the link order comprising the time span information extending described reception pattern in advance, when described second beacon equipment switches to reception pattern from broadcast mode, sends a flag information. When described first beacon equipment receives and described flag information detected, send to described second beacon equipment according to described link order and comprise the connection request of described link order, be connected with the equipment of described second beacon equipment setting up described first beacon equipment. The time span of described reception reception pattern is extended a cycle receiving pattern based on described link order by described second beacon equipment.
In sum, the application's is a kind of for setting up the method and apparatus connected based on beacon, according to the flag information that described second beacon equipment sends, described first beacon equipment confirms that the mode of operation of described second beacon equipment enters reception pattern, can effectively set up and the communication connection of the second beacon equipment, so that the first beacon equipment and the second beacon equipment can carry out equipment connection automatically, thus instead of all inconvenience of artificial participation; Simultaneously, by the mode of operation of described second beacon equipment by manually more changing into automatic change, realize setting up equipment with described first beacon equipment to be connected, can be convenient to the second beacon equipment is carried out maintenance and management, it is to avoid be not easy to the situation of maintenance and management by the factor such as environment, geographical position; Additionally, described first beacon equipment is not the link order that makes an immediate response, but first preserved, again after the second beacon equipment sends flag information, trigger described link order again, to send connection request, it is possible to the process work front-end processing before link order being connected with equipment effectively separates, to reduce the dependence that front-end processing work is connected by equipment, improve work efficiency; Further, due to the transmission of information with receive and have a slot time, therefore the transmission connection request of described first beacon equipment time delay, it is possible to the nonsynchronous situation with the reception pattern of the second beacon equipment that effectively reduces occurs; Additionally, described second beacon equipment adjusts the ratio of two kinds of mode of operations by monitoring self energy consumption, it is possible to active balance power supply is powered the contradiction between duration and the power consumption of two-way communication. So, the application effectively overcomes various shortcoming of the prior art and has high industrial utilization.
It should be noted that the application can be implemented in the assembly of software and/or software and hardware, for instance, special IC (ASIC), general purpose computer or any other similar hardware device can be adopted to realize.In one embodiment, the software program of the application can perform to realize steps described above or function by processor. Similarly, the software program of the application can be stored in computer readable recording medium storing program for performing (including the data structure being correlated with), for instance, RAM memory, magnetically or optically driver or floppy disc and similar devices. It addition, some steps of the application or function can employ hardware to realize, for instance, as coordinating with processor thus performing the circuit of each step or function.
It addition, the part of the application can be applied to computer program, for instance computer program instructions, when it is computer-executed, by the operation of this computer, it is possible to call or provide according to the present processes and/or technical scheme. And call the programmed instruction of the present processes, it is possibly stored in fixing or moveable record medium, and/or by broadcast or data stream in other signal bearing medias and be transmitted, and/or be stored in the working storage of the computer equipment run according to described programmed instruction. At this, an embodiment according to the application includes a device, this device includes the memorizer for storing computer program instructions and for performing the processor of programmed instruction, wherein, when this computer program instructions is performed by this processor, trigger this plant running based on the method for aforementioned multiple embodiments according to the application and/or technical scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned one exemplary embodiment, and when without departing substantially from spirit herein or basic feature, it is possible to realize the application in other specific forms. Therefore, no matter from which point, embodiment all should be regarded as exemplary, and be nonrestrictive, scope of the present application is limited by claims rather than described above, it is intended that all changes in the implication of the equivalency dropping on claim and scope be included in the application. Any accompanying drawing labelling in claim should be considered as the claim that restriction is involved. Furthermore, it is to be understood that " including " word is not excluded for other unit or step, odd number is not excluded for plural number. Multiple unit or the device stated in device claim can also be realized by software or hardware by a unit or device. The first, the second word such as grade is used for representing title, and is not offered as any specific order.

Claims (19)

1. at the first beacon equipment end for setting up the method connected based on beacon, including:
Obtain the link order about the second beacon equipment initiated by the first beacon equipment;
Detect whether to obtain the flag information of described second beacon equipment;
When obtaining described flag information, send connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment.
2. method according to claim 1, wherein, the method also includes:
If setting up described equipment to connect, forbidding sending beacon message, connecting until exiting described equipment.
3. method according to claim 1 and 2, wherein, described in detect whether that the flag information obtaining described second beacon equipment includes:
Store described link order, and detect whether to obtain the flag information of described second beacon equipment.
4. according to the method in any one of claims 1 to 3, wherein, described according to described link order to described second beacon equipment send connection request include:
Trigger described link order, and send connection request to described second beacon equipment after a time slot.
5. method according to claim 4, wherein, the transmission interval of described time slot and described flag information is corresponding.
6. at the second beacon equipment end for setting up the method connected based on beacon, including:
The flag information of described second beacon equipment is sent when the second beacon equipment switches to reception pattern from broadcast mode;
Receive the connection request that first information equipment sends, set up described first beacon equipment and be connected with the equipment of described second beacon equipment.
7. method according to claim 6, wherein, the method also includes:
The mode of operation relevant information of described second beacon equipment is set.
8. method according to claim 7, wherein, the method also includes:
Consumption information according to described second beacon equipment adjusts described mode of operation relevant information.
9. the method according to claim 7 or 8, wherein, described mode of operation relevant information includes following at least any one:
The time span information of described broadcast mode;
The time span information of described reception pattern;
The time span percent information of the relatively described reception pattern of described broadcast mode;
The time span information of described flag information.
10. for setting up first beacon equipment connected based on beacon, including:
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 described second beacon equipment;
5th device, for when obtaining described flag information, sending connection request according to described link order to described second beacon equipment, be connected with the equipment of described second beacon equipment setting up described first beacon equipment.
11. the first beacon equipment according to claim 10, wherein, this equipment also includes:
7th device, if connecting for setting up described equipment, forbidding sending beacon message, connecting until exiting described equipment.
12. the first beacon equipment according to claim 10 or 11, wherein, described 3rd device is used for:
Store described link order, and detect whether to obtain the flag information of described second beacon equipment.
13. the first beacon equipment according to any one of claim 10 to 12, wherein, described according to described link order to described second beacon equipment send connection request include:
Trigger described link order, and send connection request to described second beacon equipment after a time slot.
14. the first beacon equipment according to claim 13, wherein, the transmission interval of described time slot and described flag information is corresponding.
15. for setting up second beacon equipment connected based on beacon, including:
Second device, for sending the flag information of described second beacon equipment when the second beacon equipment switches to reception pattern from broadcast mode;
4th device, for receiving the connection request that first information equipment sends, sets up described first beacon equipment and is connected with the equipment of described second beacon equipment.
16. the second beacon equipment according to claim 15, wherein, this equipment also includes:
6th device, for arranging the mode of operation relevant information of described second beacon equipment.
17. the second beacon equipment according to claim 16, wherein, this equipment also includes:
8th device, adjusts described mode of operation relevant information for the consumption information according to described second beacon equipment.
18. the second beacon equipment according to claim 16 or 17, wherein, described mode of operation relevant information includes following at least any one:
The time span information of described broadcast mode;
The time span information of described reception pattern;
The time span percent information of the relatively described reception pattern of described broadcast mode;
The time span information of described flag information.
19. for setting up the 3rd beacon equipment connected based on beacon, including the first beacon equipment according to any one of such as claim 10 to 14, and the second beacon equipment as according to any one of claim 15 to 18.
CN201410652271.5A 2014-11-17 2014-11-17 It is a kind of for establishing the method and apparatus of connection based on beacon Active CN105682249B (en)

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 true CN105682249A (en) 2016-06-15
CN105682249B 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060140215A1 (en) * 2004-12-28 2006-06-29 Intel Corporation Using the dynamic beacon to enhance power saving capabilities for low power UWB devices
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
US20140133347A1 (en) * 2012-11-13 2014-05-15 Kyungpook National University Industry - Academic Cooperation Foundation Apparatus and method for managing beacon messaging period of vehicular communication
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060140215A1 (en) * 2004-12-28 2006-06-29 Intel Corporation Using the dynamic beacon to enhance power saving capabilities for low power UWB devices
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
US20140133347A1 (en) * 2012-11-13 2014-05-15 Kyungpook National University Industry - Academic Cooperation Foundation Apparatus and method for managing beacon messaging period of vehicular 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
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)

* Cited by examiner, † Cited by third party
Title
寻亚楠: "iBeacon如何工作", 《百度》 *

Also Published As

Publication number Publication date
CN105682249B (en) 2019-06-28

Similar Documents

Publication Publication Date Title
JP6975774B2 (en) Methods and Devices for On-Demand Mobile Devices Access
KR102345874B1 (en) How to set the wake-up signal duration, how to acquire it, network devices and terminals
RU2628324C2 (en) Method and device for signal transmission control and electronic device
US10091307B2 (en) Application management method and terminal
CN102405674B (en) Wireless router control method and wireless router
CN104883483A (en) Control method for low power consumption of network camera supplied by battery
CN102892193A (en) Method and equipment for transmitting data
CN103200314A (en) Intelligent sleep method of mobile terminal and intelligent sleep device of mobile terminal
CN107148059B (en) Network connection switching method, storage device and mobile terminal
CN109272728B (en) Electric quantity management method and device
DE602008005763D1 (en) GROUP POWER MANAGEMENT OF NETWORK DEVICES
CN105554861A (en) Method and system of automatic networking on the basis of position and time
RU2013140408A (en) ENERGY SAVING METHOD, ACCESS POINT DEVICE AND STATION DEVICE
TW200727124A (en) Techniques to manage power for a mobile device
CN110855463B (en) Method, device and equipment for upgrading aerial firmware and computer readable medium
CN103837197B (en) A kind of continual humiture observation system and method
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN103916946A (en) Method and device for adjusting transmission power of portable wireless gateway
CN104484030A (en) Method and device for lowering power consumption of intelligent terminal
WO2021159876A1 (en) Communication method and system, data sending device, and data receiving device
WO2016145876A1 (en) Component carrier link management method and device
CN104247518A (en) Cell search control method, cell search control apparatus, mobile communication terminal, computer program and storage medium
CN104023147B (en) A kind of method and system that make mobile terminal stablize dormancy
CN105101367A (en) Methods for establishing wireless connection, network device and terminal device
CN104243683A (en) Data processing method, terminal, user identification card and data processing system

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