CN113391693B - Electric quantity acquisition method and device, electronic equipment and storage medium - Google Patents

Electric quantity acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113391693B
CN113391693B CN202110732824.8A CN202110732824A CN113391693B CN 113391693 B CN113391693 B CN 113391693B CN 202110732824 A CN202110732824 A CN 202110732824A CN 113391693 B CN113391693 B CN 113391693B
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.)
Active
Application number
CN202110732824.8A
Other languages
Chinese (zh)
Other versions
CN113391693A (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

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 a method and a device for acquiring electric quantity, 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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database based on the preset target database; if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, electric quantity is provided for 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 is detected in the preset range of the preset target database is judged, whether the electric quantity is provided for the target space position of the mobile terminal to be detected is determined, whether a user is shielded by a shielding object is not required to be judged, the user experience is enhanced, the power supply precision of the power-on and power-off equipment for people is improved, and the accurate power supply to the target range area is realized.

Description

Electric quantity acquisition method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications applications, and in particular, to a method and apparatus for acquiring electric quantity, an electronic device, and a storage medium.
Background
Along with the development of society and the progress of science and technology, traditional timing switch controller, bell switch controller, temperature switch controller, circulation switch controller, timing circulation controller on the market, these single switch controller all have strong dependence to electric energy and power supply volume, consequently, people come on the market, people walk the equipment of cutting off the power supply, the demand of the intelligent power consumption of satisfying the user, intelligent power consumption extensively is applicable to school dormitory, apartment, family, hotel, enterprise and public institution production office, technological research and development test, electric field scene such as public place security protection can realize saving electric energy, reduce carbon emission and prevent the effect of reducing the power consumption fire.
However, the equipment for powering on and powering off by people in the market at present mainly depends on the mode of adopting an infrared probe, a camera and a radar, but the infrared probe cannot ensure that the detected living body is a human user and cannot detect the living body shielded by a shielding object, so that the experience of the user is reduced; the camera can not determine and distinguish the in-out direction of the user, which can lead to the power supply precision of the power-on and power-off equipment for people to power on and power off; the radar can not realize power supply in the target range, and extra electric quantity can be wasted.
Disclosure of Invention
In view of this, the purpose of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for acquiring electric quantity, by determining whether a bluetooth physical address of a mobile terminal to be detected can be detected within a preset range of a preset target database, whether to provide electric quantity for a target space position where the mobile terminal to be detected is located is determined, whether a user is shielded by a shielding object and an in-out direction of the user are not required to be determined, while a user experience sense is enhanced, power supply precision of a power supply device for powering on and powering off by a person is improved, and the embodiment provided by the present application achieves accurate power supply for an area of the target range.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a method for acquiring an electric quantity, where the method includes:
acquiring a Bluetooth physical address of a mobile terminal to be detected;
determining whether the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database based on the preset target database;
and if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, providing electric quantity for electric equipment in the target space position of the mobile terminal to be detected.
In one possible implementation, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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 one possible implementation manner, after the determining a preset target database based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, and updating the preset target database.
In one possible implementation manner, the method for acquiring the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals includes: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
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, providing electric quantity for electric equipment in a target space position where the mobile terminal to be detected is located, including:
if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, a closing instruction is sent to a switch control device;
and controlling the switch control device to provide electric quantity for the target space position of the mobile terminal to be detected based on the closing instruction.
In a possible implementation manner, after the determining, 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, the acquiring method further includes:
if the preset target database fails to detect that the duration of the Bluetooth physical address of the mobile terminal to be detected reaches the preset duration within the preset range, sending a switching-on instruction to a switch control device;
and based on the opening command, controlling the switch control device to cut off the electric quantity of the target space position of the mobile terminal to be detected.
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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range or not according to a preset target database;
the first power supply module is used for providing electric quantity for electric equipment in a target space position of the mobile terminal to be detected if the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database.
In one possible embodiment, the acquiring device further includes:
the second functional module is used for sending a switching-off instruction to the switch control device if the Bluetooth physical address of the mobile terminal to be detected cannot be detected within a preset range of the preset target database;
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 of the mobile terminal to be detected based on the switch-on instruction.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the power harvesting method of any one of the possible implementations of the first aspect.
In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the method for obtaining electric power in any possible implementation manner of the first aspect.
In the embodiment of the application, whether the electric quantity is provided for the target space position of the mobile terminal to be detected is determined by judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database, whether a user is shielded by a shielding object or not and the in-out direction of the user are not required to be judged, the user experience is enhanced, the power supply precision of the power-on and power-off equipment for people is improved, and the embodiment provided by the application realizes the accurate power supply for the area of the target range.
In order to make the above 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 needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a method for obtaining electric quantity according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for obtaining electricity according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electric quantity acquisition device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electric quantity obtaining device according to an embodiment of the present application;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
[ main element notation ] the following:
in the figure: 300-acquisition means; 310-an acquisition module; 320-a determination module; 330-a first power module; 340-a second power module; 500-an electronic device; 510-a processor; 520-memory; 530-bus.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be appreciated that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In order to enable those skilled in the art to make and use the present disclosure, the following embodiments are provided in connection with a particular application scenario "power harvesting" and, to those skilled in the art, the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure.
The method, the system, the electronic device and the storage medium can be applied to any scene needing face recognition, the embodiment of the application is not limited to specific application scenes, and any scheme using the face recognition training method, the device, the electronic device and the storage medium provided by the embodiment of the application is within the protection scope of the application.
It is worth noting that, before the application is proposed, the equipment for powering on and powering off by people and the equipment for powering on and powering off by people in the market at present are mainly realized by 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 can not determine and distinguish the in-out direction of the user, which can lead to the power supply precision of the power-on and power-off equipment for people to power on and power off; the radar can not realize power supply in the target range, and extra electric quantity can be wasted.
Based on the above, the embodiment of the application provides a method, a device, an electronic device and a storage medium for acquiring electric quantity, which determine whether to provide electric quantity for a target space position where a mobile terminal to be detected is located by judging whether to detect the Bluetooth physical address of the mobile terminal to be detected in a preset range of a preset target database, and do not need to judge whether a user is shielded by a shielding object and the in-out direction of the user, so that the user experience is enhanced, the power supply precision of power-on and power-off equipment of people is improved, and the embodiment provided by the application realizes accurate power supply for a region of the target range.
In order to facilitate understanding of the present application, the technical solutions provided in the present application are described in detail below in conjunction with 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 application. As shown in fig. 1, the acquisition method provided in the embodiment of the present application includes the following steps:
s101, acquiring a Bluetooth physical address of a mobile terminal to be detected.
In this step, firstly, the bluetooth physical address of the mobile terminal to be detected is obtained, wherein the number of the mobile terminals to be detected may be one or more.
Here, the acquiring manner of the bluetooth physical address, that is, the acquiring manner of the MAC address may specifically be: and transmitting the acquired Bluetooth physical addresses through external equipment and directly inputting a plurality of Bluetooth physical addresses.
In the manner of transmitting the obtained bluetooth physical address through the external device, the external device includes, but is not limited to, a collection and computation gateway device, a computer software platform and a platform where a third party application program is located, the bluetooth physical address which a user wants to transmit is obtained through using the external device, specifically, a 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 with and bound with data in a preset target database.
The method for directly inputting the Bluetooth physical address specifically comprises the following steps: the bluetooth physical address is directly input by using an external key of the remote control communication device or an external key of the probe, 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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database 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, where 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 the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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 addresses are bluetooth physical addresses corresponding to the sample mobile terminals, and in the embodiment provided in the application, a plurality of historical bluetooth physical addresses corresponding to a plurality of sample mobile terminals are summarized, and a bluetooth physical address data set is used for conveniently and subsequently determining whether the bluetooth physical addresses of the mobile terminals to be detected are located in a preset range of the preset target database, at this time, a plurality of bluetooth physical addresses including the bluetooth physical addresses of the mobile terminals to be detected are required, and further a plurality of sample mobile terminals including the mobile terminals to be detected are required, and the preset target database can only perform a series of judgment on the mobile terminals to be detected corresponding to any one of the sample mobile terminals stored in the preset target database.
Further, the method for obtaining the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals includes: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
Here, in the manner of acquiring the plurality of bluetooth physical addresses through transmission of the 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, and acquires the bluetooth physical address that the user wants to transmit by using the external device.
The method comprises the steps of acquiring a plurality of Bluetooth physical addresses by transmitting the Bluetooth physical addresses to be detected, which are input by a user from a collecting and 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, wherein the Bluetooth physical addresses to be detected, which are 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 addresses are input by scanning the preset two-dimensional code.
The method for directly inputting the Bluetooth physical address specifically comprises the following steps: the bluetooth physical address directly input by using an external key of the remote control communication device or an external key of the detecting instrument can also be realized by using the imagination head function of the mobile device such as a mobile phone, a tablet computer and the like to scan the two-dimensional code, that is, the way of directly inputting the bluetooth physical address includes but is not limited to the way of inputting by using a key and the way of scanning 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 from a plurality of the historical bluetooth physical addresses in the bluetooth physical address dataset. The preset target database comprises and stores the mobile terminal to be detected and the Bluetooth physical address of the mobile terminal to be detected.
Further, after the determining the preset target database based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, 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, determining that the bluetooth physical address of the mobile terminal to be detected is a mobile terminal held by a new user, at this time, the preset target data needs to reacquire the bluetooth physical address of the mobile terminal held by the new user, and re-add the bluetooth physical address to the preset target database, update the preset target database, and after the update is completed. And re-determining whether the Bluetooth physical address is within a preset range in the preset target database.
And S103, if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, providing electric quantity for electric equipment in the target space position of the mobile terminal to be detected.
In this step, if the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within the preset range, a closing instruction is sent to the switch control device, and the switch control device provides electric quantity for the target space position where the mobile terminal is located, so as to supply power to all electric equipment in the target space position, that is, the closing instruction can provide electric energy for the electric equipment in the target space position where the mobile terminal is located, so that the requirement of power supply is met.
Here, the preset target database is associated with each switch control device through a switching-on command.
In this way, the target space position is a space position corresponding to each switch control device, and the target space position is divided according to the electric connection relation of the switch control devices; wherein the target space includes, but is not limited to: an air conditioning power circuit in a hotel room, a student dormitory, or an office area power circuit of an office building.
Further, after determining, based on the 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, the acquiring method further includes:
and if the preset target database fails to detect that the duration of the Bluetooth physical address of the mobile terminal to be detected reaches the preset duration within 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 time of a preset duration, sending a switching-off instruction to a control device, and controlling the switching-off control device to power off electric equipment according to the switching-off instruction.
And based on the opening command, controlling the switch control device to cut off the electric quantity of the target space position of the mobile terminal to be detected.
Here, based on the opening command, the switch control device cuts off the electric quantity for the target space position where the mobile terminal is located, and then cuts off the power for all the electric devices in the target space position, that is, the opening command can be the requirement of the electric devices in the target space position where the mobile terminal is located for performing power-off when walking.
Therefore, compared with the infrared probe scheme, the electric quantity acquisition method does not need to consider whether a human body is in the front, back, left and right directions of the infrared probe, whether the human body is static or sleeps or is blocked or not, and the like, and a user can be considered to be in a target space position only by determining that the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset target database within the preset range.
The division of the preset range is determined according to the RF transmitting power of different bluetooth devices, specifically: the RF emission power of the Bluetooth equipment is divided into three levels of CLASS1,2 and 3, and the communication distance of the Bluetooth equipment in the CLASS1 standard can be completely 50-100 meters, so that the detection requirement of 7000-30000 square meters can be met; and can not be influenced by heating objects, cats, dogs and other small animals.
In addition, compared with a method for acquiring electric quantity based on cameras, the method for acquiring electric quantity does not need to consider the in-out direction of people, does not need to use a plurality of cameras and is matched with an aisle gate, and the method is not influenced by the in-out speed of people; meanwhile, the mask is not blocked by the user whether to take the mask, and the experience and practicability of the user are provided.
Compared with the prior art, the electric quantity acquisition method has the advantages that whether the Bluetooth physical address of the mobile terminal to be detected is detected in the preset range of the preset target database is judged to determine whether the electric quantity is provided for the target space position of the mobile terminal to be detected, whether a user is shielded by a shielding object or not and the in-out direction of the user are not required to be judged, the user experience is enhanced, the power supply precision of the power-on and power-off equipment for people is improved, and the accurate power supply to the area of the target range is realized in the embodiment.
Referring to fig. 2, fig. 2 is a flow chart of another method for obtaining electric quantity according to an embodiment of the present application. As shown in fig. 2, the acquisition 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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database based on the preset target database.
Further, the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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 method for obtaining the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals includes: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining the preset target database based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, and updating the preset target database.
And S203, if the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database, 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 the preset range, a closing instruction is sent to the switch control device, and the switch control device provides electric quantity for the target space position where the mobile terminal is located, so as to supply power to all electric equipment in the target space position, that is, the closing instruction can provide electric energy for the electric equipment in the target space position where the mobile terminal is located, so that the requirement of power supply is met.
And S204, controlling the switch control device to provide electric quantity for electric equipment in the target space position of the mobile terminal to be detected based on the closing instruction.
In this step, the first condition for providing the electric quantity for the target space position where the mobile terminal to be detected is only whether the transmitted command is a closing command, that is, whether the preset target database can detect the bluetooth physical address of the mobile terminal to be detected within the preset range, and whether the user corresponding to the data outside the preset target database can cause the starting of the point device in the target space position is not considered, so that the defect that the traditional radar mode obtains the electric quantity is avoided, and a large amount of electric energy is saved.
Further, after determining, based on the 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, the acquiring method further includes:
and if the preset target database fails to detect that the duration of the Bluetooth physical address of the mobile terminal to be detected reaches the preset duration within the preset range, sending a switching-off instruction to a switch control device.
And based on the opening command, controlling the switch control device to cut off the electric quantity of the target space position of the mobile terminal to be detected.
The descriptions of S201 to S202 may refer to the descriptions of S101 to S102, and the same technical effects can be achieved, which will not be described in detail.
Compared with the prior art, the electric quantity acquisition method has the advantages that whether the Bluetooth physical address of the mobile terminal to be detected is detected in the preset range of the preset target database is judged to determine whether the electric quantity is provided for the target space position of the mobile terminal to be detected, whether a user is shielded by a shielding object or not and the in-out direction of the user are not required to be judged, the user experience is enhanced, the power supply precision of the power-on and power-off equipment for people is improved, and the accurate power supply to the area of the target range is realized in the embodiment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electric quantity obtaining device according to an embodiment of the present application, and as shown in fig. 3, the obtaining device 300 includes:
the acquiring module 310 is configured to acquire a bluetooth physical address of a 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 the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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 method for obtaining the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals includes: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining the preset target database based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, and updating the preset target database.
The first power supply module 330 is configured to provide an electric quantity for an electric device 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 within a preset range.
Further, the first power supply module 330 is specifically configured to:
and if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, a closing instruction is sent to a switch control device.
And controlling the switch control device to provide electric quantity for the target space position of the mobile terminal to be detected 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 the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database, does not need to judge whether a user is shielded by a shielding object and the in-out direction of the user, improves the power supply precision of power-on and power-off equipment of people when enhancing the user experience sense, and 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 device according to an embodiment of the present application, as shown in fig. 3, the obtaining device 300 includes:
the acquiring module 310 is configured to acquire a bluetooth physical address of a 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 the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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 method for obtaining the plurality of historical bluetooth physical addresses of the plurality of sample mobile terminals includes: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
And determining a preset target database based on the Bluetooth physical address data set.
Further, after the determining the preset target database based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, and updating the preset target database.
The first power supply module 330 is configured to provide an electric quantity for an electric device 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 within a preset range.
Further, the first power supply module 330 is specifically configured to:
and if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, a closing instruction is sent to a switch control device.
And controlling the switch control device to provide electric quantity for the target space position of the mobile terminal to be detected based on the closing instruction.
The second power supply module 340 is configured to send a switch-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 of the mobile terminal to be detected based on the switch-on 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 the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database, does not need to judge whether a user is shielded by a shielding object and the in-out direction of the user, improves the power supply precision of power-on and power-off equipment of people when enhancing the user experience sense, and 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 application, including: the system comprises a processor 510, a memory 520 and a bus 530, wherein the memory 520 stores machine readable instructions executable by the processor 510, the processor 510 and the memory 520 communicate with each other through the bus 530 when the electronic device 500 is operated, and the machine readable instructions are executed by the processor 510 to perform the steps of the method for acquiring electric quantity according to 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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database based on the preset target database.
And if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, providing electric quantity for electric equipment in the target space position of the mobile terminal to be detected.
In the embodiment of the application, whether the electric quantity is provided for the target space position of the mobile terminal to be detected is determined by judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database, whether a user is shielded by a shielding object or not and the in-out direction of the user are not required to be judged, the user experience is enhanced, the power supply precision of the power-on and power-off equipment for people is improved, and the embodiment provided by the application realizes the accurate power supply for the area of the target range.
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for acquiring electric quantity provided by the foregoing embodiment 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 run, the training method of face recognition can be executed, whether the electric quantity is provided for the target space position of the mobile terminal to be detected can be determined by judging whether the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range of the preset target database, whether a user is shielded by a shielding object or not and the in-out direction of the user are not required to be judged, the power supply precision of power-on and power-off equipment for people is improved while the experience of the user is enhanced, and the embodiment provided by the application realizes accurate power supply for the region of the target range.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in 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 essence or a part contributing to the prior art or a part of the technical solutions, or in the form of a software product, which is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. The method for acquiring the electric quantity is characterized by comprising the following steps of:
acquiring a Bluetooth physical address of a mobile terminal to be detected;
determining whether the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database based on the preset target database;
if the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, providing electric quantity for electric equipment in a target space position of the mobile terminal to be detected;
the preset target database is determined by:
determining Bluetooth physical address data sets corresponding to the plurality of sample mobile terminals according to a plurality of historical Bluetooth physical addresses of the plurality of 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;
Determining a preset target database based on the Bluetooth physical address data set;
after the preset target database is determined based on the bluetooth physical address data set, the acquiring 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, re-adding the acquired Bluetooth physical address of the mobile terminal to be detected to the preset target database, and updating the preset target database.
2. The method according to claim 1, wherein the means for obtaining a plurality of historical bluetooth physical addresses of a plurality of sample mobile terminals comprises: the method comprises the steps of carrying out Bluetooth pairing and binding on a plurality of sample mobile terminals, obtaining a plurality of historical Bluetooth physical addresses through the mode of Bluetooth pairing and binding, obtaining a plurality of historical Bluetooth physical addresses through external equipment transmission and directly inputting the plurality of historical Bluetooth physical addresses.
3. The method of claim 1, wherein providing power for the electric device in the target space position of the mobile terminal to be detected if the bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, comprises:
If the Bluetooth physical address of the mobile terminal to be detected can be detected in the preset range by the preset target database, a closing instruction is sent to a switch control device;
and controlling the switch control device to provide electric quantity for the target space position of the mobile terminal to be detected based on the closing instruction.
4. The acquisition method according to claim 1, characterized in that after the determination of 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 acquisition method further comprises:
if the preset target database fails to detect that the duration of the Bluetooth physical address of the mobile terminal to be detected reaches the preset duration within the preset range, sending a switching-on instruction to a switch control device;
and based on the opening command, controlling the switch control device to cut off the electric quantity of the target space position of the mobile terminal to be detected.
5. An electrical quantity acquisition device, characterized in that the acquisition device comprises:
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 Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range or not according to a preset target database;
the first power supply module is used for providing electric quantity for electric equipment in a target space position of the mobile terminal to be detected if the Bluetooth physical address of the mobile terminal to be detected can be detected in a preset range by the preset target database.
6. The acquisition device of claim 5, wherein the acquisition device further comprises:
the second power supply module is used for sending a switching-off instruction to the switch control device if the Bluetooth physical address of the mobile terminal to be detected cannot be detected within a preset range of the preset target database;
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 of the mobile terminal to be detected based on the switch-on instruction.
7. An electronic device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating over the bus when the electronic device is running, said machine readable instructions when executed by said processor performing the steps of the acquisition method as claimed in any one of the preceding claims 1 to 4.
8. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the acquisition method according to any of the preceding claims 1 to 4.
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 CN113391693A (en) 2021-09-14
CN113391693B true 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
CN113391693A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
RU2658813C2 (en) Electronic device control method and apparatus
JP6259091B2 (en) Intelligent device control method, terminal and server
RU2615320C2 (en) Method, apparatus and terminal device for image processing
CN109413515B (en) Equipment control method and device, mobile terminal and server
CN107085380B (en) Intelligent household system user position judgment method and electronic equipment
US20180146045A1 (en) Method and apparatus for controlling peripheral device
JP2017532855A (en) Method and apparatus for operating intelligent electrical equipment
CN110308661B (en) Intelligent device control method and device based on machine learning
RU2636695C2 (en) Method and device for terminal testing
CN107241416B (en) Management method of shared cabin and terminal equipment
CN105074691A (en) Context aware localization, mapping, and tracking
CN105100708A (en) Request processing method and device
CN106970552B (en) Switch control method, intelligent switch and mobile terminal
CN105371850A (en) Route navigation method and mobile terminal
CN107479710B (en) Intelligent mirror and control method, device, equipment and storage medium thereof
US10382219B2 (en) Method, apparatus, and non-transitory computer-readable recording medium storing program for estimating operator
AU2018310280B2 (en) Iris image acquisition method, mobile terminal and storage medium
KR20160014357A (en) Electronic device and method for transceiving data
CN105279873A (en) Prompt method and device
CN108877002A (en) Personal identification method, apparatus, storage medium and access control equipment
CN113391693B (en) Electric quantity acquisition method and device, electronic equipment and storage medium
CN104166711B (en) The method and apparatus for controlling router plug
CN114302328B (en) Control method, device and system of intelligent equipment
CN113848738B (en) Control method and device of intelligent equipment
CN115733705A (en) Space-based information processing method and device, 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