Method for operating a device, apparatus and smart home device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NANJING ROBOROCK INNOVATION TECH CO LTD
- Filing Date
- 2025-04-14
- Publication Date
- 2026-06-26
Smart Images

Figure CN122285072A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of smart home technology, and in particular relates to a method of operating a device, an apparatus, and a smart home device. Background Technology
[0002] For products with minor functional differences, during the product development process, it is generally necessary to develop and test control software for each product, and during production, corresponding parts production and management should be carried out for each product.
[0003] For example, during product development, a product series can be developed. These products may have similar hardware but offer different functionalities. By using a product series, the functions of each individual product can be further refined, allowing each product within the series to meet the specific needs of different users.
[0004] During the production process of the product series, each model requires different software adaptation, necessitating software development and testing for each model within the series. Furthermore, the production of each model requires flashing different software, necessitating extensive subdivision of the material preparation process and adding multiple material management steps to the preparation of components. Summary of the Invention
[0005] In view of this, embodiments of this application provide a method, apparatus, and smart home device for operating a device, so that device products with subdivided functions can use the same software package, thereby reducing the development and testing of the device's control software, and burning the same control software into the device products can reduce the workload in parts production and management.
[0006] A first aspect of this application provides a method for operating a device, the method comprising:
[0007] In response to a received device instruction, the instruction program corresponding to the device instruction to be executed is determined from the program package;
[0008] If the package includes multiple instruction programs, then the product model of the device is obtained, and the product model is used to characterize the device function;
[0009] Based on the product model, determine the target instruction program from among the multiple instruction programs;
[0010] The target instruction program is executed to implement the device function corresponding to the device instruction.
[0011] In one possible implementation, the device includes a first device and a second device, the first device and the second device having the same target component and storing the same program package, the program package including a program executed by the first device and a program executed by the second device, the target component being a component that controls the device to execute the program, the first device and the second device having different product models, the product models being burned into the first device or the second device respectively.
[0012] In one possible implementation, the product model is burned into the memory of the first device or the second device, respectively.
[0013] In one possible implementation, the method further includes:
[0014] The product model number is sent to the user terminal, which is used to display an interface based on the product model number.
[0015] The product model includes either a first product model or a second product model;
[0016] When the device is a first device, the user terminal is used to display a first interface matching the first product model according to the first product model of the first device;
[0017] When the device is a second device, the user terminal is used to display a second interface that matches the second product model according to the second product model of the second device.
[0018] In one possible implementation, sending the product model to the user terminal includes:
[0019] When a user terminal establishes a connection with the device, a wireless access point is established based on the product model number burned in by the wireless communication module, and the user terminal connects to the device through the wireless access point.
[0020] The product model number is sent to the user terminal via the wireless access point.
[0021] In one possible implementation, the device is a garment processing device.
[0022] In one possible implementation, the device instruction is a control instruction for the garment processing device, and at least one of the control instructions for the garment processing device has corresponding multiple control programs in the program package.
[0023] In one possible implementation, the product model number has multiple characters, and the product model number represents the device function through characters at specified positions. The step of determining the target instruction program from the plurality of instruction programs based on the product model number includes:
[0024] Determine the character at the specified position in the product model number;
[0025] The target instruction program is determined from among the multiple control programs based on the characters.
[0026] A second aspect of this application provides an operating apparatus for a device, the apparatus comprising:
[0027] The first determining module is used to determine, in response to a received device instruction, the instruction program corresponding to the device instruction to be executed from the program package;
[0028] The acquisition module is used to acquire the product model of the device if the package includes multiple instruction programs, wherein the product model is used to characterize the device function;
[0029] The second determining module is used to determine the target instruction program from the plurality of instruction programs according to the product model;
[0030] An execution module is used to execute the target instruction program to implement the device function corresponding to the device instruction.
[0031] In one possible implementation, the device includes a first device and a second device, the first device and the second device having the same target component and storing the same program package, the program package including a program executed by the first device and a program executed by the second device, the target component being a component that controls the device to execute the program, the first device and the second device having different product models, the product models being burned into the first device or the second device respectively.
[0032] In one possible implementation, the product model is burned into the memory of the first device or the second device, respectively.
[0033] In one possible implementation, the device further includes:
[0034] The sending module is used to send the product model to the user terminal, and the user terminal is used to display the interface according to the product model;
[0035] The product model includes either a first product model or a second product model;
[0036] When the device is a first device, the user terminal is used to display a first interface matching the first product model according to the first product model of the first device;
[0037] When the device is a second device, the user terminal is used to display a second interface that matches the second product model according to the second product model of the second device.
[0038] In one possible implementation, the sending module includes:
[0039] A submodule is established to establish a wireless access point based on the burned product model through a wireless communication module when a user terminal establishes a connection with the device, and the user terminal connects to the device through the wireless access point;
[0040] The transmitting submodule is used to transmit the product model to the user terminal through the wireless access point.
[0041] In one possible implementation, the device is a garment processing device.
[0042] In one possible implementation, the device instruction is a control instruction for the garment processing device, and at least one of the control instructions for the garment processing device has corresponding multiple control programs in the program package.
[0043] In one possible implementation, the product model number has multiple characters, and the product model number characterizes the device function through characters at specified positions; the second determining module includes:
[0044] The character determination submodule is used to determine the character at the specified position in the product model;
[0045] The program determines a submodule, which is used to determine the target instruction program from a plurality of control programs based on the character.
[0046] A third aspect of this application provides a smart home device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect above.
[0047] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect above.
[0048] A fifth aspect of this application provides a computer program product that, when run on a smart home device, causes the smart home device to perform the method described in the first aspect.
[0049] Compared with the prior art, the embodiments of this application have the following advantages:
[0050] The method described in this application embodiment allows the use of the same software package across different devices. The devices in this application embodiment may have a software package, which may include multiple programs. Upon receiving a device instruction, the instruction program corresponding to the device instruction to be executed can be determined from the software package. If multiple instruction programs are identified from the software package, the target instruction program to be executed can be determined based on the product model. The product model can be used to characterize the device's functions. Determining the target instruction program to be executed based on the device allows different devices to achieve different functions using the same software package. The device can determine the corresponding target instruction program from the software package based on the product model, thereby enabling multiple devices with different sub-functions to use the same software package, reducing the amount of software, thus reducing software development and testing, and lowering the workload of product development. Simultaneously, writing the same software package during the material preparation process simplifies the sub-processing of equipment material preparation and improves the production efficiency of equipment parts. Attached Figure Description
[0051] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0052] Figure 1 This is a flowchart illustrating the steps of an operation method for a device provided in an embodiment of this application;
[0053] Figure 2 This is a flowchart illustrating the steps of another device operation method provided in this application embodiment;
[0054] Figure 3 This is a schematic diagram of the production and use process of a washing machine provided in an embodiment of this application;
[0055] Figure 4 This is a schematic diagram of the operating device of an apparatus provided in an embodiment of this application;
[0056] Figure 5 This is a schematic diagram of a smart home device provided in an embodiment of this application. Detailed Implementation
[0057] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0058] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0059] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0060] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0061] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0062] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0063] Currently, to reduce manual labor, the same software can be used for the same series of products, eliminating the need to distinguish specific product models during material preparation. During product installation, the specific model number for each product can be recorded and stored on a server. When the product is in use, its specific model number can be retrieved from the server. However, this method requires a connection between the product and the server before the device can determine its model number and operate normally according to its corresponding functions.
[0064] Based on this, embodiments of this application provide a method for operating a device, thereby enabling the device functions corresponding to the product model to be realized without establishing a connection with a server.
[0065] The technical solution of this application will be described below through specific embodiments.
[0066] Reference Figure 1 This illustration shows a flowchart of a device operation method according to an embodiment of this application, which may specifically include the following steps:
[0067] S101, in response to the received device instruction, determine the instruction program corresponding to the device instruction to be executed from the program package.
[0068] The executing entity in this application embodiment can be a device, which can be a smart home device. For example, smart home devices can include, but are not limited to, washing machines, dryers, robot vacuums, air conditioners, clothing handling equipment, dishwashers, televisions, etc.
[0069] Device commands refer to instructions or directives used to control and operate smart home devices. These device commands can be commands issued by the user to the smart home device. Users can issue commands to the smart home device via buttons on the device, remote programs, voice, gestures, etc. Smart home devices can receive user commands through specific communication interfaces or other intelligent recognition methods. For example, a smart home device could be a washing machine, and the device command could be a drum self-cleaning command. A smart home device could be a refrigerator, and the device command could be a defrosting command. A smart home device could be an air conditioner, and the device command could be a cooling command. A smart home device could be a garment care device, and the device command could be a wrinkle removal command.
[0070] In this embodiment, the same device instruction can be implemented in different devices in different ways. For example, the washing machine can include a regular washing machine and a silver ion washing machine. In response to a user-issued drum self-cleaning instruction, a regular washing machine will inject a large amount of water into the inner drum, and then, through a specific program, control the motor to drive the inner drum to rotate at high speed, generating a strong water flow. This water flow will flush the inner and outer drum walls, using the impact force of the water flow to wash away dirt, hair, dander, and other impurities attached to the surface, crevices, and bottom of the inner drum. A silver ion washing machine can release silver ions through a specific device during the drum self-cleaning process. Silver ions have a strong bactericidal ability, strongly attracting the sulfhydryl groups on bacterial proteases and rapidly binding to them, causing the bacterial proteases to instantly lose activity, preventing bacteria from respiring, metabolizing, and reproducing, thereby achieving the purpose of sterilization.
[0071] Different implementations of device commands can be achieved through different programs. The programs in smart home devices are used to control these devices to achieve different functions and operating modes. The aforementioned program package can include multiple programs. Each program can be used to implement a corresponding device function.
[0072] To more clearly illustrate the solution in this application, the following description uses a first device and a second device as examples. All or part of the hardware of the first device and the second device can be shared, some software functions can be shared, and some software functions are unique to each. It should be noted that this embodiment only uses the first device and the second device as examples for illustration. Those skilled in the art should understand that the first device, the second device, the third device, the fourth device, ..., the Nth device, etc., may all share all or part of their hardware and some software functions. This embodiment only uses the first device and the second device as examples for illustrative purposes.
[0073] The first device and the second device may have the same program package, which may include programs executed by both the first and second devices. That is, the program package may include programs shared by both devices, programs unique to the first device, and programs unique to the second device.
[0074] After a smart home device receives and recognizes a user's device command, it can search for the corresponding command program in the program package based on the device command.
[0075] When the received device instructions are normal, each device instruction received can be found to have one or more corresponding instruction programs in the program package. If a device instruction finds a unique corresponding instruction program, then that instruction program is shared by both the first and second devices. If a device instruction finds multiple corresponding instruction programs, then those multiple instruction programs are unique to each of the first and second devices.
[0076] As an example, the relationship between instructions and programs in the first and second devices can be shown in Table 1.
[0077] Table 1
[0078] Device instructions The instruction program of the first device The instruction program for the second device First instruction Program 1 Program 1 Second instruction Program 2 Program 2 Third Instruction Program 3 Program 4 Fourth Instruction Program 5 Program 6
[0079] As shown in Table 1, when the received device instruction is the first instruction, program 1 is found in the program package; when the received device instruction is the second instruction, program 2 is found in the program package; when the received device instruction is the third instruction, programs 3 and 4 are found in the program package; and when the received device instruction is the fourth instruction, programs 5 and 6 are found in the program package.
[0080] S102, if the program package includes multiple instruction programs, then obtain the product model of the device, the product model being used to characterize the device function.
[0081] If an instruction program is found in the program package according to the device instructions, the corresponding executable program can be run directly to complete the user instructions.
[0082] If multiple instruction programs are found in the program package based on the device instructions, the product model of the device can be obtained, and the program that the device needs to execute can be determined based on the product model of the device.
[0083] Product model numbers are used to characterize the device's functions; products with different functions can have different product model numbers. As an example, within a series of multiple sub-products, different device functions can be distinguished by product model numbers, as shown in Table 2.
[0084] Table 2
[0085] Series A Product Model Function program First Equipment A11 Standard bucket self-cleaning Program 7 Second equipment A12 Silver ion tank self-cleaning Program 8 Third equipment A13 High-temperature tank self-cleaning Program 9 Fourth equipment A14 Low-temperature tank self-cleaning Program 10
[0086] As shown in Table 2, the various sub-products in Series A can have different self-cleaning functions, thus achieving different purposes and meeting the needs of different users. Series A products with different functions can have different product models.
[0087] In this embodiment, the first device and the second device have the same target component and store the same program package, wherein the target component is the component that controls the device to execute the program. For example, the target component can be a display panel. The target component can be programmed with control software. It is understood that for the first device and the second device, which have different subdivision functions, the materials required for the target component used in the production process are the same.
[0088] During the equipment manufacturing process, the target components can be produced first in the target component manufacturing plant, and then the equipment can be assembled and manufactured in the equipment manufacturing plant.
[0089] The first and second devices store the same program package, and the target component can be programmed with the program package. Therefore, there is no need to distinguish between the first and second devices when manufacturing the target component. The same target component can be produced for both the first and second devices at the target component manufacturing plant.
[0090] For example, during production planning, if the first machine needs to produce 200 units and the second machine needs to produce 250 units, and if the first and second machines require different program packages, then the target component manufacturer needs to distinguish between the target components for the first machine and the target components for the second machine, thus programming 200 target components for the first machine and 250 target components for the second machine respectively. This increases the workload of counting and managing production.
[0091] If the method in the embodiments of this application is used, the target component manufacturer produces the same target component for both the first and second equipment. In this case, only 450 target components need to be produced, eliminating the need for further differentiated management and different production processes, thereby reducing the production and management pressure on the target component manufacturer and reducing its workload.
[0092] After all target components are manufactured in a unified manner, they can be transported to the equipment manufacturing plant. At the plant, the corresponding product model can be programmed into both the first and second equipment. Using equipment manufacturing tools, the product model can be programmed into the memory of both devices. For example, the product model can be programmed into the corresponding Flash memory.
[0093] As an example, the aforementioned device is a washing machine, and the target component can be a display panel, on which the product model can be programmed. The washing machine's display panel is a crucial interface for user interaction, primarily consisting of a display screen, buttons, indicator lights, and a controller. The controller controls the operation of the washing program, adjusts the washing temperature, controls the spin-drying speed, and monitors the water level. The controller receives operation commands from the buttons and, according to preset programs and algorithms, controls the operation of various components of the washing machine to achieve its various functions.
[0094] S103, determine the target instruction program from the plurality of instruction programs according to the product model.
[0095] In one possible implementation, the device can store the correspondence between product models and programs, thereby determining the corresponding target instruction program based on the product model.
[0096] As an example, as shown in Table 2, when the received device instruction is a tank self-cleaning instruction, four instruction programs—Program 7, Program 8, Program 9, and Program 10—can be identified from the program package. Based on the product model, the corresponding target instruction program can be determined from these four instruction programs. That is, when the product model is A11, the target instruction program is Program 7; when the product model is A12, the target instruction program is Program 8; when the product model is A13, the target instruction program is Program 9; and when the product model is A14, the target instruction program is Program 10.
[0097] S104, Execute the target instruction program to implement the device function corresponding to the device instruction.
[0098] The device can execute target instruction programs through the controller, thereby realizing the device function corresponding to the device instruction.
[0099] In this embodiment, the corresponding target instruction program can be determined from the program package based on the product model. This allows multiple devices with different sub-functions to use the same program package, eliminating the need to develop corresponding control programs for each product with specific functions. This reduces software development and testing, and lowers the workload of product R&D. Furthermore, because the same program package is used, it is written into the same package during the preparation of target components. The target component manufacturer does not need to perform additional management based on the sub-functions of the products, thus simplifying the subdivision work during equipment preparation and improving the production efficiency of equipment parts.
[0100] In this embodiment, the product model can be burned into the device. Therefore, when the device is running, the product model can be read directly from the device. Based on the read product model, the corresponding instruction to be executed can be determined directly from the program package. There is no need to obtain the product model from the server or other external storage database. Thus, the corresponding function of the device can be executed without connecting to the outside world.
[0101] Reference Figure 2 This illustration shows a flowchart of another method for operating a device according to an embodiment of this application, which may specifically include the following steps:
[0102] S201, in response to the received device instruction, determine the instruction program corresponding to the device instruction to be executed from the program package.
[0103] The execution subject of this embodiment is the aforementioned smart home device, and this embodiment will be described using a clothing processing device as an example.
[0104] The aforementioned device commands can be control commands for garment processing equipment, and at least one control command for the garment processing equipment has corresponding multiple control programs within the program package. For example, a user can issue device commands via the buttons on the display panel of the garment processing equipment.
[0105] S202, if the program package includes multiple instruction programs, then obtain the product model of the device, the product model being used to characterize the device function.
[0106] S203, determine the character at the specified position in the product model number.
[0107] The product model number can have multiple characters, and the device function is represented by the characters at specified positions. As shown in Table 2, the different functions of the product can be distinguished by the last character of the product model number.
[0108] S204, Based on the character, determine the target instruction program from the plurality of control programs.
[0109] In this embodiment, the device can store the correspondence between characters at a specified position corresponding to the product model and the program, so that the target instruction program can be determined based on the characters at the specified position.
[0110] For example, the last character of the product model can be obtained. When the character is 1, the target instruction program is program 7; when the character is 2, the target instruction program is program 8; when the character is 3, the target instruction program is program 9; and when the character is 4, the target instruction program is program 10.
[0111] As another example, the first device is a washing machine with a standard drum self-cleaning function, and the second device is a washing machine with a silver ion drum self-cleaning function. When the character at the specified position is the first character, the target instruction program is the standard drum self-cleaning program; when the character at the specified position is the second character, the target instruction program is the silver ion drum self-cleaning program.
[0112] S205, execute the target instruction program to implement the device function corresponding to the device instruction.
[0113] S206, The product model number is sent to the user terminal, which is used to display an interface based on the product model number.
[0114] The device can be connected to a user terminal, allowing the user to control the device's operation through the terminal. For example, the user terminal could be a mobile phone, tablet, or similar device. The user terminal can establish a connection with the device, thereby controlling its operation.
[0115] When a user terminal establishes a connection with the device, the device can establish a wireless access point based on the programmed product model through its wireless communication module. The user terminal then connects to the device via this wireless access point. Through the wireless access point, the device can send the product model to the user terminal, allowing the user terminal to display an interface based on the product model.
[0116] As an example, the product model includes either a first product model or a second product model. When the device is the first device, the user terminal displays a first interface matching the first product model; when the device is the second device, the user terminal displays a second interface matching the second product model. The first and second interfaces may have corresponding interface identifiers, which can be used to characterize the corresponding device functions. Based on the interface identifiers displayed on the user terminal, the user can determine the specific functions of the product. Interface identifiers can be text, graphics, etc., and are not limited here. Of course, the product model may also include a third product model, a fourth product model, and so on.
[0117] In this embodiment, when the user terminal and the device establish a connection, since the product model is burned into the device, the device can directly send the product model to the user terminal. The user terminal can then display the interface based on the product model, allowing the user to promptly obtain detailed functional information about the device. The user terminal does not need to search for the device's product model information from the server; instead, it can directly obtain the product model during the connection establishment process and display it directly, improving interface display efficiency and enhancing the user experience.
[0118] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0119] To better illustrate the solutions in this application's embodiments, a washing machine is used as an example below. When developing washing machine products, in addition to developing different series of washing machines based on different platforms, a series of washing machines may also be developed based on the same platform. This allows for the segmentation of products with relatively small R&D investment to achieve different differentiations and meet diverse customer needs. Currently, a common practice is to create a new material number for each product (even products within the same series with minor differences) and manage it independently. This method not only requires more investment in R&D and management but also necessitates the separate preparation of materials for more product types during material preparation.
[0120] Furthermore, the product models of washing machines within the same category are currently obtained through a query on the Internet of Things (IoT) backend after the machine is connected to the network. This means that the specific product type of the washing machine is unknown before it is connected to the network. For example, a certain washing machine may have two versions: one with a regular drum self-cleaning function and the other with a silver ion drum self-cleaning function. Before connecting to the network, it is not known whether it is a regular drum self-cleaning machine or a silver ion drum self-cleaning machine. This can only be determined after the product model is obtained through a query on the backend after the machine is connected to the network.
[0121] A single washing machine model can have multiple sub-models. These sub-models may share all or part of their hardware, some software functions, and some unique software functions. For example, Model A is the basic model, while Model B is a version of Model A with the addition of a silver ion box in the lifting ribs. Models A and B only differ in the silver ion box material; other materials are interchangeable. Most functions of Models A and B have the same programs, except for the drum self-cleaning function. For instance, Models A and B may have 25 identical programs, but the drum self-cleaning program differs: Model A's drum self-cleaning program is number 26, while Model B's is number 27.
[0122] In the corresponding solutions in the existing technology, Option A has one program package containing 25 programs plus program number 26; Option B has one program package containing 25 programs plus program number 27. For Option A, the machine determines the program to run only from the program package containing 26 programs based on the received instructions. For Option B, the machine determines the program to run only from the program package containing 26 programs based on the received instructions.
[0123] Product models B and A are different. For example, the first 5 digits of the product model are the same, and the last digit is either A or B to indicate whether it is model B or model A.
[0124] Since 25 programs are shared, and each program has one program for exclusive use, this embodiment of the application can store the union of programs from model B and model A in the washing machine, i.e., 27 programs. A program package can be set in the washing machine, which can include 27 programs, including the same 25 programs, program number 26 from model A, and program number 27 from model B. That is, the control software of both model B and model A can use this program package. The same control software can be burned into the control components of model B and model A, so that model B and model A only need to develop one control software, test one control software, and use one control component. The control component can be the aforementioned target component or the aforementioned display panel.
[0125] When the washing machine receives the drum self-cleaning command, it can first check the product model to determine whether to run program 26 or 27 before starting the program. For example, if the product model is determined to be model B by checking the display panel, program 27 will run. If the product model is determined to be model A by checking the display panel, program 26 will run.
[0126] Based on the method in the embodiments of this application, washing machines of models A and B can share a single set of control software, thereby reducing the workload of software development and testing.
[0127] Currently, the display panel stores the display panel part number, while the IoT (Internet of Things) stores the correspondence between the display panel part number and the product model. The washing machine needs to be connected to the internet before it can access the IoT, where it can query the product model based on the display panel part number in the IoT backend. Therefore, the washing machine can only obtain the product model and perform the corresponding functions after being connected to the internet.
[0128] In this embodiment, the product model is written into the washing machine during the assembly and production process. This allows the product model to be obtained and the corresponding functions to be implemented without needing to connect to the internet.
[0129] Based on this, the production and use process of washing machines can be as follows: Figure 3 As shown. Figure 3 As shown:
[0130] S301, during factory assembly, the product model is written into the washing machine display panel using the equipment host computer.
[0131] The aforementioned factory is a washing machine assembly plant. The display panels are manufactured in the display panel manufacturing plant. In this plant, washing machines of models A and B can be produced with the same display panels. At the washing machine assembly plant, the product model number can be entered into the washing machine display panel.
[0132] S302: When the washing machine is being inspected after production, the product model is read to verify its correctness. If an error is found, a fault is reported.
[0133] The verification involves checking whether the written product model is correct. The specific verification method is to compare the already written product model with the product model to be written. The already written product model can be obtained by reading the memory, while the product model to be written can be obtained from the label affixed to the device. The specific verification method can refer to the existing method, which will not be elaborated here.
[0134] S303: After the washing machine is off the production line, it is used normally. The controller reads the product model and executes the functions of that product.
[0135] The controller mentioned above can be an MCU (Microcontroller Unit), a SOC (System on Chip), a microcontroller, etc. The controller can be located in the display board, and the device can be operated by the method in the aforementioned embodiments.
[0136] S304, the controller reads the product model and sets the product model in the SSID of the softAP.
[0137] The controller mentioned above can be a Wi-Fi SoC in the washing machine, and the SoftAP, or Software Access Point, is also called a virtual Wi-Fi hotspot. The SSID can be a service set identifier, a software access point identifier, or a Wi-Fi hotspot name.
[0138] When the S305 mobile app connects to the softAP, it obtains the product model through the SSID and executes the corresponding product function.
[0139] In this embodiment, when the mobile app is connected to the washing machine, it can obtain the product model and display it accordingly. For example, when the mobile app is connected to the washing machine, it can obtain the product model without an internet connection, thus distinguishing between model A and model B. When not connected to the internet, the mobile app obtains the product model through the SSID. If the product model is model A, it can display the name, image, and logo corresponding to model A. If the product model is model B, it can display the name, image, and logo corresponding to model B.
[0140] If the mobile app needs the washing machine to be connected to the internet before it can display the accurate machine name and other information, it can only display the default machine name beforehand. For example, if the mobile app needs the washing machine to be connected to the internet to obtain the product model, before it is connected, the mobile app can only display the identifier corresponding to the default machine name for model A or model B, without distinguishing between model A and model B.
[0141] Understandably, in this embodiment, since the display panel contains a pre-programmed product model, the product model can be read from the memory and the corresponding program can be selected to run the device without an internet connection. When connected to a mobile app, the app can obtain the corresponding product model even without an internet connection, thus displaying the accurate machine name and image on the app, without needing to connect the machine to the internet first to know the washing machine's product model.
[0142] In this embodiment, it is not necessary to determine the product model through the display panel part number, thus eliminating the need to set different display panel part numbers for models B and A. Therefore, for hardware shared by models A and B, during assembly at the OEM factory, there is no need to distinguish whether the hardware belongs to model A or model B (i.e., there is no need to distinguish whether the display panel should use the display panel part number of model A or model B). The OEM factory can assemble the hardware and then write the product model to the display panel. The method in this embodiment simplifies the production and management of materials.
[0143] Reference Figure 4 The diagram illustrates an operating device of an embodiment of this application, which may specifically include a first determining module 41, an acquiring module 42, a second determining module 43, and an execution module 44, wherein:
[0144] The first determining module 41 is used to determine the instruction program corresponding to the device instruction to be executed from the program package in response to the received device instruction;
[0145] The acquisition module 42 is used to acquire the product model of the device if the program package includes multiple instruction programs, wherein the product model is used to characterize the device function of the device;
[0146] The second determining module 43 is used to determine the target instruction program from the plurality of instruction programs according to the product model.
[0147] The execution module 44 is used to execute the target instruction program to implement the device function corresponding to the device instruction.
[0148] In one possible implementation, the device includes a first device and a second device, the first device and the second device having the same target component and storing the same program package, the program package including a program executed by the first device and a program executed by the second device, the target component being a component that controls the device to execute the program, the first device and the second device having different product models, the product models being burned into the first device or the second device respectively.
[0149] In one possible implementation, the product model is burned into the memory of the first device or the second device, respectively.
[0150] In one possible implementation, the device further includes:
[0151] The sending module is used to send the product model to the user terminal, and the user terminal is used to display the interface according to the product model;
[0152] The product model includes either a first product model or a second product model;
[0153] When the device is a first device, the user terminal is used to display a first interface matching the first product model according to the first product model of the first device;
[0154] When the device is a second device, the user terminal is used to display a second interface that matches the second product model according to the second product model of the second device.
[0155] In one possible implementation, the sending module includes:
[0156] A submodule is established to establish a wireless access point based on the burned product model through a wireless communication module when a user terminal establishes a connection with the device, and the user terminal connects to the device through the wireless access point;
[0157] The transmitting submodule is used to transmit the product model to the user terminal through the wireless access point.
[0158] In one possible implementation, the device is a garment processing device.
[0159] In one possible implementation, the device instruction is a control instruction for the garment processing device, and at least one of the control instructions for the garment processing device has corresponding multiple control programs in the program package.
[0160] In one possible implementation, the product model number has multiple characters, and the product model number characterizes the device function through characters at specified positions; the second determining module includes:
[0161] The character determination submodule is used to determine the character at the specified position in the product model;
[0162] The program determines a submodule, which is used to determine the target instruction program from a plurality of control programs based on the character.
[0163] As the apparatus embodiments are basically similar to the method embodiments, they are described in a relatively simple manner. For relevant details, please refer to the description in the method embodiment section.
[0164] Figure 5 This is a structural schematic diagram of a smart home device provided in an embodiment of this application. Figure 5 As shown, the smart home device 500 of this embodiment includes: at least one processor 50 ( Figure 5(Only one is shown in the diagram), memory 51, and computer program 52 stored in said memory 51 and executable on said at least one processor 50, wherein said processor 50 executes said computer program 52 to implement the steps in any of the above method embodiments.
[0165] The smart home device 500 can be a washing machine, dryer, air conditioner, television, robot vacuum cleaner, dishwasher, or other home appliances. This smart home device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of a smart home device 500 and does not constitute a limitation on the smart home device 500. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0166] The processor 50 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0167] In some embodiments, the memory 51 may be an internal storage unit of the smart home device 500, such as a hard drive or memory of the smart home device 500. In other embodiments, the memory 51 may be an external storage device of the smart home device 500, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the smart home device 500. Furthermore, the memory 51 may include both internal and external storage units of the smart home device 500. The memory 51 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0168] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0169] This application provides a computer program product that, when run on a smart home device, enables the smart home device to perform the steps described in the above-described method embodiments.
[0170] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0171] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for operating a device, characterized in that, The method includes: In response to a received device instruction, the instruction program corresponding to the device instruction to be executed is determined from the program package; If the package includes multiple instruction programs, then the product model of the device is obtained, and the product model is used to characterize the device function; Based on the product model, determine the target instruction program from among the multiple instruction programs; The target instruction program is executed to implement the device function corresponding to the device instruction.
2. The method as described in claim 1, characterized in that, The device includes a first device and a second device. The first device and the second device have the same target component and store the same program package. The program package includes a program executed by the first device and a program executed by the second device. The target component is a component that controls the execution of the program by the device. The first device and the second device have different product models, and the product models are respectively burned into the first device or the second device.
3. The method as described in claim 2, characterized in that, The product model number is burned into the memory of the first device or the second device, respectively.
4. The method as described in claim 3, characterized in that, The method further includes: The product model number is sent to the user terminal, which is used to display an interface based on the product model number. The product model includes either a first product model or a second product model; When the device is a first device, the user terminal is used to display a first interface matching the first product model according to the first product model of the first device; When the device is a second device, the user terminal is used to display a second interface that matches the second product model according to the second product model of the second device.
5. The method as described in claim 4, characterized in that, Sending the product model to the user terminal includes: When a user terminal establishes a connection with the device, a wireless access point is established based on the product model number burned in by the wireless communication module, and the user terminal connects to the device through the wireless access point. The product model number is sent to the user terminal via the wireless access point.
6. The method according to any one of claims 1-5, characterized in that, The device is a garment processing device.
7. The method as described in claim 6, characterized in that, The device instruction is the control instruction of the garment processing device, and at least one of the control instructions of the garment processing device has a corresponding plurality of control programs in the program package.
8. The method as described in claim 7, characterized in that, The product model number has multiple characters, and the product model number represents the device function through characters at specified positions. The step of determining the target instruction program from multiple instruction programs based on the product model number includes: Determine the character at the specified position in the product model number; The target instruction program is determined from among the multiple control programs based on the characters.
9. An operating device for an equipment, characterized in that, The device includes: The first determining module is used to determine, in response to a received device instruction, the instruction program corresponding to the device instruction to be executed from the program package; The acquisition module is used to acquire the product model of the device if the package includes multiple instruction programs, wherein the product model is used to characterize the device function; The second determining module is used to determine the target instruction program from the plurality of instruction programs according to the product model; An execution module is used to execute the target instruction program to implement the device function corresponding to the device instruction.
10. The apparatus as claimed in claim 9, characterized in that, The device includes a first device and a second device. The first device and the second device have the same target component and store the same program package. The program package includes a program executed by the first device and a program executed by the second device. The target component is a component that controls the execution of the program by the device. The first device and the second device have different product models, and the product models are respectively burned into the first device or the second device.
11. The apparatus as claimed in claim 10, characterized in that, The product model number is burned into the memory of the first device or the second device, respectively.
12. The apparatus as claimed in claim 11, characterized in that, The device further includes: The sending module is used to send the product model to the user terminal, and the user terminal is used to display the interface according to the product model; The product model includes either a first product model or a second product model; When the device is a first device, the user terminal is used to display a first interface matching the first product model according to the first product model of the first device; When the device is a second device, the user terminal is used to display a second interface that matches the second product model according to the second product model of the second device.
13. The apparatus as claimed in claim 12, characterized in that, The sending module includes: A submodule is established to establish a wireless access point based on the burned product model through a wireless communication module when a user terminal establishes a connection with the device, and the user terminal connects to the device through the wireless access point; The transmitting submodule is used to transmit the product model to the user terminal through the wireless access point.
14. The apparatus according to any one of claims 9-13, characterized in that, The device is a garment processing device.
15. The apparatus as claimed in claim 14, characterized in that, The device instruction is the control instruction of the garment processing device, and at least one of the control instructions of the garment processing device has a corresponding plurality of control programs in the program package.
16. The apparatus as claimed in claim 15, characterized in that, The product model number has multiple characters, and the product model number uses characters at specified positions to represent the device function. The second determining module includes: The character determination submodule is used to determine the character at the specified position in the product model; The program determines a submodule, which is used to determine the target instruction program from a plurality of control programs based on the character.
17. A smart home device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-8.
18. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-8.
19. A computer program product, characterized in that, When the computer program product is run on a smart home device, it causes the smart home device to perform the method as described in any one of claims 1-8.