A smart home management method, device, equipment and storage medium
By acquiring instruction conversion tables and function configuration tables, and drawing panel interfaces, the problem of high workload in the research and development and maintenance of smart home device panels is solved. This enables rapid adaptation to devices of different brands and models, reduces research and development costs, and improves interface drawing efficiency.
Patent Information
- Application Number
- CN202211501519.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2026-07-10
- Estimated Expiration
- 2042-11-28
AI Technical Summary
In existing technologies, the development, testing, and maintenance of smart home device panels involve a large workload, and different models of air conditioner indoor units require the development of different firmware and control panels, resulting in a heavy workload.
By obtaining the instruction conversion table and function configuration table of smart home devices, the panel interface can be drawn, reducing the need for panel development for each model of device. By utilizing the conversion relationship between the object model and device control instructions, it can be adapted to devices of different brands and models.
It enables rapid creation of panel interfaces, reducing the workload of panel development, testing, and maintenance, and improving panel interface creation efficiency and product stability.
Smart Images

Figure CN115981170B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and in particular to a smart home management method, device, equipment and storage medium. Background Technology
[0002] Currently, smart homes are gradually becoming a part of people's lives. Common smart home devices include smart air conditioners, smart refrigerators, and smart lights. Users can control these devices remotely or locally via mobile devices, easily adjusting their home environment to a more comfortable state and greatly enhancing their living experience. In related technologies, mobile terminals need to download corresponding control panels for the smart home devices from the cloud to further enable user control. Due to the diverse types and models of smart home devices, the research, development, testing, and maintenance of these control panels are quite extensive. Summary of the Invention
[0003] This application provides a smart home management method, device, equipment, and storage medium to solve the problem of the large workload in the research, development, testing, and maintenance of smart home device panels in related technologies.
[0004] To solve the above-mentioned technical problems, this application is implemented as follows:
[0005] In a first aspect, embodiments of this application provide a smart home management method, including:
[0006] Obtain the instruction conversion table and function configuration table of smart home devices. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control command. The function configuration table is used to indicate the support of smart home devices for preset sub-functions in the control function.
[0007] Send the instruction translation table and function configuration table to smart home devices;
[0008] Obtain confirmation results from smart home devices regarding the function configuration table;
[0009] Based on the confirmation results, draw the panel interface for controlling smart home devices.
[0010] Secondly, embodiments of this application also provide a smart home management device, including:
[0011] The first acquisition module is used to acquire the instruction conversion table and function configuration table of smart home devices. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instruction. The function configuration table is used to indicate the support of smart home devices for preset sub-functions in the control function.
[0012] The first sending module is used to send the instruction conversion table and function configuration table to smart home devices;
[0013] The second acquisition module is used to acquire the confirmation result of the function configuration table sent by the smart home device;
[0014] The first drawing module is used to draw the panel interface for controlling smart home devices based on the confirmation results.
[0015] Thirdly, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method.
[0016] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0017] The smart home management method provided in this application involves obtaining an instruction conversion table and a function configuration table for smart home devices, sending these tables to the smart home devices, obtaining confirmation results from the smart home devices regarding the function configuration tables, and drawing a panel interface for controlling the smart home devices based on the confirmation results. This application embodiment can conveniently and quickly draw corresponding panel interfaces for various models of smart home devices without the need for pre-developing panels for each model, thereby helping to reduce the workload of developing, testing, and maintaining corresponding panels for smart home devices. Attached Figure Description
[0018] Figure 1 This is a technical schematic diagram of the operation of an existing air conditioning remote control system;
[0019] Figure 2 This is a structural block diagram of an air conditioning remote control system that can implement the smart home management method provided in the embodiments of this application;
[0020] Figure 3 A flowchart illustrating the smart home management method provided in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram illustrating the working principle of the smart home management method provided in the embodiments of this application;
[0022] Figure 5 This is a schematic diagram of the structure of the smart home management device provided in the embodiments of this application. Detailed Implementation
[0023] To make the technical problems, technical solutions, and advantages of this application clearer, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as particular configurations and components are provided merely to aid in a comprehensive understanding of the embodiments of this application. Therefore, those skilled in the art should understand that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this application. Furthermore, for clarity and brevity, descriptions of known functions and structures have been omitted.
[0024] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms "an" or "a," and similar terms, do not indicate a quantity limitation, but rather indicate the presence of at least one.
[0025] The smart home management method provided in this application can be applied to electronic devices such as mobile terminals, wearable devices, or tablet computers. In the smart home management scenario, the managed smart home devices can be air conditioners, refrigerators, or lights, etc., without specific limitations. For simplicity, the following description will primarily focus on the application scenario of managing air conditioners using a mobile terminal to illustrate the method provided in this application.
[0026] In applications where mobile terminals manage air conditioners, the mobile terminal, air conditioner, and server can form a remote air conditioner control system. The mobile terminal and the air conditioner can communicate through the server. Of course, in some feasible implementations, the mobile terminal and the air conditioner can also communicate at a short distance through Bluetooth, infrared, or other communication methods.
[0027] like Figure 1 As shown, Figure 1 This is a schematic diagram illustrating the working principle of an existing air conditioning remote control system. Specifically, existing technologies mainly involve creating different gateway firmware and device control panels for different air conditioning models, and adapting them through one-to-one corresponding solutions.
[0028] For example, when connecting to a model A air conditioner of a certain brand, firmware A is created for the air conditioner gateway, reporting "model A" to the cloud. When a mobile terminal remotely controls the air conditioner via an application (APP), the mobile terminal reads the air conditioner's model A and loads the corresponding device control panel from the cloud. The air conditioner gateway receives the control protocol in ModBus or RS485 format from the device control panel and sends it to the indoor unit of the air conditioner, thereby enabling remote control of the air conditioner.
[0029] Existing air conditioning remote control systems have the following problems during operation: different firmware needs to be developed for different models of air conditioning indoor units, resulting in a large workload for firmware development, testing, and maintenance; different control panel components need to be developed for different models of air conditioning indoor units, resulting in a large workload for panel development, testing, and maintenance; inconsistent status information reported by different air conditioning gateways leads to complex parsing on both the cloud and the APP.
[0030] like Figure 2 As shown, Figure 2 This is a structural block diagram of an air conditioning remote control system that implements the method provided in the embodiments of this application. In this air conditioning remote control system, the mobile terminal can have an app installed, the server can be an Internet of Things (IoT) cloud platform, and the air conditioner can include an air conditioning gateway, an indoor unit, and an outdoor unit. The air conditioning control system enables the mobile terminal to remotely control the indoor and outdoor units through the air conditioning gateway. In one example, the app pushes control commands to the air conditioning gateway via the IoT cloud platform, and the gateway then converts the control commands sent by the app into control commands for the indoor unit, thus achieving remote control of the air conditioner.
[0031] The main working principle of the air conditioner remote control system is as follows: The APP transmits the control protocol of the air conditioner indoor unit to the air conditioner indoor unit through the air conditioner gateway to realize remote control of the air conditioner; the air conditioner gateway synchronizes the status of the air conditioner to the IoT cloud platform, and the mobile terminal can read the status of the air conditioner from the IoT cloud platform and parse it into status information that can be read by the user.
[0032] Figure 3 This is a flowchart illustrating the smart home management method provided in the embodiments of this application, such as... Figure 3 As shown, the method provided in this application embodiment includes:
[0033] Step 301: Obtain the instruction conversion table and function configuration table of the smart home device. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instruction. The function configuration table is used to indicate the support of the smart home device for the preset sub-functions in the control function.
[0034] Step 302: Send the instruction conversion table and function configuration table to the smart home device;
[0035] Step 303: Obtain the confirmation result of the function configuration table sent by the smart home device;
[0036] Step 304: Based on the confirmation results, draw the panel interface for controlling smart home devices.
[0037] The method provided in this application can be applied to electronic devices such as mobile terminals, wearable devices, or tablet computers. For simplicity, the following mainly uses mobile terminals as the execution subject of the method provided in this application. Similarly, the smart home devices mentioned above can be such as air conditioners, refrigerators, or lights, but air conditioners can be used as an example for illustration.
[0038] In step 301, the mobile terminal obtains the air conditioner's instruction conversion table and function configuration table.
[0039] In various implementation scenarios, mobile terminals can communicate with servers such as IoT cloud platforms. Users can select the type of smart home device to be managed, or the specific brand and model of the smart home device, on the mobile terminal. Based on the user's selection, the mobile terminal can download the corresponding instruction conversion table and function configuration table from the server.
[0040] In other implementation scenarios, mobile terminals can establish a communication connection with air conditioners via WiFi networks, which can then connect to a server via broadband networks. The mobile terminal app can select air conditioners on the same WiFi network, and the air conditioner can send its model information to the server. This allows the server to send instruction conversion tables and function configuration tables to the mobile terminal based on the air conditioner's signal information.
[0041] Of course, in some other implementation scenarios, the mobile terminal may also have an instruction conversion table and a function configuration table pre-stored. In step 301, the mobile terminal reads the instruction conversion table and the function configuration table from the memory.
[0042] In this embodiment, the instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instructions.
[0043] Generally, the control functions of an air conditioner can include switching on / off, temperature adjustment, and fan speed adjustment, and each of these control functions can have a corresponding object model. It's easy to understand that an object model can be a data model defined by an IoT platform for the product, used to describe the product's functions. For different brands or models of air conditioners, the same control function can correspond to the same object model.
[0044] In some scenarios, device control commands can be considered as the control commands from the air conditioning gateway to the indoor unit, as mentioned above. Unlike the object model, the same control function may result in different device control commands across different brands or models of air conditioners. For example, different brands of air conditioners use different communication protocols, leading to different device control commands for the same function. The command conversion table can include the conversion relationship between the object model and device control commands.
[0045] The function configuration table is used to indicate how well smart home devices support preset sub-functions in the control functions;
[0046] In addition to the aforementioned on / off, temperature adjustment, and fan speed adjustment, air conditioner control functions may also include some non-common functions, i.e., functions not supported by every air conditioner, such as child lock, lighting, and defrosting functions. In some implementations, preset sub-functions may refer to these non-common functions. Of course, in actual applications, preset sub-functions can also be adjusted as needed.
[0047] In some examples, the function configuration table can be represented as a table, listing each preset sub-function and its corresponding identifier. This identifier indicates whether the preset sub-function is supported, such as whether the air conditioner supports or does not support it. In other examples, the function configuration table can also be a string of characters, where each character represents a preset sub-function, and the character at that position indicates whether the preset sub-function is supported.
[0048] In step 302, the mobile terminal can send the instruction conversion table and function configuration table to the smart home device.
[0049] In one implementation scenario, the mobile terminal sends an instruction conversion table and a function configuration table to the air conditioning gateway, so that the air conditioning gateway stores the instruction conversion table. When the mobile terminal subsequently sends control signals in the form of object models to the air conditioning gateway, the air conditioning gateway can call the instruction conversion table to convert the control signals in the form of object models into device control commands that the indoor air conditioning unit can recognize, thereby realizing the control of the indoor air conditioning unit.
[0050] The function configuration table indicates how well smart home devices support preset sub-functions in the control functions. In some scenarios, the function configuration table sent by the mobile terminal to the air conditioner may not be consistent with the actual support of the air conditioner for each preset sub-function. Therefore, the air conditioner can confirm the function configuration table after receiving it.
[0051] For example, the function configuration table indicates that the air conditioner supports the child lock function, but the air conditioner does not actually support the child lock function. In this case, the air conditioner can modify the corresponding identifier or character of the child lock function in the function configuration table so that the modified function configuration table can reflect the actual support of the air conditioner for each preset sub-function.
[0052] Of course, if the function configuration table sent by the mobile terminal to the air conditioner can accurately reflect the air conditioner's actual support for each preset sub-function, then the air conditioner does not need to modify the function configuration table and can send feedback to the mobile terminal to indicate the accuracy of the function configuration table.
[0053] The process of the air conditioner modifying or providing feedback on the function configuration table can be considered as the air conditioner's confirmation process of the function configuration table. The modified function configuration table or the feedback indicating the accuracy of the function configuration table can be considered as the air conditioner's confirmation result of the function configuration table. These confirmation results can be sent by the air conditioner to the mobile terminal.
[0054] Accordingly, in step 303, the mobile terminal can obtain the confirmation result of the function configuration table sent by the air conditioner. Based on the confirmation result, the mobile terminal can obtain the air conditioner's support for each preset sub-function with relatively accurate information.
[0055] In step 304, the mobile terminal can draw a panel interface for controlling the air conditioner based on the confirmation result.
[0056] For example, the panel interface can include controls that implement different control functions. The panel interface drawn in step 304 can include controls corresponding to common functions, as well as controls corresponding to non-common functions actually supported by the air conditioner. Controls corresponding to non-common functions not supported by the air conditioner can be excluded from the panel interface. In other words, when the mobile terminal draws the panel interface for controlling the air conditioner, it will use the air conditioner's support for preset sub-functions; that is, in step 304, the mobile terminal will apply the above-mentioned confirmation results when drawing the panel interface.
[0057] Preset sub-functions can be all or part of the function configurations recorded in the instruction conversion table. Correspondingly, the preset sub-functions supported by the air conditioner can have corresponding object models. After the user clicks the control corresponding to the preset sub-function, the mobile terminal can send control signals in the form of object models to the air conditioner. The air conditioner can then use the instruction conversion table to convert the control signals in the form of object models to obtain device control instructions. Therefore, when drawing the panel interface, the mobile terminal can directly create corresponding controls for the control functions supported by the air conditioner without considering the device control instructions (such as communication protocols or encodings) used by different brands and models of air conditioners when controlling the indoor unit. This effectively reduces the difficulty of drawing the panel interface and improves the efficiency of panel interface drawing.
[0058] It is worth emphasizing again that in the smart home management method provided in this application embodiment, the managed smart home devices can be air conditioners, refrigerators, lights, televisions, or fans, etc., and will not be described exhaustively here.
[0059] The smart home management method provided in this application involves obtaining an instruction conversion table and a function configuration table for smart home devices, sending these tables to the smart home devices, obtaining confirmation results from the smart home devices regarding the function configuration tables, and drawing a panel interface for controlling the smart home devices based on the confirmation results. This application embodiment can conveniently and quickly draw corresponding panel interfaces for various models of smart home devices without the need for pre-developing panels for each model, thereby helping to reduce the workload of developing, testing, and maintaining corresponding panels for smart home devices.
[0060] Optionally, step 301 above, obtaining the instruction conversion table and function configuration table of the smart home device, includes:
[0061] Receive the first input regarding device information for smart home devices;
[0062] In response to the first input, a download request carrying device information is sent to the server;
[0063] The server receives the instruction conversion table and function configuration table of the smart home device in response to the download request.
[0064] like Figure 4 As shown in the figure, in a practical application scenario, after the air conditioning gateway is configured on the network, the user can perform initialization operations on the APP on the mobile terminal.
[0065] Specifically, users can access the air conditioner gateway configuration interface through the app and select the air conditioner indoor unit model. The air conditioner indoor unit model can be sent from the app to the cloud (corresponding to the server), and the cloud will send the instruction conversion table and function configuration table corresponding to the air conditioner indoor unit model back to the app.
[0066] In this application scenario, both the air conditioning gateway and the indoor air conditioning unit are components of the air conditioner, which in turn corresponds to the aforementioned smart home devices. The user's input of the indoor air conditioning unit model in the air conditioning gateway configuration interface corresponds to the first input, and the selected indoor air conditioning unit model corresponds to the device information of the smart home device.
[0067] The air conditioner indoor unit model number sent by the app to the cloud can be included in the download request. This download request is used to request the download of the instruction conversion table and function configuration table corresponding to the air conditioner indoor unit model from the server. In response to the download request from the app, the server can send the instruction conversion table and function configuration table corresponding to the air conditioner indoor unit model to the electronic device. From the perspective of the mobile terminal, it can receive the instruction conversion table and function configuration table of the smart home device sent by the server in response to the download request.
[0068] In other application scenarios, mobile terminals can also send the instruction conversion table and function configuration table to smart home devices during short-range communication (such as Bluetooth communication) before downloading them from the server via an app.
[0069] As can be seen from the above application scenarios, in this embodiment, the mobile terminal can download the instruction conversion table and function configuration table of the smart home device from the server according to the device information selected by the user, and the difficulty for the mobile terminal to obtain the instruction conversion table and function configuration table is relatively low.
[0070] In some application scenarios, the object model can refer to the function names and actions included in the air conditioning gateway. By defining the object model, the device control and status representation of the air conditioning gateway by the APP and the server (e.g., the cloud) can be standardized. In one example, the object model is defined as shown in the table below:
[0071] Function Description action physical model switch open Switch:1 switch close Switch:0
[0072] The instruction conversion table, also known as the instruction conversion dictionary table, can represent the conversion relationship between the air conditioner physical model and the air conditioner indoor unit control instructions (i.e., equipment control instructions).
[0073] In various application scenarios, the control protocol for air conditioning gateways is typically in ModBus format. Different manufacturers may differ in register IDs, function codes, and action codes. In one example, the conversion table from the physical model of the air conditioning gateway to the ModBus control protocol format of the indoor unit is designed as follows:
[0074] Function Description action physical model Register ID Functional coding Action coding switch open Switch:1 06 07d0 5721 switch close Switch:0 06 07d0 5720
[0075] Optionally, the function configuration table includes a string, wherein the order of each character in the string corresponds to a preset sub-function, and each character is used to indicate the support of the smart home device for the preset sub-function corresponding to the order.
[0076] The function configuration table, also known as the function configuration dictionary table, can represent the function descriptions supported by the air conditioners currently mounted on the air conditioning gateway.
[0077] In one implementation, the function configuration table can be represented by a long integer string, where each character can be a binary number. The order of each character in the long integer string corresponds to a non-common function (corresponding to a preset sub-function), and the number in each character represents the level of support for the corresponding non-common function. In one example, the function configuration table design can be as follows:
[0078] 1st place 2nd place 3rd place 4th place 5th place 6th place 7th place 8th place Wind speed level 3 Wind speed level 4 Level 5 wind speed Energy saving Going out Child lock defrosting dry
[0079] As can be seen, each item in the function configuration table corresponds to a preset sub-function. Based on the above function configuration table design, and taking an example, when the function configuration table is represented as 00010111, it means that the air conditioner supports the functions of "energy saving", "child lock", "defrost" and "drying", but does not support the functions of "level 3 fan speed", "level 4 fan speed", "level 5 fan speed" and "away".
[0080] In this embodiment, the string-based function configuration table has a relatively simple format and occupies less storage space, which can effectively save storage space and improve the transmission efficiency of the function configuration table between terminals.
[0081] Optionally, in step 304, based on the confirmation result, a panel interface for controlling smart home devices is drawn, including:
[0082] Based on the confirmation results, determine the preset sub-functions supported by the smart home devices;
[0083] Draw the panel interface, which includes first controls corresponding to the preset sub-functions supported by the smart home device.
[0084] In one implementation, after the mobile terminal sends the function configuration table to the air conditioning gateway via the APP, the air conditioning gateway can report the relevant configurations of the function differences to the cloud. The relevant configurations of the function differences can correspond to the confirmation results of the function configuration table sent by the smart home device.
[0085] In some examples, the confirmation result of the feature configuration table can be either the original feature configuration table or a revised feature configuration table. For simplicity, the confirmation result of the feature configuration table can be referred to as configuration information.
[0086] like Figure 4 As shown, the mobile app reads configuration information to draw the corresponding function control panel (i.e., the panel interface used to control smart home devices). By reading the configuration information, the app can automatically query differentiated functions and thus automatically configure them.
[0087] Specifically, after the app enters the page used to draw the control panel interface, it can download configuration information from the cloud to adjust the control panel interface for the air conditioner. For example, after generating corresponding controls for common functions, controls are then generated for the non-common functions supported by the air conditioner. The non-common functions can correspond to the aforementioned preset sub-functions, and the controls generated for the non-common functions supported by the air conditioner can correspond to the first control mentioned above.
[0088] As can be seen, this embodiment can draw the corresponding panel interface according to the support of smart home devices for preset sub-functions, so that the mobile terminal can automatically draw the panel interface that matches the control function of the smart home device. While meeting the control needs of smart home devices, it reduces the resource consumption caused by the research and development and testing of panel interfaces of different smart home devices.
[0089] In one implementation, after the instruction conversion table is sent to the air conditioner (corresponding to the smart home device) and the panel interface for controlling the air conditioner is drawn, the mobile terminal has a full set of air conditioner object models pre-installed. When the air conditioner is controlled through the panel interface, the mobile terminal sends a standard object model (or control signal in the form of an object model) to the cloud. The cloud pushes the standard object model to the air conditioner gateway. The air conditioner gateway converts the standard object model into Modbus protocol based on the instruction conversion table to control the indoor unit of the air conditioner.
[0090] Thus, in practical applications, different air conditioner models can be dynamically configured on mobile terminals. A single APP panel component and air conditioner gateway firmware can control all brands and models. By connecting an APP to a control panel, different brands and models of air conditioners can be controlled, greatly reducing R&D costs and improving product stability.
[0091] Optionally, after drawing the panel interface for controlling smart home devices based on the confirmation results, the method further includes:
[0092] Send the mobile terminal's identity identifier and the smart home device's identity identifier to the server so that the server can associate and store the mobile terminal's identity identifier and the smart home device's identity identifier.
[0093] In this embodiment, the server can be a blockchain server or other servers with storage capabilities, etc., without specific limitations. The server can associate and store the identity identifier of the mobile terminal (denoted as the first identity identifier) sent by the mobile terminal with the identity identifier of the smart home device (denoted as the second identity identifier). In this way, when the user uses the mobile terminal to control smart home devices such as air conditioners, the server can determine the second identity identifier based on the first identity identifier carried in the sent control signal (e.g., a standard object model) and the stored association relationship between the first and second identity identifiers, and forward the standard object model to the correct smart home device according to the second identity identifier, effectively avoiding the situation where the mobile terminal mistakenly controls the smart home device.
[0094] Optionally, after drawing the panel interface for controlling smart home devices based on the confirmation result in step 304, the method further includes:
[0095] Upon receiving a second input requesting the addition of a control, the panel interface is updated in response to the second input, and the updated panel interface includes the newly added second control.
[0096] Upon receiving a third input to the second control, in response to the third input, the system receives a target control command sent by a remote control device associated with the smart home device.
[0097] Obtain the function information corresponding to the second control, and send the function information and target control instructions to the server so that the server updates at least one item in the instruction conversion table and function configuration table according to the function information and target control instructions.
[0098] In one application scenario, the panel interface displayed on the mobile terminal may include controls for most of the air conditioner's control functions. However, the air conditioner may also support other control functions (hereinafter referred to as the first function). These first functions may not be obtained by the server, and therefore are not reflected in the instruction conversion table and function configuration table.
[0099] In this embodiment, the mobile terminal can receive and respond to a second input from the user to update the panel interface. The second input can be used to control the addition of a new control to the panel interface. Accordingly, the updated panel interface can include the newly added second control. The specific method of the second input is not specifically limited here.
[0100] For example, the first function could be a child lock, and the second control could be a control specifically designed for the child lock function. Users can select the child lock function from a menu provided by the app, or name or annotate the second control, allowing the mobile device to obtain the corresponding functional information.
[0101] However, if the control signal for the child lock function is unknown, the user's input to the second control on the panel interface will not affect the air conditioner.
[0102] In order for electronic devices to receive the control signal of the child lock function, users can operate the air conditioner remote control (corresponding to the remote control device). For example, by clicking the child lock button on the remote control, the remote control will issue the control command corresponding to the child lock function (corresponding to the target control command mentioned above).
[0103] In one example, the target control command can be an infrared signal. The mobile terminal is equipped with an infrared sensor, which can receive the target control command and further analyze it.
[0104] To establish a relationship between the target control command and the child lock function, during the process of receiving the target control command, or before or after receiving the target control command, the user can make a third input to the second control, such as clicking the second control, so that the second control can be associated with the target control command.
[0105] As shown above, the mobile terminal can obtain the function information corresponding to the second control. When the second control is associated with the target control command, the mobile terminal can associate the function information and the target control command and send the function information and the target control command to the server.
[0106] The server can update at least one item in the instruction translation table and the function configuration table based on the function information and target control instructions.
[0107] For example, the server can create a new object model for the child lock function mentioned above, and the target control instruction can be used as a new device control instruction. The server adds the new object model and the new device control instruction to the instruction conversion table to update the instruction conversion table.
[0108] For example, the function configuration table can be a binary string. The first four characters of the binary string can define the number of valid characters that follow, with each valid character corresponding to a preset sub-function. The initial function configuration table might have seven valid characters. After receiving the function information, the server can update the first four characters to add a valid character to the binary string, corresponding to the child lock function. In this way, the function configuration table is updated.
[0109] In some implementations, after the server subsequently receives management requests for the air conditioner from other mobile terminals, it can send an updated instruction translation table and function configuration table to the mobile terminals.
[0110] In this embodiment, based on user input, the mobile terminal can enhance the control functions of smart home devices on the panel interface, thereby improving the user's management of smart home devices. Simultaneously, the mobile terminal sends function information and target control commands to the server, enabling the server to update the command conversion table and function configuration table of the smart home devices, ensuring the accuracy and comprehensiveness of these tables.
[0111] Optionally, after drawing the panel interface for controlling smart home devices based on the confirmation results, the method further includes:
[0112] Generate operation identifiers corresponding to smart home devices;
[0113] Upon receiving a selection input for multiple operation identifiers, in response to the selection input, a target interface is drawn. The target interface includes a third control, and the control function corresponding to the third control is a control function commonly supported by multiple smart home devices corresponding to the multiple operation identifiers.
[0114] Upon receiving a fourth input to the third control, in response to the fourth input, control signals corresponding to the second control are sent to multiple smart home devices.
[0115] In some application scenarios, users may manage multiple smart home devices through the same mobile terminal. In this way, users can operate on the mobile terminal and draw corresponding panel interfaces for each smart home device in the APP.
[0116] In this embodiment, for each smart home device with a corresponding panel interface, the APP can generate corresponding operation icons, such as small icons or selection buttons.
[0117] Users can select input for multiple of the above-mentioned operation identifiers. In response to the selection input, the mobile terminal can draw a target interface, which includes a third control. The third control can correspond to a control function (denoted as the first control function). The first control function can be a control function commonly supported by the smart home devices corresponding to the operation identifier selected by the user.
[0118] For example, if the user selects multiple operation icons that correspond to smart home devices such as air conditioner A, air conditioner B, and television, and these smart home devices all support on / off functions, then the control functions corresponding to the third control can include on / off functions.
[0119] Users can input a fourth signal into the third control, such as by clicking the third control. In response to this fourth input, the mobile terminal can simultaneously send a power-off signal (i.e., the control signal corresponding to the second control) to air conditioner A, air conditioner B, and the television.
[0120] The shutdown signal can be in the form of a physical model. Air conditioner A, air conditioner B, and television can generate device control commands in the format of their respective internal communication protocols based on the physical model signal and the instruction conversion table, so as to realize the shutdown action.
[0121] As can be seen, in this embodiment, the mobile terminal responds to the user's input and can draw a common target interface for multiple smart home devices. The target interface includes a third control corresponding to the control functions commonly supported by the multiple smart home devices. By operating the third control, the user can manage multiple smart home devices simultaneously, greatly improving the efficiency and convenience of the user's management of smart home devices.
[0122] like Figure 5 As shown in the illustration, this application also provides a smart home management device, including:
[0123] The first acquisition module 501 is used to acquire the instruction conversion table and function configuration table of the smart home device. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instruction. The function configuration table is used to indicate the support of the smart home device for the preset sub-functions in the control function.
[0124] The first sending module 502 is used to send the instruction conversion table and the function configuration table to the smart home device;
[0125] The second acquisition module 503 is used to acquire the confirmation result of the function configuration table sent by the smart home device;
[0126] The first drawing module 504 is used to draw the panel interface for controlling smart home devices based on the confirmation result.
[0127] Optionally, the function configuration table includes a string, wherein the order of each character in the string corresponds to a preset sub-function, and each character is used to indicate the support of the smart home device for the preset sub-function corresponding to the order.
[0128] Optionally, the first drawing module 504 includes:
[0129] The determining unit is used to determine the preset sub-functions supported by the smart home device based on the confirmation result;
[0130] The drawing unit is used to draw the panel interface, which includes first controls corresponding to the preset sub-functions supported by the smart home device.
[0131] Optionally, the first acquisition module 501 includes:
[0132] The first receiving unit is used to receive the first input of device information for the smart home device;
[0133] The sending unit is used to send a download request carrying device information to the server in response to the first input;
[0134] The second receiving unit is used to receive the instruction conversion table and function configuration table of the smart home device sent by the server in response to the download request.
[0135] Optionally, the smart home management device may also include:
[0136] The update module is used to update the panel interface in response to the second input when a second input is received requesting the addition of a control. The updated panel interface includes the newly added second control.
[0137] The receiving module is used to receive a target control command sent by a remote control device associated with a smart home device in response to a third input to the second control.
[0138] The acquisition and sending module is used to acquire the function information corresponding to the second control, and send the function information and the target control instruction to the server so that the server updates at least one item in the instruction conversion table and the function configuration table according to the function information and the target control instruction.
[0139] Optionally, the smart home management device may also include:
[0140] The generation module is used to generate operation identifiers corresponding to smart home devices;
[0141] The second drawing module is used to draw a target interface in response to the selection input when receiving multiple operation identifiers. The target interface includes a third control, and the control function corresponding to the third control is a control function supported by multiple smart home devices corresponding to multiple operation identifiers.
[0142] The second sending module is used to send control signals corresponding to the second control to multiple smart home devices in response to the fourth input received by the third control.
[0143] Optionally, the smart home management device may also include:
[0144] The third sending module is used to send the identity identifier of the mobile terminal and the identity identifier of the smart home device to the server, so that the server can associate and store the identity identifier of the mobile terminal and the identity identifier of the smart home device.
[0145] The smart home management device provided in this application is a device with the same permissions as the smart home management method in the above embodiments. The method embodiments can be applied to the device embodiments and achieve the same technical effects, which will not be repeated here.
[0146] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described smart home management method.
[0147] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described smart home management method.
[0148] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0149] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0150] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0151] In the embodiments provided in this application, it should be understood that the disclosed apparatus / terminal devices and methods can be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0152] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0153] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0154] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0155] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A smart home management method, characterized in that, include: Obtain the instruction conversion table and function configuration table of the smart home device. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instruction. The function configuration table is used to indicate the support of the smart home device for the preset sub-functions in the control function. Send the instruction conversion table and function configuration table to the smart home device; Obtain the confirmation result of the smart home device regarding the function configuration table; Based on the confirmation result, draw a panel interface for controlling the smart home device, including: determining the preset sub-functions supported by the smart home device based on the confirmation result; The panel interface is drawn, and the panel interface includes a first control corresponding to the preset sub-functions supported by the smart home device.
2. The method according to claim 1, characterized in that, The function configuration table includes a string, wherein the order of each character in the string corresponds to a preset sub-function, and each character is used to indicate the support of the smart home device for the preset sub-function corresponding to the order.
3. The method according to claim 1, characterized in that, Obtain the instruction translation table and function configuration table of smart home devices, including: Receive the first input of device information for the smart home device; In response to the first input, a download request carrying the device information is sent to the server; The server receives the instruction conversion table and function configuration table of the smart home device sent in response to the download request.
4. The method according to claim 3, characterized in that, After drawing the panel interface for controlling the smart home device based on the confirmation result, the method further includes: Upon receiving a second input requesting the addition of a control, the panel interface is updated in response to the second input, and the updated panel interface includes the newly added second control. Upon receiving a third input to the second control, in response to the third input, a target control command sent by a remote control device associated with the smart home device is received; Obtain the function information corresponding to the second control, and send the function information and the target control instruction to the server, so that the server updates at least one item in the instruction conversion table and the function configuration table according to the function information and the target control instruction.
5. The method according to claim 1, characterized in that, After drawing the panel interface for controlling the smart home device based on the confirmation result, the method further includes: Generate an operation identifier corresponding to the smart home device; Upon receiving a selection input for multiple operation identifiers, in response to the selection input, a target interface is drawn. The target interface includes a third control, and the control function corresponding to the third control is a control function commonly supported by multiple smart home devices corresponding to the multiple operation identifiers. Upon receiving a fourth input to the third control, in response to the fourth input, a control signal corresponding to the second control is sent to the plurality of smart home devices.
6. The method according to claim 1, characterized in that, The method is applied to a mobile terminal. After drawing the panel interface for controlling the smart home device based on the confirmation result, the method further includes: The mobile terminal's identity identifier and the smart home device's identity identifier are sent to the server so that the server associates and stores the mobile terminal's identity identifier with the smart home device's identity identifier.
7. A smart home management device, employing the method as described in claim 1, characterized in that, include: The first acquisition module is used to acquire the instruction conversion table and function configuration table of the smart home device. The instruction conversion table includes the conversion relationship between the object model established for the control function and the device control instruction. The function configuration table is used to indicate the support of the smart home device for the preset sub-functions in the control function. The first sending module is used to send the instruction conversion table and the function configuration table to the smart home device; The second acquisition module is used to acquire the confirmation result of the function configuration table sent by the smart home device; The first drawing module is used to draw a panel interface for controlling the smart home device based on the confirmation result.
8. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Smart home equipment management method and device
CN111459039A
Intelligent switch key control system and method
CN112526891A