CN113391693A - Method and device for acquiring electric quantity, electronic equipment and storage medium - Google Patents

Method and device for acquiring electric quantity, electronic equipment and storage medium Download PDF

Info

Publication number
CN113391693A
CN113391693A CN202110732824.8A CN202110732824A CN113391693A CN 113391693 A CN113391693 A CN 113391693A CN 202110732824 A CN202110732824 A CN 202110732824A CN 113391693 A CN113391693 A CN 113391693A
Authority
CN
China
Prior art keywords
detected
mobile terminal
bluetooth physical
physical address
target database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110732824.8A
Other languages
Chinese (zh)
Other versions
CN113391693B (en
Inventor
陈惠弟
戴友伟
李越
赵彩红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaoning Chenhui Intelligent Energy Co ltd
Original Assignee
Liaoning Chenhui Intelligent Energy Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Liaoning Chenhui Intelligent Energy Co ltd filed Critical Liaoning Chenhui Intelligent Energy Co ltd
Priority to CN202110732824.8A priority Critical patent/CN113391693B/en
Publication of CN113391693A publication Critical patent/CN113391693A/en
Application granted granted Critical
Publication of CN113391693B publication Critical patent/CN113391693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an electric quantity acquisition method, an electric quantity acquisition device, electronic equipment and a storage medium. The acquisition method comprises the following steps: acquiring a Bluetooth physical address of a mobile terminal to be detected; determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on the preset target database; and if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in the preset range, providing electric quantity for the electric equipment in the target space position of the mobile terminal to be detected. According to the method and the device, whether the Bluetooth physical address of the mobile terminal to be detected can be detected within the preset range of the preset target database is judged, whether the electric quantity is provided for the target space position where the mobile terminal to be detected is located is determined, whether the user is sheltered by a shelter or not does not need to be judged, the power supply precision of power supply equipment powered on and off by people is improved while the user experience is enhanced, and accurate power supply of the target range area is achieved.

Description

Method and device for acquiring electric quantity, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications application technologies, and in particular, to a method and an apparatus for acquiring an electric quantity, an electronic device, and a storage medium.
Background
With the development of society and the progress of science and technology, traditional timing switch controller, bell-ringing switch controller, temperature switch controller, cycle switch controller, timing cycle controller in the market, these single switch controllers all have strong dependence to electric energy and power supply volume, consequently, the equipment that people came on the electricity, people went off the power supply appears on the market, satisfy user's intelligent power consumption's demand, intelligent power consumption extensively is applicable to power consumption scenes such as school's dormitory, apartment, family, hotel, enterprise and public institution production official working, science and technology research and development experiment, public place security protection, can realize saving electric energy, reduce carbon emission and prevent and reduce the effect of power consumption conflagration.
However, in the current market, devices powered on and off by people mainly depend on the mode of adopting an infrared probe, a camera and a radar, but the infrared probe cannot ensure that a detected organism is a human user and cannot detect the organism shielded by a shielding object, so that the experience of the user is reduced; the camera cannot determine and distinguish the in-out direction of a user, so that the power supply precision of equipment powered on by people and powered off by people is reduced; the radar cannot supply power within the target range, and extra electric quantity is wasted.
Disclosure of Invention
In view of this, an object of the present application is to provide an electric quantity obtaining method, an apparatus, an electronic device, and a storage medium, which determine whether to provide an electric quantity for a target spatial position where a mobile terminal to be detected is located by determining whether a bluetooth physical address of the mobile terminal to be detected can be detected within a preset range of a preset target database, without determining whether a user is blocked by a blocking object and an access direction of the user, so that while user experience is enhanced, power supply accuracy of a device that a person powers on and off when the person goes off is improved, and an embodiment provided by the present application realizes accurate power supply for an area within the target range.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides an electric quantity obtaining method, where the obtaining method includes:
acquiring a Bluetooth physical address of a mobile terminal to be detected;
determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected within a preset range based on a preset target database;
and if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, providing electric quantity for the electric equipment in the target space position of the mobile terminal to be detected.
In one possible embodiment, the predetermined target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected;
and determining a preset target database based on the Bluetooth physical address data set.
In a possible implementation manner, after the determining the preset target database based on the bluetooth physical address data set, the obtaining method further includes:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
In a possible implementation manner, the obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals includes: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
In a possible implementation manner, if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range, the method for providing power for the electric device in the target spatial location where the mobile terminal to be detected is located includes:
if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, sending a closing instruction to a switch control device;
and controlling the switch control device to provide electric quantity for the target space position where the mobile terminal to be detected is located based on the closing instruction.
In a possible implementation manner, after determining whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range based on a preset target database, the obtaining method further includes:
if the preset target database cannot detect that the time length of the Bluetooth physical address of the mobile terminal to be detected reaches a preset time length in a preset range, sending a switching-off instruction to a switch control device;
and controlling the switch control device to cut off the electric quantity of the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
In a second aspect, an embodiment of the present application further provides an apparatus for acquiring an electric quantity, where the apparatus includes:
the acquisition module is used for acquiring the Bluetooth physical address of the mobile terminal to be detected;
the determining module is used for determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on the preset target database;
the first power supply module is used for providing electric quantity for electric equipment in a target space position where the mobile terminal to be detected is located if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range.
In a possible implementation, the obtaining apparatus further includes:
the second functional module is used for sending a switching-off instruction to the switch control device if the preset target database cannot detect the Bluetooth physical address of the mobile terminal to be detected within a preset range;
and the switch control device is also used for controlling the switch control device to cut off the electric quantity of the electric equipment in the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, the processor and the memory communicate with each other through the bus when the electronic device runs, and the machine-readable instructions are executed by the processor to perform the steps of the power acquiring method according to any one of the possible embodiments of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the power obtaining method in any one of the possible implementation manners of the first aspect are performed.
In the embodiment of the application, whether the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database is judged, whether the electric quantity is provided for the target space position where the mobile terminal to be detected is located is determined, whether the user is shielded by the shielding object and the access direction of the user does not need to be judged, the power supply precision of power supply equipment powered on by people and powered off by people is improved while the user experience is enhanced, and the accurate power supply of the area in the target range is realized by the embodiment provided by the application.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a power acquisition method provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating another power obtaining method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram illustrating an electric quantity obtaining apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating another power acquisition device provided in an embodiment of the present application;
fig. 5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[ description of main element symbols ]:
in the figure: 300-an acquisition device; 310-an acquisition module; 320-a determination module; 330-a first power supply module; 340-a second power supply module; 500-an electronic device; 510-a processor; 520-a memory; 530-bus.
Detailed Description
To make the purpose, 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, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to utilize the present disclosure, the following embodiments are presented in conjunction with a specific application scenario "power harvesting," and it will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present disclosure.
The method, the system, the electronic device and the storage medium provided in the embodiments of the present application can be applied to any scene that needs face recognition, the embodiments of the present application do not limit the specific application scene, and any scheme using the face recognition training method, the apparatus, the electronic device and the storage medium provided in the embodiments of the present application is within the scope of the present application.
It is worth noting that research shows that before the application is provided, the current devices for people to power on and off in the market mainly depend on the mode of adopting an infrared probe, a camera and a radar, but the infrared probe cannot ensure that the detected organism is a human user and cannot detect the organism shielded by a shielding object, so that the experience of the user is reduced; the camera cannot determine and distinguish the in-out direction of a user, so that the power supply precision of equipment powered on by people and powered off by people is reduced; the radar cannot supply power within the target range, and extra electric quantity is wasted.
Based on this, the embodiment of the application provides an electric quantity obtaining method, an electric quantity obtaining device, an electronic device and a storage medium, whether electric quantity is provided for a target space position where a mobile terminal to be detected is located is determined by judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected within a preset range of a preset target database, whether a user is shielded by a shielding object and the access direction of the user do not need to be judged, the power supply precision of equipment powered on when the user comes and powered off when the user goes is improved while the user experience is enhanced, and the embodiment provided by the application realizes accurate power supply for an area within the target range.
For the convenience of understanding of the present application, the technical solutions provided in the present application will be described in detail below with reference to specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a flow of an electric quantity obtaining method according to an embodiment of the present disclosure. As shown in fig. 1, an obtaining method provided in an embodiment of the present application includes the following steps:
s101, acquiring the Bluetooth physical address of the mobile terminal to be detected.
In this step, the bluetooth physical address of the mobile terminal to be detected is firstly acquired, wherein the number of the mobile terminals to be detected may be one or more.
Here, the manner of acquiring the bluetooth physical address, that is, the manner of acquiring the MAC address may specifically be: and transmitting the acquired Bluetooth physical address through an external device and directly inputting a plurality of Bluetooth physical addresses.
In a manner of transmitting the acquired bluetooth physical address through an external device, the external device includes, but is not limited to, a collection computing gateway device, a computer software platform, and a third-party application program, the bluetooth physical address that the user wants to transmit is acquired by using the external device, specifically, the mobile terminal to be detected is associated with the external device, the user inputs the bluetooth physical address of the mobile terminal to be detected on the external device, and the bluetooth physical address is paired and bound with data in a preset target database.
The way of directly inputting the bluetooth physical address specifically is as follows: the bluetooth physical address is directly input by using an external key of a remote control communication device or an external key of a probe apparatus, that is, a manner of directly inputting the bluetooth physical address includes, but is not limited to, an input manner using a key.
S102, determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on the preset target database.
In this step, the preset target database is represented as a database storing a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals, and here, whether the mobile terminal is located within a preset range detectable by the preset target database is determined by determining whether the bluetooth physical address of the mobile terminal to be detected is within the preset range detectable by the preset target database.
Further, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected.
Here, the historical bluetooth address is a bluetooth physical address corresponding to the sample mobile terminal, in an embodiment provided in the present application, a plurality of historical bluetooth physical addresses corresponding to a plurality of sample mobile terminals are collected, a bluetooth physical address data set is used to determine, in order to facilitate subsequent determination, whether a bluetooth physical address of the mobile terminal to be detected is located within a preset range of the preset target database, at this time, the plurality of historical bluetooth physical addresses need to include the bluetooth physical address of the mobile terminal to be detected, and then the plurality of sample mobile terminals need to include the mobile terminal to be detected, and the preset target database can only perform a series of judgments on the mobile terminal to be detected corresponding to any one of the sample mobile terminals stored in the preset target database.
Further, the manner of obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals includes: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
Here, in the manner of acquiring a plurality of bluetooth physical addresses by external device transmission, the external device includes, but is not limited to, a collection computing gateway device, a computer software platform, and a third party application program, and acquires a bluetooth physical address that a user wants to transmit by using the external device.
The method includes the steps that a user transmits a to-be-detected Bluetooth physical address input by the user from a collection computing gateway device, a computer software platform or a platform where a third-party application program is located to a device corresponding to the method provided by the application to obtain a plurality of Bluetooth physical addresses, wherein the to-be-detected Bluetooth physical address input by the platform where the third-party application program is located can be specifically but not limited to scanning a preset two-dimensional code by using mobile devices such as a mobile phone and a tablet personal computer, and the corresponding Bluetooth physical address is input by scanning the preset two-dimensional code.
The way of directly inputting the bluetooth physical address specifically is as follows: the bluetooth physical address directly input by using the external key of the remote control communication device or the external key of the detection instrument may also be implemented by scanning the two-dimensional code by using the assumed head function of the mobile device such as a mobile phone or a tablet computer, that is, the bluetooth physical address is directly input by using, but not limited to, an input method using the key and a scanning method of the two-dimensional code.
And determining a preset target database based on the Bluetooth physical address data set.
Here, a preset target database is determined based on a plurality of the historical bluetooth physical addresses in the bluetooth physical address data set. The preset target database comprises and stores a mobile terminal to be detected and a Bluetooth physical address of the mobile terminal to be detected.
Further, after the determining a preset target database based on the bluetooth physical address data set, the obtaining method further includes:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
Here, when the bluetooth physical address data set does not include the bluetooth physical address of the mobile terminal to be detected, it is determined that the bluetooth physical address of the mobile terminal to be detected is a new mobile terminal held by a user, at this time, the preset target data needs to acquire the bluetooth physical address of the new mobile terminal held by the user again, and add the bluetooth physical address to the preset target database again, update the preset target database, and after the update is completed. And re-determining whether the Bluetooth physical address is in a preset range in the preset target database.
S103, if the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database, providing electric quantity for electric equipment in a target space position where the mobile terminal to be detected is located.
In this step, if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range, a closing instruction is sent to a switch control device, the switch control device provides electric quantity for a target spatial position where the mobile terminal is located, and then all electric equipment in the target spatial position is powered, that is, the closing instruction can provide electric energy for the electric equipment in the target spatial position where the mobile terminal is located, and then the requirement of power supply is met when a user comes.
Here, the preset target database is associated with each switching control device through a closing command.
In this way, the target space position is a space position corresponding to each switch control device, and the division of the target space position is divided according to the electrical connection relation of the switch control devices; wherein the target space includes, but is not limited to: air-conditioning circuit in hotel room, student dormitory and classroom room or office area circuit in office building.
Further, after determining whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range based on the preset target database, the obtaining method further includes:
and if the preset target database cannot detect that the time length of the Bluetooth physical address of the mobile terminal to be detected reaches the preset time length in the preset range, sending a switching-off instruction to a switch control device.
If the preset target database cannot detect the Bluetooth physical address of the mobile terminal to be detected within a preset range and the preset target database cannot detect the address within a period of preset time, sending a switching-off instruction to a switch control device, and controlling the switch control device to power off the electric equipment according to the switching-off instruction.
And controlling the switch control device to cut off the electric quantity of the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
Here, based on the switching-off instruction, the switching control device cuts off the electric quantity for the target spatial position where the mobile terminal is located, and then cuts off the power of all the electric devices in the target spatial position, that is, the switching-off instruction may be a demand of the electric devices in the target spatial position where the mobile terminal is located for power cut-off when people walk away.
Therefore, compared with an infrared probe scheme, the electric quantity obtaining method does not need to consider whether the human body is around the infrared probe or not, whether the human body is static or sleeps or is shielded or not and the like, and the user can be considered to be in the target space position only by determining that the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in the preset range.
The division of the preset range is determined according to the RF transmission power of different bluetooth devices, and specifically includes: the RF transmitting power of the Bluetooth equipment is classified into three grades of CLASS1, 2 and 3, the communication distance of the Bluetooth equipment of CLASS1 standard can be completely 50-100 meters, and the detection requirement of 7000 meters to 30000 meters can be met; and can not be influenced by small animals such as heating objects, cats and dogs and the like.
Compared with a method for acquiring electric quantity based on a camera, the method for acquiring electric quantity provided by the application does not need to consider the people entering and exiting direction, does not need to be provided with a plurality of cameras and matched with a passageway gate, and is not influenced by the people entering and exiting speed; meanwhile, the problem of shielding caused by the fact that a user carries a mask is solved, and the user experience and the practicability are improved.
Compared with the prior art, the electric quantity obtaining method determines whether to provide electric quantity for the target space position where the mobile terminal to be detected is located through judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected within the preset range of the preset target database, does not need to judge whether a user is shielded by a shielding object and the access direction of the user, improves the power supply precision of power supply equipment when the user comes and goes and power supply equipment when the user experiences the enhanced electric quantity obtaining method and the embodiment realizes accurate power supply for the area of the target range.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for acquiring electrical quantity according to an embodiment of the present disclosure. As shown in fig. 2, the obtaining method provided in the embodiment of the present application includes the following steps:
s201, acquiring a Bluetooth physical address of the mobile terminal to be detected.
S202, determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on the preset target database.
Further, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected.
Further, the manner of obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals includes: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining a preset target database based on the bluetooth physical address data set, the obtaining method further includes:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
S203, if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, a closing instruction is sent to a switch control device.
In this step, if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range, a closing instruction is sent to a switch control device, the switch control device provides electric quantity for a target spatial position where the mobile terminal is located, and then all electric equipment in the target spatial position is powered, that is, the closing instruction can provide electric energy for the electric equipment in the target spatial position where the mobile terminal is located, and then the requirement of power supply is met when a user comes.
And S204, controlling the switch control device to provide electric quantity for the electric equipment in the target space position where the mobile terminal to be detected is located based on the closing instruction.
In this step, the first condition for providing the electric quantity for the target space position of the mobile terminal to be detected is only whether the sent instruction is a switch-on instruction, that is, whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected in a preset range, and whether a user corresponding to data outside the preset target database can cause the start of a point device in the target space position is not considered, so that the defect that the electric quantity is obtained by a traditional radar mode is avoided, and a large amount of electric energy is saved.
Further, after determining whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range based on the preset target database, the obtaining method further includes:
and if the preset target database cannot detect that the time length of the Bluetooth physical address of the mobile terminal to be detected reaches the preset time length in the preset range, sending a switching-off instruction to a switch control device.
And controlling the switch control device to cut off the electric quantity of the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
The descriptions of S201 to S202 may refer to the descriptions of S101 to S102, and the same technical effects can be achieved, which are not described in detail.
Compared with the prior art, the electric quantity obtaining method determines whether to provide electric quantity for the target space position where the mobile terminal to be detected is located through judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected within the preset range of the preset target database, does not need to judge whether a user is shielded by a shielding object and the access direction of the user, improves the power supply precision of power supply equipment when the user comes and goes and power supply equipment when the user experiences the enhanced electric quantity obtaining method and the embodiment realizes accurate power supply for the area of the target range.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electric quantity obtaining apparatus according to an embodiment of the present application, and as shown in fig. 3, the obtaining apparatus 300 includes:
the obtaining module 310 is configured to obtain a bluetooth physical address of the mobile terminal to be detected.
A determining module 320, configured to determine, based on a preset target database, whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range.
Further, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected.
Further, the manner of obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals includes: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining a preset target database based on the bluetooth physical address data set, the obtaining method further includes:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
The first power supply module 330 is configured to provide power for an electric device in a target spatial location where the mobile terminal to be detected is located if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range.
Further, the first power supply module 330 is specifically configured to:
and if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, sending a closing instruction to a switch control device.
And controlling the switch control device to provide electric quantity for the target space position where the mobile terminal to be detected is located based on the closing instruction.
Compared with the prior art, the acquisition device 300 provided by the embodiment of the application determines whether to provide electric quantity for the target space position of the mobile terminal to be detected by judging whether to detect the Bluetooth physical address of the mobile terminal to be detected in the preset range of the preset target database, does not need to judge whether the user is shielded by a shielding object and the access direction of the user, improves the power supply precision of the power supply equipment when the user comes on and goes off and the power supply equipment when the user experience is enhanced, and the embodiment provided by the application realizes accurate power supply for the area of the target range.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electric quantity obtaining apparatus according to an embodiment of the present application, and as shown in fig. 3, the obtaining apparatus 300 includes:
the obtaining module 310 is configured to obtain a bluetooth physical address of the mobile terminal to be detected.
A determining module 320, configured to determine, based on a preset target database, whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range.
Further, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected.
Further, the manner of obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals includes: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining a preset target database based on the bluetooth physical address data set, the obtaining method further includes:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
The first power supply module 330 is configured to provide power for an electric device in a target spatial location where the mobile terminal to be detected is located if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range.
Further, the first power supply module 330 is specifically configured to:
and if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, sending a closing instruction to a switch control device.
And controlling the switch control device to provide electric quantity for the target space position where the mobile terminal to be detected is located based on the closing instruction.
The second power supply module 340 is configured to send a switching-off instruction to the switch control device if the preset target database fails to detect that the duration of the bluetooth physical address of the mobile terminal to be detected reaches a preset duration within a preset range;
and the switch control device is also used for controlling the switch control device to cut off the electric quantity of the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
Compared with the prior art, the acquisition device 300 provided by the embodiment of the application determines whether to provide electric quantity for the target space position of the mobile terminal to be detected by judging whether to detect the Bluetooth physical address of the mobile terminal to be detected in the preset range of the preset target database, does not need to judge whether the user is shielded by a shielding object and the access direction of the user, improves the power supply precision of the power supply equipment when the user comes on and goes off and the power supply equipment when the user experience is enhanced, and the embodiment provided by the application realizes accurate power supply for the area of the target range.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure, including: a processor 510, a memory 520, and a bus 530, wherein the memory 520 stores machine-readable instructions executable by the processor 510, and when the electronic device 500 is operated, the processor 510 communicates with the memory 520 via the bus 530, and the machine-readable instructions are executed by the processor 510 to perform any of the steps of the method for obtaining power as described in any of the above embodiments.
In particular, the machine readable instructions, when executed by the processor 510, may perform the following:
and acquiring the Bluetooth physical address of the mobile terminal to be detected.
And determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on a preset target database.
And if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, providing electric quantity for the electric equipment in the target space position of the mobile terminal to be detected.
In the embodiment of the application, whether the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database is judged, whether the electric quantity is provided for the target space position where the mobile terminal to be detected is located is determined, whether the user is shielded by the shielding object and the access direction of the user does not need to be judged, the power supply precision of power supply equipment powered on by people and powered off by people is improved while the user experience is enhanced, and the accurate power supply of the area in the target range is realized by the embodiment provided by the application.
Based on the same application concept, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for acquiring an electric quantity provided by the foregoing embodiments are executed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, when a computer program on the storage medium is executed, the training method for face recognition can be executed, whether to provide electric quantity for a target space position where the mobile terminal to be detected is located can be determined by judging whether the bluetooth physical address of the mobile terminal to be detected can be detected within a preset range of a preset target database, whether a user is shielded by a shielding object and the access direction of the user need not to be judged, power supply accuracy of equipment powered on and powered off when the user comes and goes is improved while user experience is enhanced, and accurate power supply of an area within the target range is achieved by the embodiment provided by the application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An electric quantity obtaining method is characterized by comprising the following steps:
acquiring a Bluetooth physical address of a mobile terminal to be detected;
determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected within a preset range based on a preset target database;
and if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, providing electric quantity for the electric equipment in the target space position of the mobile terminal to be detected.
2. The acquisition method according to claim 1, characterized in that the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to a plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the sample mobile terminals; the plurality of sample mobile terminals comprise mobile terminals to be detected, and the plurality of historical Bluetooth physical addresses comprise Bluetooth physical addresses of the mobile terminals to be detected;
and determining a preset target database based on the Bluetooth physical address data set.
3. The method of claim 2, wherein after determining the predetermined target database based on the bluetooth physical address data set, the method further comprises:
and if the Bluetooth physical address data set does not contain the Bluetooth physical address of the mobile terminal to be detected, adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database again, and updating the preset target database.
4. The method according to claim 2, wherein the obtaining the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals comprises: the plurality of historical Bluetooth physical addresses are acquired by Bluetooth pairing and binding with the plurality of sample mobile terminals, and the plurality of historical Bluetooth physical addresses are acquired by external equipment transmission and are directly input.
5. The method according to claim 1, wherein if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range, the method for providing power for the electric device in the target spatial location of the mobile terminal to be detected comprises:
if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range, sending a closing instruction to a switch control device;
and controlling the switch control device to provide electric quantity for the target space position where the mobile terminal to be detected is located based on the closing instruction.
6. The method according to claim 1, wherein after determining whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within a preset range based on the preset target database, the method further comprises:
if the preset target database cannot detect that the time length of the Bluetooth physical address of the mobile terminal to be detected reaches a preset time length in a preset range, sending a switching-off instruction to a switch control device;
and controlling the switch control device to cut off the electric quantity of the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
7. An apparatus for obtaining an amount of power, the apparatus comprising:
the acquisition module is used for acquiring the Bluetooth physical address of the mobile terminal to be detected;
the determining module is used for determining whether the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range or not based on the preset target database;
the first power supply module is used for providing electric quantity for electric equipment in a target space position where the mobile terminal to be detected is located if the preset target database can detect the Bluetooth physical address of the mobile terminal to be detected in a preset range.
8. The acquisition device according to claim 7, characterized in that it further comprises:
the second power supply module is used for sending a switching-off instruction to the switch control device if the preset target database cannot detect the Bluetooth physical address of the mobile terminal to be detected within a preset range;
and the switch control device is also used for controlling the switch control device to cut off the electric quantity of the electric equipment in the target space position where the mobile terminal to be detected is located based on the switching-off instruction.
9. An electronic device, comprising: processor, memory and bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operated, the machine-readable instructions being executed by the processor to perform the steps of the acquisition method according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the acquisition method according to one of the claims 1 to 6.
CN202110732824.8A 2021-06-29 2021-06-29 Electric quantity acquisition method and device, electronic equipment and storage medium Active CN113391693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110732824.8A CN113391693B (en) 2021-06-29 2021-06-29 Electric quantity acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110732824.8A CN113391693B (en) 2021-06-29 2021-06-29 Electric quantity acquisition method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113391693A true CN113391693A (en) 2021-09-14
CN113391693B CN113391693B (en) 2024-03-15

Family

ID=77624502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110732824.8A Active CN113391693B (en) 2021-06-29 2021-06-29 Electric quantity acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113391693B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206497362U (en) * 2017-03-07 2017-09-15 京东方科技集团股份有限公司 A kind of energy-saving control system
CN108388780A (en) * 2018-03-09 2018-08-10 福州米鱼信息科技有限公司 A kind of identity information acquisition methods and terminal
CN112073956A (en) * 2020-09-07 2020-12-11 中国联合网络通信集团有限公司 User information determination method, device, equipment and computer readable storage medium
CN112087058A (en) * 2020-09-22 2020-12-15 国网河南省电力公司商丘供电公司 Intelligent inspection system based on electric power digital model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206497362U (en) * 2017-03-07 2017-09-15 京东方科技集团股份有限公司 A kind of energy-saving control system
CN108388780A (en) * 2018-03-09 2018-08-10 福州米鱼信息科技有限公司 A kind of identity information acquisition methods and terminal
CN112073956A (en) * 2020-09-07 2020-12-11 中国联合网络通信集团有限公司 User information determination method, device, equipment and computer readable storage medium
CN112087058A (en) * 2020-09-22 2020-12-15 国网河南省电力公司商丘供电公司 Intelligent inspection system based on electric power digital model

Also Published As

Publication number Publication date
CN113391693B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
RU2658813C2 (en) Electronic device control method and apparatus
JP6259091B2 (en) Intelligent device control method, terminal and server
RU2628558C2 (en) Method and smart terminal handling device
EP3174251B1 (en) Method and apparatus for identifying type of electronic device on smart socket
CN107085380B (en) Intelligent household system user position judgment method and electronic equipment
KR20180050188A (en) Method and apparatus for controlling electronic device, and terminal
CN109413515B (en) Equipment control method and device, mobile terminal and server
CN107967358A (en) Recommendation method, apparatus, storage medium and the mobile terminal of objective
CN110572776B (en) Method for dividing safety area, terminal and storage medium
CN106970552B (en) Switch control method, intelligent switch and mobile terminal
KR102130615B1 (en) Alarm setting method and apparatus
CN105371850A (en) Route navigation method and mobile terminal
JP2017123587A (en) Control device, control method, and program
US10382219B2 (en) Method, apparatus, and non-transitory computer-readable recording medium storing program for estimating operator
CN104601204B (en) trigger condition detection method and device
CN103885712A (en) Method and device for adjusting webpage and electronic device
KR20140067144A (en) Method for reconstructing the map of an environment surrounding a wireless device and wireless device implementing such method
CN114019807A (en) Data processing method, device, system, equipment and readable storage medium
CN112229032B (en) Environment temperature adjusting method, device and computer readable storage medium
CN110675566B (en) Sharing method and terminal of air conditioner, shared air conditioner and storage medium
CN105279873A (en) Prompt method and device
CN113391693A (en) Method and device for acquiring electric quantity, electronic equipment and storage medium
CN107422702B (en) Intelligent household appliance user operation guiding method and electronic equipment
CN107179696B (en) House control method and system based on mobile terminal identity verification and location awareness
CN115550615A (en) Video recording method and device for intelligent equipment, electronic equipment 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