CN111596557B - Device control method, device, electronic device and computer-readable storage medium - Google Patents

Device control method, device, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN111596557B
CN111596557B CN202010254028.3A CN202010254028A CN111596557B CN 111596557 B CN111596557 B CN 111596557B CN 202010254028 A CN202010254028 A CN 202010254028A CN 111596557 B CN111596557 B CN 111596557B
Authority
CN
China
Prior art keywords
electronic device
target
information
electronic
state
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
CN202010254028.3A
Other languages
Chinese (zh)
Other versions
CN111596557A (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.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology 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 Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202010254028.3A priority Critical patent/CN111596557B/en
Publication of CN111596557A publication Critical patent/CN111596557A/en
Application granted granted Critical
Publication of CN111596557B publication Critical patent/CN111596557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The disclosure provides a device control method and device, electronic equipment and a computer readable storage medium, and belongs to the technical field of smart home. The method comprises the following steps: the method comprises the steps of obtaining weather information and a target closing and opening state matched with the weather information by at least one first electronic device, and controlling a target second electronic device to play prompt information for prompting a user to execute an operation corresponding to the weather information in a voice mode based on indoor position information of the target first electronic device if the at least one first electronic device comprises the target first electronic device of which the current closing and opening state is inconsistent with the corresponding target closing and opening state. According to the method, when the current closing and opening state of the first electronic equipment is inconsistent with the target closing and opening state matched with the weather information, the target second electronic equipment is used for prompting, the condition that prompting is still carried out when user operation is not needed can be avoided, the prompting accuracy is improved, user operation is accurately guided, and user experience is improved.

Description

Device control method, device, electronic device and computer-readable storage medium
Technical Field
The present disclosure relates to the field of smart home technologies, and in particular, to an apparatus control method and apparatus, an electronic apparatus, and a computer-readable storage medium.
Background
Along with the development of science and technology, household equipment gradually moves towards intellectualization, and people's life also becomes more convenient. The intelligent home can connect various intelligent devices in the home together, and provides multiple functions and means such as household appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, programmable timing control and the like. For example, the smart home can monitor the weather condition, and timely remind the user to close doors and windows when the weather condition is severe. Compared with the common home, the intelligent home has the traditional living function and can provide the omnibearing information interaction function.
At present, weather information is mainly obtained through networking of central control equipment, the obtained weather information is sent to each intelligent prompting equipment, the intelligent prompting equipment returns response information of the weather information to the central control equipment according to processing operation executed by the intelligent prompting equipment, the central control equipment randomly selects one intelligent prompting equipment from the intelligent prompting equipment returning the response information as the intelligent prompting equipment sending voice prompting information to a user and notifies the selected intelligent prompting equipment, and the selected intelligent prompting equipment sends the voice prompting information after receiving notification, so that the user executes corresponding operation according to the weather information indicated by the voice prompting information.
In the implementation process, only one intelligent prompting device can be randomly selected to send out voice prompt information, doors and windows in the house are closed but still prompt when weather is severe, namely, inaccurate prompting can be caused, user operation cannot be accurately guided, and user experience is poor.
Disclosure of Invention
The embodiment of the disclosure provides a device control method and device, an electronic device and a computer readable storage medium, which can solve the problems that in the related art, the intelligent prompt device cannot accurately prompt and cannot accurately guide user operation, so that the user experience is poor. The technical scheme is as follows:
in one aspect, a device control method is provided, and the method includes:
acquiring weather information;
acquiring a target closing and starting state matched with the weather information by at least one first electronic device;
if the at least one first electronic device comprises a target first electronic device, controlling a target second electronic device to play prompt information in a voice mode based on indoor position information of the target first electronic device, wherein the target first electronic device is the first electronic device with the current closing and opening state inconsistent with the corresponding target closing and opening state, and the prompt information is used for prompting a user to execute an operation corresponding to the weather information.
In a possible implementation manner, the controlling the target second electronic device to play the prompt message in a voice form based on the indoor location information of the target first electronic device includes:
sending a position request to a plurality of second electronic devices, wherein the position request is used for acquiring user presence information in a target range corresponding to each of the plurality of second electronic devices and indoor position information of the plurality of second electronic devices, and the user presence information is used for indicating whether a user is present in the target range;
according to the received user presence information in the target range corresponding to the plurality of second electronic devices and the received indoor position information of the plurality of second electronic devices, determining a target second electronic device meeting the target condition from the plurality of second electronic devices, and controlling the target second electronic device to play the prompt message in a voice mode.
In a possible implementation manner, the determining, according to the received user presence information and the received indoor location information of the plurality of second electronic devices within the target ranges respectively corresponding to the plurality of second electronic devices, a target second electronic device that satisfies the target condition from the plurality of second electronic devices includes:
determining at least one candidate second electronic device of the user in the target range from the plurality of second electronic devices according to the user presence information in the target range respectively corresponding to the plurality of second electronic devices;
and according to the indoor position information of the plurality of second electronic devices, determining the candidate second electronic device, which has a distance to the target first electronic device smaller than the distances to the target first electronic device from other candidate second electronic devices, in the at least one candidate second electronic device as the target second electronic device.
In one possible implementation manner, after the control target second electronic device plays the prompt message in a voice form, the method further includes:
if first feedback information sent by the target second electronic device is detected, re-determining the target second electronic device meeting the target condition in at least one candidate second electronic device except the target second electronic device according to the indoor position information of the plurality of second electronic devices, wherein the first feedback information is used for indicating that a user corresponding to the target second electronic device cannot control the first electronic device;
and controlling the second electronic equipment with the redetermined target to play the prompt message.
In a possible implementation manner, after the control-target second electronic device plays the prompt message in a form of voice, the method further includes:
if error information sent by the target second electronic equipment is received, re-determining the target second electronic equipment meeting the target condition in at least one candidate second electronic equipment except the target second electronic equipment according to the indoor position information of the plurality of second electronic equipment, wherein the error information is used for indicating that the target second electronic equipment cannot perform voice playing;
and controlling the second electronic equipment with the redetermined target to play the prompt message.
In one possible implementation, after sending the location requests to the plurality of second electronic devices, the method further includes:
and if second feedback information sent by the plurality of second electronic devices is received, sending notification information to at least one of third electronic devices bound with any one of the plurality of second electronic devices, wherein the second feedback information is used for indicating that the second electronic devices do not detect user presence information.
In a possible implementation manner, after the obtaining of the target shutdown state of the at least one first electronic device matching the weather information, the method further includes:
sending a state acquisition request to the at least one first electronic device;
receiving a current closing and opening state sent by the at least one first electronic device;
and determining the first electronic equipment with the current closing and starting state inconsistent with the target closing and starting state as target first electronic equipment.
In one possible implementation manner, the controlling the target second electronic device to play the prompt message in a voice form includes:
and sending a voice playing request to the target second electronic equipment, and controlling the target second electronic equipment to respond to the voice playing request to play prompt information generated based on the weather information, wherein the voice playing request carries the weather information and the position information of the target first electronic equipment.
In a possible implementation manner, after controlling the target second electronic device to play the prompt message in a voice form based on the indoor location information of the target first electronic device, the method further includes:
acquiring position information of a plurality of third electronic devices bound with the target second electronic device;
according to the position information of the plurality of third electronic devices, determining a target third electronic device from the plurality of third electronic devices, wherein the target third electronic device is the third electronic device of which the position information meets the preset distance condition;
and sending notification information to the target third electronic device, wherein the notification information is used for prompting the weather information and the current on-off state of the target first electronic device for the user.
In one possible implementation manner, the controlling the target second electronic device to play the prompt message in a voice form includes:
if the use state of the target third electronic equipment is detected to be that the output equipment is accessed, the target second electronic equipment controls the output equipment connected with the target third electronic equipment to play the prompt message in a voice mode;
and if the use state of the target third electronic equipment is detected to be that the third electronic equipment is not accessed to the output equipment, the prompt message is played through the target second electronic equipment in a voice mode.
In one possible implementation, the target off-state matching the weather information includes at least one of:
if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is a closing state;
if the weather information indicates that the current weather is a rainy or snowy state, the target closing state matched with the weather information is a closing state;
if the weather information indicates that the current weather is in a dust state, the target closing state matched with the weather information is in a closing state;
and if the weather information indicates that the current weather is in a sunny state, the target closing state matched with the weather information is in a closing state.
In one aspect, there is provided an apparatus for controlling a device, the apparatus including:
the weather information acquisition module is used for acquiring weather information;
the closing and starting state acquisition module is used for acquiring a target closing and starting state matched with the weather information by at least one first electronic device;
and the control module is used for controlling the target second electronic equipment to play prompt information in a voice form based on the indoor position information of the target first electronic equipment if the at least one first electronic equipment comprises the target first electronic equipment, wherein the target first electronic equipment is the first electronic equipment with the current closing and opening state inconsistent with the corresponding target closing and opening state, and the prompt information is used for prompting a user to execute the operation corresponding to the weather information.
In one possible implementation, the apparatus further includes:
a sending module, configured to send a location request to a plurality of second electronic devices, where the location request is used to obtain user presence information in a target range corresponding to each of the plurality of second electronic devices and indoor location information of the plurality of second electronic devices, and the user presence information is used to indicate whether a user is present in the target range;
a determining module, configured to determine, according to the received user presence information and the received indoor location information of the plurality of second electronic devices within the target ranges respectively corresponding to the plurality of second electronic devices, a target second electronic device that meets a target condition from the plurality of second electronic devices;
the control module is further configured to control the target second electronic device to play the prompt message in a voice form.
In a possible implementation manner, the determining module is further configured to determine, according to user presence information in a target range respectively corresponding to the plurality of second electronic devices, that at least one candidate second electronic device of the user is present in the target range from the plurality of second electronic devices;
the determining module is further configured to determine, according to the indoor location information of the plurality of second electronic devices, one of the at least one candidate second electronic device that is located at a distance from the target first electronic device that is less than distances from the target first electronic device to the other candidate second electronic devices, as the target second electronic device.
In a possible implementation manner, the determining module is further configured to, if first feedback information sent by the target second electronic device is detected, re-determine, according to the indoor location information of the plurality of second electronic devices, the target second electronic device that meets a target condition in at least one candidate second electronic device other than the target second electronic device, where the first feedback information is used to indicate that a user corresponding to the target second electronic device cannot control the first electronic device;
the control module is further configured to control the second electronic device with the re-determined target to play the prompt message.
In a possible implementation manner, the determining module is further configured to, if error information sent by the target second electronic device is received, re-determine, according to the indoor location information of the plurality of second electronic devices, the target second electronic device that meets a target condition in at least one candidate second electronic device other than the target second electronic device, where the error information is used to indicate that the target second electronic device cannot perform voice playing;
the control module is further configured to control the second electronic device with the re-determined target to play the prompt message.
In a possible implementation manner, the sending module is further configured to send notification information to at least one of third electronic devices bound to any one of the plurality of second electronic devices if second feedback information sent by the plurality of second electronic devices is received, where the second feedback information is used to indicate that the second electronic device does not detect user presence information.
In a possible implementation manner, the sending module is further configured to send a status obtaining request to the at least one first electronic device;
the device also includes:
the receiving module is used for receiving the current closing and opening state sent by the at least one first electronic device;
the determining module is further configured to determine, as a target first electronic device, the first electronic device whose current shutdown state is inconsistent with the target shutdown state.
In a possible implementation manner, the sending module is further configured to send a voice playing request to the target second electronic device;
the control module is further configured to control the target second electronic device to play a prompt message generated based on the weather information in response to the voice play request, where the voice play request carries the weather information and the location information of the target first electronic device.
In one possible implementation, the apparatus further includes:
the position information acquisition module is used for acquiring the position information of a plurality of third electronic devices bound with the target second electronic device;
the determining module is further configured to determine a target third electronic device from the plurality of third electronic devices according to the location information of the plurality of third electronic devices, where the target third electronic device is a third electronic device whose location information meets a preset distance condition;
the sending module is further configured to send notification information to the target third electronic device, where the notification information is used to prompt a user about the weather information and the current shutdown/startup state of the target first electronic device.
In a possible implementation manner, the control module is further configured to, if it is detected that the use state of the target third electronic device is that the output device is already connected, control, by the target second electronic device, the output device that the target third electronic device is already connected to play the prompt message in a voice form;
the control module is further configured to control the target second electronic device to play the prompt message in a voice form if it is detected that the target third electronic device is not accessed to the output device in the use state.
In one possible implementation, the target off-state matching the weather information includes at least one of:
if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is a closing state;
if the weather information indicates that the current weather is in a rain and snow state, the target closing state matched with the weather information is in a closing state;
if the weather information indicates that the current weather is in a dust state, the target closing state matched with the weather information is in a closing state;
and if the weather information indicates that the current weather is in a sunny state, the target closing state matched with the weather information is in a closing state.
In one aspect, an electronic device is provided and includes one or more processors and one or more memories having at least one program code stored therein, the program code being loaded into and executed by the one or more processors to implement operations performed by the device control method.
In one aspect, a computer-readable storage medium having at least one program code stored therein is provided, the program code being loaded and executed by a processor to implement operations performed by the apparatus control method.
According to the scheme provided by the disclosure, the weather information and the target turn-off state matched with the weather information of the at least one first electronic device are obtained, if the at least one first electronic device comprises the target first electronic device with the current turn-off state inconsistent with the corresponding target turn-off state, the target second electronic device is controlled to play the prompt information for prompting the user to execute the operation corresponding to the weather information in a voice mode based on the indoor position information of the target first electronic device. According to the method and the device, when the current closing and opening state of the first electronic device is inconsistent with the target closing and opening state matched with the weather information, the target second electronic device is used for prompting, the condition that prompting is still carried out when user operation is not needed can be avoided, the prompting accuracy is improved, user operation is accurately guided, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of an apparatus control method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an apparatus control method provided in an embodiment of the present disclosure;
fig. 3 is a flowchart of a device control method provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an indoor layout provided by embodiments of the present disclosure;
FIG. 5 is a schematic diagram of an indoor layout provided by embodiments of the present disclosure;
FIG. 6 is a schematic diagram of an indoor layout provided by embodiments of the present disclosure;
FIG. 7 is a schematic diagram of an indoor layout provided by embodiments of the present disclosure;
FIG. 8 is a schematic view of an indoor layout provided by embodiments of the present disclosure;
fig. 9 is a schematic structural diagram of an apparatus control device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of an apparatus control method provided in an embodiment of the present disclosure, and referring to fig. 1, the implementation environment includes: at least one first electronic device 101, a plurality of second electronic devices 102, at least one third electronic device 103 and at least one fourth electronic device 104.
The first electronic device 101 may be an intelligent home device, such as a controlled door or a controlled window, or a sensor installed on the intelligent home device and used for detecting a closing and opening state of the intelligent home device, such as an electronic door lock, a window locking state sensor, and the like. The first electronic device 101 may be connected to the fourth electronic device 104 through a wired network or a wireless network, and the first electronic device 101 may detect a shutdown state of itself and send the detected current shutdown state to the fourth electronic device 104.
The second electronic device 102 may be a smart device with audio receiving and playing functions, weather monitoring functions, indoor positioning functions, biological detection functions, and the like, such as a smart speaker. The second electronic device 102 may be connected to the third electronic device 103 and the fourth electronic device 104 through a wired network or a wireless network, the second electronic device 102 may obtain user presence information within a target range and indoor location information of the second electronic device 102, and send the obtained user presence information and the obtained indoor location information to the fourth electronic device 104, and meanwhile, the second electronic device 102 may also receive a voice playing request sent by the fourth electronic device 104, and play, in response to the voice playing request, prompt information generated based on weather information carried by the voice playing request and the location information of the target first electronic device.
The third electronic device 103 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and the like. The third electronic device 103 may be connected to the second electronic device 102 and the fourth electronic device 104 through a wired network or a wireless network, the third electronic device 103 may receive notification information sent by the fourth electronic device 104, and the user may remotely control the second electronic device 102 through the third electronic device 103. Optionally, the third electronic device may further access various output devices, so as to perform voice playing through the output device connected to the third electronic device.
The first electronic device 101, the second electronic device 102, and the third electronic device 103 may all refer to one of a plurality of electronic devices, and the embodiment is only exemplified by the first electronic device 101, the second electronic device 102, and the third electronic device 103. Those skilled in the art will appreciate that the various electronic devices described above may be more or less numerous. For example, the number of the electronic devices may be only a few, or the number of the electronic devices may be tens or hundreds, or more, and the number and the type of the electronic devices are not limited in the embodiments of the present disclosure.
The fourth electronic device 104 may be at least one of a server, a plurality of servers, a cloud server, a cloud computing platform, and a virtualization center, and the fourth electronic device 104 may also be referred to as a central control device. The fourth electronic device 104 may be connected to the first electronic device 101, the second electronic device 102, and the third electronic device 103 through a wired network or a wireless network, the fourth electronic device 104 may obtain current weather information, and may also receive a current off-state sent by the first electronic device 101, the fourth electronic device 104 may also send a location request to the second electronic device 102, and receives the user presence information and the indoor location information sent by the second electronic device 102, the fourth electronic device 104 may determine the target second electronic device according to the obtained user presence information and the indoor location information, and sends a voice playing request carrying weather information and position information of the target first electronic device to the target second electronic device and other second electronic devices, and the fourth electronic device 104 may also send notification information to the third electronic device 103. Optionally, the number of the fourth electronic devices may be more or less, and the embodiment of the disclosure does not limit this. Of course, the fourth electronic device 104 may also include other function servers in order to provide more comprehensive and diversified services.
Fig. 2 is a flowchart of a device control method provided in an embodiment of the present disclosure, and referring to fig. 2, the method includes:
201. and acquiring weather information.
202. And acquiring a target closing and opening state matched with the weather information by at least one first electronic device.
203. If the at least one first electronic device comprises a target first electronic device, controlling a target second electronic device to play prompt information in a voice mode based on indoor position information of the target first electronic device, wherein the target first electronic device is the first electronic device with the current closing and opening state inconsistent with the corresponding target closing and opening state, and the prompt information is used for prompting a user to execute an operation corresponding to the weather information.
According to the scheme provided by the embodiment of the disclosure, the weather information and the target turn-on state matched with the weather information of the at least one first electronic device are obtained, if the at least one first electronic device comprises the target first electronic device with the current turn-on state inconsistent with the corresponding target turn-on state, the target second electronic device is controlled to play the prompt information for prompting the user to execute the operation corresponding to the weather information in a voice mode based on the indoor position information of the target first electronic device. According to the method and the device, when the current closing and opening state of the first electronic device is inconsistent with the target closing and opening state matched with the weather information, the target second electronic device is used for prompting, the condition that prompting is still carried out when user operation is not needed can be avoided, the prompting accuracy is improved, user operation is accurately guided, and user experience is improved.
In a possible implementation manner, the controlling the target second electronic device to play the prompt message in a voice form based on the indoor location information of the target first electronic device includes:
sending a position request to a plurality of second electronic devices, wherein the position request is used for acquiring user presence information in a target range corresponding to each of the plurality of second electronic devices and indoor position information of the plurality of second electronic devices, and the user presence information is used for indicating whether a user is present in the target range;
according to the received user presence information in the target range corresponding to the plurality of second electronic devices and the received indoor position information of the plurality of second electronic devices, determining a target second electronic device meeting the target condition from the plurality of second electronic devices, and controlling the target second electronic device to play the prompt message in a voice mode.
In a possible implementation manner, the determining, according to the received user presence information and the received indoor location information of the plurality of second electronic devices within the target ranges respectively corresponding to the plurality of second electronic devices, a target second electronic device that satisfies the target condition from the plurality of second electronic devices includes:
determining at least one candidate second electronic device of the user in the target range from the plurality of second electronic devices according to the user presence information in the target range respectively corresponding to the plurality of second electronic devices;
and according to the indoor position information of the plurality of second electronic devices, determining the candidate second electronic device, which has a distance to the target first electronic device smaller than the distances to the target first electronic device from other candidate second electronic devices, in the at least one candidate second electronic device as the target second electronic device.
In one possible implementation manner, after the control target second electronic device plays the prompt message in a voice form, the method further includes:
if first feedback information sent by the target second electronic device is detected, re-determining the target second electronic device meeting the target condition in at least one candidate second electronic device except the target second electronic device according to the indoor position information of the plurality of second electronic devices, wherein the first feedback information is used for indicating that a user corresponding to the target second electronic device cannot control the first electronic device;
and controlling the second electronic equipment with the re-determined target to play the prompt message.
In a possible implementation manner, after the control target second electronic device plays the prompt message in a form of voice, the method further includes:
if error information sent by the target second electronic equipment is received, re-determining the target second electronic equipment meeting the target condition in at least one candidate second electronic equipment except the target second electronic equipment according to the indoor position information of the plurality of second electronic equipment, wherein the error information is used for indicating that the target second electronic equipment cannot perform voice playing;
and controlling the second electronic equipment with the redetermined target to play the prompt message.
In one possible implementation, after sending the location requests to the plurality of second electronic devices, the method further includes:
and if second feedback information sent by the plurality of second electronic devices is received, sending notification information to at least one of third electronic devices bound with any one of the plurality of second electronic devices, wherein the second feedback information is used for indicating that the second electronic devices do not detect user presence information.
In a possible implementation manner, after the obtaining of the target shutdown state of the at least one first electronic device matching the weather information, the method further includes:
sending a state acquisition request to the at least one first electronic device;
receiving a current closing and opening state sent by the at least one first electronic device;
and determining the first electronic equipment with the current closing and starting state inconsistent with the target closing and starting state as target first electronic equipment.
In one possible implementation manner, the controlling the target second electronic device to play the prompt message in a voice form includes:
and sending a voice playing request to the target second electronic equipment, and controlling the target second electronic equipment to respond to the voice playing request to play prompt information generated based on the weather information, wherein the voice playing request carries the weather information and the position information of the target first electronic equipment.
In a possible implementation manner, after controlling the target second electronic device to play the prompt message in a voice form based on the indoor location information of the target first electronic device, the method further includes:
acquiring position information of a plurality of third electronic devices bound with the target second electronic device;
according to the position information of the plurality of third electronic devices, determining a target third electronic device from the plurality of third electronic devices, wherein the target third electronic device is a third electronic device of which the position information meets a preset distance condition;
and sending notification information to the target third electronic device, wherein the notification information is used for prompting the weather information and the current on-off state of the target first electronic device for the user.
In a possible implementation manner, the playing, by the control-target second electronic device, the prompt message in a form of voice includes:
if the use state of the target third electronic equipment is detected to be that the output equipment is accessed, the target second electronic equipment controls the output equipment connected with the target third electronic equipment to play the prompt message in a voice mode;
and if the use state of the target third electronic equipment is detected to be that the third electronic equipment is not accessed to the output equipment, the prompt message is played through the target second electronic equipment in a voice mode.
In a possible implementation manner, the obtaining of the target off-state of the at least one first electronic device matching with the weather information includes at least one of:
if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is a closing state;
if the weather information indicates that the current weather is in a rain and snow state, the target closing state matched with the weather information is in a closing state;
if the weather information indicates that the current weather is in a dust state, the target closing state matched with the weather information is in a closing state;
and if the weather information indicates that the current weather is a sunny state, the target turn-on state matched with the weather information is a turn-off state.
Fig. 3 is a flowchart of a device control method provided in an embodiment of the present disclosure, and referring to fig. 3, the method includes:
301. the fourth electronic device obtains weather information.
It should be noted that the fourth electronic device may be a server, or may be other types of electronic devices, which is not limited in this disclosure. The fourth electronic device may communicate with a plurality of first electronic devices, a plurality of second electronic devices, and a plurality of third electronic devices, and the number of the first electronic devices, the number of the second electronic devices, and the number of the third electronic devices are not limited in the embodiments of the present disclosure.
In a possible implementation manner, the fourth electronic device may automatically connect to the internet to obtain local weather information, where the weather information may include basic weather conditions such as whether there is wind, whether it is rainy, whether it is snowy, whether there is sand, and other weather conditions such as wind direction and wind blowing level.
In other possible implementations, the second electronic device may also automatically connect to the internet to obtain the local weather information, and the embodiment of the present disclosure does not limit which device is used to obtain the weather information. The second electronic device is used for acquiring the local weather information, so that the processing pressure of the fourth electronic device can be effectively reduced, the processing speed of the fourth electronic device is increased, the corresponding weather information can be prompted in a shorter time, and the user experience is improved.
It should be noted that, the fourth electronic device and the second electronic device may both acquire the weather information based on their own data acquisition settings, such as an acquisition period or a sending condition, which is not limited in this disclosure.
302. And the fourth electronic equipment acquires the target closing and opening state of at least one first electronic equipment matched with the weather information.
It should be noted that after the weather information is acquired, the fourth electronic device may directly acquire the target closing and opening state of the at least one first electronic device matched with the weather information, and may also determine a wind blowing level in the weather information, if the wind blowing level reaches a first preset level, the target closing and opening state of the at least one first electronic device matched with the weather information is acquired, and if the wind blowing level does not reach the first preset level, the target closing and opening state of the at least one first electronic device matched with the weather information is not required to be acquired. The first preset level may be set by the user on the fourth electronic device, which is not limited by the embodiment of the present disclosure. Whether the wind blowing grade reaches the first preset grade or not is judged, so that the condition that wind power is not large can be avoided, a user is prompted to close the door and the window when the door and the window do not need to be closed, and user experience is improved.
Wherein the target turn-off state matched with the weather information may include at least one of: if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is a closing state; if the weather information indicates that the current weather is in a rain and snow state, the target closing state matched with the weather information is in a closing state; if the weather information indicates that the current weather is in a dust state, the target closing state matched with the weather information is in a closing state; and if the weather information indicates that the current weather is in a sunny state, the target closing state matched with the weather information is in a closing state.
It should be noted that, the fourth electronic device may store, in advance, the position information, the orientation information, and the like of the door or the window to which each first electronic device belongs, so as to more accurately obtain the target closing and opening state of the at least one first electronic device matching the weather information according to the position information and the orientation information of the door or the window to which each first electronic device belongs. For example, if the weather information indicates that the current weather is rain or snow, the target close state of the first electronic device matched with the weather information is a close state for the first electronic device with the door or window orientation information opposite to the wind direction. The target closing and opening state is determined by combining the position information, the orientation information and the like of the door or the window to which each piece of first electronic equipment belongs, the accuracy of the determined target closing and opening state can be improved, the accuracy of prompting based on the current closing and opening state and the target closing and opening state can be further improved, and the user experience is improved.
It should be noted that, a plurality of first electronic devices may be included in the indoor environment, and the number of the first electronic devices is not limited in the embodiments of the present disclosure.
303. The fourth electronic device sends a status acquisition request to the at least one first electronic device.
It should be noted that, the fourth electronic device may also store device information of each first electronic device in advance, for example, a device address or a device identifier, so that the fourth electronic device communicates with each first electronic device.
304. The first electronic equipment obtains the current closing and opening state of the first electronic equipment.
In a possible implementation manner, the first electronic device may detect a state of the first electronic device to obtain a current closing and opening state of a controlled door or a controlled window to which the first electronic device belongs.
305. And the first electronic equipment sends the current off-on state to the fourth electronic equipment.
It should be noted that, when the first electronic device sends the current shutdown state, the first electronic device may carry the device identifier of the first electronic device, so that the fourth electronic device determines the source of the received current shutdown state of each first electronic device.
306. And the fourth electronic equipment receives the current closing and opening state sent by the at least one first electronic equipment, and determines the first electronic equipment with the current closing and opening state inconsistent with the target closing and opening state as the target first electronic equipment.
307. The fourth electronic device sends a location request to a plurality of second electronic devices, where the location request is used to obtain user presence information in a target range corresponding to each of the plurality of second electronic devices and indoor location information of the plurality of second electronic devices, and the user presence information is used to indicate whether a user is present in the target range.
It should be noted that, the fourth electronic device may store device identifiers of a plurality of second electronic devices in advance, so that the fourth electronic device sends the location request to the corresponding second electronic device according to the stored device identifiers.
The second electronic device may be a device such as a smart speaker with an audio playing function, an indoor positioning function, and a biological detection function. The biological detection function may also include an infrared thermography function and a ranging function. The biological detection function may also include an infrared thermography function and a ranging function. This indoor positioning function means realizes position Location in indoor environment, mainly adopt multiple technologies integration such as wireless communication, base station Location, be used to lead Location and form one set of indoor position Location system, thereby realize personnel, the position monitoring of object etc. in the indoor space, can integrate indoor positioning system in the second electronic equipment such as smart audio amplifier, and then can realize indoor positioning function, specifically, this indoor positioning function can be realized through Real Time Location Systems (RTLS), RTLS can be according to receiver observation data, calculate the position at receiver antenna place in Real Time, in other possible implementation, can also adopt other modes to realize this indoor positioning function. Optionally, the second electronic device may further include other functions, such as a weather monitoring function, which is not limited in this disclosure. The target range corresponding to the second electronic device may be an area range with a position where the second electronic device is located as a center and with an arbitrary length as a radius. Optionally, the different types of second electronic devices may correspond to the same radius, or may correspond to different radii, which is not limited in this disclosure.
It should be noted that the fourth electronic device may simultaneously send a location request to a plurality of second electronic devices to obtain the user presence information in the target range corresponding to each of the second electronic devices and the indoor location information of each of the second electronic devices. Of course, the fourth electronic device may also send the location requests to the plurality of second electronic devices one by one in a polling manner, and the embodiment of the present disclosure does not specifically limit which manner is used.
When the fourth electronic device sends the location requests to the second electronic devices one by one in a polling manner, the location requests may be sent to the second electronic devices one by one in an order from small to large in the historical response duration according to the historical response duration of each second electronic device, and the location requests may also be sent to the second electronic devices one by one in an order from large to small in the historical response success rate according to the historical response success rate of each second electronic device. By adopting a polling mode to send the position requests to the plurality of second electronic devices one by one, the success rate of response can be improved, the sending times of the position requests can be reduced, and the resource utilization rate can be improved.
308. And the second electronic equipment responds to the received position request and acquires the user existence information in the corresponding target range and the indoor position information of the second electronic equipment.
In a possible implementation manner, after receiving a position request sent by the fourth electronic device, each second electronic device may detect infrared radiation of each object within a target range through an infrared thermography function to obtain a temperature distribution image of each object, and then determine whether there is a person within the target range according to the body temperature of the person, if it is determined that there is a person within the target range, the second electronic device may generate user presence information of the person within the target range, and if it is determined that there is no person within the target range, the second electronic device may generate user presence information of the person within the target range. Each second electronic device can also acquire the indoor position information of each second electronic device through a positioning function.
It should be noted that each second electronic device may also obtain, in real time, user presence information within a corresponding target range and indoor location information of the second electronic device, and send the obtained user presence information and indoor location information in real time, so that the fourth electronic device updates, in real time, the range of the candidate second electronic device. The user presence information and the indoor position information are acquired in real time through each second electronic device, the optional second electronic device can be determined directly according to the user presence information when weather information needs to be prompted, the position request does not need to be sent to acquire the weather information, the processing speed of the fourth electronic device is increased, and the user experience is improved.
309. And the second electronic equipment sends the acquired user presence information in the corresponding target range and the indoor position information of the second electronic equipment to the fourth electronic equipment.
310. And the fourth electronic device determines that at least one candidate second electronic device of the user exists in the target range from the plurality of second electronic devices according to the user existence information in the target range respectively corresponding to the plurality of second electronic devices.
It should be noted that, in the above steps 309 to 310, when determining the candidate second electronic devices, each second electronic device may also perform self-determination according to the acquired user presence information in the corresponding target range, and if a second electronic device detects that a user is present in the corresponding target range, the second electronic device may define itself as the candidate second electronic device and send the location information and the notification information of the candidate second electronic device to the fourth electronic device, so that the fourth electronic device knows which second electronic devices belong to the candidate second electronic devices and the locations of the candidate second electronic devices.
The second electronic device determines the optional second electronic device by itself, the position information of the optional second electronic device can be sent to the fourth electronic device only, all the second electronic devices are not required to be sent, the processing pressure of the fourth electronic device can be reduced, the processing speed of the fourth electronic device is increased, and the user experience can be improved.
311. And the fourth electronic device determines, as the target second electronic device, the candidate second electronic device, which is in the at least one candidate second electronic device and has a distance to the target first electronic device that is smaller than distances to the target first electronic device from other candidate second electronic devices, according to the indoor location information of the plurality of second electronic devices.
In a possible implementation manner, the fourth electronic device may compare distances between the candidate second electronic devices and the target first electronic device according to the received indoor location information of the candidate second electronic devices, and determine the candidate second electronic device with the smallest distance to the target first electronic device as the target second electronic device. For example, referring to fig. 4, fig. 4 is a schematic diagram of an indoor layout provided by an embodiment of the present disclosure, in the indoor environment shown in fig. 4, a user is detected in a target range of both the second electronic device 403 and the second electronic device 404, and if the target first electronic device is disposed on a door or a window of a kitchen, the fourth electronic device may compare a distance between the second electronic device 403 and the target first electronic device with a distance between the second electronic device 404 and the target first electronic device, and may determine the second electronic device 403 having a smaller distance from the target first electronic device as the target second electronic device. Alternatively, referring to fig. 5, fig. 5 is a schematic diagram of an indoor layout provided by an embodiment of the present disclosure, in an indoor environment shown in fig. 5, if different users are detected within target ranges of a second electronic device 501 and a second electronic device 502, a fourth electronic device may compare a distance between the second electronic device 501 and a target first electronic device with a distance between the second electronic device 502 and the target first electronic device, if the target first electronic device is disposed on a door or window of a bedroom, the fourth electronic device may determine the second electronic device 501 as the target second electronic device, and if the target first electronic device is disposed on a door or window of a living room, the fourth electronic device may determine the second electronic device 502 as the target second electronic device.
It should be noted that, after comparing the distances between the candidate second electronic devices and the target first electronic device, the fourth electronic device may sort the distances between the candidate second electronic devices and the target first electronic device in descending order, and record the sorting result in the list. By recording the sorting result in the list, when the target second electronic device needs to be re-determined, the target second electronic device can be directly determined according to the sorting result of the list without re-comparison, so that the efficiency is improved, and the response time is reduced.
It should be noted that, if there is only one second electronic device in the indoor environment, the fourth electronic device does not need to determine the target second electronic device through steps 307 to 311, and may directly determine the second electronic device in the indoor environment as the target second electronic device to send the voice playing request to the target second electronic device, and the specific process may refer to step 312 below, which is not described herein again. By directly determining the only second electronic device in the indoor environment as the target second electronic device, the response time can be effectively reduced, and the device control efficiency can be improved. Referring to fig. 6 and 7, fig. 6 and 7 are schematic diagrams of an indoor layout provided by the embodiment of the disclosure, in the indoor environment shown in fig. 6 and 7, only one second electronic device exists, so that, regardless of the distance between the second electronic device and the user, the fourth electronic device does not need to determine the distance between the second electronic device and the target first electronic device to determine the target second electronic device, but can directly determine the second electronic device in the room as the target second electronic device, so as to send a voice playing request to the second electronic device in the room through the subsequent step 312.
312. And the fourth electronic equipment sends a voice playing request to the target second electronic equipment, wherein the voice playing request carries the weather information and the position information of the target first electronic equipment.
It should be noted that, when the fourth electronic device sends the voice playing request to the target second electronic device, the fourth electronic device may also send notification information to the third electronic device bound to the target second electronic device, where the notification information is used to prompt the user to information about the weather information and the current shutdown/startup state of the target first electronic device.
When the fourth electronic device sends the notification information to the third electronic device, there may be two sending methods: the notification information can be directly sent to the third electronic device by the fourth electronic device, and the notification information can be sent to the second electronic device by the fourth electronic device and then forwarded to the third electronic device by the second electronic device.
It should be noted that, when sending the notification message to the third electronic device, there may be two specific ways as follows:
in one possible implementation, the fourth electronic device may send notification information to all third electronic devices bound to the target second electronic device.
In another possible implementation manner, the fourth electronic device may obtain location information of a plurality of third electronic devices bound to the target second electronic device, and determine, according to the location information of the plurality of third electronic devices, a target third electronic device from the plurality of third electronic devices, where the target third electronic device is a third electronic device whose location information meets a preset distance condition, and send notification information to the target third electronic device. The preset distance condition may be that the distance between the target third electronic device and the target first electronic device is the minimum, or may also be that the distance between the target third electronic device and the target second electronic device is the minimum, which condition is specifically adopted as the preset distance condition may be preset according to a user requirement, which is not limited in the embodiment of the present disclosure.
Through any one of the above implementation modes, the notification information is sent to the third electronic device bound with the second electronic device, so that the user can remotely control the third electronic device when the user is not indoors, the problem that the user cannot respond indoors in time can be effectively avoided, and the safety is improved.
It should be noted that each second electronic device may be bound with a plurality of third electronic devices, where the third electronic devices may be a smart phone, a tablet computer, a smart watch, and the like, and the type of the third electronic device is not limited in the embodiment of the present disclosure. When the third electronic device is bound with the second electronic device, the master-slave identity of the third electronic device may be set, one electronic device may be bound with one master third electronic device and a plurality of slave third electronic devices, and the master third electronic device may have a function of remotely controlling the second electronic device, and may further have a function of setting the use permission of each slave electronic device on the second electronic device. When the third electronic equipment is bound, the permission of each third electronic equipment is set, so that the third electronic equipment can be prevented from being remotely controlled randomly, and only part of the third electronic equipment with the remotely controlled use permission can be remotely controlled to the second electronic equipment, and the safety of the equipment is ensured.
Therefore, if the second electronic device does not detect that the user exists in the target range when the user presence information in the target range corresponding to the second electronic device and the indoor location information of the second electronic device are obtained in step 308, the above steps 309 to 312 may not be performed, and second feedback information used to indicate that the user presence information is not detected by the second electronic device may be directly sent to the fourth electronic device, and if the fourth electronic device receives the second feedback information sent by the plurality of second electronic devices, a main third electronic device bound to any one of the plurality of second electronic devices may be determined, and notification information may be sent to the main third electronic device. When second feedback information sent by a plurality of second electronic devices is received, notification information is sent to the main third electronic device bound with any second electronic device, when no user exists in an indoor environment, the notification information can be sent to the main third electronic device carried by the user, it is guaranteed that when the abnormal condition occurs to the first electronic device, the user can timely know the abnormal condition through the main third electronic device, the problem that the response cannot be timely made when no user exists indoors can be effectively avoided, and the safety of the device is improved. Referring to fig. 8, fig. 8 is a schematic diagram of an indoor layout provided by an embodiment of the present disclosure, and if there is no user in the indoor environment shown in fig. 8, a fourth electronic device may send notification information to a master third electronic device bound to the plurality of second electronic devices. And if the third feedback information of the master third electronic device is not detected within the preset time length, sending notification information to at least one slave third electronic device, wherein the third feedback information is used for indicating that the master third electronic device responds to the received notification information to control the first electronic device. The preset time duration may be any time duration, which is not limited in the embodiment of the present disclosure.
It should be noted that, before the fourth electronic device sends the notification information, the fourth electronic device may detect the permissions of all the slave third electronic devices, determine at least one target slave third electronic device that has been authorized by the master third electronic device, and send the notification information to the at least one target slave third electronic device. Through the determination of the target slave third electronic device, the third electronic device receiving the notification information can be ensured to remotely control the first electronic device, so that the first electronic device can be ensured to be timely processed when abnormal conditions occur, and the safety of the device is improved. For example, the fourth electronic device may detect an authority of the at least one slave third electronic device, determine that the at least one slave third electronic device that has been authorized by the master third electronic device to remotely manipulate the second electronic device, determine the at least one slave third electronic device that has been authorized to remotely manipulate the second electronic device as the at least one target slave third electronic device, and transmit notification information to the at least one target slave third electronic device.
313. And the target second electronic equipment responds to the voice playing request, and plays prompt information generated based on the weather information in a voice form, wherein the prompt information is used for prompting a user to execute an operation corresponding to the weather information.
It should be noted that the target second electronic device may generate different prompt messages in real time according to different weather messages. For example, if the weather state is strong wind and reaches a second preset level of the user, the target second electronic device may prompt the user to close the door/window; if the weather state is strong wind and reaches a first preset level of the user, but does not reach a second preset level of the user, the target second electronic device can play a warning word of 'large current wind force'; if the weather state is rain, snow, haze or sand storm, the target second electronic device may prompt the user to close the door/window; if the weather state is sunny day or breeze, the target second electronic device may prompt the user to open the window for ventilation. Optionally, prompt information corresponding to different weather information may also be stored in the audio data database in advance, so that the target second electronic device directly obtains the prompt information from the audio data database.
In a possible implementation manner, the target second electronic device may generate, according to weather information carried in the voice playing request and in combination with the position information of the target first electronic device, audio data indicating how to operate a door and window corresponding to the target first electronic device in response to the current weather information, and then play the audio data. In another possible implementation manner, the target second electronic device may further store, in advance, a plurality of weather information and audio data corresponding to different position information of the target first electronic device, and after receiving the voice playing request, the target second electronic device may select, from the stored audio data, the audio data corresponding to the weather information carried by the voice playing request and the position information of the target first electronic device according to the weather information carried by the voice playing request and the position information of the target first electronic device, and play the audio data. For example, the target second electronic device is a second electronic device located in a living room, the current weather is a strong wind state, and if the target first electronic device is also located in the living room, the target second electronic device may play a prompt message of "close the door and window of the room"; if the target first electronic device is located in other rooms such as a bedroom, the target second electronic device can play prompt information of closing the door and the window of the living room. Optionally, the target second electronic device may also play the prompt message in a voice form in other manners, which is not limited in this disclosure.
If there is only one second electronic device in the indoor environment, in step 312, the fourth electronic device may directly send a voice playing request carrying weather information to the electronic device, and in step 313, the target second electronic device may generate a prompt message "close doors/windows of all the cubicles" or "open doors/windows of all the cubicles" according to the weather information carried in the voice playing request.
It should be noted that, after receiving the voice playing request, the target second electronic device may detect a state of the target second electronic device, and if the target second electronic device detects that the target second electronic device has a failure, the target second electronic device may send error information to the fourth electronic device, where the error information is used to indicate that the target second electronic device cannot play the voice, and if the fourth electronic device receives the error information sent by the target second electronic device, the target second electronic device meeting the target condition may be re-determined in at least one candidate second electronic device other than the target second electronic device according to the indoor location information of the plurality of second electronic devices, and the error information is used to indicate that the target second electronic device cannot play the voice, and control the re-determined target second electronic device to play the prompt information. For example, the fourth electronic device may determine, according to the sorting result recorded in the list in step 311, the second electronic device whose sorting result is located at the second position as the target second electronic device, that is, the second electronic device with the second smallest distance as the target second electronic device. Through after receiving the error message at the fourth electronic device, that is, when the target second electronic device fails, the target second electronic device is determined again, so that the playing success rate can be effectively improved, the user can timely know the current weather condition and the door and window needing to be closed or opened, the prompting accuracy is improved, and the user experience is improved.
In addition, if the target second electronic device can normally operate, the fourth electronic device may detect a use state of the target third electronic device, which is bound to the target second electronic device and whose location information meets a preset distance condition, and if it is detected that the use state of the target third electronic device is an accessed output device, the target second electronic device controls the output device connected to the target third electronic device to play the prompt information in a voice form, that is, if the fourth electronic device detects that the use state of the target third electronic device is an accessed output device, the fourth electronic device may send a forwarding request to the target second electronic device, where the forwarding request carries a voice playing request, and the target second electronic device may forward the voice playing request to the target third electronic device after receiving the forwarding request, after receiving the voice playing request, the target third electronic device can play prompt information generated based on the weather information carried by the voice playing request and the position information of the target first electronic device in a voice mode through connected output equipment; if it is detected that the usage state of the target third electronic device is not accessed to the output device, the prompt information generated based on the weather information carried by the voice playing request and the location information of the target first electronic device is played by the target second electronic device in a voice form, and the specific implementation process may be referred to step 313, which is not described herein again. In a specific implementation manner, if the fourth electronic device detects that the usage state of the target third electronic device is not accessed to the output device and is in a sound playing state, that is, the target third electronic device is playing audio, video, or playing a game, the user may not hear the prompt information played by the target second electronic device due to an excessively high volume of sound played by the target third electronic device, and at this time, the target third electronic device may also be controlled to play the prompt information in a voice form by the target second electronic device. Through detecting the user state to target third electronic equipment, can wear output device or immerse in audio frequency, video or when playing, directly carry out the broadcast of reminder information through output device or target third electronic equipment, can effectively avoid the user to hear the voice prompt of target second electronic equipment, guarantee that the user can in time know current weather condition and the door and window that need close or open, guarantee to obtain timely effectual processing with the reminder information of speech form broadcast, improve the accuracy and the user experience of suggestion.
The output device may be various types of devices, such as a wired headset, a wireless headset, and the like, which is not limited in this disclosure.
It should be noted that, if the user is inconvenient at this time, the user may say "i can not go now" or "i can not go" or the like to the target second electronic device, the target second electronic device may detect the received voice information in real time, and perform semantic analysis on the voice information to obtain first feedback information, where the first feedback information is used to indicate that the user corresponding to the target second electronic device cannot control the first electronic device, and send the first feedback information to the fourth electronic device, and if the fourth electronic device detects the first feedback information sent by the target second electronic device, the target second electronic device meeting the target condition may be determined again in at least one alternative second electronic device except the target second electronic device according to the indoor location information of the plurality of second electronic devices, and the first feedback information is used to indicate that the user corresponding to the target second electronic device cannot enter the first electronic device And controlling the second electronic equipment of the re-determined target to play the prompt message. In addition, the target second electronic device may perform voiceprint recognition on the received voice message to determine the identity of the user who cannot operate the first electronic device. When the fourth electronic device receives the error information or the first feedback information, the target second electronic device is determined again, so that the prompt information can be played through the second electronic device with suboptimum response when the optimal second electronic device fails to respond, the user can be ensured to operate the door and window needing to be opened or closed in time, and the user experience is improved.
An interface protocol may be preset between the target second electronic device and the fourth electronic device, so that the target second electronic device and the fourth electronic device can communicate with each other, and the information transmission rate is increased.
According to the scheme provided by the embodiment of the disclosure, when the current closing and opening state of the first electronic device is inconsistent with the target closing and opening state matched with the weather information, the target second electronic device close to the target first electronic device is used for prompting, so that a user in a target range corresponding to the target second electronic device can respond to the prompt information in time, the condition that the prompt is still carried out when the user does not need to operate can be avoided, the prompt accuracy is improved, the user operation is accurately guided, and the user experience is improved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 9 is a schematic structural diagram of an apparatus control device provided in an embodiment of the present disclosure, and referring to fig. 9, the apparatus includes:
a weather information obtaining module 901, configured to obtain weather information;
a shutdown state obtaining module 902, configured to obtain a target shutdown state of the at least one first electronic device matching the weather information;
the control module 903 is configured to, if the at least one first electronic device includes a target first electronic device, control a target second electronic device to play a prompt message in a voice form based on indoor location information of the target first electronic device, where the target first electronic device is a first electronic device whose current shutdown and startup states are inconsistent with a corresponding target shutdown and startup state, and the prompt message is used to prompt a user to execute an operation corresponding to the weather message.
According to the device provided by the embodiment of the disclosure, the weather information and the target turn-on state matched with the weather information of the at least one first electronic device are acquired, if the at least one first electronic device comprises the target first electronic device with the current turn-on state inconsistent with the corresponding target turn-on state, the target second electronic device is controlled to play the prompt information for prompting the user to execute the operation corresponding to the weather information in a voice mode based on the indoor position information of the target first electronic device. According to the method and the device, when the current closing and opening state of the first electronic device is inconsistent with the target closing and opening state matched with the weather information, the target second electronic device is used for prompting, the condition that prompting is still carried out when user operation is not needed can be avoided, the prompting accuracy is improved, user operation is accurately guided, and user experience is improved.
In one possible implementation, the apparatus further includes:
a sending module, configured to send a location request to a plurality of second electronic devices, where the location request is used to obtain user presence information in a target range corresponding to each of the plurality of second electronic devices and indoor location information of the plurality of second electronic devices, and the user presence information is used to indicate whether a user is present in the target range;
a determining module, configured to determine, according to the received user presence information and the received indoor location information of the plurality of second electronic devices within the target ranges respectively corresponding to the plurality of second electronic devices, a target second electronic device that meets a target condition from the plurality of second electronic devices;
the control module 903 is further configured to control the target second electronic device to play the prompt message in a voice format.
In a possible implementation manner, the determining module is further configured to determine, according to user presence information in a target range respectively corresponding to the plurality of second electronic devices, that at least one candidate second electronic device of the user is present in the target range from the plurality of second electronic devices;
the determining module is further configured to determine, according to the indoor location information of the plurality of second electronic devices, one of the at least one candidate second electronic device that is located at a distance from the target first electronic device that is less than distances from the target first electronic device to the other candidate second electronic devices, as the target second electronic device.
In a possible implementation manner, the determining module is further configured to, if first feedback information sent by the target second electronic device is detected, re-determine, according to the indoor location information of the plurality of second electronic devices, the target second electronic device that meets a target condition in at least one candidate second electronic device other than the target second electronic device, where the first feedback information is used to indicate that a user corresponding to the target second electronic device cannot control the first electronic device;
the control module 903 is further configured to control the second electronic device with the re-determined target to play the prompt message.
In a possible implementation manner, the determining module is further configured to, if error information sent by the target second electronic device is received, re-determine, according to the indoor location information of the plurality of second electronic devices, the target second electronic device that meets a target condition in at least one candidate second electronic device other than the target second electronic device, where the error information is used to indicate that the target second electronic device cannot perform voice playing;
the control module 903 is further configured to control the second electronic device with the re-determined target to play the prompt message.
In a possible implementation manner, the sending module is further configured to send notification information to at least one of third electronic devices bound to any one of the plurality of second electronic devices if second feedback information sent by the plurality of second electronic devices is received, where the second feedback information is used to indicate that the second electronic device does not detect user presence information.
In a possible implementation manner, the sending module is further configured to send a status obtaining request to the at least one first electronic device;
the device also includes:
the receiving module is used for receiving the current closing and opening state sent by the at least one first electronic device;
the determining module is further configured to determine, as a target first electronic device, the first electronic device whose current shutdown state is inconsistent with the target shutdown state.
In a possible implementation manner, the sending module is further configured to send a voice playing request to the target second electronic device;
the control module 903 is further configured to control the target second electronic device to play a prompt message generated based on the weather information in response to the voice playing request, where the voice playing request carries the weather information and the location information of the target first electronic device.
In one possible implementation, the apparatus further includes:
the position information acquisition module is used for acquiring the position information of a plurality of third electronic devices bound with the target second electronic device;
the determining module is further configured to determine a target third electronic device from the plurality of third electronic devices according to the location information of the plurality of third electronic devices, where the target third electronic device is a third electronic device whose location information meets a preset distance condition;
the sending module is further configured to send notification information to the target third electronic device, where the notification information is used to prompt a user about the weather information and the current shutdown/startup state of the target first electronic device.
In a possible implementation manner, the control module 903 is further configured to, if it is detected that the use state of the target third electronic device is that the output device is already connected, control, by the target second electronic device, the output device that the target third electronic device is already connected to play the prompt message in a voice form;
the control module 903 is further configured to control the target second electronic device to play the prompt message in a voice form if it is detected that the use state of the target third electronic device is not accessed to the output device.
In one possible implementation, the target off-state matching the weather information includes at least one of:
if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is a closing state;
if the weather information indicates that the current weather is in a rain and snow state, the target closing state matched with the weather information is in a closing state;
if the weather information indicates that the current weather is a sand state, the target closing state matched with the weather information is a closing state;
and if the weather information indicates that the current weather is in a sunny state, the target closing state matched with the weather information is in a closing state.
It should be noted that: in the device control apparatus provided in the foregoing embodiment, when various electronic devices are controlled, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the device control apparatus and the device control method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, where the electronic device 1000 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where at least one program code is stored in the one or more memories 1002, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the methods provided by the foregoing method embodiments. Of course, the electronic device 1000 may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the electronic device 1000 may further include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory, including program code executable by a processor to perform the device control method in the above-described embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by hardware associated with program code, and the program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic or optical disk, etc.
The foregoing is considered as illustrative of the embodiments of the disclosure and is not to be construed as limiting thereof, and any modifications, equivalents, improvements and the like made within the spirit and principle of the disclosure are intended to be included within the scope of the disclosure.

Claims (11)

1. An apparatus control method, characterized in that the method comprises:
acquiring weather information;
acquiring a target turn-on state matched with the weather information by at least one first electronic device;
if the at least one first electronic device comprises a target first electronic device, sending a location request to a plurality of second electronic devices in a polling mode based on indoor location information of the target first electronic device, wherein the location request is used for acquiring user presence information in a target range respectively corresponding to the plurality of second electronic devices and indoor location information of the plurality of second electronic devices, and the user presence information is used for indicating whether a user is present in the target range; determining that at least one second candidate electronic device of the user exists in the target range from the plurality of second electronic devices according to the received user presence information and the received indoor position information of the plurality of second electronic devices in the target range respectively corresponding to the plurality of second electronic devices; according to the indoor position information of the plurality of second electronic devices, determining the candidate second electronic device, which has a distance from the target first electronic device smaller than the distance from the target first electronic device to the other candidate second electronic devices, in the at least one candidate second electronic device as the target second electronic device, and controlling the target second electronic device to play prompt information in a voice form, wherein the target first electronic device is a first electronic device of which the current off-on state is inconsistent with the corresponding target off-on state, and the prompt information is used for prompting a user to execute an operation corresponding to the weather information;
if first feedback information sent by the target second electronic device is detected, re-determining the target second electronic device meeting target conditions in at least one candidate second electronic device except the target second electronic device according to indoor position information of a plurality of second electronic devices, wherein the first feedback information is used for indicating that a user corresponding to the target second electronic device cannot control the first electronic device, and the first feedback information is obtained by performing semantic analysis on received voice information by the target second electronic device; controlling the second electronic equipment of the re-determined target to play the prompt message;
if no user is detected in the target ranges corresponding to the plurality of second electronic devices and the master third electronic device does not control the first electronic device within the preset time length, detecting the authority of at least one slave third electronic device bound with any one second electronic device, determining at least one target slave third electronic device authorized by the master third electronic device, and binding the master third electronic device with any one second electronic device;
sending notification information to the at least one target slave third electronic device;
wherein, the process of acquiring the user presence information and the indoor location information of each second electronic device comprises any one of the following:
according to the historical response time length of each second electronic device, acquiring user presence information and indoor position information of each second electronic device according to the sequence of the historical response time lengths from small to large;
and acquiring the user presence information and the indoor position information of each second electronic device according to the historical response success rate of each second electronic device and the sequence of the historical response success rates from large to small.
2. The method of claim 1, wherein after the control-target second electronic device plays the prompt message in voice form, the method further comprises:
if error information sent by the target second electronic equipment is received, re-determining the target second electronic equipment meeting target conditions in at least one candidate second electronic equipment except the target second electronic equipment according to the indoor position information of the plurality of second electronic equipment, wherein the error information is used for indicating that the target second electronic equipment cannot perform voice playing;
and controlling the second electronic equipment with the redetermined target to play the prompt message.
3. The method of claim 1, wherein after sending the location requests to the plurality of second electronic devices, the method further comprises:
and if second feedback information sent by the plurality of second electronic devices is received, sending notification information to at least one of third electronic devices bound with any one of the plurality of second electronic devices, wherein the second feedback information is used for indicating that the second electronic devices do not detect user presence information.
4. The method of claim 1, wherein after obtaining the target off-state that the at least one first electronic device matches the weather information, the method further comprises:
sending a state acquisition request to the at least one first electronic device;
receiving a current closing and starting state sent by the at least one first electronic device;
and determining the first electronic equipment with the current closing and opening state inconsistent with the target closing and opening state as target first electronic equipment.
5. The method of claim 1, wherein playing the prompt message in voice form by the control-target second electronic device comprises:
and sending a voice playing request to the target second electronic equipment, and controlling the target second electronic equipment to respond to the voice playing request to play prompt information generated based on the weather information, wherein the voice playing request carries the weather information and the position information of the target first electronic equipment.
6. The method according to claim 1, wherein after controlling the target second electronic device to play the prompt message in a voice form based on the indoor location information of the target first electronic device, the method further comprises:
acquiring position information of a plurality of third electronic devices bound with the target second electronic device;
determining a target third electronic device from the plurality of third electronic devices according to the position information of the plurality of third electronic devices, wherein the target third electronic device is a third electronic device of which the position information meets a preset distance condition;
and sending notification information to the target third electronic equipment, wherein the notification information is used for prompting the weather information and the current on-off state of the target first electronic equipment to a user.
7. The method of claim 1, wherein playing the prompt message in voice form by the control-target second electronic device comprises:
if the use state of the target third electronic equipment is detected to be that the output equipment is accessed, the target second electronic equipment controls the output equipment connected with the target third electronic equipment to play the prompt information in a voice mode;
and if the use state of the target third electronic equipment is detected to be that the target third electronic equipment is not accessed to the output equipment, controlling the target second electronic equipment to play the prompt message in a voice mode.
8. The method of claim 1, wherein the target off-state matching the weather information comprises at least one of:
if the weather information indicates that the current weather is in a strong wind state, the target closing state matched with the weather information is in a closing state;
if the weather information indicates that the current weather is in a rain and snow state, the target closing state matched with the weather information is in a closing state;
if the weather information indicates that the current weather is a dust state, the target closing state matched with the weather information is a closing state;
and if the weather information indicates that the current weather is a sunny state, the target closing and opening state matched with the weather information is an opening state.
9. An apparatus control device, characterized in that the device comprises:
the weather information acquisition module is used for acquiring weather information;
the closing and opening state obtaining module is used for determining a target closing and opening state matched with the weather information by at least one first electronic device according to the orientation information of the door or window to which the at least one first electronic device belongs, wherein the orientation information of the door or window to which the at least one first electronic device belongs is stored in advance;
a control module, configured to, if the at least one first electronic device includes a target first electronic device, send a location request to a plurality of second electronic devices in a polling manner based on indoor location information of the target first electronic device, where the location request is used to obtain user presence information in a target range respectively corresponding to the plurality of second electronic devices and indoor location information of the plurality of second electronic devices, and the user presence information is used to indicate whether a user is present in the target range; determining that at least one second candidate electronic device of the user exists in the target range from the plurality of second electronic devices according to the received user presence information and the received indoor position information of the plurality of second electronic devices in the target range respectively corresponding to the plurality of second electronic devices; according to the indoor position information of the plurality of second electronic devices, determining the candidate second electronic device, which has a distance from the target first electronic device smaller than the distance from the target first electronic device to the other candidate second electronic devices, in the at least one candidate second electronic device as the target second electronic device, and controlling the target second electronic device to play prompt information in a voice form, wherein the target first electronic device is a first electronic device of which the current off-on state is inconsistent with the corresponding target off-on state, and the prompt information is used for prompting a user to execute an operation corresponding to the weather information;
a determining module, configured to determine a target second electronic device that meets a target condition again in at least one candidate second electronic device other than the target second electronic device according to indoor location information of multiple second electronic devices if first feedback information sent by the target second electronic device is detected, where the first feedback information is used to indicate that a user corresponding to the target second electronic device cannot control the first electronic device, and the first feedback information is obtained by performing semantic analysis on received voice information by the target second electronic device; controlling the second electronic equipment of the re-determined target to play the prompt message;
the device control apparatus is further configured to detect, if no user is detected in a target range corresponding to the plurality of second electronic devices and a master third electronic device does not operate the first electronic device within a preset time period, an authority of at least one slave third electronic device bound to any one of the second electronic devices, determine at least one target slave third electronic device authorized by the master third electronic device, and bind the master third electronic device to any one of the second electronic devices; sending notification information to the at least one target slave third electronic device;
wherein, the process of acquiring the user presence information and the indoor location information of each second electronic device comprises any one of the following:
according to the historical response time length of each second electronic device, acquiring user presence information and indoor position information of each second electronic device according to the sequence of the historical response time lengths from small to large;
and acquiring user presence information and indoor position information of each second electronic device according to the historical response success rate of each second electronic device and the sequence of the historical response success rates from large to small.
10. An electronic device, comprising one or more processors and one or more memories having at least one program code stored therein, the program code being loaded and executed by the one or more processors to implement operations performed by the device control method of any of claims 1 to 8.
11. A computer-readable storage medium having at least one program code stored therein, the program code being loaded and executed by a processor to implement the operations performed by the device control method according to any one of claims 1 to 8.
CN202010254028.3A 2020-04-02 2020-04-02 Device control method, device, electronic device and computer-readable storage medium Active CN111596557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010254028.3A CN111596557B (en) 2020-04-02 2020-04-02 Device control method, device, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010254028.3A CN111596557B (en) 2020-04-02 2020-04-02 Device control method, device, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111596557A CN111596557A (en) 2020-08-28
CN111596557B true CN111596557B (en) 2022-05-10

Family

ID=72185450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010254028.3A Active CN111596557B (en) 2020-04-02 2020-04-02 Device control method, device, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111596557B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367358B (en) * 2020-10-20 2021-12-14 珠海格力电器股份有限公司 Equipment monitoring method, storage medium, electronic equipment and door lock device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090140855A1 (en) * 2007-12-03 2009-06-04 Eldad Shemesh Voice operated reminder system and method thereof
JP6111499B2 (en) * 2013-02-13 2017-04-12 パナソニックIpマネジメント株式会社 Air conditioning system, indicating device
CN104613594A (en) * 2014-12-30 2015-05-13 小米科技有限责任公司 Information reminding method and device
CN104640082B (en) * 2015-01-15 2019-02-12 小米科技有限责任公司 Prompting message generation method and device
CN104653026A (en) * 2015-01-15 2015-05-27 小米科技有限责任公司 Method and device for controlling doors and windows
CN106123228A (en) * 2016-06-30 2016-11-16 珠海格力电器股份有限公司 The control device of air-conditioner and the method for door and window state-detection, device and air-conditioner
KR102398390B1 (en) * 2017-03-22 2022-05-16 삼성전자주식회사 Electronic device and controlling method thereof
CN108873708A (en) * 2017-05-12 2018-11-23 美的智慧家居科技有限公司 Control method, apparatus, system and the readable storage medium storing program for executing of door and window
CN107846646B (en) * 2017-11-09 2019-12-13 北京小米移动软件有限公司 Control method and device of intelligent sound box and readable storage medium
CN109240115B (en) * 2018-10-26 2022-07-15 北京小米移动软件有限公司 Intelligent device control method and device and storage medium
CN110824940A (en) * 2019-11-07 2020-02-21 深圳市欧瑞博科技有限公司 Method and device for controlling intelligent household equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111596557A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US11830333B2 (en) Systems, methods, and devices for activity monitoring via a home assistant
US10621442B2 (en) Method and system for detecting an audio event for smart home devices
CN110800273B (en) virtual sensor system
CN111565355B (en) Device control method, device, electronic device and computer-readable storage medium
US11941537B2 (en) Home wireless discovery
CN108899023B (en) Control method and device
US11818599B2 (en) Determination of user presence and absence using WiFi connections
US20190130707A1 (en) Event notification using an intelligent digital assistant
US20220027725A1 (en) Sound model localization within an environment
CN112702633A (en) Multimedia intelligent playing method and device, playing equipment and storage medium
CN111596557B (en) Device control method, device, electronic device and computer-readable storage medium
CN110910541A (en) Access control method, system, network device and computer readable storage medium
CN111862965A (en) Awakening processing method and device, intelligent sound box and electronic equipment
CN111596556B (en) Device control method, device, electronic device and computer-readable storage medium
CN112673647A (en) Method and controller for configuring a distributed microphone system
US20230155903A1 (en) SYSTEM AND METHOD OF SOCIAL CONTROL-AND-USE OF IoT DEVICE, CONTROL SERVER SUPPORTING SOCIAL CONTROL-AND-USE OF IoT DEVICE AND MOBILE DEVICE USED FOR SOCIAL CONTROL-AND-USE OF IoT DEVICE
WO2023224622A1 (en) Privacy-preserving methods, systems, and media for personalized sound discovery within an environment
CN114815636A (en) Computer readable storage medium, intelligent panel and voice interaction method thereof

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