CN108289295B - Bluetooth device, broadcast period adjusting method thereof and computer storage medium - Google Patents

Bluetooth device, broadcast period adjusting method thereof and computer storage medium Download PDF

Info

Publication number
CN108289295B
CN108289295B CN201710667415.8A CN201710667415A CN108289295B CN 108289295 B CN108289295 B CN 108289295B CN 201710667415 A CN201710667415 A CN 201710667415A CN 108289295 B CN108289295 B CN 108289295B
Authority
CN
China
Prior art keywords
bluetooth
broadcast period
period
adjusting
unit
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
Application number
CN201710667415.8A
Other languages
Chinese (zh)
Other versions
CN108289295A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710667415.8A priority Critical patent/CN108289295B/en
Publication of CN108289295A publication Critical patent/CN108289295A/en
Application granted granted Critical
Publication of CN108289295B publication Critical patent/CN108289295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0287Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a Bluetooth device, a broadcast period adjusting method thereof and a computer storage medium. The method comprises the following steps: obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state; outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.

Description

Bluetooth device, broadcast period adjusting method thereof and computer storage medium
Technical Field
The invention relates to a Bluetooth communication technology, in particular to a Bluetooth device, a broadcast period adjusting method thereof and a computer storage medium.
Background
Currently, the outdoor Positioning technology can adopt a Global Positioning System (GPS), a glonass System, a beidou System, a galileo satellite navigation System, and the like. However, when the user enters the room, the positioning accuracy of these positioning systems drops dramatically. Mainly because of the effect of indoor barriers on the signal. Therefore, in order to solve the problem of indoor positioning, various indoor positioning technologies, such as wireless fidelity (Wi-Fi) positioning technology, radio frequency identification (rfid) positioning technology, bluetooth positioning technology, infrared indoor positioning technology, and the like, have been derived. The bluetooth positioning technology has a wide coverage area and a certain communication capability, and most of the current mobile terminal devices support the bluetooth technology. Therefore, bluetooth low energy positioning technology has become the preferred technology for indoor positioning. However, bluetooth positioning technology transmits bluetooth packets according to a fixed broadcast period. How to adaptively adjust a broadcast period according to the running state of the bluetooth positioning device, so as to reduce the power consumption of the device, there is no effective solution in the prior art.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a bluetooth device, a broadcast period adjustment method thereof, and a computer storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for adjusting a broadcast period of Bluetooth equipment, which is applied to the Bluetooth equipment; the method comprises the following steps:
obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state;
outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.
In the above scheme, the obtaining the operating state of the bluetooth device and adjusting the broadcast period based on the operating state includes:
and acquiring the time length of the Bluetooth device in the working state, and adjusting the broadcast period based on the time length.
In the above scheme, the broadcast period and the duration have an inverse proportional relationship; alternatively, the first and second electrodes may be,
when the duration is lower than a first threshold, the broadcast period is higher than a first preset period;
when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period;
wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period.
In the above scheme, the method further comprises: receiving an input signal, and obtaining input power based on the input signal, wherein the input power maintains the Bluetooth device in an operating state.
In the above scheme, the obtaining the operating state of the bluetooth device and adjusting the broadcast period based on the operating state includes: and obtaining an energy parameter of the input signal, and adjusting a broadcast period based on the energy parameter.
An embodiment of the present invention further provides a bluetooth device, where the bluetooth device includes: the device comprises an acquisition unit, an adjustment unit and a sending unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring the working state of the Bluetooth equipment;
the adjusting unit is used for adjusting a broadcast period based on the working state obtained by the obtaining unit;
the sending unit is used for outputting data based on the broadcasting period adjusted by the adjusting unit; the data includes an identification characterizing a location of the bluetooth device.
In the above scheme, the obtaining unit is configured to obtain a duration that the bluetooth device is in a stable operating state;
the adjusting unit is used for adjusting the broadcast period based on the time length obtained by the obtaining unit.
In the above scheme, the broadcast period and the duration have an inverse proportional relationship; alternatively, the first and second electrodes may be,
when the duration is lower than a first threshold, the broadcast period is higher than a first preset period;
when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period;
wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period.
In the above scheme, the device further comprises a receiving unit and a converting unit; wherein the content of the first and second substances,
the receiving unit is used for receiving an input signal;
the conversion unit is used for obtaining input electric energy based on the input signal received by the receiving unit, and the input electric energy maintains the Bluetooth device to be in a working state.
In the above scheme, the obtaining unit is configured to obtain an energy parameter of the input signal;
the adjusting unit is used for adjusting a broadcast period based on the energy parameter obtained by the obtaining unit.
Embodiments of the present invention further provide a computer storage medium, on which computer instructions are stored, and the computer instructions, when executed by a processor, implement the steps of the method for adjusting the broadcast period of a bluetooth device according to the embodiments of the present invention.
The embodiment of the invention also provides the Bluetooth equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the method for adjusting the broadcast period of the Bluetooth equipment in the embodiment of the invention.
The embodiment of the invention provides a Bluetooth device, a broadcast period adjusting method thereof and a computer storage medium, wherein the method comprises the following steps: obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state; outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device. By adopting the technical scheme of the embodiment of the invention, the broadcasting period is adaptively adjusted according to the working state of the Bluetooth equipment, so that the output power consumption of the Bluetooth equipment can be automatically adjusted to an optimal value according to the input power (the input power can maintain the Bluetooth equipment in the working state), and particularly, the output power consumption of the Bluetooth equipment can be greatly reduced under the condition of insufficient input power, thereby prolonging the working time of the Bluetooth equipment.
Drawings
Fig. 1 is a flowchart illustrating a broadcast period adjustment method of a bluetooth device according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a broadcast period adjustment method of a bluetooth device according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a specific application of the method for adjusting the broadcast period of the bluetooth device according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another structure of the bluetooth device according to the embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware configuration of a bluetooth device according to an embodiment of the present invention.
Detailed Description
Before describing the bluetooth device and the broadcast period adjustment method thereof according to the embodiment of the present invention, the bluetooth device according to the embodiment of the present invention will be described first.
The Bluetooth device of the embodiment of the present invention is specifically a Bluetooth Beacon (Bluetooth Beacon). The bluetooth beacon functions by sending bluetooth packets to indicate a position to the mobile device. In practical application, the bluetooth beacon transmits a bluetooth data packet including a beacon identifier, where the beacon identifier may specifically be location information, and the location information may specifically be latitude and longitude information, or may also be landmark information of a location where the bluetooth beacon is located, such as a shop name, address information, and the like. After the mobile terminal receives the Bluetooth data packet containing the beacon identification, the technology and the beacon identification determine the position of the mobile terminal to realize indoor positioning.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
The embodiment of the invention provides a method for adjusting a broadcast period of Bluetooth equipment. Fig. 1 is a flowchart illustrating a broadcast period adjustment method of a bluetooth device according to a first embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: and obtaining the working state of the Bluetooth equipment, and adjusting the broadcast period based on the working state.
Step 102: outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.
In this embodiment, the operating state of the bluetooth device represents an operating state of the bluetooth device after being powered on, and when the bluetooth device is in the operating state, the bluetooth device may send data according to a broadcast cycle, where the sent data packet includes an identifier of a location where the bluetooth device is located. Wherein whether the Bluetooth device is in an operating state and the duration of the operating state are related to the required current.
In this embodiment, the power supply mode of the bluetooth device may adopt various modes, and since the bluetooth device serving as the bluetooth beacon adopts the low power consumption bluetooth technology and transmits a data packet at regular intervals of a broadcast cycle, the power consumption of the bluetooth device is low in practical application. As an embodiment, the bluetooth device may be powered by an energy storage module, for example, a battery (e.g., a button battery), a solar battery, an energy storage capacitor, or the like. Based on this, in this embodiment, the obtaining the operating state of the bluetooth device and adjusting the broadcast period based on the operating state includes: and acquiring the time length of the Bluetooth device in the working state, and adjusting the broadcast period based on the time length. The duration is a single duration of the running state of the Bluetooth device after being electrified, and is not an accumulated duration of the running state of the Bluetooth device intermittently.
In this embodiment, the adjusted broadcast period is related to a duration of a working state that the bluetooth device can maintain, that is, the adjusted broadcast period is related to an electric energy for maintaining the working state. Specifically, the longer the duration of the working state that the bluetooth device can maintain is, the shorter the broadcast period is; the shorter the duration of the operating state that the bluetooth device can maintain, the longer the broadcast period.
As an embodiment, the broadcast period has an inverse proportional relationship with the duration, that is, the longer the duration of the bluetooth device in the working state is, the shorter the adjusted broadcast period is; the shorter the time length of the Bluetooth equipment in the working state is, the longer the adjusted broadcast period is, so as to adjust the broadcast period in a self-adaptive manner according to the time length of the Bluetooth equipment in the working state.
In another embodiment, when the duration is lower than a first threshold, the broadcast period is higher than a first preset period; when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period; wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period. Specifically, at least a first threshold and a second threshold are preconfigured for the duration of the working state of the bluetooth device; for a broadcast period, at least a first preset period and a second preset period are configured in advance; when the duration is smaller than a smaller first threshold, adjusting the broadcast period to be a longer first preset period; and when the duration is greater than a second larger threshold, adjusting the broadcast period to be a second shorter preset period so as to adaptively adjust the broadcast period according to the duration of the working state of the Bluetooth equipment. Wherein, a plurality of thresholds (more than two thresholds) can be configured in advance for the time length of the Bluetooth device in the working state; correspondingly, a plurality of preset periods (more than two) corresponding to the duration can be configured in advance for the broadcast period; the preset threshold value corresponds to the preset period one by one; the pre-configured threshold and the actual value of the preset period can be configured according to actual conditions.
By adopting the technical scheme of the embodiment of the invention, the broadcasting period is adaptively adjusted according to the working state of the Bluetooth equipment, so that the output power consumption of the Bluetooth equipment can be automatically adjusted to an optimal value according to the input power (the input power can maintain the Bluetooth equipment in the working state), and particularly, the output power consumption of the Bluetooth equipment can be greatly reduced under the condition of insufficient input power, thereby prolonging the working time of the Bluetooth equipment.
Example two
The embodiment of the invention also provides a method for adjusting the broadcast period of the Bluetooth equipment. Fig. 2 is a flowchart illustrating a broadcast period adjustment method of a bluetooth device according to a second embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: receiving an input signal, and obtaining input power based on the input signal, wherein the input power maintains the Bluetooth device in an operating state.
Step 202: and obtaining an energy parameter of the input signal, and adjusting a broadcast period based on the energy parameter.
Step 203: outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.
The broadcast period adjusting method of the embodiment is applied to the bluetooth device, and the bluetooth device supplies power to itself by adopting a wireless charging technology without using an external power supply or a built-in energy storage module (such as a battery, an energy storage capacitor and the like). The received input signal may specifically be a radio frequency input signal. In one embodiment, the receiving device in the bluetooth apparatus receives the rf input signal, which may be the rf input signal directly transmitted from the transmitting device, or the rf input signal transmitted by the transmitting device and transmitted through a transmitting surface such as a wall. Further, the obtained radio frequency input signal is converted into a direct current power supply, and the Bluetooth device is maintained in the working state based on the converted direct current power supply. The working state of the Bluetooth equipment represents the running state of the Bluetooth equipment after being electrified, when the Bluetooth equipment is in the working state, the Bluetooth equipment can send data according to a broadcasting cycle, and the sent data packet comprises the identifier of the position of the Bluetooth equipment. And judging whether the Bluetooth device is in the working state or not and the duration of the working state of the Bluetooth device are related to the required current, namely, whether the Bluetooth device is in the working state or not and the duration of the working state of the Bluetooth device are related to the received input signal.
In this embodiment, the energy parameter of the input signal may specifically be a power value, or may be another parameter capable of representing the energy of the radio frequency signal. In this embodiment, the broadcast period is adjusted based on the energy parameter, and the adjusted broadcast period is associated with the energy parameter. Specifically, the higher the energy parameter, the shorter the broadcast period; the lower the energy parameter, the longer the broadcast period.
As an embodiment, the broadcast period has an inverse proportional relationship with the energy parameter, i.e. the higher the energy parameter is, the shorter the adjusted broadcast period is; the lower the energy parameter is, the longer the adjusted broadcast period is, so as to adaptively adjust the broadcast period according to the energy parameter.
As another embodiment, when the energy parameter is lower than a third threshold, the broadcast period is higher than a third preset period; when the energy parameter is higher than a fourth threshold value, the broadcast period is lower than a fourth preset period; wherein the third threshold is less than the fourth threshold; the third preset period is greater than the fourth preset period. Specifically, at least a third threshold and a fourth threshold are configured in advance for the energy parameter; at least a third preset period and a fourth preset period are configured in advance for the broadcast period; when the energy parameter is smaller than a smaller third threshold value, adjusting the broadcast period to be a longer third preset period; and when the energy parameter is larger than a larger fourth threshold, adjusting the broadcast period to a shorter fourth preset period so as to adaptively adjust the broadcast period according to the energy parameter. Wherein a plurality of thresholds (which may be more than two) may be preconfigured for the energy parameter; correspondingly, a plurality of preset periods (more than two) corresponding to the duration can be configured in advance for the broadcast period; the preset threshold value corresponds to the preset period one by one; the pre-configured threshold and the actual value of the preset period can be configured according to actual conditions.
By adopting the technical scheme of the embodiment of the invention, on one hand, the output power consumption of the Bluetooth equipment can be automatically adjusted to an optimal value according to the input power (the input power can maintain the Bluetooth equipment in a working state) by adaptively adjusting the broadcast period of the energy parameter (such as the power value) of the input signal received by the Bluetooth equipment; on the other hand, the bluetooth device supplies power to itself through the wireless charging technology, and does not need to use an external power supply or a built-in energy storage module (such as a battery, an energy storage capacitor and the like) for supplying power, so that the bluetooth device has permanent working capacity.
The following describes a broadcast period adjustment method of a bluetooth device according to an embodiment of the present invention with reference to a specific application scenario.
Fig. 3 is a flowchart illustrating a specific application of the method for adjusting the broadcast period of the bluetooth device according to the embodiment of the present invention; in this embodiment, a bluetooth device is taken as a bluetooth beacon as an example for explanation. As shown in fig. 3, the method includes:
step 301 to step 302: after the bluetooth beacon is powered on, judging whether the bluetooth beacon is in a stable working state, and executing the step 303 to the step 304 when the bluetooth beacon is judged not to be in the stable working state (namely in an unstable working state); when it is determined that the bluetooth beacon is in a stable operating state, step 304 is performed directly.
In this step, whether the bluetooth beacon is in the stable working state can be determined by representing whether the Flag identifier is in the stable working state; for example, determine if Flag is equal to 1; if the Flag mark is equal to 1, judging that the Bluetooth beacon is not in a stable working state; and if the Flag mark is equal to 0, judging that the Bluetooth beacon is in a stable working state.
Step 303: a broadcast cycle rollback, which is an embodiment of the broadcast cycle rollback first gear; in the embodiment, four optional broadcast periods are configured in advance, which are a broadcast period T1, a broadcast period T2, a broadcast period T3 and a broadcast period T4; wherein T1> T2> T3> T4. Wherein, the broadcast period rollback means that the broadcast period is switched from a smaller broadcast period to a larger broadcast period; for example, the current broadcast period is T4, the broadcast period is T3 after the broadcast period rolls back to first gear,
step 304: judging whether each broadcasting period is in a stable working state or not; when the broadcasting period is in the stable working state, executing the steps 305 to 313; when the broadcasting periods are not in the stable working state, the steps 314 to 317 are executed.
In the step, whether each broadcasting period is in the stable working state is judged specifically by representing whether the corresponding broadcasting period is in the stable working state T _ flag; for example, T1_ flag, T2_ flag, T3_ flag, T4_ flag may respectively indicate whether a stable operation state is in progress within the broadcast period T1, the broadcast period T2, the broadcast period T3, and the broadcast period T4; taking T1_ flag as an example, judging whether the T1_ flag is equal to 0; when the T1_ flag is equal to 0, indicating that the broadcasting period T1 is in a stable operating state, and correspondingly, if T1_ flag is T2_ flag is T3_ flag is T4_ flag is 0, indicating that the broadcasting period T1, the broadcasting period T2, the broadcasting period T3 and the broadcasting period T4 are in a stable operating state.
Step 305 to step 306: selecting a broadcast period T1 for the Bluetooth beacon, and determining whether the Bluetooth beacon is working stably for M minutes (M is a positive integer), and if the Bluetooth beacon is working stably for M minutes, further executing step 307; when the bluetooth beacon can not work stably for M minutes, the step 301 is executed again, and the bluetooth beacon is powered on again; when the Bluetooth beacon works stably for M minutes, the T1_ flag is assigned to be 0, and correspondingly, when the Bluetooth beacon cannot work stably for M minutes, the T1_ flag is assigned to be 1.
Step 307 to step 308: when it is determined that the bluetooth beacon cannot stably operate for M minutes within the broadcast period T1, that is, the T1_ flag is assigned to 1, the broadcast period is adjusted to T2, and it is determined whether the bluetooth beacon stably operates for M minutes (M is a positive integer), and when the bluetooth beacon stably operates for M minutes, step 309 is further performed; when the bluetooth beacon can not work stably for M minutes, the step 301 is executed again, and the bluetooth beacon is powered on again; when the bluetooth beacon stably works for M minutes in the broadcast period T2, the T2_ flag is assigned to 0, and correspondingly, when the bluetooth beacon cannot stably work for M minutes in the broadcast period T2, the T2_ flag is assigned to 1.
Step 309 to step 310: when it is determined that the bluetooth beacon cannot stably operate for M minutes within the broadcast period T2, that is, the T2_ flag is assigned to 1, adjusting the broadcast period to T3, and determining whether the bluetooth beacon stably operates for M minutes (M is a positive integer), when the bluetooth beacon stably operates for M minutes, further performing step 311; when the bluetooth beacon can not work stably for M minutes, the step 301 is executed again, and the bluetooth beacon is powered on again; when the bluetooth beacon stably works for M minutes in the broadcast period T3, the T3_ flag is assigned to 0, and correspondingly, when the bluetooth beacon cannot stably work for M minutes in the broadcast period T3, the T3_ flag is assigned to 1.
Step 311 to step 312: when it is determined that the bluetooth beacon cannot stably operate for M minutes within the broadcast period T3, that is, the T3_ flag is assigned to 1, adjusting the broadcast period to T4, and determining whether the bluetooth beacon stably operates for M minutes (M is a positive integer), when the bluetooth beacon stably operates for M minutes, further performing step 313; when the bluetooth beacon can not work stably for M minutes, the step 301 is executed again, and the bluetooth beacon is powered on again; when the bluetooth beacon stably works for M minutes in the broadcast period T4, the T4_ flag is assigned to 0, and correspondingly, when the bluetooth beacon cannot stably work for M minutes in the broadcast period T4, the T4_ flag is assigned to 1.
Step 313: when it is determined that the bluetooth beacon is stably operated for M minutes within the broadcast period T4, that is, the T4_ Flag is assigned to 1, it is determined that the bluetooth beacon is in an unstable operation state, that is, Flag is equal to 1, and steps 315 to 317 are further performed.
Step 314 to step 315: when the Bluetooth beacons are not in a stable working state in each broadcast period, namely at least one of the broadcast period T1, the broadcast period T2, the broadcast period T3 and the broadcast period T4 is in an unstable working state, selecting the shortest period corresponding to the unstable working state, and judging whether the Bluetooth beacons are in stable working for N (N is a positive integer and is greater than M) minutes in the shortest period; when the bluetooth beacon can stably work for N minutes in the shortest period, executing step 316; when the bluetooth beacon cannot stably work for N minutes in the shortest period, step 301 is executed again, and the bluetooth beacon power-on is executed again.
Step 316: when the Bluetooth beacon can stably work for N minutes in the shortest period, determining that the Bluetooth beacon is in a stable working state, and setting a Flag identifier to be 0; and determining that the broadcasting periods are in a stable working state, and setting the T1_ flag, the T2_ flag, the T3_ flag and the T4_ flag to be 0.
Step 317: after the value of T1_ Flag, the value of T2_ Flag, the value of T3_ Flag and the value of T4_ Flag are all assigned to 0 and the value of Flag is assigned to 0, judging whether the Bluetooth beacon is powered off, if the Bluetooth beacon is powered off, executing the step 301 again, and executing the power-on of the Bluetooth beacon again; if the Bluetooth beacon is not powered down, the process ends.
EXAMPLE III
The embodiment of the invention also provides the Bluetooth equipment. Fig. 4 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention; as shown in fig. 4, the bluetooth device includes: an acquisition unit 51, an adjustment unit 52, and a transmission unit 53; wherein the content of the first and second substances,
the acquiring unit 51 is configured to acquire an operating state of the bluetooth device;
the adjusting unit 52 is configured to adjust a broadcast period based on the working state obtained by the obtaining unit 51;
the sending unit 53 is configured to output data based on the broadcast period adjusted by the adjusting unit 52; the data includes an identification characterizing a location of the bluetooth device.
In this embodiment, the obtaining unit 51 is configured to obtain a duration that the bluetooth device is in a stable operating state;
the adjusting unit 52 is configured to adjust a broadcast period based on the duration obtained by the obtaining unit 51;
the sending unit 53 is configured to output data based on the broadcast period adjusted by the adjusting unit 52; the data includes an identification characterizing a location of the bluetooth device.
In this embodiment, the broadcast period and the duration have an inverse proportional relationship; alternatively, the first and second electrodes may be,
when the duration is lower than a first threshold, the broadcast period is higher than a first preset period;
when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period;
wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period.
It should be understood by those skilled in the art that the functions of each processing unit in the bluetooth device according to the embodiment of the present invention may be understood by referring to the related description of the broadcast period adjustment method of the bluetooth device, and each processing unit in the bluetooth device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
Example four
The embodiment of the invention also provides the Bluetooth equipment. Fig. 5 is a schematic diagram of another structure of the bluetooth device according to the embodiment of the present invention; as shown in fig. 5, the bluetooth device includes: a receiving unit 54, a converting unit 55, an acquiring unit 51, an adjusting unit 52, and a transmitting unit 53; wherein the content of the first and second substances,
the receiving unit 54 is configured to receive an input signal;
the converting unit 55 is configured to obtain input power based on the input signal received by the receiving unit 54, where the input power maintains the bluetooth device in an operating state;
the obtaining unit 51 is configured to obtain an energy parameter of the input signal received by the receiving unit 54;
the adjusting unit 52 is configured to adjust a broadcast period based on the energy parameter obtained by the obtaining unit 51;
the sending unit 53 is configured to output data based on the broadcast period adjusted by the adjusting unit 52; the data includes an identification characterizing a location of the bluetooth device.
It should be understood by those skilled in the art that the functions of each processing unit in the bluetooth device according to the embodiment of the present invention may be understood by referring to the related description of the broadcast period adjustment method of the bluetooth device, and each processing unit in the bluetooth device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In the third to fourth embodiments of the present invention, the obtaining Unit 51 and the adjusting Unit 52 in the bluetooth device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU) or a Programmable Gate Array (FPGA) in the terminal in practical application; the transmitting unit 53 and the receiving unit 54 in the terminal can be implemented by a bluetooth communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiving antenna in practical application.
EXAMPLE five
The embodiment of the invention also provides the Bluetooth equipment. Fig. 6 is a schematic diagram of a hardware configuration of a bluetooth device according to an embodiment of the present invention; as shown in fig. 6, the bluetooth broadcast apparatus comprises a memory 62, a processor 61 and a computer program stored in the memory 62 and executable on the processor 61, wherein the processor 61 executes the computer program to implement the steps of the method for adjusting the broadcast period of the bluetooth broadcast apparatus according to the embodiment of the present invention. Wherein the Bluetooth device further comprises at least one external communication interface; the processor 61, memory 62 and external communication interface 63 are all connected by a bus 64. Specifically, the processor 61 implements, when executing the program,: obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state; outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.
As an embodiment, the processor 61, when executing the program, implements: acquiring the time length of the Bluetooth device in a working state, and adjusting a broadcast period based on the time length; wherein the broadcast period has an inverse proportional relationship with the duration; or when the duration is lower than a first threshold, the broadcast period is higher than a first preset period; when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period; wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period.
As an embodiment, the processor 61, when executing the program, implements: receiving an input signal, and obtaining input electric energy based on the input signal, wherein the input electric energy maintains the Bluetooth device in a working state; and obtaining an energy parameter of the input signal, and adjusting a broadcast period based on the energy parameter.
Here, it should be noted that: the above description related to the bluetooth device is similar to the above description of the method, and the description of the beneficial effects of the method is omitted for brevity. For technical details not disclosed in the embodiments of the bluetooth device of the present invention, refer to the description of the embodiments of the method of the present invention.
EXAMPLE six
Embodiments of the present invention also provide a computer storage medium having computer instructions stored thereon, where the computer instructions, when executed by a processor, implement the steps of the method for adjusting a broadcast period of a bluetooth device according to embodiments of the present invention. In particular, the computer instructions, when executed by the processor, implement: obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state; outputting data based on the adjusted broadcast period; the data includes an identification characterizing a location of the bluetooth device.
As one embodiment, the computer instructions, when executed by a processor, implement: and acquiring the duration of the Bluetooth equipment in a stable working state, and adjusting the broadcast period based on the duration. Wherein the broadcast period has an inverse proportional relationship with the duration; or when the duration is lower than a first threshold, the broadcast period is higher than a first preset period; when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period; wherein the first threshold is less than the second threshold; the first preset period is greater than the second preset period.
As one embodiment, the computer instructions, when executed by a processor, implement: receiving an input signal, and obtaining input electric energy based on the input signal, wherein the input electric energy maintains the Bluetooth device in a working state; and obtaining an energy parameter of the input signal, and adjusting a broadcast period based on the energy parameter.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A broadcast cycle adjusting method of Bluetooth equipment is applied to the Bluetooth equipment; characterized in that the method comprises:
obtaining the working state of the Bluetooth equipment, and adjusting a broadcast period based on the working state;
outputting data based on the adjusted broadcast period; the data comprises an identifier representing the position of the Bluetooth equipment;
wherein, the obtaining the working state of the bluetooth device and adjusting the broadcast period based on the working state comprises:
acquiring the time length of the Bluetooth device in a working state, and adjusting a broadcast period based on the time length; the duration is a single duration of the running state of the Bluetooth equipment after being electrified;
the broadcast period and the duration have an inverse proportional relation; alternatively, the first and second electrodes may be,
when the duration is lower than a first threshold, the broadcast period is higher than a first preset period;
and when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period.
2. The method of claim 1, further comprising: receiving an input signal, and obtaining input power based on the input signal, wherein the input power maintains the Bluetooth device in an operating state.
3. The method of claim 2, wherein obtaining the operating status of the bluetooth device and adjusting the broadcast period based on the operating status comprises:
and obtaining an energy parameter of the input signal, and adjusting a broadcast period based on the energy parameter.
4. A bluetooth device, characterized in that the bluetooth device comprises: the device comprises an acquisition unit, an adjustment unit and a sending unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring the working state of the Bluetooth equipment;
the adjusting unit is used for adjusting a broadcast period based on the working state obtained by the obtaining unit;
the sending unit is used for outputting data based on the broadcasting period adjusted by the adjusting unit; the data comprises an identifier representing the position of the Bluetooth equipment;
the acquisition unit is used for acquiring the duration of the working state of the Bluetooth equipment, wherein the duration is the single duration of the running state of the Bluetooth equipment after the Bluetooth equipment is powered on;
the adjusting unit is used for adjusting the broadcast period based on the duration obtained by the obtaining unit;
the broadcast period and the duration have an inverse proportional relation; alternatively, the first and second electrodes may be,
when the duration is lower than a first threshold, the broadcast period is higher than a first preset period;
and when the duration is higher than a second threshold value, the broadcasting period is lower than a second preset period.
5. The bluetooth device according to claim 4, characterized in that the device further comprises a receiving unit and a converting unit; wherein the content of the first and second substances,
the receiving unit is used for receiving an input signal;
the conversion unit is used for obtaining input electric energy based on the input signal received by the receiving unit, and the input electric energy maintains the Bluetooth device to be in a working state.
6. The bluetooth device according to claim 5, wherein the obtaining unit is configured to obtain an energy parameter of the input signal;
the adjusting unit is used for adjusting a broadcast period based on the energy parameter obtained by the obtaining unit.
7. A computer storage medium having computer instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the broadcast cycle adjustment method of a bluetooth device according to any of claims 1 to 3.
8. A bluetooth device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for adjusting a broadcast period of a bluetooth device according to any one of claims 1 to 3 when executing the program.
CN201710667415.8A 2017-08-07 2017-08-07 Bluetooth device, broadcast period adjusting method thereof and computer storage medium Active CN108289295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710667415.8A CN108289295B (en) 2017-08-07 2017-08-07 Bluetooth device, broadcast period adjusting method thereof and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710667415.8A CN108289295B (en) 2017-08-07 2017-08-07 Bluetooth device, broadcast period adjusting method thereof and computer storage medium

Publications (2)

Publication Number Publication Date
CN108289295A CN108289295A (en) 2018-07-17
CN108289295B true CN108289295B (en) 2021-01-15

Family

ID=62831564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710667415.8A Active CN108289295B (en) 2017-08-07 2017-08-07 Bluetooth device, broadcast period adjusting method thereof and computer storage medium

Country Status (1)

Country Link
CN (1) CN108289295B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365584B (en) * 2019-08-06 2022-03-01 北京润科通用技术有限公司 Network management method and device
CN113299039A (en) * 2020-02-21 2021-08-24 Oppo广东移动通信有限公司 Alarm method, alarm device, storage medium and electronic equipment
CN112735601B (en) * 2020-12-31 2022-02-22 医渡云(北京)技术有限公司 Test method, device and equipment for determining infectious disease close-contact population by using Bluetooth
CN112866926A (en) * 2021-01-07 2021-05-28 凯联医疗科技(上海)有限公司 Method for improving reliability of Bluetooth connection in Bluetooth time-sharing broadcast
CN115767446A (en) * 2022-11-01 2023-03-07 美的集团股份有限公司 Bluetooth broadcast two-way communication method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639768A (en) * 2013-11-11 2015-05-20 中国移动通信集团公司 Intelligent power management method and equipment
CN104822136A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Broadcasting frequency control method and apparatus
CN204948367U (en) * 2015-08-27 2016-01-06 三维通信股份有限公司 A kind of room subsystem of interference source location
CN106131802A (en) * 2016-07-05 2016-11-16 北京小米移动软件有限公司 Data broadcasting method, data broadcaster and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874131B2 (en) * 2011-08-23 2014-10-28 Qualcomm Incorporated Providing location related information for a structure to mobile stations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639768A (en) * 2013-11-11 2015-05-20 中国移动通信集团公司 Intelligent power management method and equipment
CN104822136A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Broadcasting frequency control method and apparatus
CN204948367U (en) * 2015-08-27 2016-01-06 三维通信股份有限公司 A kind of room subsystem of interference source location
CN106131802A (en) * 2016-07-05 2016-11-16 北京小米移动软件有限公司 Data broadcasting method, data broadcaster and electronic equipment

Also Published As

Publication number Publication date
CN108289295A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
CN108289295B (en) Bluetooth device, broadcast period adjusting method thereof and computer storage medium
CN104796971B (en) System and method for the low-power signaling in WLAN
CA2951252C (en) Rf energy harvesting by a network node
RU2658863C9 (en) Method of communication of wearable device, communication system and corresponding device
EP3010157B1 (en) Method for detecting electric quantity of device, device and system
KR101185758B1 (en) Low duty cycle device protocol
EP3659373B1 (en) Apparatus for controlling operation cycle of electronic device in wireless communication system
KR101195796B1 (en) Network server having an information and scheduling controller to support one or more low duty cycle wireless devices
CN109660630B (en) Power saving parameter configuration method and device based on NB-IoT service
US9654992B2 (en) Handling calibration data
KR20140121421A (en) Systems and methods to transmit configuration change messages between an access point and a station
US20180014253A1 (en) Apparatus and Method for Enabling Broadcast of a Wireless Signal when Switching Operation Mode
CN108366412B (en) WIFI positioning scanning method and device
JP4623197B2 (en) Wireless terminal device, wireless relay device, and program
JP2019506056A (en) Method and mobile transceiver for asset tracking
KR102238811B1 (en) Method for battery saving of iot device and server for the same
EP3637868B1 (en) Apparatus and method for controlling time period related to operating mode in wireless communication system
CN107613548B (en) Low-power-consumption realization method of wireless chip in AP mode and corresponding wireless chip
CN112485808A (en) GNSS positioning system, positioning method and positioning equipment based on LoRa communication
CN110099395B (en) Information processing method, equipment, terminal and computer storage medium
JP2011066911A (en) Radio terminal device, radio relay device and program
CN108282344B (en) Self-adaptive adjustment method and device for broadcast period of wireless beacon and power supply system
WO2020113398A1 (en) Power monitoring method, apparatus, and system, rtk base station, and terminal device
WO2013164247A2 (en) Method to introduce a state in a device for reachability when the device is not attached
CA2835946C (en) Method and system for site-based power management of radio frequency identification implementations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant