Disclosure of Invention
The present disclosure provides an air quality adjusting method and an intelligent device, which are used to improve the efficiency of air quality adjustment and solve the problem that the air quality adjusting mode in the prior art is not convenient.
In a first aspect, the present disclosure provides a smart device comprising a memory and a processor;
the memory is configured to store a first corresponding relationship, where the first corresponding relationship is a corresponding relationship between each callback function in the intelligent device and a preset acquisition function;
the processor configured to:
determining the equipment attribute of the intelligent equipment according to the equipment type of the intelligent equipment, wherein the equipment attribute comprises a support main control function and a non-support main control function;
if the device attribute of the intelligent device is determined to be the support main control function, establishing the first corresponding relation between each callback function in the intelligent device and each preset acquisition function;
responding to the triggering operation of any preset acquisition function, if the intelligent equipment supports the preset acquisition function, determining a callback function corresponding to the preset acquisition function according to the first corresponding relation, and calling the determined callback function to acquire data; if the intelligent equipment does not support the preset acquisition function, acquiring data through other intelligent equipment supporting the preset acquisition function;
and sending a control instruction to intelligent equipment with an air conditioning function based on the acquired data so as to facilitate the intelligent equipment to adjust the air quality according to the control instruction.
In this embodiment, the device attribute of any intelligent device is determined according to the device type of the intelligent device. If the device attribute of the intelligent device is determined to support the main control function, establishing a corresponding relation between each callback function in the intelligent device and a preset acquisition function so that any preset acquisition function is triggered, enabling the intelligent device to correspondingly acquire data for the triggering operation, and sending a control instruction to other intelligent devices to adjust the air quality based on the acquired data. Therefore, any intelligent device with the master control function can be used as a master control center to adjust the air quality and is not limited to one intelligent device, so that the air quality adjusting efficiency is improved, and the mode is more convenient.
In some exemplary embodiments, when executing the acquiring of the data by the other smart device supporting the preset acquisition function if the smart device does not support the preset acquisition function, the processor is specifically configured to:
inquiring the first networking state of other intelligent equipment supporting the preset acquisition function; the first networking state comprises online and offline;
and sending a control instruction to at least one intelligent device in other intelligent devices with the first networking state being online, and receiving data collected by the intelligent device.
In this embodiment, when this smart machine as the key center does not support to predetermine when gathering the function, only need to send control command to other online smart machines that support this to predetermine and gather the function, carry out the collection of data through other smart machines promptly to this, make the mode of air quality control in this disclosure more intelligent convenient.
In some exemplary embodiments, the processor, when executing the sending of the control instruction to at least one of the other intelligent devices whose networking status is online, is specifically configured to:
if the second networking state of the intelligent equipment is that a local area network is on-line, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is on-line through the local area network; or
And if the second networking state of the intelligent equipment is wide area network online, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is online through a cloud platform.
The implementation determines the mode of sending the control instruction by the intelligent device through the second networking state of the intelligent device serving as the master control center, so that the control instruction can be normally sent.
In some exemplary embodiments, the processor, when executing the sending of the control instruction to the smart device with air conditioning function based on the collected data, is specifically configured to:
determining target parameters of each intelligent device with an air conditioning function according to the acquired data;
and respectively sending a control instruction to each intelligent device with the first networking state as online and the air conditioning function based on the target parameter, so that each intelligent device can adjust the parameter of each intelligent device to the target parameter according to the received control instruction.
This embodiment sends control command to each intelligent equipment that has the air conditioning function respectively through the target parameter who determines to this realizes that each intelligent equipment carries out the regulation of air quality, makes air conditioning more convenient intelligence.
In some exemplary embodiments, the processor, when executing the determining of the target parameter of each smart device having an air conditioning function according to the acquired data, is specifically configured to:
comparing the acquired data with a preset range;
and if the acquired data are not in the preset range, inputting the acquired data into a preset algorithm model, and determining target parameters of each intelligent device with an air conditioning function by using the algorithm model.
In this embodiment, when it is determined that the acquired data is no longer within the preset range, the target parameters of the intelligent devices are determined according to the preset corresponding relationship to adjust the air quality.
In some exemplary embodiments, the preset functions further include preset interactive functions;
the memory is further configured to store a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between each callback function in the intelligent device and each preset interaction function;
after executing the determining that the device attribute of the intelligent device is the support main control function, the processor is further configured to:
establishing the second corresponding relation between each callback function in the intelligent equipment and each preset interaction function;
responding to the triggering operation of any preset interactive function, if the intelligent equipment supports the preset interactive function, determining a callback function corresponding to the preset interactive function according to the second corresponding relation, and calling the determined callback function to judge whether to trigger the operation aiming at the preset acquisition function;
and if so, executing the step of responding to the triggering operation of any preset acquisition function.
The embodiment can trigger the preset collection function through the preset interaction function, so that the air data can be collected according to the requirement of a user.
In a second aspect, an embodiment of the present disclosure provides an air quality adjusting method applied in an intelligent device, where the method includes:
determining the equipment attribute of the intelligent equipment according to the equipment type of the intelligent equipment, wherein the equipment attribute comprises a support main control function and a non-support main control function;
if the device attribute of the intelligent device is determined to be the support main control function, establishing a first corresponding relation between each callback function in the intelligent device and each preset acquisition function;
responding to the triggering operation of any preset acquisition function, if the intelligent equipment supports the preset acquisition function, determining a callback function corresponding to the preset acquisition function according to the first corresponding relation, and calling the determined callback function to acquire data; if the intelligent equipment does not support the preset acquisition function, acquiring data through other intelligent equipment supporting the preset acquisition function;
and sending a control instruction to intelligent equipment with an air conditioning function based on the acquired data so as to facilitate the intelligent equipment to adjust the air quality according to the control instruction.
In some exemplary embodiments, if the smart device does not support the preset collection function, collecting data through another smart device that supports the preset collection function includes:
inquiring the first networking state of other intelligent equipment supporting the preset acquisition function; the first networking state comprises online and offline;
and sending a control instruction to at least one intelligent device in other intelligent devices with the first networking state being online, and receiving data collected by the intelligent device.
In some exemplary embodiments, the sending a control instruction to at least one of the other intelligent devices whose networking status is online includes:
if the second networking state of the intelligent equipment is that a local area network is on-line, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is on-line through the local area network; or
And if the second networking state of the intelligent equipment is wide area network online, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is online through a cloud platform.
In some exemplary embodiments, the sending a control instruction to a smart device with an air conditioning function based on the collected data, so that the smart device performs indoor air quality adjustment according to the control instruction, includes:
determining target parameters of each intelligent device with an air conditioning function according to the acquired data;
and respectively sending a control instruction to each intelligent device with the first networking state as online and the air conditioning function based on the target parameter, so that each intelligent device can adjust the parameter of each intelligent device to the target parameter according to the received control instruction.
In some exemplary embodiments, the determining target parameters of each smart device having an air conditioning function according to the collected data includes:
comparing the acquired data with a preset range;
and if the acquired data are not in the preset range, inputting the acquired data into a preset algorithm model, and determining target parameters of each intelligent device with an air conditioning function by using the algorithm model.
In some exemplary embodiments, the preset functions further include preset interactive functions;
after determining that the device attribute of the intelligent device is the support of the master control function, the method further includes:
establishing a second corresponding relation between each callback function in the intelligent equipment and each preset interaction function;
responding to the triggering operation of any preset interactive function, if the intelligent equipment supports the preset interactive function, determining a callback function corresponding to the preset interactive function according to the second corresponding relation, and calling the determined callback function to judge whether to trigger the operation aiming at the preset acquisition function;
and if so, executing the step of responding to the triggering operation of any preset acquisition function.
For the advantages of the second aspect and the embodiments of the second aspect, reference may be made to the advantages of the first aspect and the embodiments of the first aspect, which are not described herein again.
In a third aspect, the present disclosure provides a computer device, which includes a program or instructions, and when the program or instructions are executed, the computer device is configured to execute the method of the second aspect and the embodiments of the second aspect.
In a fourth aspect, the present disclosure provides a storage medium including a program or instructions, which when executed, is configured to perform the method of the second aspect and the embodiments of the second aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
In order to better understand the technical solutions, the technical solutions will be described in detail below with reference to the drawings and the specific embodiments of the specification, and it should be understood that the embodiments and specific features of the embodiments of the present disclosure are detailed descriptions of the technical solutions of the present disclosure, but not limitations of the technical solutions of the present disclosure, and the technical features of the embodiments and the specific embodiments of the present disclosure may be combined with each other without conflict.
The smart device involved in the embodiments of the present disclosure may be a mobile phone, a tablet (e.g., iPad), an air conditioner, a refrigerator, a television, an oven, and the like. The following first explains the structure of the smart device.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an intelligent device provided in an embodiment of the present disclosure. As shown in fig. 1, the intelligent device in the embodiment of the present disclosure includes: a Radio Frequency (RF)circuit 110, apower supply 120, aprocessor 130, amemory 140, aninput unit 150, adisplay unit 160, acamera 170, acommunication interface 180, and a Wireless Fidelity (WiFi) module 190.
Those skilled in the art will appreciate that the configuration of the smart device shown in fig. 1 does not constitute a limitation of the smart device, and that embodiments of the present disclosure provide smart devices that include more or fewer components than those shown, or that certain components are combined, or that a different arrangement of components.
The following describes the components of thesmart device 100 in detail with reference to fig. 1:
theRF circuit 110 may be used for receiving and transmitting data during a communication or conversation. Specifically, theRF circuit 110 sends the downlink data of the base station to theprocessor 130 for processing after receiving the downlink data; and in addition, sending the uplink data to be sent to the base station. Generally, theRF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, theRF circuitry 110 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and theintelligent device 100 can Access an Access Point (AP) through the WiFi module 190, so as to achieve Access to a data network. The WiFi module 190 may be used for receiving and transmitting data during communication.
Thesmart device 100 may be physically connected to other terminals through thecommunication interface 180. Optionally, thecommunication interface 180 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between theintelligent device 100 and the other terminals.
Theintelligent device 100 is capable of implementing communication services, and theintelligent device 100 needs to have a data transmission function, that is, theintelligent device 100 needs to include a communication module inside. Although fig. 1 shows communication modules such as theRF circuit 110, the WiFi module 190, and thecommunication interface 180, it is understood that at least one of the above components or other communication modules (such as bluetooth module) for implementing communication exists in thesmart device 100 for data transmission.
For example, when thesmart device 100 is a mobile phone, thesmart device 100 may include theRF circuit 110 and may further include the WiFi module 190; when thesmart device 100 is a computer, thesmart device 100 may include thecommunication interface 180 and may further include the WiFi module 190; when thesmart device 100 is a tablet computer, thesmart device 100 may include the WiFi module.
Thememory 140 may be used to store software programs and modules. Theprocessor 130 executes various functional applications and data processing of thesmart device 100 by executing the software programs and modules stored in thememory 140, and when theprocessor 130 executes the program codes in thememory 140, part or all of the processes in fig. 1 of the embodiments of the present disclosure can be implemented.
Alternatively, thememory 140 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, thememory 140 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theinput unit 150 may be used to receive numeric or character information input by a user and to generate key signal inputs related to user settings and function control of thesmart device 100.
Optionally, theinput unit 150 may include atouch panel 151 andother input terminals 152.
Thetouch panel 151, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 151 (for example, an operation performed by the user on or near thetouch panel 151 using any suitable object or accessory such as a finger, a stylus, etc.), and drive a corresponding connection device according to a preset program. Alternatively, thetouch panel 151 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 130, and can receive and execute commands sent by theprocessor 130. In addition, thetouch panel 151 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, theother input terminals 152 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Thedisplay unit 160 may be used to display information input by a user or information provided to a user and various menus of thesmart device 100. Thedisplay unit 160 is a display system of theintelligent device 100, and is used for presenting an interface to realize human-computer interaction.
Thedisplay unit 160 may include adisplay panel 161. Alternatively, theDisplay panel 161 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, thetouch panel 151 may cover thedisplay panel 161, and when thetouch panel 151 detects a touch operation on or near the touch panel, the touch panel transmits the touch operation to theprocessor 130 to determine the type of the touch event, and then theprocessor 130 provides a corresponding visual output on thedisplay panel 161 according to the type of the touch event.
Although in fig. 1, thetouch panel 151 and thedisplay panel 161 are two separate components to implement the input and output functions of thesmart device 100, in some embodiments, thetouch panel 151 and thedisplay panel 161 may be integrated to implement the input and output functions of thesmart device 100.
Theprocessor 130 is a control center of thesmart device 100, connects various components using various interfaces and lines, and performs various functions of thesmart device 100 and processes data by operating or executing software programs and/or modules stored in thememory 140 and calling data stored in thememory 140, thereby implementing various services based on the smart device.
Optionally, theprocessor 130 may include one or more processing units. Optionally, theprocessor 130 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into theprocessor 130.
Thecamera 170 is configured to implement a shooting function of thesmart device 100, and shoot pictures or videos.
Thesmart device 100 also includes a power source 120 (such as a battery) for powering the various components. Optionally, thepower supply 120 may be logically connected to theprocessor 130 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
Although not shown, thesmart device 100 may further include at least one sensor, which is not described in detail herein.
It is to be understood that the terms "first," "second," and the like in the following description are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, nor order.
The inventor researches and discovers that the master control center for air quality regulation in the prior art can only be a fixed intelligent device. Usually, a mobile phone or an intelligent sound device is used as a center of a smart home to adjust air quality, but since a main control center is a fixed device, when the main control center cannot be used under a certain condition, the air quality cannot be adjusted, so that the efficiency of air quality adjustment is low, and the use is very inconvenient.
Therefore, the present disclosure provides an air quality adjusting method and an intelligent device. In the present disclosure, the device attribute of any intelligent device is determined according to the device type of the intelligent device. If the device attribute of the intelligent device is determined to support the main control function, establishing a corresponding relation between each callback function in the intelligent device and a preset acquisition function so that any preset acquisition function is triggered, enabling the intelligent device to correspondingly acquire data for the triggering operation, and sending a control instruction to other intelligent devices to adjust the air quality based on the acquired data. Therefore, any intelligent device with a main control function in the disclosure can be used as a main control center to adjust air quality, the main control center is not limited to a fixed intelligent device (a mobile phone or an intelligent sound), any intelligent device with a main control function can be used as the main control center, for example, the intelligent device 1 is used as the main control center, when a user is closer to the intelligent device 2 at the moment, and the intelligent device 2 needs to be used as the main control center, the main control center can be switched from the intelligent device 1 to the intelligent device 2. From this, solved among the prior art master control center can only be the air quality who fixed smart machine leads to adjust the efficiency lower, use inconvenient problem. The present disclosure improves the efficiency of air quality conditioning and the manner is more convenient. The following describes the technical solution of the present disclosure in detail with reference to the accompanying drawings.
As shown in fig. 2A, an application scenario of the present disclosure includes a smart device 2A10, a smart device 2A20, a smart device 2A30, and a smart device 2A40, where each smart device may be a mobile phone, an air conditioner, a television, a fresh air machine, a refrigerator, and the present disclosure is not limited herein. The figure illustrates four smart devices, which in practice limit the number of smart devices.
Next, the smart device 2a10 will be described as an example of a key center. In a possible application scenario, the smart device 2a10 determines whether its device attribute is supporting the master control function according to its device type. If the device attribute of the intelligent device 2a10 is determined to be the support main control function, establishing a first corresponding relationship between each callback function in the intelligent device 2a10 and each preset acquisition function; responding to the triggering operation of any preset acquisition function, determining that the intelligent device 2A10 does not support the preset acquisition function, and acquiring data through the intelligent device 2A20, the intelligent device 2A30 and the intelligent device 2A40 which support the preset acquisition function; control commands are sent to the smart devices having an air conditioning function (e.g., the smart device 2a20 and/or the smart device 2a30) based on the collected data, so that the smart device 2a20 and/or the smart device 2a30 perform air quality adjustment according to the control commands.
Fig. 2B is a second schematic view of an application scenario of the present disclosure, where the application scenario includes a smart device 2B10, a smart device 2B20, a smart device 2B30, a smart device 2B40, a smart device 2B50, a smart device 2B60, and a smart device 2B70, where each smart device is a smart home device such as a refrigerator, a washing machine, an air conditioner, and a fresh air machine. The present disclosure is not limited herein, and seven smart devices are illustrated as an example, and the number of smart devices is not limited in practice.
Next, the smart device 2B10 will be described as an example of a key center. In a possible application scenario, the smart device 2B10 determines whether its device attribute is supporting the master control function according to its device type. If the device attribute of the intelligent device 2B10 is determined to be the support main control function, establishing a first corresponding relationship between each callback function in the intelligent device 2B10 and each preset acquisition function; in response to the triggering operation of any preset acquisition function, if it is determined that the intelligent device 2B10 supports the preset acquisition function, determining a callback function corresponding to the preset function according to the first correspondence, and calling the determined callback function to acquire data; and sending control commands to the intelligent device 2B20 with the air conditioning function, the intelligent device 2B30 and the intelligent device 2B40 based on the collected data so as to adjust the air quality according to the control commands.
Therefore, any intelligent device with the master control function can be used as information in the master control to adjust the air quality, and is not limited to one intelligent device, so that the air quality adjusting efficiency is improved, and the mode is more convenient.
As shown in fig. 3, fig. 3 is a schematic flow chart of an air quality adjusting method in the present disclosure, which may include the following steps:
step 301: determining the equipment attribute of the intelligent equipment according to the equipment type of the intelligent equipment, wherein the equipment attribute comprises a support main control function and a non-support main control function;
step 302: if the device attribute of the intelligent device is determined to be the support main control function, establishing a first corresponding relation between each callback function in the intelligent device and each preset acquisition function;
step 303: responding to the triggering operation of any preset acquisition function, and judging whether the intelligent equipment supports the preset acquisition function; if yes, go to step 304; if not, go to step 305;
step 304: determining a callback function corresponding to the preset acquisition function according to the first corresponding relation, and calling the determined callback function acquisition data;
step 305: acquiring data through other intelligent equipment supporting the preset acquisition function;
the method for determining the device attribute and determining whether the intelligent device supports the preset acquisition function can be determined by the preset relationship between the device type and the device attribute and whether the intelligent device supports the acquisition function, and the preset relationship can be shown in table 1:
| type of device | Device attributes | Presetting a collection function A | Presetting a collection function B | Preset acquisition function C |
| A | true | 1 | 1 | 1 |
| B | true | 1 | 0 | 1 |
| C | false | 0 | 1 | 1 |
A, B, C may represent intelligent devices, such as refrigerators, air conditioners, etc. Version information of each intelligence, such as a fourth generation air conditioner, etc., is also possible. Both 1 and 0 above may represent supported and unsupported. But 1 and 0 cannot be the same. True and false can represent support and non-support of a master function, respectively, but True and false cannot be the same.
In some exemplary embodiments,step 305 may be embodied as: as shown in fig. 4, the following steps may be included:
step 401: inquiring the first networking state of other intelligent equipment supporting the preset acquisition function; the first networking state comprises online and offline;
step 402: and sending a control instruction to at least one intelligent device in other intelligent devices with the first networking state being online, and receiving data collected by the intelligent device.
For example, if the master device at this time is the smart device a. Other intelligent devices supporting the preset acquisition function include: smart device B, smart device C and smart device D. When it is determined that the intelligent device A does not support the preset collection function (temperature collection, humidity collection, carbon dioxide content collection and the like), the intelligent device A queries the first networking states of the intelligent device B, the intelligent device C and the intelligent device D respectively. And if the first networking states of the intelligent device B and the intelligent device D are inquired to be online. The first networking state of smart device C is offline. And sending a control instruction to at least one of the intelligent device B and the intelligent device D, and receiving the data acquired by the intelligent device B by the intelligent device A after the intelligent device A sends the control instruction to the intelligent device B.
From this, when the smart machine who is the key center does not support to predetermine the collection function, only need to send control command to other online smart machines that support this to predetermine the collection function, carry out the collection of data through other smart machines promptly to this, make the mode of air quality control in this disclosure more intelligent convenient.
In order to enable normal transmission of control commands in different second network states. In some exemplary embodiments, theaforementioned step 402 can be embodied as: if the second networking state of the intelligent equipment is that a local area network is on-line, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is on-line through the local area network; or if the second networking state of the intelligent device is wide area network online, the control instruction is sent to at least one intelligent device in other intelligent devices of which the first networking state is online through a cloud platform.
For example, as shown in fig. 5A, when thetelevision 501 serving as the key center needs to transmit a control instruction to other smart devices. If it is determined that the second connection status of the television is that the local area network is online, thetelevision 501 needs to send the control instruction to theintelligent device 502, theintelligent device 503, theintelligent device 504, and theintelligent device 505 through the local area network.
If the second connection status of the television is that the wan is online, as shown in fig. 5B, thetelevision 501 needs to forward the control command to theserver 506, and then theserver 506 sends the control command to theintelligent device 502, theintelligent device 503, theintelligent device 504, and theintelligent device 505.
Therefore, the mode of sending the control command by the intelligent device is determined through the second networking state of the intelligent device serving as the master control center, so that the control command can be normally sent.
Step 306: and sending a control instruction to intelligent equipment with an air conditioning function based on the acquired data so as to facilitate the intelligent equipment to adjust the air quality according to the control instruction.
In some exemplary embodiments,step 306 may be embodied as: determining target parameters of each intelligent device with an air conditioning function according to the acquired data; and respectively sending a control instruction to each intelligent device with the first networking state as online and the air conditioning function based on the target parameter, so that each intelligent device can adjust the parameter of each intelligent device to the target parameter according to the received control instruction.
For example, as described above, the first networking status of the smart device B and the smart device D having the air conditioning function is determined to be online. The smart device C is offline. And if the target parameters of the intelligent equipment are determined according to the acquired data. And if the target parameter of the intelligent device B is determined to be B, the target parameter of the intelligent device C is determined to be C, and the target parameter of the intelligent device D is determined to be D. Then a control command is sent to smart device B to adjust the parameter to B (e.g., if smart device B is an air conditioner, the control command may be to adjust the temperature to 28 degrees celsius). A control command is sent to the smart device D, which may be to adjust the parameter to D (for example, if the smart device D is a new fan, the control command may be to adjust the wind speed to a middle gear). And as the first networking state of the intelligent device C is offline, the control instruction is not sent to the intelligent device C. And when the first networking state of the intelligent equipment is determined to be the online state, sending a control instruction to the intelligent equipment C.
Therefore, the control instruction is sent to each intelligent device with the air conditioning function through the determined target parameters, so that each intelligent device can adjust the air quality, and the air conditioning is more convenient and intelligent.
In order to make the determined target parameters more accurate, in some exemplary embodiments, the acquired data is compared with a preset range; and if the acquired data are not in the preset range, inputting the acquired data into a preset algorithm model, and determining target parameters of each intelligent device with an air conditioning function by using the algorithm model.
For example, the target parameters of each smart device may be determined through a pre-trained neural network model. For example, when the acquired data is not within the preset range, the acquired data is input into a pre-trained neural network, and the neural network is used for determining target parameters of each intelligent device with an air conditioning function.
Different algorithm models can be preset in different intelligent device combinations, and the device combinations comprise intelligent devices with air conditioning functions and intelligent devices without air conditioning functions. As shown in table 2:
| equipment combination | Algorithm model |
| Intelligent device 1, intelligent device 2 and intelligent device 3 | A |
| Intelligent device 1, intelligent device 2, intelligent device 4 and intelligent device 5 | B |
| Intelligent device 2, intelligent device 3, intelligent device 4 and intelligent device 6 | C |
| … | … |
For example, the target parameters of the intelligent devices including the intelligent device 1, the intelligent device 2 and the intelligent device 3 in the room can be determined by the preset algorithm model a.
Therefore, when the collected data are determined to be not in the preset range, the target parameters of the intelligent devices are determined to adjust the air quality according to the preset corresponding relation. The target parameters are determined more accurately.
In some exemplary embodiments, the preset functions further include preset interactive functions; establishing the second corresponding relation between each callback function in the intelligent equipment and each preset interaction function; responding to the triggering operation of any preset interactive function, if the intelligent equipment supports the preset interactive function, determining a callback function corresponding to the preset interactive function according to the second corresponding relation, and calling the determined callback function to judge whether to trigger the operation aiming at the preset acquisition function; and if so, executing the step of responding to the triggering operation of any preset acquisition function.
For example, the preset interaction function may be a voice function, and if the smart device supports the voice function, the user may interact with the smart device through voice. For example, a user may have the smart device collect data via voice input. And the intelligent equipment determines to trigger the operation aiming at the preset acquisition function through voice analysis, and executes the triggering operation corresponding to any preset acquisition function.
Therefore, the preset acquisition function is triggered through the preset interaction function, and the air data can be acquired according to the requirements of the user.
For further understanding of the technical solution of the present disclosure, the following detailed description with reference to fig. 6 may include the following steps:
step 601: determining the equipment attribute of the intelligent equipment according to the equipment type of the intelligent equipment, wherein the equipment attribute comprises a support main control function and a non-support main control function;
step 602: if the device attribute of the intelligent device is determined to be the support main control function, establishing a first corresponding relation between each callback function in the intelligent device and each preset acquisition function;
step 603: responding to the triggering operation of any preset acquisition function, and judging whether the intelligent equipment supports the preset acquisition function; if yes, go to step 604; if not, go to step 605;
step 604: determining a callback function corresponding to the preset acquisition function according to the first corresponding relation, and calling the determined callback function acquisition data;
step 605: inquiring the first networking state of other intelligent equipment supporting the preset acquisition function; the first networking state comprises online and offline; sending a control instruction to at least one intelligent device in other intelligent devices with the first networking state being online, and receiving data collected by the intelligent device;
step 606: determining target parameters of each intelligent device with an air conditioning function according to the acquired data;
step 607: and respectively sending a control instruction to each intelligent device with the first networking state as online and the air conditioning function based on the target parameter, so that each intelligent device can adjust the parameter of each intelligent device to the target parameter according to the received control instruction.
Based on the same inventive concept, the embodiment of the present disclosure further provides a schematic structural diagram of another intelligent device. As shown in fig. 7, theintelligent device 700 includes a device attribute determining module 710, a first corresponding relationship determining module 720, a preset acquisition function triggering operation module 730, and a control instruction sending module 740.
A device attribute determining module 710, configured to determine a device attribute of the intelligent device according to a device type of the intelligent device, where the device attribute includes a support main control function and a non-support main control function;
a first corresponding relationship determining module 720, configured to establish a first corresponding relationship between each callback function in the intelligent device and each preset acquisition function if it is determined that the device attribute of the intelligent device is the support master control function;
a preset acquisition function triggering operation module 730, configured to respond to a triggering operation of any preset acquisition function, determine, according to the first correspondence, a callback function corresponding to the preset acquisition function if the intelligent device supports the preset acquisition function, and call the determined callback function to acquire data; if the intelligent equipment does not support the preset acquisition function, acquiring data through other intelligent equipment supporting the preset acquisition function;
and the control instruction sending module 740 is configured to send a control instruction to the intelligent device with an air conditioning function based on the acquired data, so that the intelligent device adjusts the air quality according to the control instruction.
In some exemplary embodiments, the preset acquisition function triggers the operation module 730 to specifically:
inquiring the first networking state of other intelligent equipment supporting the preset acquisition function; the first networking state comprises online and offline;
and sending a control instruction to at least one intelligent device in other intelligent devices with the first networking state being online, and receiving data collected by the intelligent device.
In some exemplary embodiments, the preset collection function operation module 730 is specifically configured to:
if the second networking state of the intelligent equipment is that a local area network is on-line, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is on-line through the local area network; or
And if the second networking state of the intelligent equipment is wide area network online, sending the control instruction to at least one intelligent equipment in other intelligent equipment of which the first networking state is online through a cloud platform.
In some exemplary embodiments, the control instruction sending module 740 is specifically configured to:
determining target parameters of each intelligent device with an air conditioning function according to the acquired data;
and respectively sending a control instruction to each intelligent device with the first networking state as online and the air conditioning function based on the target parameter, so that each intelligent device can adjust the parameter of each intelligent device to the target parameter according to the received control instruction.
In some exemplary embodiments, the control instruction sending module 740 is specifically configured to:
comparing the acquired data with a preset range;
and if the acquired data are not in the preset range, inputting the acquired data into a preset algorithm model, and determining target parameters of each intelligent device with an air conditioning function by using the algorithm model.
In some exemplary embodiments, the preset functions further include preset interactive functions; the smart device further comprises:
a second corresponding relationship establishing module 750, configured to establish a second corresponding relationship between each callback function in the intelligent device and each preset interaction function after determining that the device attribute of the intelligent device is the support master control function;
a preset interactive function triggering operation module 760, configured to respond to a triggering operation of any preset interactive function, determine, if the smart device supports the preset interactive function, a callback function corresponding to the preset interactive function according to the second correspondence, and call the determined callback function to determine whether to trigger an operation for a preset acquisition function;
the execution response module 770 is configured to execute a step of responding to a trigger operation of any preset acquisition function if the trigger operation is yes.
Embodiments of the present disclosure also provide a computer-readable medium on which a computer program is stored, which when executed by a processor implements the steps of any of the methods described above.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present disclosure may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are, in whole or in part, generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The technical solutions provided by the present disclosure are introduced in detail, and the present disclosure applies specific examples to explain the principles and embodiments of the present disclosure, and the descriptions of the above examples are only used to help understanding the method and the core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.