CN111107531B - Method, device and storage medium for controlling Bluetooth equipment - Google Patents
Method, device and storage medium for controlling Bluetooth equipment Download PDFInfo
- Publication number
- CN111107531B CN111107531B CN201911284995.8A CN201911284995A CN111107531B CN 111107531 B CN111107531 B CN 111107531B CN 201911284995 A CN201911284995 A CN 201911284995A CN 111107531 B CN111107531 B CN 111107531B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- information
- electric quantity
- bluetooth device
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004891 communication Methods 0.000 claims description 73
- 238000012545 processing Methods 0.000 claims description 34
- 230000002159 abnormal effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0296—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level switching to a backup power supply
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a method, a device and a storage medium for controlling a Bluetooth device, which are used for reducing the abnormal condition of the Bluetooth device caused by insufficient electric quantity. The method comprises the following steps: acquiring Bluetooth information, wherein the Bluetooth information carries low power indication information, and the low power indication information is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power; broadcasting the Bluetooth information so that after receiving the Bluetooth information, the server side equipment determines that the current electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity according to the low electric quantity indication information, and generates prompt information, wherein the prompt information is used for indicating that the electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a storage medium for controlling a bluetooth device.
Background
Along with the progress of science and technology, bluetooth equipment is more and more popularized, and bluetooth equipment is like bluetooth lock, bluetooth lamp etc. and the work and the life of giving people have all brought very big facility.
At present, due to the limitation of the volume of the bluetooth device or the production cost, many bluetooth devices do not have the function of displaying the remaining power of the bluetooth device, for example, a bluetooth device using a Bluetooth Low Energy (BLE) technology does not have the function of displaying the remaining power, and a user cannot obtain the power of the bluetooth device, so that when the power of the bluetooth device is exhausted, the user can charge the bluetooth device or replace a battery.
Disclosure of Invention
The embodiment of the application provides a method, a device and a storage medium for controlling a Bluetooth device, which are used for reducing the abnormal condition of the Bluetooth device caused by insufficient electric quantity.
In a first aspect, a method of controlling a bluetooth device is provided, the method comprising:
acquiring Bluetooth information, wherein the Bluetooth information carries low power indication information, and the low power indication information is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power;
broadcasting the Bluetooth information so that after receiving the Bluetooth information, the server side equipment determines that the current electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity according to the low electric quantity indication information, and generates prompt information, wherein the prompt information is used for indicating that the electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity.
In the embodiment of the application, the Bluetooth information carrying the low power indication information is broadcasted, so that the low power information of the Bluetooth equipment can be obtained before the Bluetooth equipment is in communication connection with the Bluetooth equipment, the low power information obtaining process of the Bluetooth equipment has higher timeliness, the Bluetooth equipment with low power can be found by the server side equipment in time, and the abnormal condition of the Bluetooth equipment caused by insufficient power is reduced. Compared with the traditional method for performing service data interaction between the server device and the Bluetooth device after establishing communication connection with the Bluetooth device, in the embodiment of the application, the process of obtaining the low power information of the Bluetooth device by the server device is simpler and quicker.
Optionally, after broadcasting the bluetooth information, the method further includes:
establishing communication connection with the server side equipment according to the Bluetooth information;
receiving power inquiry information from the server-side equipment;
and feeding back the electric quantity information of the first Bluetooth device to the server side device.
In the embodiment of the application, after the communication connection with the bluetooth device is established, the current electric quantity of the bluetooth device can be inquired. Compared with the conventional Bluetooth device without the function of displaying the electric quantity of the Bluetooth device, for example, a BLE Bluetooth device, in the embodiment of the application, after the communication connection is established with the Bluetooth device, the electric quantity inquiry information can be sent to the Bluetooth device, and the Bluetooth device can feed back the current electric quantity information, so that the electric quantity information of the Bluetooth device can be obtained, and thus, the electric quantity of the Bluetooth device can be determined more timely by a user or other charging devices. Furthermore, after the communication connection with the bluetooth equipment with low electric quantity is established, the user can inquire the electric quantity of the bluetooth equipment, the current electric quantity of the bluetooth equipment can be further determined to be lower, or other users or charging equipment can charge the bluetooth equipment, and the timeliness of monitoring the electric quantity of the bluetooth equipment is improved.
Optionally, if the server device is a gateway device, feeding back the power information of the first bluetooth device to the server device, including:
generating electric quantity information in a character string format;
and sending the electric quantity information in the character string format to the gateway equipment so that the gateway equipment converts the received electric quantity information in the character string format into electric quantity information in a key value format, and sending the electric quantity information in the key value format to the server.
In the embodiment of the application, the data in the key value format is more convenient for the analysis of the device, the gateway device converts the electric quantity information of the first Bluetooth device into the key value format which is convenient for the analysis of the server, and the server can quickly and directly obtain the electric quantity information from the electric quantity information in the key value format after receiving the electric quantity information in the key value format of the first Bluetooth device from the gateway device, so that the efficiency of data transmission is improved to a certain extent.
Optionally, after broadcasting the bluetooth information, the method further includes:
establishing communication connection with the server side equipment, and charging the first Bluetooth equipment; or the like, or, alternatively,
and establishing communication connection with the server side equipment so that the server side equipment sends the prompt information to the user side equipment, and the user side equipment receives and displays the prompt information and charges the first Bluetooth equipment.
In the embodiment of the application, after the communication connection with the first bluetooth device with low power is established, the low power indication information of the first bluetooth device can be displayed for the user, so that the user can charge or replace the battery for the first bluetooth device in time, or when the server device is a device capable of wirelessly charging the bluetooth device, the server device can directly charge the first bluetooth device, the abnormal condition of the bluetooth device caused by insufficient power of the bluetooth device is reduced, and the user experience of the user when the user uses the bluetooth device is improved to a certain extent.
Optionally, after broadcasting the bluetooth information, the method further includes:
establishing communication connection with the server-side equipment;
if the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, sending alarm information to the server side device; the alarm information is used for indicating that the current electric quantity of the second Bluetooth device is smaller than the second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
In this embodiment of the application, after establishing a communication connection with a first bluetooth device, if the first bluetooth device determines that the current electric quantity of a second bluetooth device is less than a second preset electric quantity, an alarm message may be sent to a server device, so that when the electric quantity of the second bluetooth device is too low to broadcast bluetooth information, or the second bluetooth device is far away from the server device, and when the server device cannot search a bluetooth signal of the second bluetooth device, the server device may still obtain information that the electric quantity of the second bluetooth device is low.
In a second aspect, there is provided a method of controlling a bluetooth device, comprising:
receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device;
if the Bluetooth information broadcast by a first Bluetooth device in the at least one Bluetooth device carries low power indication information of the first Bluetooth device, determining that the current power of the first Bluetooth device is less than a first preset power according to the low power indication information;
generating prompt information; the prompt message is used for indicating that the current electric quantity of the first Bluetooth device is smaller than the first preset electric quantity.
Optionally, after receiving the bluetooth information broadcast by each bluetooth device of the at least one bluetooth device, the method further includes:
establishing communication connection with the first Bluetooth device according to the Bluetooth information;
receiving electric quantity inquiry information from user side equipment, and sending the electric quantity inquiry information to the first Bluetooth equipment;
and receiving the power information of the first Bluetooth device from the first Bluetooth device.
Optionally, if the server device is a gateway device, receiving the power information of the first bluetooth device from the first bluetooth device includes:
receiving the electric quantity information in the character string format from the first Bluetooth device;
converting the electric quantity information in the character string format into electric quantity information in a key value format;
and sending the electric quantity information of the key value format to the server so that the server sends the electric quantity information of the key value format of the first Bluetooth device to user equipment.
Optionally, after receiving the bluetooth information broadcast by each bluetooth device of the at least one bluetooth device, the method further includes:
and establishing communication connection with the first Bluetooth device, and sending the prompt message to user end equipment so that the user end equipment receives and displays the prompt message and charges the first Bluetooth device.
Optionally, after receiving the bluetooth information broadcast by each bluetooth device of the at least one bluetooth device, the method further includes:
establishing a communication connection with the first Bluetooth device;
if receiving the alarm information from the first Bluetooth equipment, sending the alarm information to user equipment; the alarm information is used for indicating that the first Bluetooth device determines that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
In a third aspect, an apparatus for controlling a bluetooth device is provided, including:
a receiving module: the Bluetooth device is used for obtaining Bluetooth information, wherein the Bluetooth information carries low power indication information, and the low power indication information is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power;
a processing module: for broadcasting the bluetooth information.
Optionally, the apparatus for controlling a bluetooth device further includes a sending module, where:
the processing module is further configured to: after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment according to the Bluetooth information;
the receiving module is further configured to: receiving power inquiry information from the server-side equipment;
the sending module is further configured to: and feeding back the electric quantity information of the first Bluetooth device to the server side device.
Optionally, the processing module is specifically configured to: generating electric quantity information in a character string format;
the sending module is specifically configured to: and sending the electric quantity information in the character string format to the gateway equipment so that the gateway equipment converts the received electric quantity information in the character string format into electric quantity information in a key value format, and sending the electric quantity information in the key value format to the server.
Optionally, the processing module is further configured to:
after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment, and charging the first Bluetooth equipment; or the like, or, alternatively,
and establishing communication connection with the server side equipment so that the server side equipment sends the prompt information to the user side equipment, and the user side equipment receives and displays the prompt information and charges the first Bluetooth equipment.
Optionally, the processing module is further configured to: after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment;
the sending module is further configured to: after the Bluetooth information is broadcasted, if the current electric quantity of the second Bluetooth equipment is determined to be smaller than a second preset electric quantity, sending alarm information to the server side equipment; the alarm information is used for indicating that the current electric quantity of the second Bluetooth device is smaller than the second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
In a fourth aspect, an apparatus for controlling a bluetooth device is provided, comprising:
a receiving module: the Bluetooth device is used for receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device;
a processing module: the Bluetooth device is used for determining that the current electric quantity of a first Bluetooth device is smaller than a first preset electric quantity according to low electric quantity indication information if the Bluetooth information broadcasted by the first Bluetooth device in the at least one Bluetooth device carries the low electric quantity indication information of the first Bluetooth device; and generating prompt information; the prompt message is used for indicating that the current electric quantity of the first Bluetooth device is smaller than the first preset electric quantity.
Optionally, the apparatus for controlling a bluetooth device further includes a sending module, where:
the processing module is further configured to: after receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing communication connection with the first Bluetooth device according to the Bluetooth information;
the receiving module is further configured to: after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, receiving power inquiry information from the user side device; and receiving power information of the first Bluetooth device from the first Bluetooth device;
the sending module is further configured to: and sending the electric quantity inquiry information to the first Bluetooth equipment.
Optionally, the receiving module is specifically configured to: receiving the electric quantity information in the character string format from the first Bluetooth device;
the processing module is specifically configured to: converting the electric quantity information in the character string format into electric quantity information in a key value format;
the sending module is specifically configured to: and sending the electric quantity information of the key value format to the server so that the server sends the electric quantity information of the key value format of the first Bluetooth device to user equipment.
Optionally, the processing module is further configured to:
after receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing a communication connection with the first Bluetooth device; and charging the first bluetooth device;
the sending module is further configured to:
after receiving the bluetooth information broadcast by each bluetooth device in at least one bluetooth device, sending the prompt information to a user end device, so that the user end device receives and displays the prompt information.
Optionally, the processing module is further configured to: after receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing a communication connection with the first Bluetooth device;
the sending module is further configured to: after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, if receiving the alarm information from the first Bluetooth device, sending the alarm information to the user end device; the alarm information is used for indicating that the first Bluetooth device determines that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
In a fifth aspect, an apparatus for controlling a bluetooth device is provided, comprising:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method of any one of the first aspect and the second aspect according to the obtained program instructions.
In a sixth aspect, there is provided a storage medium storing computer-executable instructions for causing a computer to perform the method of any one of the first or second aspects.
Drawings
Fig. 1 is an application scenario of a method for controlling a bluetooth device according to an embodiment of the present application;
fig. 2 is a first interaction process diagram for controlling a bluetooth device according to an embodiment of the present application;
fig. 3 is a diagram of an interaction process of controlling a bluetooth device according to an embodiment of the present application;
fig. 4 is a diagram of an interaction process of controlling a bluetooth device according to an embodiment of the present application;
fig. 5 is a first schematic structural diagram of an apparatus for controlling a bluetooth device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for controlling a bluetooth apparatus according to an embodiment of the present application;
fig. 7 is a third schematic structural diagram of an apparatus for controlling a bluetooth device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In addition, in the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
In order to reduce the abnormal situation of the bluetooth device caused by the insufficient power, the present application provides a method for controlling the bluetooth device, please refer to fig. 1, which is an application scenario of the method for controlling the bluetooth device. The application scenario includes a bluetooth device 101, a server device 102, and a client device 103. Bluetooth equipment in this application is the bluetooth equipment that does not possess the function of demonstration electric quantity, for example, because the display interface of bluetooth equipment is limited and go to the equipment that can't show the electric quantity, specific BLE bluetooth lamp or bluetooth bracelet etc. for example. The server device 102 may be a gateway device 104, or may be a server 105 corresponding to a client device. The client device 103 may be a terminal device 106, such as a mobile phone, a computer, and the like, and the method in this embodiment of the application may be applied to a client in the terminal device. A client such as an APP, applet or web page, etc.
Based on the application scenario in fig. 1, there are two cases for the device type of the server device, and the following respectively introduces the communication methods among the client device, the server device, and the bluetooth device under different cases.
The first condition is as follows:
the server device 102 is a gateway device 104.
Communication is possible between the bluetooth device 101 and the gateway device 104, and communication is possible between the gateway device 104 and the server 105. Communication is enabled between the server and the client device, and thus communication is enabled between the client device and the bluetooth device.
Specifically, when the current electric quantity of the first bluetooth device 101 is smaller than the first preset electric quantity, the low electric quantity indication information is generated and carried in the bluetooth information, so that the first bluetooth device 101 obtains the bluetooth information carrying the low electric quantity indication information. The first bluetooth device 101 broadcasts the bluetooth information, the gateway device 104 receives the bluetooth information to obtain low power indication information carried by the bluetooth information, the gateway device 104 generates prompt information according to the low power indication information to indicate that the current power of the first bluetooth device 101 is smaller than a first preset power, the gateway device 104 sends the prompt information to the server 105, the server 105 receives the prompt information from the gateway device 104, and finally the server 105 can send the prompt information to the user end device.
For example, the BLE bluetooth device and the bluetooth gateway may communicate via bluetooth, and the server corresponding to the APP in the bluetooth gateway and the mobile phone of the user may communicate via a network, so that the BLE bluetooth device may communicate with the APP in the mobile phone of the user.
Case two:
the server device 102 is a server 105 corresponding to the client device.
Communication may be between the bluetooth device 101 and the server 105. Communication is possible between the server 105 and the client device and thus between the client device and the bluetooth device.
Specifically, when the current electric quantity of the first bluetooth device 101 is smaller than the first preset electric quantity, the low electric quantity indication information is generated and carried in the bluetooth information, so that the first bluetooth device 101 obtains the bluetooth information carrying the low electric quantity indication information. The first bluetooth device 101 broadcasts the bluetooth information, the server 105 receives the bluetooth information to obtain low power indication information carried by the bluetooth information, the server 105 generates prompt information according to the low power indication information to indicate that the current power of the first bluetooth device 101 is smaller than a first preset power, the server 105 sends the prompt information to the user end device, and the user end device receives the prompt information.
For example, a server corresponding to APPs in a BLE bluetooth device and a user's handset may communicate via bluetooth, thereby enabling the BLE bluetooth device to communicate with the APP in the user's handset.
Fig. 1 is an example in which the bluetooth device 101 includes a first bluetooth device 101 and a second bluetooth device 101, and the specific number of bluetooth devices 101 is not limited in practice. Fig. 1 illustrates the server device 102 as the gateway device 104, and actually does not limit the specific type of the server device 102. Fig. 1 illustrates a customer premise equipment 103 as an end device 106, and the specific type of customer premise equipment 103 is not limited in practice.
In the two cases, the low power indication information of the bluetooth device 101 is carried in the broadcasted bluetooth information, so that when the server device 102 searches the bluetooth information of the bluetooth device 101, the low power indication information of the bluetooth device 101 can be obtained, a user can charge the bluetooth device 101 with low power or replace a battery in time, if the server device 102 has a function of wirelessly charging the bluetooth device 101, the bluetooth device 101 can more timely obtain the supplement of power, and abnormal situations such as abnormal operation of the bluetooth device 101 due to too low power are reduced.
Based on the application scenario of fig. 1, an interaction procedure between the devices in the method for controlling the bluetooth device 101 in the embodiment of the present application is described below.
Referring to fig. 2, a diagram of an interaction process of controlling the bluetooth device 101 among the first bluetooth device 101, the gateway device 104, the server 105 and the terminal device in the embodiment of the present application is shown.
In the embodiment of the present application, taking the example that the bluetooth device 101 includes the first bluetooth device 101 and the second bluetooth device 101 as an example, a case where there are a plurality of bluetooth devices 101 is illustrated, and the number of bluetooth devices 101 is not limited in practice.
S21, the first bluetooth device 101 determines that the current power of the first bluetooth device 101 is less than a first preset power.
Specifically, the first bluetooth device 101 may periodically or aperiodically acquire the current electric quantity of the first bluetooth device 101, compare the acquired current electric quantity of the first bluetooth device 101 with a first preset electric quantity, and if the value of the current electric quantity of the first bluetooth device 101 is smaller than the value of the first preset electric quantity, the first bluetooth device 101 determines that the current electric quantity of the first bluetooth device 101 is smaller than the first preset electric quantity. The first preset electric quantity may be an electric quantity value preset by a user, or may be an electric quantity value pre-stored according to the power storage capability of the first bluetooth device 101, and is not limited specifically, and the first preset electric quantities of different bluetooth devices 101 may be different, or the first preset electric quantities of bluetooth devices 101 having different power storage capabilities may be different.
S22, the first bluetooth device 101 generates low power indication information according to the current power of the first bluetooth device 101.
Specifically, after the first bluetooth device 101 determines that the current electric quantity of the first bluetooth device 101 is smaller than a first preset electric quantity, the low electric quantity indication information in a preset format is generated according to the current electric quantity of the first bluetooth device 101. The low power indication information may include indication information for indicating that the current power of the first bluetooth device 101 is less than a first preset power, and may further include indication information for indicating the current power of the first bluetooth device 101, which is not limited specifically.
S23, the first bluetooth device 101 acquires the bluetooth information and broadcasts the bluetooth information.
Specifically, after the first bluetooth device 101 generates the low power indication information, the low power indication information is encapsulated into a data packet, and the data packet is combined with the bluetooth signal for establishing the communication connection, so as to obtain the bluetooth information of the first bluetooth device 101, which carries the low power indication information. After obtaining the bluetooth information carrying the low power indication information, the first bluetooth device 101 broadcasts the bluetooth information. The bluetooth information may also include the identity information of the first bluetooth device 101, in addition to carrying the low battery indication information.
In one possible embodiment, when the current power of the first bluetooth device 101 is greater than or equal to the first preset power, the bluetooth information obtained periodically or aperiodically by the first bluetooth device 101 does not include the low power indication information of the first bluetooth device 101, i.e., the bluetooth information broadcast by the first bluetooth device 101 does not include the low power information of the first bluetooth device 101.
S24, the server device 102 receives the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101.
Specifically, after the bluetooth device 101 is powered on, or after the bluetooth device 101 turns on the bluetooth function, the bluetooth information of the bluetooth device 101 itself may be periodically or aperiodically broadcast, so that when at least one bluetooth device 101 is powered on or the bluetooth function is turned on, the server device 102 may receive the bluetooth information broadcast by each bluetooth device 101 in the at least one bluetooth device 101. If the at least one bluetooth device 101 includes the first bluetooth device 101, the server device 102 may receive the bluetooth information broadcast by the first bluetooth device 101.
S25, the server device 102 determines whether there is bluetooth information carrying low battery indication information in the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101.
Specifically, the server device 102 parses the received bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101 to determine whether there is a data packet with low power indication information therein, that is, the server device 102 determines whether there is bluetooth information with low power indication information in the received bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101. If the number of the determined low power indication information is multiple, the number of the determined Bluetooth information carrying the low power indication information is also multiple.
S26, if the server device 102 determines that the bluetooth information broadcasted by each bluetooth device 101 of the at least one bluetooth device 101 has bluetooth information carrying the low power indication information of the first bluetooth device 101, then generates a prompt message.
Specifically, if the server device 102 determines that a data packet with low power indication information of the first bluetooth device 101 exists in the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101, the server device 102 determines the bluetooth information of the first bluetooth device 101 carrying the low power indication information. The server device 102 generates a prompt message for prompting that the current power of the first bluetooth device 101 is less than a first preset power, or for prompting that the first bluetooth device 101 is in a low power state, or for prompting the current power of the first bluetooth device 101, which is not limited specifically.
In a possible embodiment, if a plurality of pieces of bluetooth information carrying the low power indication information are determined, the server device 102 may generate a plurality of prompt messages respectively.
The server device in S21-S26 may be a gateway device, or may be a server, which is not limited specifically.
S27, the server device 102 sends the prompt message to the client device 103, and the client device 103 receives the prompt message from the server device 102 and displays the prompt message.
For case one, the server device 102 is the gateway device 104. After generating the prompt information, the gateway device 104 sends the prompt information to the server 105 corresponding to the user end device 103, the server 105 receives the prompt information from the gateway device 104, analyzes the prompt information into the prompt information that can be recognized by the user end device 103, sends the analyzed prompt information to the user end device 103, the user end device 103 receives the analyzed prompt information from the server 105, and the user end device 103 displays the prompt information according to a preset display format. The preset display format may be displayed in a client interface of the client device 103, or may be displayed in a pop-up window of a screen of the client device 103, or may be an audio prompt such as a voice prompt on the user device, or may be displayed in multiple display formats simultaneously, and the like, which is not limited in particular.
In case two, the server device 102 is the server 105 corresponding to the client device 103. After generating the prompt message, the server 105 corresponding to the user end device 103 sends the prompt message to the user end device 103, the user end device 103 receives the prompt message from the server 105, and the user end device 103 displays the prompt message according to a preset display format. The predetermined display format is as described above.
After seeing the prompt message displayed by the user end device 103, the user can charge the first bluetooth device 101 or replace the battery, so as to ensure that the bluetooth device 101 can work normally without interruption.
Whether the server device is a server or a gateway device, in a possible embodiment, if the server device 102 generates a plurality of different prompt messages corresponding to different bluetooth devices 101, the server device 102 may send the plurality of prompt messages to the client device 103 in a combined manner, or may send the plurality of prompt messages to the client device 103, which is not limited in particular. After receiving the plurality of prompt messages, the user end device 103 may display the plurality of prompt messages in combination, or may display the plurality of prompt messages separately, which is not limited in particular.
Whether the server device is a server or a gateway device, in one possible embodiment, if the server device 102 is a device that can wirelessly charge the bluetooth device 101, the server device 102 may not need to send the prompt message to the client device 103, the client device 103 may not need to display the prompt message, and the server device 102 may charge the first bluetooth device 101 by establishing a communication connection with the first bluetooth device 101; or, while the user end device 103 displays the prompt information, the server end device 102 may charge the first bluetooth device 101 by establishing a communication connection with the first bluetooth device 101, and displaying the prompt information and charging the first bluetooth device 101 may be performed simultaneously, or may have a certain sequence, which is not limited specifically.
Whether the server device is a server or a gateway device, in one possible embodiment, if the server device 102 determines that there is no bluetooth information carrying low battery indication information in the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101, the server device 102 may establish a communication connection with any one of the bluetooth devices 101, so that the user may inquire the battery of the bluetooth device 101 through the client device 103, or if the server device 102 determines that there is at least one bluetooth information carrying low battery indication information in the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101, the server device 102 may establish a communication connection with the bluetooth device 101 with the lowest battery, so that the user may inquire the battery of the bluetooth device 101 through the client device 103, determine whether the bluetooth device 101 is already in a charging state, alternatively, any situation where the user needs to look at the current power level of the bluetooth device 101 may be possible.
Referring to fig. 3, in view of the first situation, in a case that the server device 102 is the gateway device 104, an interactive process diagram for inquiring the power of the first bluetooth device 101 between the server 105 and the terminal device corresponding to the first bluetooth device 101, the gateway device 104, and the client device 103 is described below.
S301, the gateway device 104 receives the bluetooth information broadcast by each bluetooth device 101 of the at least one bluetooth device 101, and determines the bluetooth information of the first bluetooth device 101.
Specifically, the gateway device 104 may search for the bluetooth information broadcast by the at least one bluetooth device 101, and send the received bluetooth information to the server 105 corresponding to the user end device 103, the server 105 corresponding to the user end analyzes the received bluetooth information, and sends the analyzed bluetooth information to the user end device 103, and the user end device 103 displays the bluetooth information broadcast by the at least one bluetooth device 101 to the user after receiving the analyzed bluetooth information. The user end device 103 responds to a communication connection operation of a user for the first Bluetooth device 101, sends an operation instruction for establishing communication connection with the first Bluetooth device 101 to the server 105, the server 105 receives the connection instruction from the user end device 103 and sends the connection instruction to the gateway device 104, and after the gateway device 104 receives the connection instruction from the server 105, the Bluetooth information of the first Bluetooth device 101 is determined in at least one piece of Bluetooth information.
Or, the gateway device 104 may search the bluetooth information broadcast by at least one bluetooth device 101, determine the bluetooth information with the strongest bluetooth information signal included in the at least one bluetooth information, and regard the bluetooth information as the bluetooth information of the first bluetooth device 101, where the first bluetooth device 101 does not specifically refer to a certain device, and is only used to indicate that the gateway device 104 determines the bluetooth device 101 that establishes a communication connection with the bluetooth device 101.
Alternatively, the gateway device 104 may determine the bluetooth information of the first bluetooth device 101 in other manners based on the bluetooth information broadcast by the at least one bluetooth device 101, which is not limited in particular.
S302, the gateway device 104 establishes a communication connection with the first bluetooth device 101.
Specifically, after receiving the bluetooth information, the gateway device 104 obtains the identity information of the first bluetooth device, based on the identity information, the gateway device 104 may initiate a connection request to the first bluetooth device 101, the first bluetooth device 101 receives the connection request from the gateway device 104 and returns a message of accepting the connection or rejecting the connection to the gateway device 104, the gateway device 104 receives a message fed back from the first bluetooth device 101, if the message is a message of accepting the connection, the gateway device 104 establishes a communication connection with the first bluetooth device 101, and if the message is a message of rejecting the connection, the gateway device 104 cannot establish a communication connection with the first bluetooth device 101.
S303, the customer premise equipment 103 responds to the query operation for querying the electric quantity from the user, generates electric quantity query information, and sends the electric quantity query information to the server 105 corresponding to the customer premise equipment 103.
Specifically, after the gateway device 104 establishes a communication connection with the first bluetooth device 101, if the user terminal responds to a user power inquiry operation from the user, the user terminal 103 generates power inquiry information and sends the power inquiry information to the server 105 corresponding to the user terminal 103, and the server 105 receives the power inquiry information from the user terminal 103 and encapsulates the power inquiry information into power inquiry information in a key value format.
S304, the gateway device 104 receives the power inquiry information from the server 105 corresponding to the customer premise equipment 103.
Specifically, after the server 105 corresponding to the user end device 103 obtains the power quantity query information in the key value format, the server 105 sends the power quantity query information in the key value format to the gateway device 104, and the gateway device 104 receives the power quantity query information in the key value format from the server 105.
The key-value-format power quantity query information may be power quantity query information in a JSON format, or may be power quantity query information in a basic key-value format, or may be power quantity query information in other key-value formats, and is not particularly limited.
S305, the gateway device 104 performs format conversion on the power inquiry information.
Specifically, after receiving the key-value-format power quantity query information from the server 105, the gateway device 104 converts the key-value-format power quantity query information into character-string-format power quantity query information.
S306, the gateway device 104 sends the power inquiry information to the first bluetooth device 101.
Specifically, after obtaining the power inquiry information in the character string format, the gateway device 104 may send the power inquiry information in the character string format to the first bluetooth device 101, and the first bluetooth device 101 receives the power inquiry information in the character string format from the gateway device 104. The first bluetooth device 101 receives the power inquiry information in the form of a character string from the gateway device 104. The power inquiry information in the character string format sent to the first bluetooth device 101 is the power inquiry information that is convenient for the first bluetooth device 101 to parse, or the power inquiry information in the character string format may be power inquiry information in other data formats, which is not limited specifically.
S307, the first bluetooth device 101 determines the current power of the first bluetooth device 101, and generates power information.
Specifically, the first bluetooth device 101 determines its current remaining power after receiving the power inquiry information from the gateway device 104. The first bluetooth device 101 generates power information in a character string format according to the current remaining power, and transmits the power information in the character string format to the gateway device 104.
S308, the gateway device 104 receives the power information from the first bluetooth device 101.
Specifically, after the first bluetooth device 101 transmits the power information in the character string format to the gateway device 104, the gateway device 104 receives the power information in the character string format from the first bluetooth device 101.
S39, the gateway device 104 performs format conversion on the power amount information.
Specifically, after the gateway device 104 receives the power information in the character string format from the first bluetooth device 101, the gateway device 104 converts the power information in the character string format into the power information in the key value format.
S310, the gateway device 104 sends the power information of the first bluetooth device 101 to the server 105 corresponding to the user end device 103.
Specifically, the gateway device 104 sends the key-value-format power information to the server 105 corresponding to the user end device 103, the server 105 receives the key-value-format power information from the network device, and parses the key-value-format power information into power information that can be identified by the user end device 103, where the power information that can be identified by the user end device 103 may be the key-value-format power information, or may be power information in other formats, which is not limited specifically.
S311, the user end device 103 receives the power information of the first bluetooth device 101 from the server 105, and displays the power information of the first bluetooth device 101.
Specifically, the server 105 sends the analyzed power information of the first bluetooth device 101 to the user end device 103, and the user end device 103 receives the analyzed power information of the first bluetooth device 101 from the server 105. The user end device 103 displays the power information of the first bluetooth device 101 in a preset display format, and the preset display format of the power information of the first bluetooth device 101 and the preset display format of the low power indication information may be the same, or may be different, and are not limited specifically.
For the second case, when the server device 102 is the server 105 corresponding to the user end, an interactive process diagram for querying the power of the first bluetooth device 101 between the server 105 corresponding to the first bluetooth device 101 and the user end device 103 and the terminal device is described below.
Referring to fig. 4, S41, the server 105 receives the bluetooth information broadcast by each of the at least one bluetooth devices 101 and determines the bluetooth information of the first bluetooth device 101.
Specifically, the server 105 corresponding to the user end device 103 may search for the bluetooth information broadcast by the at least one bluetooth device 101, and send the received bluetooth information to the user end device 103, and after receiving the bluetooth information, the user end device 103 displays the bluetooth information broadcast by the at least one bluetooth device 101 to the user. The user end device 103 responds to the communication connection operation of the user for the first Bluetooth device 101, sends an operation instruction for establishing communication connection with the first Bluetooth device 101 to the server 105, the server 105 receives the connection instruction from the user end device 103, and the Bluetooth information of the first Bluetooth device 101 is determined in at least one piece of Bluetooth information.
Or, the server 105 corresponding to the user end device 103 may search the bluetooth information broadcast by at least one bluetooth device 101, determine the bluetooth information with the strongest bluetooth information signal included in the at least one bluetooth information, and may regard the bluetooth information as the bluetooth information of the first bluetooth device 101, where the first bluetooth device 101 does not specifically refer to a certain device, and is only used to indicate that the server 105 corresponding to the user end device 103 determines the bluetooth device 101 that establishes a communication connection with the bluetooth device 101.
Alternatively, the server 105 corresponding to the client device 103 may determine the bluetooth information of the first bluetooth device 101 in other manners from the bluetooth information broadcast by at least one bluetooth device 101, which is not limited in particular.
S42, the server 105 establishes a communication connection with the first bluetooth device 101.
Specifically, the server 105 corresponding to the user end device 103 initiates a connection request to the first bluetooth device 101, the first bluetooth device 101 receives the connection request from the server 105 corresponding to the user end device 103, and returns a message of accepting connection or rejecting connection to the server 105 corresponding to the user end device 103, the server 105 corresponding to the user end device 103 receives a message fed back from the first bluetooth device 101, if the message is a message of accepting connection, the server 105 corresponding to the user end device 103 establishes communication connection with the first bluetooth device 101, and if the message is a message of rejecting connection, the server 105 corresponding to the user end device 103 cannot establish communication connection with the first bluetooth device 101.
S43, the customer premises device 103 responds to the query operation for querying the power amount from the user, generates power amount query information, and sends the power amount query information to the server 105 corresponding to the customer premises device 103.
Specifically, after the server 105 corresponding to the user end device 103 establishes a communication connection with the first bluetooth device 101, if the user end responds to a user power inquiry operation from a user, the user end device 103 generates power inquiry information and sends the power inquiry information to the server 105 corresponding to the user end device 103, and the server 105 receives the power inquiry information from the user end device 103 and encapsulates the power inquiry information into the power inquiry information in a character string format.
S44, the server 105 transmits the power inquiry information to the first bluetooth device 101.
Specifically, after obtaining the power inquiry information in the character string format, the server 105 corresponding to the user end device 103 may send the power inquiry information in the character string format to the first bluetooth device 101, and the first bluetooth device 101 receives the power inquiry information in the character string format from the gateway device 104. The power inquiry information in the character string format sent to the first bluetooth device 101 is the power inquiry information that is convenient for the first bluetooth device 101 to parse, or the power inquiry information in the character string format may be power inquiry information in other data formats, which is not limited specifically.
S45, the first bluetooth device 101 determines the current power of the first bluetooth device 101, and generates power information.
Specifically, the first bluetooth device 101 determines its current remaining power after receiving the power inquiry information from the server 105 corresponding to the user end device 103. The first bluetooth device 101 generates the power information in the character string format according to the current remaining power, and sends the power information in the character string format to the server 105 corresponding to the user end device 103.
S46, the server 105 receives the power information from the first bluetooth device 101 and sends the power information of the first bluetooth device 101 to the user end device 103.
Specifically, after the server 105 corresponding to the user end device 103 receives the electric quantity information in the character string format from the first bluetooth device 101, the server 105 corresponding to the user end device 103 parses the electric quantity information in the character string format into electric quantity information that can be recognized by the user end device 103, and sends the parsed electric quantity information of the first bluetooth device 101 to the user end device 103, where the electric quantity information that can be recognized by the user end device 103 may be electric quantity information in a key value format, or may be electric quantity information in other formats, and is not particularly limited.
S46, the user end device 103 displays the power information of the first bluetooth device 101.
Specifically, the user end device 103 receives the analyzed power information of the first bluetooth device 101 from the server 105 corresponding to the user end device 103, and displays the power information of the first bluetooth device 101 in a preset display format, where the preset display format of the power information of the first bluetooth device 101 and the preset display format of the low power indication information may be the same or different, and are not limited specifically.
Whether the server device is a server or a gateway device, in a possible embodiment, after the server device 102 establishes a communication connection with the first bluetooth device 101, if the first bluetooth device 101 determines that the current power of the second bluetooth device 101 is less than the second preset power, the first bluetooth device 101 may send an alarm message to the server device 102.
Specifically, if the first bluetooth device 101 determines that the current power of the second bluetooth device 101 is less than the second preset power, the first bluetooth device 101 generates an alarm message indicating that the current power of the second bluetooth device 101 is less than the second preset power, and sends the alarm message to the server device 102. The first bluetooth device 101 may be a bluetooth device 101 having a function of acquiring power information of other bluetooth devices 101, or the first bluetooth device 101 and the second bluetooth device 101 are networked in advance, and when the current power of the second bluetooth device 101 is smaller than a second preset power, the second bluetooth device 101 may send the low power information to the first bluetooth device 101, and so on, and a manner in which the first bluetooth device 101 acquires that the current power of the second bluetooth device 101 is smaller than the second preset power is not limited specifically.
The transmission mode of the alarm information among the first bluetooth device 101, the server device 102, and the client device 103 is the same as the transmission mode of the power inquiry information and the power information of the first bluetooth device 101, which is described below, and is not described herein in detail.
Based on the same inventive concept, the embodiment of the present application provides an apparatus for controlling a bluetooth device, which is capable of implementing the method for controlling a bluetooth device discussed above. This arrangement corresponds to the first bluetooth device 101 discussed earlier. Referring to fig. 5, the apparatus includes a receiving module 501 and a processing module 502, wherein:
the receiving module 501: the Bluetooth device is used for acquiring Bluetooth information, wherein the Bluetooth information carries low power indication information which is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power;
the processing module 502: for broadcasting bluetooth information.
In a possible embodiment, the apparatus for controlling a bluetooth device further comprises a sending module 503, wherein:
the processing module 502 is further configured to: after the Bluetooth information is broadcasted, establishing communication connection with the server side equipment according to the Bluetooth information;
the receiving module 501 is further configured to: receiving electric quantity inquiry information from server-side equipment;
the sending module 503 is further configured to: and feeding back the electric quantity information of the first Bluetooth device to the server side device.
In a possible embodiment, the processing module 502 is specifically configured to: generating electric quantity information in a character string format;
the sending module 503 is specifically configured to: and sending the electric quantity information in the character string format to the gateway equipment so that the gateway equipment converts the received electric quantity information in the character string format into the electric quantity information in the key value format, and sending the electric quantity information in the key value format to the server.
In a possible embodiment, the processing module 502 is further configured to:
after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment, and charging the first Bluetooth equipment; or the like, or, alternatively,
and establishing communication connection with the server device so that the server device sends prompt information to the client device, and the client device receives and displays the prompt information and charges the first Bluetooth device.
In a possible embodiment, the processing module 502 is further configured to:
after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment;
the sending module 503 is further configured to:
after the Bluetooth information is broadcasted, if the current electric quantity of the second Bluetooth equipment is determined to be smaller than a second preset electric quantity, sending alarm information to the server side equipment; the alarm information is used for indicating that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
Based on the same inventive concept, the embodiment of the present application provides an apparatus for controlling a bluetooth device, which is capable of implementing the method for controlling a bluetooth device discussed above. This arrangement corresponds to the server device 102 discussed above. Referring to fig. 6, the apparatus includes a receiving module 601 and a processing module 602, wherein:
the receiving module 601: the Bluetooth device is used for receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device;
the processing module 602: the Bluetooth device is used for determining that the current electric quantity of the first Bluetooth device is smaller than a first preset electric quantity according to the low electric quantity indicating information if the Bluetooth information broadcasted by the first Bluetooth device in the at least one Bluetooth device carries the low electric quantity indicating information of the first Bluetooth device; and generating prompt information; the prompt message is used for indicating that the current electric quantity of the first Bluetooth device is smaller than a first preset electric quantity.
In a possible embodiment, the apparatus for controlling a bluetooth device further includes a sending module 603, and the processing module 602 is further configured to:
after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing communication connection with a first Bluetooth device according to the Bluetooth information;
the receiving module 601 is further configured to:
after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, receiving power inquiry information from the user side device; and receiving power information of the first Bluetooth device from the first Bluetooth device;
the sending module 603 is further configured to: and sending the electric quantity inquiry information to the first Bluetooth equipment.
In a possible embodiment, the receiving module 601 is specifically configured to: receiving the electric quantity information in a character string format from the first Bluetooth device;
the processing module 602 is specifically configured to: converting the electric quantity information in the character string format into electric quantity information in a key value format;
the sending module 603 is specifically configured to: and sending the power information in the key value format to the server so that the server sends the power information in the key value format of the first Bluetooth device to the user end device.
In a possible embodiment, the processing module 602 is further configured to:
after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing a communication connection with a first Bluetooth device; and charging the first bluetooth device;
the sending module 603 is further configured to:
after receiving the bluetooth information broadcast by each bluetooth device of the at least one bluetooth device, sending prompt information to the user end device so that the user end device receives and displays the prompt information.
In a possible embodiment, the processing module 602 is further configured to:
after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing a communication connection with a first Bluetooth device;
the sending module 603 is further configured to:
after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, if receiving the alarm information from the first Bluetooth device, sending the alarm information to the user end device; the alarm information is used for indicating that the first Bluetooth device determines that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
Based on the same inventive concept, the present application provides an apparatus for controlling a bluetooth device, which is equivalent to the apparatus for controlling a bluetooth device discussed above, and please refer to fig. 7, the apparatus includes:
at least one processor 701, and a memory 702 coupled to the at least one processor 701. In the embodiment of the present application, a specific connection medium between the processor 701 and the memory 702 is not limited, and fig. 7 illustrates that the processor 701 and the memory 702 are connected by a bus 700. The bus 700 is shown in fig. 7 by a thick line, and the connection between other components is merely illustrative and not limited thereto. The bus 700 may be divided into an address bus, a data bus, a control bus, etc., and is shown in fig. 7 with only one thick line for ease of illustration, but does not represent only one bus or one type of bus. Alternatively, the processor 701 may also be referred to as a controller, without limitation to name a few.
In the embodiment of the present application, the memory 702 stores instructions executable by the at least one processor 701, and the at least one processor 701 may execute the method for controlling the bluetooth device as discussed above by executing the instructions stored in the memory 702. The processor 701 may implement the functions of the respective modules in the apparatus shown in fig. 5 or fig. 6.
The processor 701 is a control center of the apparatus, and may connect various parts of the entire apparatus by using various interfaces and lines, and perform various functions of the apparatus and process data by operating or executing instructions stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the apparatus.
In one possible embodiment, processor 701 may include one or more processing units, and processor 701 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701. In some embodiments, processor 701 and memory 702 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 701 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method for controlling a bluetooth device disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
The processor 701 is programmed to solidify the code corresponding to the method for controlling the bluetooth device described in the foregoing embodiments into the chip, so that the chip can perform the steps of the method for controlling the bluetooth device described above when running. How to program the processor 701 is well known to those skilled in the art and will not be described herein.
Based on the same inventive concept, the present application also provides a storage medium storing computer instructions, which when executed on a computer, cause the computer to perform the method for controlling a bluetooth device discussed above.
In some possible embodiments, the various aspects of the method for controlling a bluetooth device provided herein may also be implemented in the form of a program product comprising program code for causing an apparatus to perform the steps of the method for controlling a bluetooth device according to various exemplary embodiments of the present application described above in this specification when the program product is run on the apparatus.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (12)
1. A method of controlling a bluetooth device, comprising:
acquiring Bluetooth information, wherein the Bluetooth information carries low power indication information, and the low power indication information is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power; the Bluetooth information carries Bluetooth signals, and the Bluetooth signals are used for establishing communication connection;
broadcasting the Bluetooth information so that after receiving the Bluetooth information, the server side equipment determines that the current electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity according to the low electric quantity indication information, and generates prompt information, wherein the prompt information is used for indicating that the electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity;
establishing communication connection with the server side equipment based on the Bluetooth signal so that the server side equipment charges the first Bluetooth equipment;
after broadcasting the bluetooth information, further comprising:
establishing communication connection with the server-side equipment;
if the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, sending alarm information to the server side device; the alarm information is used for indicating that the current electric quantity of the second Bluetooth device is smaller than the second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
2. The method of claim 1, further comprising, after broadcasting the bluetooth information:
establishing communication connection with the server side equipment according to the Bluetooth information;
receiving power inquiry information from the server-side equipment;
and feeding back the electric quantity information of the first Bluetooth device to the server side device.
3. The method of claim 1, wherein if the server device is a gateway device, feeding back the power information of the first bluetooth device to the server device comprises:
generating electric quantity information in a character string format;
and sending the electric quantity information in the character string format to the gateway equipment so that the gateway equipment converts the received electric quantity information in the character string format into electric quantity information in a key value format, and sending the electric quantity information in the key value format to the server equipment.
4. The method of any of claims 1-3, further comprising, after broadcasting the Bluetooth information:
and establishing communication connection with the server side equipment so that the server side equipment sends the prompt information to user side equipment, and the user side equipment receives and displays the prompt information and charges the first Bluetooth equipment when the server side equipment does not charge the first Bluetooth equipment.
5. A method of controlling a bluetooth device, comprising:
receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device;
if the Bluetooth information broadcast by a first Bluetooth device in the at least one Bluetooth device carries low power indication information of the first Bluetooth device, determining that the current power of the first Bluetooth device is less than a first preset power according to the low power indication information; the Bluetooth information carries Bluetooth signals, and the Bluetooth signals are used for establishing communication connection;
generating prompt information; the prompt message is used for indicating that the current electric quantity of the first Bluetooth device is smaller than the first preset electric quantity;
establishing communication connection with the first Bluetooth device based on a Bluetooth signal carried by the Bluetooth information, and charging the first Bluetooth device;
after receiving the bluetooth information broadcast by each of the at least one bluetooth device, the method further comprises:
establishing a communication connection with the first Bluetooth device;
if receiving the alarm information from the first Bluetooth equipment, sending the alarm information to user equipment; the alarm information is used for indicating that the first Bluetooth device determines that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
6. The method of claim 5, further comprising, after receiving the Bluetooth information broadcast by each of the at least one Bluetooth device:
establishing communication connection with the first Bluetooth device according to the Bluetooth information;
receiving electric quantity inquiry information from user side equipment, and sending the electric quantity inquiry information to the first Bluetooth equipment;
and receiving the power information of the first Bluetooth device from the first Bluetooth device.
7. The method of claim 5, wherein if the server device is a gateway device, receiving the power information of the first bluetooth device from the first bluetooth device comprises:
receiving the electric quantity information in a character string format from the first Bluetooth device;
converting the electric quantity information in the character string format into electric quantity information in a key value format;
and sending the electric quantity information of the key value format to the server side equipment so that the server side equipment sends the electric quantity information of the key value format of the first Bluetooth equipment to the user side equipment.
8. The method of any of claims 5-7, further comprising, after receiving the Bluetooth information broadcast by each of the at least one Bluetooth device:
and establishing communication connection with the first Bluetooth device, and sending the prompt message to user end equipment so that the user end equipment receives and displays the prompt message and charges the first Bluetooth device.
9. An apparatus for controlling a bluetooth device, comprising:
an acquisition module: the Bluetooth device is used for obtaining Bluetooth information, wherein the Bluetooth information carries low power indication information, and the low power indication information is used for indicating that the current power of the first Bluetooth device is smaller than a first preset power; the Bluetooth information carries Bluetooth signals, and the Bluetooth signals are used for establishing communication connection;
a processing module: the Bluetooth information is broadcasted, so that after receiving the Bluetooth information, the server side equipment determines that the current electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity according to the low electric quantity indication information, and generates prompt information, wherein the prompt information is used for indicating that the electric quantity of the first Bluetooth equipment is smaller than the first preset electric quantity;
the processing module is further configured to: establishing communication connection with the server side equipment based on the Bluetooth signal so that the server side equipment charges the first Bluetooth equipment;
the processing module is further configured to: after the Bluetooth information is broadcasted, establishing communication connection with the server-side equipment;
the sending module is used for: after the Bluetooth information is broadcasted, if the current electric quantity of the second Bluetooth equipment is determined to be smaller than a second preset electric quantity, sending alarm information to the server side equipment; the alarm information is used for indicating that the current electric quantity of the second Bluetooth device is smaller than the second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
10. An apparatus for controlling a bluetooth device, comprising:
a receiving module: the Bluetooth device is used for receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device;
a processing module: the Bluetooth device is used for determining that the current electric quantity of a first Bluetooth device is smaller than a first preset electric quantity according to low electric quantity indication information if the Bluetooth information broadcasted by the first Bluetooth device in the at least one Bluetooth device carries the low electric quantity indication information of the first Bluetooth device; the Bluetooth information carries Bluetooth signals, and the Bluetooth signals are used for establishing communication connection; and generating prompt information; the prompt message is used for indicating that the current electric quantity of the first Bluetooth device is smaller than the first preset electric quantity;
the processing module is further configured to: establishing communication connection with the first Bluetooth device based on a Bluetooth signal carried by the Bluetooth information, and charging the first Bluetooth device;
the processing module is further configured to: after receiving Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, establishing a communication connection with the first Bluetooth device;
the sending module is used for: after receiving the Bluetooth information broadcast by each Bluetooth device in at least one Bluetooth device, if receiving the alarm information from the first Bluetooth device, sending the alarm information to the user end device; the alarm information is used for indicating that the first Bluetooth device determines that the current electric quantity of the second Bluetooth device is smaller than a second preset electric quantity, and the second preset electric quantity is smaller than the first preset electric quantity.
11. An apparatus for controlling a bluetooth device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method according to any one of claims 1 to 4 or 5 to 8 according to the obtained program instructions.
12. A storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 4 or 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911284995.8A CN111107531B (en) | 2019-12-13 | 2019-12-13 | Method, device and storage medium for controlling Bluetooth equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911284995.8A CN111107531B (en) | 2019-12-13 | 2019-12-13 | Method, device and storage medium for controlling Bluetooth equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111107531A CN111107531A (en) | 2020-05-05 |
CN111107531B true CN111107531B (en) | 2022-03-11 |
Family
ID=70421931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911284995.8A Active CN111107531B (en) | 2019-12-13 | 2019-12-13 | Method, device and storage medium for controlling Bluetooth equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111107531B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111918260B (en) * | 2020-08-12 | 2024-04-12 | 北京骑胜科技有限公司 | Bluetooth device management method, bluetooth device, terminal device and storage medium |
CN113573251A (en) * | 2021-06-25 | 2021-10-29 | 山东医工医疗科技有限公司 | Hospital operating room equipment positioning management system |
CN113691939B (en) * | 2021-08-05 | 2024-05-14 | Oppo广东移动通信有限公司 | Prompting method, electronic equipment, bluetooth headset and computer storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888548A (en) * | 2014-04-18 | 2014-06-25 | 重庆金瓯科技发展有限责任公司 | Bluetooth beacon monitoring and management system |
EP2757837A1 (en) * | 2013-01-22 | 2014-07-23 | Nokia Corporation | Method, apparatus, and computer program product for power save control for tethering connections |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070052533A1 (en) * | 2005-08-24 | 2007-03-08 | Victoria Glazer | Methods and apparatus for a hazard warning system |
CN104052865A (en) * | 2013-07-31 | 2014-09-17 | 惠州华阳通用电子有限公司 | Method for acquiring remaining capacity information of mobile terminal through vehicle terminal |
CN104991851A (en) * | 2015-06-26 | 2015-10-21 | 小米科技有限责任公司 | Method and apparatus for monitoring electric quantity of terminal |
CN105898680A (en) * | 2016-04-05 | 2016-08-24 | 福建联迪商用设备有限公司 | Bluetooth POS power display method and Bluetooth POS power display system |
CN105942993A (en) * | 2016-05-06 | 2016-09-21 | 上海中医药大学 | Bluetooth pulse-taking bracelet and pulse data transmission method |
-
2019
- 2019-12-13 CN CN201911284995.8A patent/CN111107531B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2757837A1 (en) * | 2013-01-22 | 2014-07-23 | Nokia Corporation | Method, apparatus, and computer program product for power save control for tethering connections |
CN103888548A (en) * | 2014-04-18 | 2014-06-25 | 重庆金瓯科技发展有限责任公司 | Bluetooth beacon monitoring and management system |
Non-Patent Citations (1)
Title |
---|
基于蓝牙4.0和GSM的无线心率监测仪设计;吴振宇等;《计算机测量与控制》;20150225(第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111107531A (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111107531B (en) | Method, device and storage medium for controlling Bluetooth equipment | |
EP3594878A1 (en) | Smart broadcasting method and apparatus | |
CN110113381B (en) | Method and device for subscribing theme in block chain | |
CN106712975B (en) | Mobile phone internet traffic counting and displaying method and device and mobile phone | |
CN111031058A (en) | Websocket-based distributed server cluster interaction method and device | |
CN103313216B (en) | Message prompt method, system and device for communication account | |
CN106658756B (en) | Method and device for identifying connection between terminal equipment and hotspot | |
CN104580534B (en) | Information processing method, device and electronic equipment | |
WO2015149471A1 (en) | Information pushing method, system and device and computer storage medium | |
CN109412821B (en) | Message processing method and device and electronic equipment | |
CN103179531A (en) | Method and device for updating contact numbers | |
CN111491279A (en) | Bluetooth scanning method, device, equipment and computer readable storage medium | |
CN103179264A (en) | Mobile intelligent informing system and method thereof | |
CN111541772A (en) | Intelligent reminding method and system and cloud server | |
US20200211094A1 (en) | Calling method and system, and electronic price tag device | |
CN107592607B (en) | Bluetooth composite device and communication method thereof | |
CN107040902A (en) | The method and apparatus that a kind of message is pushed | |
CN105812343A (en) | Wearable service authentication method, cloud platform, wearable device and terminal | |
CN109413600B (en) | Telephone charge and flow query method and system | |
CN106231538A (en) | A kind of method and apparatus of OneM2M framework apparatus bound | |
CN114222255B (en) | Method and device for device ad hoc network, electronic device and storage medium | |
CN104933560A (en) | Method and system for recharging virtual account and recharging client | |
CN106547856B (en) | Method and device for sharing data by application | |
CN113778367A (en) | Voice interaction method, device, equipment and computer readable medium | |
CN103813034A (en) | Service realization method, terminal and service server |
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 |