CN108401247B - Method for controlling Bluetooth device, electronic device and storage medium - Google Patents
Method for controlling Bluetooth device, electronic device and storage medium Download PDFInfo
- Publication number
- CN108401247B CN108401247B CN201810179597.9A CN201810179597A CN108401247B CN 108401247 B CN108401247 B CN 108401247B CN 201810179597 A CN201810179597 A CN 201810179597A CN 108401247 B CN108401247 B CN 108401247B
- Authority
- CN
- China
- Prior art keywords
- bluetooth device
- bluetooth
- person
- state
- surrounding environment
- 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 42
- 230000004044 response Effects 0.000 claims abstract description 34
- 238000004891 communication Methods 0.000 claims description 34
- 230000006399 behavior Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000007613 environmental effect Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 238000011217 control strategy Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
-
- 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)
- Mobile Radio Communication Systems (AREA)
Abstract
A method of controlling a Bluetooth device and an electronic device are disclosed. The method for controlling the Bluetooth device comprises the following steps: acquiring the state of the surrounding environment of the Bluetooth equipment; predicting the probability of the Bluetooth device being used within a predetermined time range according to the state of the surrounding environment; comparing the probability to a predetermined threshold; and controlling a state of the bluetooth device in response to a result of the comparison. Controlling the state of the Bluetooth device includes: controlling the Bluetooth device in a sleep state in response to the probability being less than the predetermined threshold, and controlling the Bluetooth device in an active state in response to the probability being greater than or equal to the predetermined threshold.
Description
Technical Field
The present invention relates generally to the field of communications, and more particularly, to a method of controlling a bluetooth device, an electronic device, and a storage medium.
Background
Bluetooth has the advantages of low cost, low power consumption, convenience, rapidness and the like as a short-distance wireless communication technical scheme, so that the Bluetooth is widely applied to various occasions and fields all the time. For example, in portable electronic devices, smart homes, or smart wearable devices, bluetooth connections have been used to establish connections between multiple devices to share data and/or various functions to enable convenient information sharing among, for example, family, friends.
Bluetooth devices typically continue to send out bluetooth broadcasts without a connection. There are a large number of bluetooth devices in a room, and in order to increase the speed of establishing a bluetooth connection, sometimes the frequency of the bluetooth broadcast is still fast enough, and in order to make the broadcast cover every corner of the room as much as possible, the transmission power of the bluetooth broadcast is still large enough. To some extent, these bluetooth solutions are power consuming, resulting in wasted resources and increased device wear, resulting in significantly shorter lifetime for battery-powered bluetooth devices. However, most of the bluetooth solutions are not necessary, such as when there is no one at home, when sleeping at night, the bluetooth broadcast frequency does not need to be too fast, and the bluetooth broadcast transmission power does not need to be too large.
For this reason, the device manufacturer usually makes a compromise between the power supply usage time of the bluetooth device and the activity of the bluetooth device, and the activity of the bluetooth device can be within an acceptable range under the condition of prolonging the usage time as much as possible. However, such policies and parameters are basically fixed and set when the bluetooth device leaves the factory, and cannot be dynamically optimized and adjusted.
Disclosure of Invention
In view of the above prior art situation, the present application provides a bluetooth device control scheme, which dynamically adjusts the bluetooth broadcast frequency and the bluetooth broadcast power of a bluetooth device by determining the possibility that the bluetooth device is connected, thereby improving the power supply service time of the bluetooth device and optimizing the bluetooth communication experience.
According to an exemplary embodiment of the present application, there is provided a method of controlling a bluetooth device, which may include: acquiring the state of the surrounding environment of the Bluetooth equipment; predicting the probability of the Bluetooth device being used within a predetermined time range according to the state of the surrounding environment; comparing the probability to a predetermined threshold; and controlling a state of the bluetooth device in response to a result of the comparison.
In some embodiments, controlling the state of the bluetooth device in response to the result of the comparison comprises: controlling the Bluetooth device in a sleep state in response to the probability being less than the predetermined threshold, and controlling the Bluetooth device in an active state in response to the probability being greater than or equal to the predetermined threshold.
In some embodiments, the method further comprises: recording and counting the use habits of the authorized users of the Bluetooth equipment on the Bluetooth equipment in the surrounding environment.
In some embodiments, said obtaining the state of the environment surrounding the bluetooth device comprises: acquiring state parameters of the environment; analyzing whether a person is in the surrounding environment of the Bluetooth device according to the state parameters; in response to a person being in the surroundings of the Bluetooth device, identifying the identity and behavior of the person in the surroundings; and determining whether an authorized user of the bluetooth device is active in the surrounding environment based on the identity and behavior of the identified person.
In some embodiments, the status parameters include one or more of: time data, video data, audio data, brightness data, temperature data, humidity data of the environment.
In some embodiments, said determining whether an authorized user of said bluetooth device is active in the surrounding environment based on the identity and behavior of the identified person comprises: determining whether the person is an authorized user of the Bluetooth device according to the identified identity of the person; and in response to the person being an authorized user of the bluetooth device, determining whether the authorized user of the bluetooth device is active in the surrounding environment based on the identified behavior of the person.
In some embodiments, the determining whether an authorized user of the bluetooth device is active in the ambient environment comprises: determining that an authorized user of the Bluetooth device is not active in the ambient environment in response to no person being in the ambient environment of the Bluetooth device, or in response to the person not being an authorized user of the Bluetooth device, or in accordance with the identified behavior of the person.
In some embodiments, said determining that an authorized user of said bluetooth device is not active in the surrounding environment based on said identified behavior of said person comprises: in response to the identified behavior of the person being sleep, determining that an authorized user of the Bluetooth device is not active in the ambient environment; and in response to the identified behavior of the person being speaking, determining that an authorized user of the bluetooth device is active in the ambient environment.
In some embodiments, said analyzing whether a person is in the surroundings of the bluetooth device according to the status parameter comprises: determining whether a person is in the surroundings of the Bluetooth device based on one or more of: whether the current time is day or night; whether the current indoor brightness is dark or high; and location information of an authorized user of the bluetooth device.
In some embodiments, the predicting the probability that the bluetooth device is used within a predetermined time range according to the state of the surrounding environment comprises: setting the probability that the Bluetooth device is used below the predetermined threshold in response to an authorized user of the Bluetooth device not being active in the surrounding environment.
In some embodiments, the predicting the probability that the bluetooth device is used within a predetermined time range according to the state of the surrounding environment comprises: setting a probability that the Bluetooth device is used above the predetermined threshold in response to an authorized user of the Bluetooth device being active in a surrounding environment.
In some embodiments, the predicting the probability that the bluetooth device is used within a predetermined time range according to the state of the surrounding environment comprises: and setting the probability of the Bluetooth device being used according to the use habit of the authorized user of the Bluetooth device on the surrounding environment and the state of the surrounding environment.
In some embodiments, the state of the surrounding environment may also be reported to the cloud.
According to another exemplary embodiment of the present application, there is provided an electronic device, which may include: a Bluetooth module for performing communication using a Bluetooth protocol; and a processor configured to execute the computer program instructions in the memory to perform the above-described method.
According to another exemplary embodiment of the present application, a computer-readable storage medium may have stored thereon computer program instructions which, when executed by a processor, cause the processor to perform the above-described method.
According to another exemplary embodiment of the present application, a computer program product may be provided, which may comprise computer program instructions, which, when executed by a processor, cause the processor to perform the above-mentioned method.
According to the Bluetooth device control scheme, the Bluetooth broadcast frequency and the Bluetooth broadcast power of the Bluetooth device are dynamically adjusted by estimating the possibility that the Bluetooth device is connected, and the Bluetooth device is instructed to be switched between the dormant state and the activated state, so that the power supply service time and the Bluetooth communication response speed of the Bluetooth device are prolonged, and the Bluetooth communication experience is optimized.
The foregoing and other features and advantages of the present application will become apparent from the following description of exemplary embodiments.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 illustrates a system topology diagram for controlling a bluetooth device according to an exemplary embodiment of the present application.
Fig. 2 illustrates a flowchart of a bluetooth device control method according to an exemplary embodiment of the present application.
Fig. 3 illustrates a flowchart of steps for obtaining a status of an environment surrounding a bluetooth device according to an exemplary embodiment of the present application.
FIG. 4 illustrates a block diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
As described above, the conventional bluetooth control scheme has the following problems: the bluetooth control strategy and related parameters are basically fixed and invariable, and the bluetooth control strategy and related parameters are set when the bluetooth equipment leaves a factory and cannot be dynamically optimized and adjusted according to actual conditions.
In view of the above-mentioned drawbacks of the prior art, the basic idea of the present application is to provide a method, an electronic device, a computer program product and a computer readable storage medium for controlling a bluetooth device, which dynamically adjust a bluetooth broadcast frequency and a bluetooth broadcast power of the bluetooth device by estimating a possibility that the bluetooth device is connected in a surrounding environment, so as to improve a power usage time of the bluetooth device and optimize a bluetooth communication experience.
It should be noted that the basic concept of the present application can be applied to smart home or smart wearable scenes, and can also be applied to other system applications as long as the related devices participating in communication have a bluetooth communication function. For example, the present application is equally applicable to bluetooth device control applications in industrial environments, such as controlling bluetooth devices in scenarios involving bluetooth communications in internet of things applications.
Having described the general principles of the present application, various non-limiting embodiments of the present application will now be described with reference to the accompanying drawings.
Fig. 1 illustrates a system topology of bluetooth device control according to an exemplary embodiment of the present application, which shows a typical bluetooth device control application scenario. As shown in fig. 1, user device B may sometimes need to use bluetooth device E. In some embodiments, the user equipment B may directly establish a bluetooth connection with the bluetooth device E for communication, or in other embodiments, the user equipment B may perform authentication through the gateway a, and after the authentication is passed, the user equipment B establishes a connection with the bluetooth device E by means of a token (token) returned by the gateway a and performs communication. The bluetooth device E may communicate with the gateway a, and the gateway a may be configured as a control device of the bluetooth device E to monitor an operation state of the bluetooth device E to control an operation thereof. For example, the bluetooth device E may report its operating status to the gateway a periodically. Various detectors S, such as cameras, microphones and other sensors, may detect state parameters of the surroundings of the bluetooth device E and may report data about the state of the surroundings to the gateway a. The communication between the gateway and the various devices is not limited to bluetooth communication, but may be, for example, wired communication, WiFi communication, or other short-range wireless communication, and the like. In addition, gateway a may also be connected to the internet to receive other relevant environmental data, such as weather information, etc. In this way, the gateway a can store the usage history of the bluetooth device E and its associated environmental parameters. Based on these historical statistics, gateway a may predict or estimate the probability that bluetooth device E will be used within a certain time frame in the future. This is equivalent to a machine learning process, the more historical data gateway a accumulates, the more accurate its probability of prediction or evaluation. And, the gateway a may control the state of the bluetooth device E based on the prediction. For example, if the probability is equal to or greater than some predetermined threshold, bluetooth device E is activated, e.g., caused to transmit bluetooth broadcasts at a higher frequency and power, so that user device B can easily establish a connection therewith. Conversely, if the probability is less than some predetermined threshold, indicating that the user is unlikely to use the bluetooth device E, the bluetooth device E may be put to a sleep state, e.g., be caused to transmit bluetooth broadcasts at a lower frequency and power, thereby saving power consumption and extending the lifetime of the bluetooth device E. By the method, good user experience can be realized, power consumption can be saved, and the service life of the Bluetooth device can be prolonged.
In some scenarios, gateway a may also upload data it receives to cloud Y, and its various functions are also performed at cloud Y. The gateway a may only forward data obtained by the detector S centrally, or may process the data, extract parameters, and send the parameters to the cloud Y, so as to reduce the required transmission bandwidth. The cloud Y may represent a backend server, and typically provides necessary auxiliary backend services through various wired or wireless communication methods, which will be described in detail later.
It should be noted that the above application scenarios are only shown for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited thereto. Rather, embodiments of the present application may be applied to any scenario where it may be applicable. For example, in any application environment such as home, industry, etc., two or more bluetooth devices may be included, one or more pairs of bluetooth devices and users may be included, and one gateway may control two or more bluetooth devices.
In the following, a bluetooth device control method according to an exemplary embodiment of the present application is described with reference to fig. 2 in conjunction with the application scenario of fig. 1.
Fig. 2 illustrates a flowchart of a bluetooth device control method according to an exemplary embodiment of the present application.
The bluetooth device control method 100 as shown in fig. 2 may start with step S100. In step S100, the state of the environment around the bluetooth device is acquired. Step S100 may be performed by a flowchart as shown in fig. 3.
Fig. 3 illustrates a flowchart of steps for obtaining a status of an environment surrounding a bluetooth device according to an exemplary embodiment of the present application.
As shown in fig. 3, in step S110, the state parameters of the environment are acquired. The state parameters include one or more of: time data, video data, audio data, brightness data, temperature data, humidity data of the environment. As described above, various detectors S can detect status parameters of the surroundings of the bluetooth device E, for example, a camera capturing video data, a microphone picking up audio data, a thermometer measuring temperature data, a hygrometer measuring humidity data. In one embodiment, some public data may be available via the internet, such as the weather, PM2.5, etc. local to the day.
In step S120, it is analyzed whether a person is in the surroundings of the bluetooth device according to the status parameters. For example, for video data captured by a camera, whether the video data contains people is identified through an image identification technology; for audio data picked up by a microphone, whether a person is in the audio data is identified by a voice recognition technology. Thereby determining whether a person is in the surroundings of the bluetooth device.
In one embodiment, whether a person is in the surroundings of the bluetooth device may be determined based on one or more of: whether the current time is day or night; whether the current indoor brightness is dark or high; and location information of an authorized user of the bluetooth device.
In step S130, in response to a person being in the surroundings of the bluetooth device, the identity and behavior of the person in the surroundings is identified. Under the condition that people exist in the surrounding environment of the Bluetooth device, the acquired state parameters of the surrounding environment can be comprehensively analyzed, and the identity and the behavior of the people in the environment can be identified.
In step S140, it is determined whether an authorized user of the bluetooth device is active in the surrounding environment based on the identity and behavior of the identified person. Whether an identified person is an authorized user of the bluetooth device may be determined based on the identity of the identified person. In case it is determined that the identified person is an authorized user of the bluetooth device, it may be determined whether the authorized user is active in the surrounding environment, i.e. with a high probability to use a bluetooth device, depending on the behavior of the identified person.
For example, when the camera detects that the picture is still and static, the identity of the captured person and the behavior of the person can be analyzed, and then the identity and the behavior of the person are reported to the gateway a. Data detected by other sensors, such as microphones, etc., may also be processed in a similar manner. In this way, various sensor data can be reported to the gateway a. In some embodiments, the gateway a may also send the data to the cloud Y to perform subsequent operations at the cloud Y, which has the advantages of utilizing more storage and computing power and implementing more flexible data access functions, such as accessing the data of the cloud from anywhere. In consideration of the large bandwidth pressure brought to the cloud end by the report, some processing can be performed locally first, for example, the original video stream or image is not reported directly, but the detected user id and the status code of the person are reported for subsequent utilization.
In one embodiment, it is determined that the authorized user is not active in the surrounding environment if the identified behavior of the person is sleeping. In another embodiment, the authorized user is determined to be active in the surrounding environment if the identified behavior of the person is speaking.
In another embodiment, it is determined that the authorized user of the bluetooth device is not active in the surroundings if, depending on the recognition result, no person is in the surroundings of the bluetooth device or the person is not an authorized user of the bluetooth device. For example, analyzing wifi to which an authorized user is currently connected, if not under the same router as the surrounding environment (e.g., home), is not active at home.
In step S300 of fig. 2, the probability that the bluetooth device is used within a predetermined time range is predicted according to the state of the surrounding environment. The prediction step may be performed by calculating the following prediction function 1.
P=α1C1+α2C2+α3C3+......+αiCi(function 1)
Wherein, CiIs an environmental parameter such as, but not limited to, time, weather, PM2.5, presence of people in the home, presence of authorized users in the surroundings, light intensity, sound, length of time since the last use of the bluetooth device, whether the associated device was used, etc. α i is a weight value corresponding to the parameter Ci, which may be determined in advance through a machine learning process, which will be described later. P is the calculated probability. It will be appreciated that there may be a plurality of bluetooth devices E, and that the probability function 1 may be established for each bluetooth device E at this time to predict the probability that it will be used.
Next, in step S400, the probability is compared with a predetermined threshold, and the comparison result can be used to control the state of the bluetooth device E. For example, in step S500, in response to the probability that the bluetooth device E is used being less than the predetermined threshold, the bluetooth device E is controlled to be in the sleep state. And in step S600, in response to the probability that the bluetooth device E is used being greater than or equal to the predetermined threshold, controlling the bluetooth device E to be in an active state. The Bluetooth device can reduce the Bluetooth broadcast frequency and the Bluetooth broadcast power in the dormant state, so that the power consumption is reduced to the minimum. The bluetooth communication connection process with the bluetooth device in the sleep state may be more time-consuming than usual. In contrast, the bluetooth broadcast frequency and the bluetooth broadcast power of the bluetooth device in the active state may be raised to higher values so that the bluetooth communication connection process with the bluetooth device may be faster. In most cases, bluetooth devices are unlikely to be used and therefore can be put to sleep and reactivated when possible. Therefore, the power supply service time and even the service life of the battery of the Bluetooth device can be obviously prolonged, and the use experience of a user can also be improved.
In the above embodiment, the bluetooth broadcast frequency and the bluetooth broadcast power of the bluetooth device are dynamically adjusted by determining the possibility that the bluetooth device is connected, and when the bluetooth device is unlikely to be used immediately, the bluetooth device enters a sleep state, so that power consumption can be greatly reduced. When the Bluetooth device is likely to be used immediately, the Bluetooth device is enabled to enter an active state, so that the Bluetooth broadcast frequency and the Bluetooth broadcast power are increased to be high enough, and the Bluetooth connection and data transceiving are faster. According to the detection data of multiple dimensionalities of the surrounding environment where the Bluetooth device is located, the probability that the Bluetooth device is about to be used is predicted, and the Bluetooth broadcast frequency of the Bluetooth device is dynamically adjusted, so that the power consumption and the Bluetooth communication response speed of the Bluetooth device can be optimal.
The following describes the process of determining the prediction function 1 for a particular bluetooth device E. Initially, a default weight parameter α i may be assigned to the prediction function 1 of the bluetooth device E. For example, the default weight parameter α i may cause the bluetooth device E to operate as a normal device, e.g., to be activated when a connection request is received; after a predetermined time, e.g. 3 minutes, from the last use, the sleep state is entered. The gateway a then regularly receives the operating status data of the bluetooth device E and the environmental parameters detected by the detector S and uses these data to train the prediction function 1 to determine the appropriate weight parameters ai. Through such a machine training process, the habit of the user using the bluetooth device E can be grasped, thereby making an accurate prediction.
FIG. 4 illustrates a block diagram of an electronic device according to an exemplary embodiment of the present application. It should be understood that the electronic device 200 according to an exemplary embodiment of the present application may be the aforementioned gateway a, but may also be other devices, such as a mobile phone, a tablet, a personal digital assistant, which may also function as the gateway a or perform some of the functions of the gateway a by running an application program. As shown in fig. 4, the electronic device 200 may include a processor 210 and a bluetooth module 220, which are connected to each other through a bus 280.
The processor 210 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. Bluetooth module 220 may communicate using the bluetooth protocol. Processor 210 is coupled to bluetooth module 220 via bus 280 to control their operation.
With continued reference to fig. 4, in an example, the electronic device 200 can also include a communication module 230. The communication module 230 may communicate using a protocol different from the bluetooth protocol. For example, the communication module 230 may be a WIFI communication module, an internet communication module, or a mobile communication network communication module, etc. In another example, the electronic device 200 may also include a camera 240 that may be used as a detector S to detect environmental data. In another example, the electronic device 200 may further include a memory 250, an input unit 260, and an output unit 270. Memory 250 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer readable storage medium and executed by a processor to implement the bluetooth device method of the embodiments of the present application above and/or other desired functionality. The input unit 260 and the output unit 270 may perform various input and output functions. In one embodiment, the input unit 260 and the output unit 270 may be integrated into a single device, such as a touch screen display. The processor 210 and the above-described communication module 230, camera 240, memory 250, input unit 260, and output unit 270 may be connected through a bus 280 to control their operations.
In addition to the above-described methods and devices, embodiments of the present application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the bluetooth device control method according to embodiments of the present application described above.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the bluetooth device control method according to embodiments of the present application described above.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (15)
1. A method performed by a gateway to control a bluetooth device, comprising:
acquiring the state of the surrounding environment of the Bluetooth equipment;
predicting the probability of the Bluetooth device being used within a predetermined time range according to the state of the surrounding environment;
comparing the probability to a predetermined threshold; and
controlling a state of the Bluetooth device in response to a result of the comparison;
wherein, the acquiring the state of the surrounding environment of the Bluetooth device comprises: acquiring state parameters of the environment; analyzing whether a person is in the surrounding environment of the Bluetooth device according to the state parameters; in response to a person being in the surroundings of the Bluetooth device, identifying the identity and behavior of the person in the surroundings; and determining whether an authorized user of the bluetooth device is active in the surrounding environment based on the identity and behavior of the identified person;
wherein the predicting the probability that the Bluetooth device is used within a predetermined time range according to the state of the surrounding environment comprises: setting a probability that the Bluetooth device is used above the predetermined threshold in response to an authorized user of the Bluetooth device being active in a surrounding environment;
wherein controlling the state of the Bluetooth device in response to the result of the comparison comprises: controlling the Bluetooth device to be in an active state in response to the probability being greater than the predetermined threshold.
2. The method of claim 1, wherein controlling the state of the bluetooth device in response to the result of the comparison further comprises:
in response to the probability being less than the predetermined threshold, controlling the Bluetooth device to be in a sleep state, an
Controlling the Bluetooth device to be in an active state in response to the probability being equal to the predetermined threshold.
3. The method of claim 1, further comprising:
recording and counting the use habits of the authorized users of the Bluetooth equipment on the Bluetooth equipment in the surrounding environment.
4. The method of claim 1, wherein the status parameters include one or more of: time data, video data, audio data, brightness data, temperature data, humidity data of the environment.
5. The method of claim 4, wherein said determining whether an authorized user of the Bluetooth device is active in the surrounding environment based on the identity and behavior of the identified person comprises:
determining whether the person is an authorized user of the Bluetooth device according to the identified identity of the person; and
in response to the person being an authorized user of the Bluetooth device, determining whether the authorized user of the Bluetooth device is active in the surrounding environment based on the identified behavior of the person.
6. The method of claim 5, wherein the determining whether an authorized user of the Bluetooth device is active in the ambient environment comprises:
determining that an authorized user of the Bluetooth device is not active in the ambient environment in response to no person being in the ambient environment of the Bluetooth device, or in response to the person not being an authorized user of the Bluetooth device, or in accordance with the identified behavior of the person.
7. The method of claim 6, wherein the determining that an authorized user of the Bluetooth device is not active in the surrounding environment based on the identified behavior of the person comprises:
in response to the identified behavior of the person being sleep, determining that an authorized user of the Bluetooth device is not active in the ambient environment; and
in response to the identified behavior of the person being speaking, determining that an authorized user of the Bluetooth device is active in the ambient environment.
8. The method of claim 4, wherein said analyzing whether a person is in the surroundings of the Bluetooth device according to the status parameters comprises:
determining whether a person is in the surroundings of the Bluetooth device based on one or more of: whether the current time is day or night; whether the current indoor brightness is dark or high; and location information of an authorized user of the bluetooth device.
9. The method of claim 5, wherein predicting the probability of the Bluetooth device being used within a predetermined time range based on the state of the surrounding environment, further comprises:
setting the probability that the Bluetooth device is used below the predetermined threshold in response to an authorized user of the Bluetooth device not being active in the surrounding environment.
10. The method of claim 3, wherein the predicting the probability that the Bluetooth device is used within a predetermined time range based on the state of the surrounding environment comprises:
and setting the probability of the Bluetooth device being used according to the use habit of the authorized user of the Bluetooth device on the surrounding environment and the state of the surrounding environment.
11. The method of claim 1, further comprising:
and reporting the state of the surrounding environment to a cloud.
12. An electronic device, comprising:
the Bluetooth module is used for carrying out communication by using a Bluetooth communication protocol; and
a processor configured to execute a computer program in a memory to perform the method of any of claims 1-11.
13. The electronic device of claim 12, further comprising: and the other communication module is used for carrying out communication by using a communication protocol other than the Bluetooth communication protocol.
14. The electronic device of claim 12, wherein the electronic device comprises a cell phone, a tablet, a personal digital assistant, or a gateway.
15. A computer-readable storage medium, having stored thereon a computer program of instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1-11.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810179597.9A CN108401247B (en) | 2018-03-05 | 2018-03-05 | Method for controlling Bluetooth device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810179597.9A CN108401247B (en) | 2018-03-05 | 2018-03-05 | Method for controlling Bluetooth device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108401247A CN108401247A (en) | 2018-08-14 |
| CN108401247B true CN108401247B (en) | 2019-12-31 |
Family
ID=63092326
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810179597.9A Active CN108401247B (en) | 2018-03-05 | 2018-03-05 | Method for controlling Bluetooth device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108401247B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109309966B (en) * | 2018-09-05 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Shared channel Bluetooth communication method and device based on gateway control |
| CN109541543A (en) * | 2019-01-09 | 2019-03-29 | 深圳市民明科技有限公司 | A kind of fire-fighting Field Force positioning system, localization method and detection positioning device |
| CN114258116A (en) * | 2020-09-25 | 2022-03-29 | 华为技术有限公司 | Power consumption optimization method and apparatus |
| CN115484581B (en) * | 2022-08-29 | 2025-09-05 | 深圳市酷开网络科技股份有限公司 | Bluetooth list display method and device, storage medium, and electronic device |
| CN115880817A (en) * | 2022-12-05 | 2023-03-31 | 深圳市凯迪仕智能科技股份有限公司 | Intelligent door lock control method, intelligent door lock system and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104737565A (en) * | 2012-10-19 | 2015-06-24 | 脸谱公司 | Method for Predicting Future State of Mobile Device User |
| CN106507406A (en) * | 2016-11-30 | 2017-03-15 | 四川九洲电器集团有限责任公司 | A kind of equipment of wireless network accesses the Forecasting Methodology of number and equipment |
| CN107333235A (en) * | 2017-06-14 | 2017-11-07 | 珠海市魅族科技有限公司 | WiFi connections probability forecasting method, device, terminal and storage medium |
-
2018
- 2018-03-05 CN CN201810179597.9A patent/CN108401247B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104737565A (en) * | 2012-10-19 | 2015-06-24 | 脸谱公司 | Method for Predicting Future State of Mobile Device User |
| CN106507406A (en) * | 2016-11-30 | 2017-03-15 | 四川九洲电器集团有限责任公司 | A kind of equipment of wireless network accesses the Forecasting Methodology of number and equipment |
| CN107333235A (en) * | 2017-06-14 | 2017-11-07 | 珠海市魅族科技有限公司 | WiFi connections probability forecasting method, device, terminal and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108401247A (en) | 2018-08-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108401247B (en) | Method for controlling Bluetooth device, electronic device and storage medium | |
| US20210216787A1 (en) | Methods and Systems for Presenting Image Data for Detected Regions of Interest | |
| US11902657B2 (en) | Systems and methods for automatic exposure in high dynamic range video capture systems | |
| US11721107B2 (en) | Systems and methods for locating image data for selected regions of interest | |
| US11743578B2 (en) | Systems and methods of power-management on smart devices | |
| US20180330169A1 (en) | Methods and Systems for Presenting Image Data for Detected Regions of Interest | |
| US10630778B2 (en) | System and method of controlling data transmission of external apparatus connected to gateway | |
| KR102390979B1 (en) | Electronic Device Capable of controlling IoT device to corresponding to the state of External Electronic Device and Electronic Device Operating Method | |
| US20160366337A1 (en) | Day and Night Detection Based on One or More of Illuminant Detection, Lux Level Detection, and Tiling | |
| KR101635068B1 (en) | Home network system and method using robot | |
| US10708496B2 (en) | Analytics based power management for cameras | |
| EP3622724A1 (en) | Methods and systems for presenting image data for detected regions of interest | |
| CN107026971B (en) | Control device and control method | |
| KR102126507B1 (en) | Terminal, system and method of processing sensor data stream | |
| CN110832918B (en) | User location identification method, device, storage medium and electronic device | |
| CN109040457B (en) | Screen brightness adjusting method and mobile terminal | |
| KR20220147314A (en) | Method for detecting video stream and electronic device supporting same | |
| CN116915537A (en) | Communication method and device of intelligent central control equipment and intelligent central control equipment | |
| KR20220136625A (en) | Electronic device, and method for performing task with dynamic conditions in electronic device | |
| KR20220102351A (en) | An electronic device controlling a plurality of external electronic devices performing resource offloading, and a control method thereof | |
| CN117354115A (en) | Device management method, device management system, and storage medium |
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 |