CN110784538A - Household appliance configuration file generation method and device, household appliance and storage medium - Google Patents
Household appliance configuration file generation method and device, household appliance and storage medium Download PDFInfo
- Publication number
- CN110784538A CN110784538A CN201911043634.4A CN201911043634A CN110784538A CN 110784538 A CN110784538 A CN 110784538A CN 201911043634 A CN201911043634 A CN 201911043634A CN 110784538 A CN110784538 A CN 110784538A
- Authority
- CN
- China
- Prior art keywords
- function
- configuration file
- household appliance
- candidate
- communication module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 92
- 238000004891 communication Methods 0.000 claims abstract description 146
- 238000012790 confirmation Methods 0.000 claims abstract description 57
- 238000012216 screening Methods 0.000 claims abstract description 16
- 230000006870 function Effects 0.000 claims description 497
- 238000012795 verification Methods 0.000 claims description 39
- 230000004044 response Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 10
- 238000004519 manufacturing process Methods 0.000 abstract description 29
- 230000000694 effects Effects 0.000 abstract description 9
- 238000011161 development Methods 0.000 description 21
- 230000018109 developmental process Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 14
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Selective Calling Equipment (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method and a device for generating a configuration file of household electrical appliance, the household electrical appliance and a storage medium, wherein the method comprises the following steps: acquiring a configuration file generation instruction sent by a household appliance controller, wherein the generation instruction comprises a serial number of the household appliance; determining a candidate function set corresponding to a configuration file of the household appliance according to the serial number of the household appliance; sequentially sending function checking instructions to the controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set; screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller, and determining the effective function set of the household appliance; and generating a configuration file of the household appliance according to the effective function set. The technical problems that in the prior art, cost is increased and production is complex due to the fact that configuration files of a communication module end are more are solved, and the technical effect that the communication module generates the configuration files of the household appliance in a self-adaptive mode according to the effective function set of the household appliance is achieved.
Description
Technical Field
The present application relates to the field of electrical devices, and in particular, to a method and an apparatus for generating a configuration file of an electrical device, and a storage medium.
Background
At present, a custom protocol may be developed on a System on chip (SoC) chip, a configuration file of each type of household appliance is generated based on the custom protocol, and the configuration file of each type of household appliance is stored in a communication module, such as a WiFi module. When the communication module is powered on and initialized, the corresponding configuration file can be started by reading the type of the household appliance, or the corresponding configuration file can be switched by an external instruction.
However, configuration files corresponding to various categories need to be generated on the SoC chip, which greatly occupies chip resources, and when the categories of the home appliance are large, the cost of the home appliance is increased due to the increase of the chip resources. However, if a communication module is developed for each kind of home appliance, a great amount of work is brought to the development end, and control difficulty is brought to the production end, thereby increasing complexity in production. Moreover, the software coupling is high, so that the quick iteration of new functions is influenced.
Disclosure of Invention
The application provides a method and a device for generating a configuration file of household electrical equipment, the household electrical equipment and a storage medium, so that the configuration file of the household electrical equipment is generated in a self-adaptive manner by a communication module according to an effective function set of the household electrical equipment, and the method and the device are used for solving the technical problems that cost is increased and production is complicated due to more configuration files at a communication module end in the prior art, and further iterative development of new functions of the household electrical equipment is influenced.
An embodiment of a first aspect of the present application provides a method for generating a configuration file of a home appliance, including:
acquiring a configuration file generation instruction sent by a household appliance controller, wherein the generation instruction comprises a serial number of the household appliance;
determining a candidate function set corresponding to the configuration file of the household appliance according to the serial number of the household appliance;
sequentially sending function checking instructions to the controller, wherein each function checking instruction comprises a candidate function identifier to be checked in the candidate function set;
screening each candidate function of the candidate function set according to the confirmation messages sequentially returned by the controller, and determining the effective function set of the household appliance;
and generating a configuration file of the household appliance according to the effective function set.
An embodiment of a second aspect of the present application provides another method for generating a configuration file of a home appliance, including:
when the household appliance is powered on for the first time, sending a configuration file generation instruction to a communication module, wherein the generation instruction comprises a serial number of the household appliance;
acquiring a function verification instruction sent by the communication module, wherein the function verification instruction comprises a candidate function identifier to be verified;
generating a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier;
and returning a confirmation message to the communication module so that the communication module determines the effective function set contained in the household appliance configuration file according to the confirmation message.
An embodiment of a third aspect of the present application provides a device for generating a configuration file of a home appliance, including:
the system comprises an acquisition module, a configuration file generation module and a configuration file generation module, wherein the acquisition module is used for acquiring a configuration file generation instruction sent by a household appliance controller, and the generation instruction comprises a serial number of the household appliance;
the determining module is used for determining a candidate function set corresponding to the configuration file of the household appliance according to the serial number of the household appliance;
a sending module, configured to send function verification instructions to the controller in sequence, where each function verification instruction includes a candidate function identifier to be verified in the candidate function set;
the processing module is used for screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller and determining the effective function set of the household appliance;
and the generating module is used for generating the configuration file of the household appliance according to the effective function set.
An embodiment of a fourth aspect of the present application provides another apparatus for generating a configuration file of a home device, including:
the system comprises a sending module, a configuration file generating module and a communication module, wherein the sending module is used for sending a configuration file generating instruction to the communication module when the household appliance is powered on for the first time, and the generating instruction comprises a serial number of the household appliance;
the acquisition module is used for acquiring a function verification instruction sent by the communication module, wherein the function verification instruction comprises a candidate function identifier to be verified;
a generating module, configured to generate a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier;
and the return module is used for returning a confirmation message to the communication module so that the communication module determines the effective function set contained in the household appliance configuration file according to the confirmation message.
An embodiment of a fifth aspect of the present application provides a home appliance device, including a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor executes the program to implement a method for generating a configuration file of a home appliance device as provided in the embodiment of the first aspect of the present application, or to implement a method for generating a configuration file of a home appliance device as provided in the embodiment of the second aspect of the present application.
A sixth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for generating a configuration file of a home device as set forth in the first aspect of the present application, or implements a method for generating a configuration file of a home device as set forth in the second aspect of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: on one hand, the configuration file generation instruction sent by the household appliance controller is obtained, and the generation instruction comprises the serial number of the household appliance; determining a candidate function set corresponding to a configuration file of the household appliance according to the serial number of the household appliance; sequentially sending function checking instructions to a controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set; screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller, and determining the effective function set of the household appliance; according to the effective function set, the configuration file of the household appliance is generated, the technical problems that in the prior art, the number of the configuration files of a communication module end is large, the cost is increased, the production is complex, and the iterative development of new functions of the household appliance is influenced are effectively solved, and further the configuration file of the household appliance is generated in a self-adaptive mode through the communication module according to the effective function set of the household appliance, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of the new functions of the household appliance is not influenced.
On the other hand, as the unidentified function query instruction is sent to the controller; if the response message returned by the controller contains the first function identifier, checking whether the preset total configuration file contains the first function identifier; and if the preset total configuration file contains the first function identifier, adding the first function identifier into the effective function set of the household appliance. Therefore, the accuracy and comprehensiveness of the subsequent configuration file generation can be improved.
In another aspect, a query instruction for obtaining the configuration file is adopted, and the query instruction comprises a target file identifier; acquiring a target configuration file from a target file corresponding to the target file identifier; and returning the target configuration file. Thus, the user can conveniently query or access the configuration file.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for generating a configuration file of a home appliance according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for generating a configuration file of a home appliance according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a method for generating a configuration file of a home appliance according to a third embodiment of the present application;
fig. 4 is a schematic flowchart of a method for generating a configuration file of a home appliance according to a fourth embodiment of the present application;
fig. 5 is a schematic flowchart of a method for generating a configuration file of a home appliance according to a fifth embodiment of the present application;
fig. 6 is a schematic flowchart of a method for generating a configuration file of a home appliance according to a sixth embodiment of the present application;
fig. 7 is a schematic view of an application scenario provided in the seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for generating a configuration file of a home appliance according to an eighth embodiment of the present application;
fig. 9 is a schematic structural diagram of a home appliance configuration file generating apparatus according to a ninth embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for generating a configuration file of a home device according to a tenth embodiment of the present application;
fig. 11 is a schematic structural diagram of an apparatus for generating a configuration file of a home device according to a eleventh embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
At present, a communication module of a household electrical appliance has the following three purposes:
first, the communication module itself has some IO interfaces, which can realize simple on-off control. Wherein, the communication module manufacturer can open a control protocol.
And secondly, the serial port is transmitted through, the single chip microcomputer sends any data to the communication module, the communication module can send the data to the corresponding cloud platform, and the data sent by the cloud platform and the communication module can also be received through the serial port. In this way, the configuration files of the home appliance are all stored at the server side or the Application (APP for short).
And thirdly, a custom protocol is developed on the SoC chip, and configuration files of the household appliance are generated on the SoC chip, so that more chip resources are occupied.
For the third method, a custom protocol is developed on the SoC chip, and the configuration files of the home appliances of each category are different, at present, the configuration files of the home appliances of each category are generated at the communication module, and when the communication module is powered on and initialized, the corresponding configuration files can be started by reading the types of the home appliances, or the corresponding configuration files can be switched by an external instruction.
However, the configuration files corresponding to various categories generated on the SoC chip occupy extremely large chip resources, and when the categories of the home appliance are large, the cost of the home appliance is increased due to the increase of the chip resources. If a communication module is developed for each type of household appliance, great workload is brought to a development end, and control difficulty is brought to a production end, so that the complexity in production is increased. And various types of configuration files are generated on the SoC chip, the communication module starts the corresponding configuration files by reading the types of the household appliances, or the corresponding configuration files are switched by an external instruction, and the software coupling is high, so that the quick iteration of new functions is influenced.
The method for generating the configuration file of the household appliance is mainly used for solving the technical problems that in the prior art, the cost is increased and the production is complex due to the fact that the number of the configuration files of a communication module end is large, and further the iterative development of new functions of the household appliance is influenced. According to the method for generating the configuration file of the household appliance, the configuration file generation instruction sent by the household appliance controller is obtained, and the generation instruction comprises the serial number of the household appliance; determining a candidate function set corresponding to a configuration file of the household appliance according to the serial number of the household appliance; sequentially sending function checking instructions to a controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set; screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller, and determining the effective function set of the household appliance; and generating a configuration file of the household appliance according to the effective function set. Therefore, the configuration files of the household appliances are generated in a self-adaptive mode through the communication module according to the effective function set of the household appliances, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of new functions of the household appliances is not influenced.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
Fig. 1 is a flowchart illustrating a method for generating a configuration file of a home appliance according to an embodiment of the present application.
As shown in fig. 1, the method for generating a configuration file of a home device may include the following steps:
The execution main body of the embodiment of the application can be a communication module in household electrical appliances, wherein the household electrical appliances can be intelligent household electrical appliances such as air conditioners, televisions and refrigerators, the communication module can be a Wireless-Fidelity (WiFi) module for short, belongs to a transmission layer of the Internet of things, has the function of converting a serial port or a TTL level into an embedded module which accords with a Wireless network communication standard and is embedded into the household electrical appliances, and therefore networking, intellectualization and digitization of the household electrical appliances are achieved.
In this embodiment of the application, when the home appliance is powered on for the first time, the home appliance controller may send a configuration file generation instruction to the communication module, where the generation instruction may include a Serial Number (SN code for short) of the home appliance, and correspondingly, the communication module may receive the generation instruction, so as to generate the configuration file of the home appliance according to the generation instruction.
It should be noted that the configuration file generation instruction sent by the home appliance controller to the communication module may not include the serial number of the home appliance, and after the communication module receives the generation instruction, the communication module may actively send a serial number acquisition request to the controller to acquire the serial number of the home appliance.
And 102, determining a candidate function set corresponding to the configuration file of the household appliance according to the serial number of the household appliance.
It can be understood that each type of the home appliances may have different functions, for example, when the home appliances are air conditioners, the types of the air conditioners may include cabinet type, hanging type, and the like, the functions of the air conditioners of each type may be different, and each type of the home appliances may also have different models, and the functions of the home appliances of different types may also be different under the same type.
Therefore, as a possible implementation manner of the embodiment of the present application, a function set corresponding to each type of home appliance may be determined for each type of home appliance, where the function set includes each function of the home appliance of the corresponding type. Therefore, in the present application, after the serial number of the home appliance is determined, the category of the home appliance may be determined according to the serial number, so as to query the correspondence between the home appliances of different categories and the function set according to the category of the home appliance, and determine the candidate function set corresponding to the configuration file of the home appliance.
As another possible implementation manner of the embodiment of the present application, for the same type of home appliance, a function set corresponding to the home appliance of the corresponding type may be determined for each type of home appliance, where the function set includes each function of the home appliance of the corresponding type. Therefore, in the application, after the serial number of the household appliance is determined, the model of the household appliance can be determined according to the serial number, so that the corresponding relation between the household appliances of different models and the function set is inquired according to the model of the household appliance, and the candidate function set corresponding to the configuration file of the household appliance is determined.
And 103, sequentially sending function checking instructions to the controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set.
In this embodiment of the application, after the communication module determines the candidate function set corresponding to the configuration file of the home appliance device, function verification instructions may be sequentially sent to the controller from a first candidate function in the candidate function set, where each function verification instruction includes a candidate function identifier to be verified in one candidate function set. That is, the communication module may sequentially send a function verification instruction including the candidate function identifier to be verified in the candidate function set to the controller in an iterative manner.
Specifically, the function verification instruction sent to the controller for the first time includes a first candidate function identifier in the candidate function set, the function verification instruction sent to the controller for the second time includes a second candidate function identifier in the candidate function set, …, and the function verification instruction sent to the controller for the last time includes a last candidate function identifier in the candidate function set.
And 104, screening each candidate function of the candidate function set according to the confirmation messages sequentially returned by the controller, and determining the effective function set of the household appliance.
In the embodiment of the application, after the controller receives each function verification instruction, whether the household appliance has the candidate function to be verified or not can be judged according to the candidate function identifier to be verified contained in the function verification instruction, if the household appliance is determined to have the candidate function to be verified, the confirmation message returned to the communication module can indicate that the candidate function to be verified is valid, and at this time, the candidate function to be verified can be determined to be the valid function of the household appliance. If the home appliance is determined not to have the candidate function to be verified, the confirmation message returned to the communication module may indicate that the candidate function to be verified is invalid, and at this time, it may be determined that the candidate function to be verified is an invalid function of the home appliance, so that the candidate function to be verified may be removed from the candidate function set. Therefore, the effective function set of the household appliance can be determined according to all the effective functions obtained after screening.
Specifically, the home appliance controller may determine whether the candidate function identifier to be verified is a locally stored function identifier according to the candidate function identifier to be verified included in the function verification instruction, and if so, determine that the home appliance has the candidate function to be verified, and at this time, a confirmation message returned to the communication module may indicate that the candidate function to be verified is valid, that is, determine that the candidate function to be verified is a valid function of the home appliance. If not, determining that the household appliance does not have the candidate function to be verified, at this time, a confirmation message returned to the communication module may indicate that the candidate function to be verified is invalid, that is, determining that the candidate function to be verified is an invalid function of the household appliance, and thus, removing the candidate function to be verified from the candidate function set. Therefore, the effective function set of the household appliance can be determined according to all the effective functions obtained after screening.
And 105, generating a configuration file of the household appliance according to the effective function set.
In the embodiment of the application, after the effective function set is determined, the configuration file of the household appliance can be generated according to the effective function set. Therefore, the configuration files of the household appliances are generated in a self-adaptive mode through the communication module according to the effective function set of the household appliances, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of new functions of the household appliances is not influenced.
It should be noted that the method for generating a configuration file of a home appliance device in the embodiment of the present application may be applied to a communication module, for example, a WiFi module, or may also be applied to a display screen of a home appliance device, for example, an Android (Android) screen, where the communication module is built in the display screen.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the method comprises the steps that a configuration file generation instruction sent by a household appliance controller is obtained, and the generation instruction comprises a serial number of the household appliance; determining a candidate function set corresponding to a configuration file of the household appliance according to the serial number of the household appliance; sequentially sending function checking instructions to a controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set; screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller, and determining the effective function set of the household appliance; according to the effective function set, the configuration file of the household appliance is generated, the technical problems that in the prior art, the number of the configuration files of a communication module end is large, the cost is increased, the production is complex, and the iterative development of new functions of the household appliance is influenced are effectively solved, and further the configuration file of the household appliance is generated in a self-adaptive mode through the communication module according to the effective function set of the household appliance, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of the new functions of the household appliance is not influenced.
As a possible implementation manner, the serial number of the home appliance is used to uniquely identify the corresponding home appliance, and the category to which the home appliance belongs may be determined according to the serial number of the home appliance, for example, each category of home appliance may have a corresponding serial number set, so that the category to which the home appliance belongs may be determined according to the serial number set to which the home appliance belongs. Therefore, in the present application, in step 102, the serial number set corresponding to each home appliance may be queried according to the serial number of the home appliance, the serial number set to which the home appliance belongs may be determined, the category to which the home appliance belongs may be determined according to the serial number set to which the home appliance belongs, and then, the candidate function set corresponding to the configuration file of the home appliance may be determined according to the correspondence between the category and the function set of the home appliance. Or, the corresponding relationship between different serial number sets and function sets may also be directly established, so that, in the present application, after determining the serial number set to which the home appliance device belongs, the corresponding relationship between the serial number set and the function set may be directly queried, and the candidate function set corresponding to the configuration file of the home appliance device may be determined. The above process is described in detail with reference to example two.
Example two
Fig. 2 is a flowchart illustrating a method for generating a configuration file of a home appliance according to a second embodiment of the present application.
As shown in fig. 2, based on the embodiment shown in fig. 1, the method for generating a configuration file of a home device may further include the following steps:
The execution process of step 201 may refer to the execution process of step 101 in the above embodiments, which is not described herein again.
In the embodiment of the application, each serial number set corresponds to one category, the serial number sets corresponding to the categories of household appliances can be determined in advance for the household appliances of each category, and the serial number sets corresponding to the various categories of household appliances are stored. For example, when the home appliance is an air conditioner, for the air conditioners of the cabinet type, serial numbers of air conditioners of different models under all the cabinet air conditioners can be determined, and a serial number set corresponding to the cabinet air conditioners is generated according to all the determined serial numbers.
In this embodiment of the present application, after the serial number of the home appliance device is determined, the serial number may be matched with all stored serial number sets, and when a certain serial number set includes the serial number, the serial number set may be used as a serial number set to which the serial number of the home appliance device belongs.
And 203, determining a candidate function set corresponding to the configuration file of the household appliance according to the corresponding relation between the preset serial number set and the function set.
In the embodiment of the application, each serial number set corresponds to one type of product, different types of products correspond to different function sets, the corresponding function sets can be determined in advance according to each serial number set, and the corresponding relation between the serial number set and the function sets is established.
And step 204, sequentially sending function checking instructions to the controller, wherein each function checking instruction comprises a candidate function identifier to be checked in one candidate function set.
The execution process of step 204 may refer to the execution process of step 103 in the above embodiments, which is not described herein again.
And step 205, screening each candidate function of the candidate function set according to the confirmation messages sequentially returned by the controller, and determining the effective function set of the household appliance.
In the embodiment of the application, after the communication module receives the confirmation message returned by the controller, if the confirmation message indicates that the first candidate function is valid, the first candidate function is determined to be a valid function of the household appliance, and if the confirmation message indicates that the second candidate function is invalid, the second candidate function is removed from the candidate function set. Thus, an effective function set can be generated from each effective function.
And step 206, generating a configuration file of the household appliance according to the effective function set.
The execution process of step 206 may refer to the execution process of step 105 in the above embodiments, which is not described herein again.
Compared with the previous embodiment, the technical solution in the embodiment of the present application at least has the following further technical effects or advantages:
the serial number set which determines the serial number of the household appliance is adopted; and determining a candidate function set corresponding to the configuration file of the household appliance according to the corresponding relation between the preset serial number set and the function set. In the application, the serial number of the household appliance can uniquely identify the corresponding household appliance, and the candidate function set corresponding to the configuration file of the household appliance is determined according to the serial number of the household appliance, so that the accuracy of the determination result can be improved.
It can be understood that, in the prior art, for each category of home appliance, a configuration file corresponding to the category of home appliance is generated, and since home appliances of different categories may have repeated functions, the configuration file of each category is generated separately, which may cause repeated contents in each generated configuration file, and thus, occupation of storage resources is greatly wasted.
In the application, during system development, a developer can generate a preset total configuration file according to functions of all types of household electrical appliances, and burn the total configuration file onto the communication module. Compared with the prior art, in the application, the functions of all types of household appliances are aggregated, repeated function items are removed, a total configuration file is generated according to non-repeated functions, the occupation of storage resources can be reduced, and the development efficiency of the configuration file can be improved.
For example, a cabinet air conditioner has 10 functions, a hanging air conditioner has 8 functions, 5 of the two air conditioners have overlapping functions, and in two configuration files generated in the prior art, configuration parameters corresponding to 5 functions are repeated, but in the present application, only one total configuration file needs to be generated according to 13 functions, which are not repeated, 10+8-5, so that the storage space can be saved, and the development efficiency can be improved.
It will be appreciated that the candidate functions determined by the communication module may not be as comprehensive as those found in the home device, therefore, in order to improve the accuracy and comprehensiveness of the configuration file generation, the communication module may further send an unidentified function query instruction to the controller, and accordingly, when the controller receives the unidentified function query instruction, can determine the function identification which is stored locally and is not in the candidate function set, and send the determined function identification to the communication module, the communication module can inquire the preset total configuration file according to the function identification, determine whether the total configuration file contains the function identification, if so, add the function corresponding to the function identification to the effective function set of the household appliance, therefore, the configuration file of the household appliance is generated according to the updated effective function set, and the accuracy and comprehensiveness of the configuration file generation can be improved. The above process is described in detail with reference to example three.
EXAMPLE III
Fig. 3 is a flowchart illustrating a method for generating a configuration file of a home appliance according to a third embodiment of the present application.
As shown in fig. 3, on the basis of the foregoing embodiment, after step 104, the method for generating a configuration file of a home device may further include the following steps:
In this embodiment, the communication module may send an unidentified function query instruction to the controller, where the unidentified function query instruction is used to obtain a function identifier that is locally stored by the controller and is not in the candidate function set.
It should be noted that, after determining that the candidate function identifier to be verified is the locally stored second function identifier, the controller may add a preset tag to the locally stored second function identifier, so that the controller may determine which function identifiers are the candidate function identifiers determined by the communication module and which function identifiers are the function identifiers in the non-candidate function set according to the added tag.
Therefore, in the embodiment of the present application, after the controller obtains the unidentified function query instruction, the controller may query each locally stored function identifier, and determine which function identifiers are function identifiers in the non-candidate function set. Specifically, the controller may query whether each locally stored function identifier includes a preset tag, and if a function identifier that does not include the preset tag exists, the function identifier is marked as a first function identifier in the present application, a response message including the first function identifier may be returned to the communication module, and after the communication module acquires that the response message returned by the controller includes the first function identifier, the communication module may determine that the first function identifier is a function identifier that is locally stored by the controller and is not in the candidate function set. At this time, it may be checked whether the preset general configuration file includes the first function identifier.
In the embodiment of the application, after the first function identifier is included in the preset total configuration file, the first function identifier can be added into the effective function set of the household appliance, so that the configuration file of the household appliance is generated according to the updated effective function set, and the accuracy and the comprehensiveness of the generation of the configuration file can be improved.
Further, if new functions are added to the home appliance, the corresponding total configuration file may be directly modified, but if the functions are classified as in the prior art, it is necessary to determine which kind of the newly added functions is, and then modify the configuration file corresponding to the kind, and if the functions are added to all kinds of the functions, all the configuration files need to be modified, which results in complicated operation steps and low development efficiency. In the application, only one total configuration file needs to be modified, so that the development efficiency can be improved.
Compared with the previous embodiment, the technical solution in the embodiment of the present application at least has the following further technical effects or advantages:
the method adopts the step of sending the unidentified function query instruction to the controller; if the response message returned by the controller contains the first function identifier, checking whether the preset total configuration file contains the first function identifier; and if the preset total configuration file contains the first function identifier, adding the first function identifier into the effective function set of the household appliance. Therefore, the accuracy and comprehensiveness of the subsequent configuration file generation can be improved.
Furthermore, after the configuration file of the household appliance is generated, the configuration file of the household appliance can be stored in a preset folder, so that a user can inquire, access, manage and the like the configuration file.
As a possible implementation manner, after storing the configuration file of the home appliance in a preset folder, the user may also query or access the configuration file, where the accessed configuration file may be a total configuration file, or may also be a configuration file adaptively generated by the communication module. The above process is described in detail with reference to example four.
Fig. 4 is a flowchart illustrating a method for generating a configuration file of a home appliance according to a fourth embodiment of the present application.
As shown in fig. 4, after storing the configuration file of the home device in the preset folder, the method for generating the configuration file of the home device may further include the following steps:
In the embodiment of the application, when the communication module enters an Access Point (AP), that is, in an AP mode, after the device accesses a hotspot, the device may query the configuration file, specifically, the device may send a configuration file query instruction to the communication module, and correspondingly, the communication module may obtain the location file query instruction, where the query instruction includes a target file identifier.
For example, a user may use a Personal Computer (PC) network card to connect to a WiFi hotspot of a communication module, and input a target file identifier in a WEB browser to trigger a corresponding query instruction.
In the embodiment of the present application, the target configuration file may be a total configuration file, or may also be a configuration file adaptively generated by the communication module.
In the embodiment of the application, the communication module can determine the corresponding target file according to the target file identifier, so that the target configuration file can be obtained from the target file, and the target configuration file is returned to the device.
For example, when the communication module is a WiFi module, the user may trigger the screen display key for a preset number of times, for example, 5 times, through the remote controller of the household appliance, so that the communication module, for example, the WiFi module enters the AP mode, the PC network card is connected to the WiFi hotspot of the WiFi module, and 192.168.1.1 is input in the WEB browser, so as to access the total configuration file in the WiFi module; the PC computer network card is connected with the WiFi hotspot of the WiFi module, 192.168.1.2 is input into the WEB browser, and then the configuration file generated by self-adaption in the WiFi module can be accessed.
Compared with the previous embodiment, the technical solution in the embodiment of the present application at least has the following further technical effects or advantages:
the query instruction for obtaining the configuration file is adopted, and the query instruction comprises a target file identifier; acquiring a target configuration file from a target file corresponding to the target file identifier; and returning the target configuration file. Thus, the user can conveniently query or access the configuration file.
In order to implement the foregoing embodiment, an embodiment of the present application further provides a method for generating a configuration file of a home appliance, which is shown in the fifth embodiment.
EXAMPLE five
Fig. 5 is a flowchart illustrating a method for generating a configuration file of a home appliance according to a fifth embodiment of the present application.
As shown in fig. 5, the method for generating a configuration file of a home device may include the following steps:
The execution main body of the embodiment of the application can be a household appliance controller.
In the embodiment of the application, when the household appliance is powered on for the first time, the household appliance controller can send a configuration file generation instruction to the communication module, and the generation instruction can include the serial number of the household appliance, so that the communication module can generate the configuration file of the household appliance according to the generation instruction.
In the embodiment of the application, after the communication module determines the serial number of the household appliance according to the generation instruction, the candidate function set corresponding to the configuration file of the household appliance can be determined according to the serial number of the household appliance. After the communication module determines the candidate function set corresponding to the configuration file of the home appliance device, function verification instructions may be sequentially sent to the controller from a first candidate function in the candidate function set, where each function verification instruction includes a candidate function identifier to be verified in one candidate function set. That is, the communication module may sequentially send a function verification instruction including the candidate function identifier to be verified in the candidate function set to the controller in an iterative manner. Correspondingly, the controller can obtain the function verification instruction sent by the communication module.
In the embodiment of the application, after the controller receives each function verification instruction, whether the home appliance has the candidate function to be verified or not can be judged according to the candidate function identifier to be verified contained in the function verification instruction, if the home appliance is determined to have the candidate function to be verified, the generated confirmation message can indicate that the candidate function to be verified is valid, and if the home appliance is determined not to have the candidate function to be verified, the generated confirmation message can indicate that the candidate function to be verified is invalid.
Specifically, the home appliance controller may determine whether the candidate function identifier to be verified is a locally stored function identifier according to a candidate function identifier to be verified included in the function verification instruction, and if so, determine that the home appliance has the candidate function to be verified, at this time, the generated confirmation message may indicate that the candidate function to be verified is valid, and if not, determine that the home appliance does not have the candidate function to be verified, at this time, the generated confirmation message may indicate that the candidate function to be verified is invalid.
In this embodiment, after the controller generates the confirmation message, the confirmation message may be returned to the communication module, and accordingly, after the communication module receives the confirmation message, if it is determined that the candidate function is invalid according to the confirmation message, it may be determined that the candidate function is an invalid function of the home appliance, and the candidate function may be removed from the candidate function set, and if it is determined that the candidate function is valid according to the confirmation message, it may be determined that the candidate function is a valid function of the home appliance, and at this time, the valid function set of the home appliance may be determined according to all valid functions obtained after the screening process. After the communication module determines the valid function set, a configuration file of the home appliance device can be generated according to the valid function set. Therefore, the configuration files of the household appliances are generated in a self-adaptive mode through the communication module according to the effective function set of the household appliances, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of new functions of the household appliances is not influenced.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the method comprises the steps that when the household appliance is powered on for the first time, a configuration file generation instruction is sent to a communication module, and the generation instruction comprises a serial number of the household appliance; acquiring a function verification instruction sent by a communication module, wherein the function verification instruction comprises a candidate function identifier to be verified; generating a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier; the method and the device have the advantages that the confirmation message is returned to the communication module, so that the communication module determines the effective function set contained in the configuration file of the household appliance according to the confirmation message, the technical problems that in the prior art, the number of the configuration files of the communication module end is large, the cost is increased, the production is complex, and the iterative development of new functions of the household appliance is influenced are effectively solved, the configuration files corresponding to the household appliances of various types are not required to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of the new functions of the household appliance is not influenced.
As a possible implementation manner, when the candidate function identifier to be verified is a function identifier locally stored by the controller, which is denoted as a second function identifier in this application, at this time, a preset tag may be added to the locally stored second function identifier, so that the controller may determine which function identifiers are candidate function identifiers determined by the communication module and which function identifiers are candidate function identifiers in the non-candidate function set according to the added tag.
It will be appreciated that the candidate functions determined by the communication module may not be as comprehensive as those found in the home device, therefore, in order to improve the accuracy and comprehensiveness of the configuration file generation, the communication module may further send an unidentified function query instruction to the controller, and accordingly, when the controller receives the unidentified function query instruction, it is possible to determine the function identifier in the locally stored, non-candidate set of functions, and to send the determined function identifier to the communication module, so that the communication module can inquire the preset total configuration file according to the function identification, determine whether the total configuration file contains the function identification, if so, add the function corresponding to the function identification to the effective function set of the household appliance, therefore, the configuration file of the household appliance is generated according to the updated effective function set, and the accuracy and comprehensiveness of the configuration file generation can be improved. The above process is described in detail with reference to example six.
EXAMPLE six
Fig. 6 is a flowchart illustrating a method for generating a configuration file of a home appliance according to a sixth embodiment of the present application.
As shown in fig. 6, based on the embodiment shown in fig. 5, step 402 may specifically include the following sub-steps:
In this embodiment, the communication module may send an unidentified function query instruction to the controller, where the unidentified function query instruction is used to obtain a function identifier that is locally stored by the controller and is not in the candidate function set. Accordingly, the controller can obtain the unidentified function query instruction sent by the communication module.
In the embodiment of the application, after the controller obtains the unidentified function query instruction, the controller can query each locally stored function identifier to determine which function identifiers are function identifiers in the non-candidate function set. Specifically, the controller may query whether each locally stored function identifier includes a preset tag, and if a function identifier that does not include the preset tag exists, the function identifier is marked as a first function identifier in the present application, a response message including the first function identifier may be returned to the communication module, and after the communication module acquires that the response message returned by the controller includes the first function identifier, the communication module may determine that the first function identifier is a function identifier that is locally stored by the controller and is not in the candidate function set.
Furthermore, after the communication module receives the response message returned by the controller and includes the first function identifier, the communication module can also check whether the preset total configuration file contains the first function identifier, and if the preset total configuration file contains the first function identifier, the first function identifier is added into the effective function set of the household appliance, so that the communication module can generate the configuration file of the household appliance according to the updated effective function set, and the accuracy and the comprehensiveness of the generation of the configuration file can be improved.
As an application scenario, taking a communication module as a WiFi module for example, referring to fig. 7, the method for generating a configuration file of a home device may include the following steps:
and 701, triggering a WiFi module self-adaptive household appliance configuration mark by the household appliance controller.
In step 702, the controller sends a configuration file generation command (or called an adaptive mode command) to the WiFi module.
And 704, the WiFi module acquires the class of the household appliance according to the SN code of the household appliance, and generates a candidate function set of the household appliance configuration file according to the class of the household appliance.
In step 707, the controller returns an acknowledgement message to the WiFi module.
In step 708, the communication module determines whether the candidate function to be verified is valid according to the confirmation message.
And step 709, if the function is valid, generating a configuration file of the household appliance according to all valid candidate functions.
In step 710, if the function is invalid, the corresponding candidate function is removed from the candidate function set.
Based on the same inventive concept, the embodiment of the present application further provides apparatuses corresponding to the methods in the first to fourth embodiments, see embodiment eight.
Example eight
Fig. 8 is a schematic structural diagram of an apparatus for generating a configuration file of a home device according to an eighth embodiment of the present application.
As shown in fig. 8, the home device profile generating apparatus includes: an acquisition module 101, a determination module 102, a transmission module 103, a processing module 104, and a generation module 105.
The acquiring module 101 is configured to acquire a configuration file generation instruction sent by a home appliance controller, where the generation instruction includes a serial number of a home appliance.
The determining module 102 is configured to determine a candidate function set corresponding to a configuration file of the home appliance according to the serial number of the home appliance.
As a possible implementation manner, the determining module 102 is specifically configured to: determining a serial number set to which the serial number of the household appliance belongs; and determining a candidate function set corresponding to the configuration file of the household appliance according to the corresponding relation between the preset serial number set and the function set.
A sending module 103, configured to send function verification instructions to the controller in sequence, where each function verification instruction includes a candidate function identifier to be verified in one candidate function set.
And the processing module 104 is configured to perform screening processing on each candidate function of the candidate function set according to the acknowledgement messages sequentially returned by the controller, and determine an effective function set of the home appliance device.
As a possible implementation manner, the processing module 104 is specifically configured to: if the confirmation message indicates that the first candidate function is valid, determining that the first candidate function is a valid function of the household appliance; alternatively, if the confirmation message indicates that the second candidate function is invalid, the second candidate function is removed from the set of candidate functions.
And a generating module 105, configured to generate a configuration file of the home appliance according to the valid function set.
Further, in a possible implementation manner of the embodiment of the present application, referring to fig. 9, on the basis of the embodiment shown in fig. 8, the device for generating a configuration file of a home appliance may further include:
and the query module 106 is used for sending the unidentified function query instruction to the controller.
The checking module 107 is configured to check whether the preset total configuration file includes the first function identifier if the response message returned by the controller includes the first function identifier.
An adding module 108, configured to add the first function identifier into an effective function set of the home appliance device if the preset total configuration file includes the first function identifier.
The storage module 109 is configured to store the configuration file of the home appliance in a preset folder.
As a possible implementation manner, the obtaining module 101 is further configured to: and acquiring a configuration file query instruction, wherein the query instruction comprises a target file identifier, and acquiring a target configuration file from a target file corresponding to the target file identifier.
The sending module 103 is further configured to: and returning the target configuration file.
It should be noted that the explanation of the first to fourth embodiments of the method for generating a configuration file of a home appliance in the foregoing embodiments is also applicable to the device for generating a configuration file of a home appliance in this embodiment, and details are not repeated here.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, the configuration file generation instruction sent by the household appliance controller is obtained, and the generation instruction comprises the serial number of the household appliance; determining a candidate function set corresponding to a configuration file of the household appliance according to the serial number of the household appliance; sequentially sending function checking instructions to a controller, wherein each function checking instruction comprises a candidate function identifier to be checked in a candidate function set; screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller, and determining the effective function set of the household appliance; according to the effective function set, the configuration file of the household appliance is generated, the technical problems that in the prior art, the number of the configuration files of a communication module end is large, the cost is increased, the production is complex, and the iterative development of new functions of the household appliance is influenced are effectively solved, and further the configuration file of the household appliance is generated in a self-adaptive mode through the communication module according to the effective function set of the household appliance, so that the configuration files corresponding to the household appliances of various types do not need to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of the new functions of the household appliance is not influenced.
On the other hand, as the unidentified function query instruction is sent to the controller; if the response message returned by the controller contains the first function identifier, checking whether the preset total configuration file contains the first function identifier; and if the preset total configuration file contains the first function identifier, adding the first function identifier into the effective function set of the household appliance. Therefore, the accuracy and comprehensiveness of the subsequent configuration file generation can be improved.
In another aspect, a query instruction for obtaining the configuration file is adopted, and the query instruction comprises a target file identifier; acquiring a target configuration file from a target file corresponding to the target file identifier; and returning the target configuration file. Thus, the user can conveniently query or access the configuration file.
Since the home appliance configuration file generating devices described in the eighth and ninth embodiments of the present application are devices used for implementing the methods in the first to fourth embodiments of the present application, those skilled in the art can understand specific structures and variations of the devices based on the methods described in the first to fourth embodiments of the present application, and thus details are not described herein. All the devices adopted in the methods of the first to fourth embodiments of the present application belong to the scope of the present application.
Based on the same inventive concept, the embodiment of the present application further provides apparatuses corresponding to the methods in the fifth to sixth embodiments, which is shown in the tenth embodiment.
Example ten
Fig. 10 is a schematic structural diagram of a home appliance configuration file generating apparatus according to a tenth embodiment of the present application.
As shown in fig. 10, the home device profile generating apparatus includes: a sending module 201, an obtaining module 202, a generating module 203 and a returning module 204.
The sending module 201 is configured to send a configuration file generation instruction to the communication module when the home appliance is powered on for the first time, where the generation instruction includes a serial number of the home appliance.
The obtaining module 202 is configured to obtain a function verification instruction sent by the communication module, where the function verification instruction includes a candidate function identifier to be verified.
The generating module 203 is configured to generate a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier.
The returning module 204 is configured to return a confirmation message to the communication module, so that the communication module determines, according to the confirmation message, an effective function set included in the home appliance configuration file.
Further, in a possible implementation manner of the embodiment of the present application, referring to fig. 11, on the basis of the embodiment shown in fig. 10, the home device profile generating apparatus may further include:
an adding module 205, configured to add a preset tag to the locally stored second function identifier if the candidate function identifier to be verified is the locally stored second function identifier.
As a possible implementation manner, the obtaining module 202 is further configured to: and acquiring an unidentified function query instruction sent by the communication module.
The query module 206 is configured to query whether each locally stored function identifier includes a preset tag.
A return module 204, further configured to: and if the first function identifier does not contain the preset label, returning a response message containing the first function identifier to the communication module.
It should be noted that the explanation of the fifth to sixth embodiments on the embodiment of the method for generating a configuration file of a home appliance in the foregoing embodiments is also applicable to the device for generating a configuration file of a home appliance in this embodiment, and details are not described here.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the method comprises the steps that when the household appliance is powered on for the first time, a configuration file generation instruction is sent to a communication module, and the generation instruction comprises a serial number of the household appliance; acquiring a function verification instruction sent by a communication module, wherein the function verification instruction comprises a candidate function identifier to be verified; generating a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier; the method and the device have the advantages that the confirmation message is returned to the communication module, so that the communication module determines the effective function set contained in the configuration file of the household appliance according to the confirmation message, the technical problems that in the prior art, the number of the configuration files of the communication module end is large, the cost is increased, the production is complex, and the iterative development of new functions of the household appliance is influenced are effectively solved, the configuration files corresponding to the household appliances of various types are not required to be generated at the communication module end aiming at the household appliances of various types, the resource occupation of the communication module end can be reduced, the production cost and the complexity during production can be reduced, and the iterative development of the new functions of the household appliance is not influenced.
Since the device for generating a configuration file of a home appliance described in the tenth embodiment and the eleventh embodiment of the present application is a device used for implementing the method described in the fifth embodiment to the sixth embodiment of the present application, a person skilled in the art can understand a specific structure and a modification of the device based on the method described in the fifth embodiment to the sixth embodiment of the present application, and thus details are not described herein again. All the devices adopted by the methods of the fifth embodiment to the sixth embodiment of the present application belong to the protection scope of the present application.
Based on the same inventive concept, the embodiment of the present application further provides a home appliance corresponding to the first to sixth embodiments, in the twelfth embodiment.
Example twelve
The household electrical appliances of this application embodiment includes: the processor executes the program to implement the method for generating the configuration file of the home appliance as proposed in the first to fourth embodiments of the present application, or to implement the method for generating the configuration file of the home appliance as proposed in the fifth to sixth embodiments of the present application.
Since the home appliance described in the twelfth embodiment of the present application is a home appliance used to implement the method described in the first to sixth embodiments of the present application, a person skilled in the art can understand the specific structure and the deformation of the home appliance based on the method described in the first to sixth embodiments of the present application, and thus the description thereof is omitted here. All the home appliances adopted in the methods of the first to sixth embodiments of the present application belong to the scope of protection intended by the present application.
Based on the same inventive concept, the embodiment of the present application further provides a computer-readable storage medium corresponding to the method in the first to sixth embodiments, see embodiment thirteen.
EXAMPLE thirteen
The computer-readable storage medium of the embodiment of the present application stores thereon a computer program, which when executed by a processor implements the method for generating a configuration file of a home appliance as set forth in the first to fourth embodiments of the present application, or implements the method for generating a configuration file of a home appliance as set forth in the fifth to sixth embodiments of the present application.
Since the computer-readable storage medium described in the thirteenth embodiment of the present application is a computer-readable storage medium used for implementing the method described in the first to sixth embodiments of the present application, based on the method described in the first to sixth embodiments of the present application, a person skilled in the art can understand a specific structure and a modification of the computer-readable storage medium, and thus details are not described here. Any computer readable storage medium used in the methods of embodiments one through six of the present application is intended to be within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, device, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (13)
1. A method for generating a configuration file of a household appliance is characterized by comprising the following steps:
acquiring a configuration file generation instruction sent by a household appliance controller, wherein the generation instruction comprises a serial number of the household appliance;
determining a candidate function set corresponding to the configuration file of the household appliance according to the serial number of the household appliance;
sequentially sending function checking instructions to the controller, wherein each function checking instruction comprises a candidate function identifier to be checked in the candidate function set;
screening each candidate function of the candidate function set according to the confirmation messages sequentially returned by the controller, and determining the effective function set of the household appliance;
and generating a configuration file of the household appliance according to the effective function set.
2. The method of claim 1, wherein determining the candidate set of functions corresponding to the configuration file of the home device according to the serial number of the home device comprises:
determining a serial number set to which the serial number of the household appliance belongs;
and determining a candidate function set corresponding to the configuration file of the household appliance according to the corresponding relation between the preset serial number set and the function set.
3. The method of claim 1, wherein the performing a screening process on each candidate function of the candidate function set according to the acknowledgement message sequentially returned by the controller comprises:
if the confirmation message indicates that the first candidate function is valid, determining that the first candidate function is a valid function of the household appliance;
or,
removing a second candidate function from the set of candidate functions if the confirmation message indicates that the second candidate function is invalid.
4. The method of claim 1, wherein after determining the active set of functions of the home device, further comprising:
sending an unidentified function query instruction to the controller;
if the response message returned by the controller contains a first function identifier, checking whether a preset total configuration file contains the first function identifier;
and if the preset total configuration file contains the first function identifier, adding the first function identifier into the effective function set of the household appliance.
5. The method of any one of claims 1-4, wherein after generating the configuration file for the home device, further comprising:
and storing the configuration file of the household appliance into a preset folder.
6. The method of claim 5, wherein after storing the configuration file of the home device in a predetermined folder, the method further comprises:
acquiring a configuration file query instruction, wherein the query instruction comprises a target file identifier;
acquiring a target configuration file from a target file corresponding to the target file identifier;
and returning the target configuration file.
7. A method for generating a configuration file of a household appliance is characterized by comprising the following steps:
when the household appliance is powered on for the first time, sending a configuration file generation instruction to a communication module, wherein the generation instruction comprises a serial number of the household appliance;
acquiring a function verification instruction sent by the communication module, wherein the function verification instruction comprises a candidate function identifier to be verified;
generating a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier;
and returning a confirmation message to the communication module so that the communication module determines the effective function set contained in the household appliance configuration file according to the confirmation message.
8. The method of claim 7, wherein after generating the confirmation message according to whether the candidate function identifier is a locally stored function identifier, further comprising:
and if the candidate function identifier to be verified is a locally stored second function identifier, adding a preset label to the locally stored second function identifier.
9. The method of claim 8, wherein after returning an acknowledgement message to the communication module, further comprising:
acquiring an unidentified function query instruction sent by the communication module;
inquiring whether each function identifier stored locally contains the preset label or not;
and if the first function identifier does not contain the preset label, returning a response message containing the first function identifier to the communication module.
10. An apparatus for generating a profile of a home device, the apparatus comprising:
the system comprises an acquisition module, a configuration file generation module and a configuration file generation module, wherein the acquisition module is used for acquiring a configuration file generation instruction sent by a household appliance controller, and the generation instruction comprises a serial number of the household appliance;
the determining module is used for determining a candidate function set corresponding to the configuration file of the household appliance according to the serial number of the household appliance;
a sending module, configured to send function verification instructions to the controller in sequence, where each function verification instruction includes a candidate function identifier to be verified in the candidate function set;
the processing module is used for screening each candidate function of the candidate function set according to the confirmation message sequentially returned by the controller and determining the effective function set of the household appliance;
and the generating module is used for generating the configuration file of the household appliance according to the effective function set.
11. An apparatus for generating a profile of a home device, the apparatus comprising:
the system comprises a sending module, a configuration file generating module and a communication module, wherein the sending module is used for sending a configuration file generating instruction to the communication module when the household appliance is powered on for the first time, and the generating instruction comprises a serial number of the household appliance;
the acquisition module is used for acquiring a function verification instruction sent by the communication module, wherein the function verification instruction comprises a candidate function identifier to be verified;
a generating module, configured to generate a confirmation message according to whether the candidate function identifier to be verified is a locally stored function identifier;
and the return module is used for returning a confirmation message to the communication module so that the communication module determines the effective function set contained in the household appliance configuration file according to the confirmation message.
12. A home device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements a home device profile generation method as claimed in any one of claims 1 to 6, or implements a home device profile generation method as claimed in any one of claims 7 to 9.
13. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method for generating a profile of a home device according to any one of claims 1 to 6, or implements the method for generating a profile of a home device according to any one of claims 7 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911043634.4A CN110784538B (en) | 2019-10-30 | 2019-10-30 | Household appliance configuration file generation method and device, household appliance and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911043634.4A CN110784538B (en) | 2019-10-30 | 2019-10-30 | Household appliance configuration file generation method and device, household appliance and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110784538A true CN110784538A (en) | 2020-02-11 |
CN110784538B CN110784538B (en) | 2022-02-25 |
Family
ID=69387660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911043634.4A Active CN110784538B (en) | 2019-10-30 | 2019-10-30 | Household appliance configuration file generation method and device, household appliance and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110784538B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416399A (en) * | 2020-11-23 | 2021-02-26 | 珠海格力电器股份有限公司 | Target function updating method and device |
CN113452556A (en) * | 2021-06-23 | 2021-09-28 | 青岛海尔科技有限公司 | Product skill configuration method and device, storage medium and electronic device |
CN113468033A (en) * | 2021-06-23 | 2021-10-01 | 青岛海尔科技有限公司 | Testing method and system for household appliance |
CN113596234A (en) * | 2021-06-29 | 2021-11-02 | 青岛海尔科技有限公司 | Method and device for determining equipment function model, storage medium and electronic device |
CN113741231A (en) * | 2020-05-29 | 2021-12-03 | 霍尼韦尔国际公司 | Method and system for configuring a modular building control system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140358549A1 (en) * | 2013-06-03 | 2014-12-04 | Avaya Inc. | System and method for conversational configuration of applications |
CN104346177A (en) * | 2013-07-24 | 2015-02-11 | 杭州海康威视数字技术股份有限公司 | Terminal configuration method and device |
CN106019976A (en) * | 2016-08-02 | 2016-10-12 | 李体明 | Intelligent household appliance control system based on FRID technology |
US20170250860A1 (en) * | 2016-02-29 | 2017-08-31 | Kmw U.S.A., Inc. | Automatic configuration tool for configuring and installing distributed antenna system and installation guide using the same |
CN107479940A (en) * | 2017-08-23 | 2017-12-15 | 绵阳美菱软件技术有限公司 | A kind of method and device for realizing Internet of Things module |
CN108196846A (en) * | 2017-12-28 | 2018-06-22 | 美的智慧家居科技有限公司 | Home appliance control interface configuration method, terminal and computer readable storage medium |
CN110024425A (en) * | 2016-12-01 | 2019-07-16 | 三星电子株式会社 | Device and method for installing and managing ESIM configuration file |
CN110311819A (en) * | 2019-07-03 | 2019-10-08 | 广州鲁邦通物联网科技有限公司 | Automatic production of HTML page and MIBs table generating method, management method, equipment end and management system based on page configuration file |
-
2019
- 2019-10-30 CN CN201911043634.4A patent/CN110784538B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140358549A1 (en) * | 2013-06-03 | 2014-12-04 | Avaya Inc. | System and method for conversational configuration of applications |
CN104346177A (en) * | 2013-07-24 | 2015-02-11 | 杭州海康威视数字技术股份有限公司 | Terminal configuration method and device |
US20170250860A1 (en) * | 2016-02-29 | 2017-08-31 | Kmw U.S.A., Inc. | Automatic configuration tool for configuring and installing distributed antenna system and installation guide using the same |
CN106019976A (en) * | 2016-08-02 | 2016-10-12 | 李体明 | Intelligent household appliance control system based on FRID technology |
CN110024425A (en) * | 2016-12-01 | 2019-07-16 | 三星电子株式会社 | Device and method for installing and managing ESIM configuration file |
CN107479940A (en) * | 2017-08-23 | 2017-12-15 | 绵阳美菱软件技术有限公司 | A kind of method and device for realizing Internet of Things module |
CN108196846A (en) * | 2017-12-28 | 2018-06-22 | 美的智慧家居科技有限公司 | Home appliance control interface configuration method, terminal and computer readable storage medium |
CN110311819A (en) * | 2019-07-03 | 2019-10-08 | 广州鲁邦通物联网科技有限公司 | Automatic production of HTML page and MIBs table generating method, management method, equipment end and management system based on page configuration file |
Non-Patent Citations (2)
Title |
---|
LANA MISIRLIS等: ""Graphical tool for generating linker configuration files in embedded systems"", 《2011 19THTELECOMMUNICATIONS FORUM (TELFOR) PROCEEDINGS OF PAPERS》 * |
李飞: ""基于ARM的嵌入式系统网络接入安全研究"", 《中国硕士学位论文全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113741231A (en) * | 2020-05-29 | 2021-12-03 | 霍尼韦尔国际公司 | Method and system for configuring a modular building control system |
CN112416399A (en) * | 2020-11-23 | 2021-02-26 | 珠海格力电器股份有限公司 | Target function updating method and device |
CN113452556A (en) * | 2021-06-23 | 2021-09-28 | 青岛海尔科技有限公司 | Product skill configuration method and device, storage medium and electronic device |
CN113468033A (en) * | 2021-06-23 | 2021-10-01 | 青岛海尔科技有限公司 | Testing method and system for household appliance |
CN113468033B (en) * | 2021-06-23 | 2024-03-26 | 青岛海尔科技有限公司 | Household appliance testing method and system |
CN113596234A (en) * | 2021-06-29 | 2021-11-02 | 青岛海尔科技有限公司 | Method and device for determining equipment function model, storage medium and electronic device |
CN113596234B (en) * | 2021-06-29 | 2023-03-31 | 青岛海尔科技有限公司 | Method and device for determining equipment function model, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN110784538B (en) | 2022-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110784538B (en) | Household appliance configuration file generation method and device, household appliance and storage medium | |
CN108259643B (en) | Binding method and device of intelligent device and user operation terminal, and electronic device | |
CN112073471B (en) | Control method and device of equipment, storage medium and electronic device | |
CN106302448B (en) | Remote access control method and device | |
CN108376078A (en) | Upgrade method, device and the household appliance of equipment | |
CN109495492B (en) | Communication system for intelligent water business industry | |
CN112612214B (en) | Method and system for generating functional interface and electronic equipment | |
CN113672441B (en) | Method and device for testing intelligent equipment | |
CN112305924B (en) | Control method and device of household appliance, electronic equipment and storage medium | |
CN109067734B (en) | Dynamic configuration method of communication protocol, wireless communication device and household appliance | |
CN111641996B (en) | Equipment network access method and device based on Bluetooth Mesh network, and storage medium | |
CN112152887A (en) | Network distribution method and device of household appliance, electronic device and storage medium | |
CN110249642B (en) | Method and device for operating instance resource | |
CN109067735B (en) | Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment | |
US11339989B2 (en) | Communication method and device for air conditioner, outdoor unit, indoor unit, and air conditioner | |
CN104793984B (en) | A kind of modeling method of equipment, device and cloud platform | |
CN108989117B (en) | Configuration method of communication protocol, wireless communication device and household appliance | |
CN108768802B (en) | Equipment information deleting method and device, server and mobile terminal | |
CN101197959B (en) | Terminal control method, system and equipment | |
CN105068430A (en) | Method and device for group operation of household electrical appliances | |
CN110442059A (en) | Controlled equipment expanding method and device and control equipment | |
CN114244645B (en) | Distribution network method, server, computer readable storage medium and processor | |
CN106951236B (en) | Plug-in development method and device | |
CN115221167A (en) | Static data storage and query method and device and electronic device | |
CN108965018B (en) | Dynamic configuration method of communication protocol, wireless communication device and household appliance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |