Data writing method and system, terminal, household appliance and computer device
Reading and writing product codes of smart home appliances through NFC technology solves the problem of product code indiscriminately caused by infrared scanning gun string code, improves the accuracy and convenience of writing, and ensures the normal function of home appliances.
Patent Information
- Application Number
- CN201910636883.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-15
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2039-07-15
AI Technical Summary
In the production process of smart home appliances, infrared code scanning guns are prone to serial code problems, resulting in insignificant product codes and inability to use the smart home appliance functions normally.
Using NFC technology to read the target data in the near field communication card through the terminal and establish a communication connection with the home appliance equipment. After verifying the accuracy and matching of the data, the data is written into the memory of the home appliance equipment to avoid infrared scanning gun string codes. One-code multiple machines caused by failure.
It improves the accuracy and convenience of data writing, ensures the uniqueness of product code, and solves the problem of abnormal functions caused by infrared scanning gun string code.
Smart Images

Figure CN112232454B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart home appliances, and in particular to a data writing method, a data writing system, a terminal, a data writing method, a data writing system, a home appliance, a computer device and a computer-readable storage medium. Background Art
[0002] Generally speaking, when smart home appliances are manufactured, a product code (SN code, which is a unique code to identify the product) is written into the product. When manufacturing smart home appliances, an infrared barcode scanner is required to scan and write codes. Since infrared barcode scanners have serial code problems when scanning and writing codes, it will cause a situation where one code is used on multiple devices (i.e., the product code is not unique), which will cause the functions of the smart home appliances to not work properly when used by users. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention provides a data writing method.
[0005] A second aspect of the present invention provides a data writing system.
[0006] A third aspect of the present invention provides a terminal.
[0007] A fourth aspect of the present invention provides a data writing method.
[0008] A fifth aspect of the present invention provides a data writing system.
[0009] A sixth aspect of the present invention provides a household appliance.
[0010] A seventh aspect of the present invention provides a computer device.
[0011] An eighth aspect of the present invention provides a computer-readable storage medium.
[0012] In view of this, a first aspect of the present invention provides a data writing method for a terminal, which can interact with a home appliance and a near-field communication card. The data writing method includes: reading the near-field communication card to obtain target data, and verifying the accuracy of the target data; establishing a communication connection with the home appliance to obtain device information of the home appliance; based on the accuracy of the target data and the matching of the target data with the device information, sending the target data to the home appliance so that the home appliance writes the target data.
[0013] In this technical solution, the NFC (Near Field Communication) function of the terminal is used to read the target data in the NFC card, such as the product code in the NFC card, and establish communication with the target home appliance, and obtain the device information of the target home appliance. After reading the target data, the accuracy of the target data is verified. If the target data is accurate and the target data matches the device information of the target home appliance, it means that the target data is the correct data of the target home appliance. At this time, the target data is sent to the target home appliance, and the target home appliance writes the received target data into its own memory.
[0014] Specifically, taking the home appliance as an air conditioner, the terminal as a smart phone, and the target data as the SN code (i.e., product code) of the air conditioner, the user uses the NFC function of the smart phone to read the SN code stored in the NFC card, wherein the NFC card is preferably packaged with the air conditioner before leaving the factory, or affixed to the air conditioner shell. After reading the SN code, the accuracy and uniqueness of the SN code can be verified through the built-in database of the smart phone, or by logging into the application to connect to the server and verifying the accuracy and uniqueness of the SN code through the server. Among them, the accuracy of the SN code includes the number of digits, format, and whether it is within the allowed range.
[0015] At the same time, the smartphone establishes a communication connection with the air conditioner through a wireless LAN or other means, and obtains the device information of the air conditioner. When the device information of the air conditioner is obtained and the SN code verification result is accurate and unique, it is further determined whether the SN code matches the device information of the air conditioner. For example, taking the SN code as a character with a length of 10 bits, the first three bits represent the type of home appliance, the fourth to sixth bits represent the product model of the home appliance, the seventh and eighth bits represent the sales area of the home appliance, and the ninth and tenth bits are check bits. The home appliance type of the current three bits is an air conditioner, the product model of the fourth to sixth bits is the same as the product model in the device information, and the sales area of the seventh and eighth bits is the same as the geographical location in the device information. That is, it is determined that the target data matches the device information. At this time, the smartphone sends the read SN code and the operator's write code instruction to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the motherboard according to the write code instruction.
[0016] By applying the technical solution provided by the present invention, NFC technology is used to read codes, and the "Internet of Things" between the terminal and the home appliance is used to write codes to the home appliance, thereby avoiding problems such as one code for multiple machines (i.e., the product code is not unique) caused by the serial code failure of the infrared barcode scanner. At the same time, when the "one code for multiple machines" problem occurs, consumers or after-sales personnel only need to read the near-field communication card through the terminal to obtain the correct product code and complete the code writing operation, thereby improving the accuracy and convenience of the code writing operation.
[0017] In addition, the data writing method in the above technical solution provided by the present invention may also have the following additional technical features:
[0018] In the above technical solution, further, the step of verifying the accuracy of the target data specifically includes: sending the target data to the server so that the server generates a verification result for the target data; receiving the verification result, and determining the accuracy of the target data according to the verification result.
[0019] In this technical solution, the accuracy of the target data is verified by the server. Specifically, a specific application can be installed in the terminal, and the server can be logged in through the specific application. After logging in to the server, the target data is sent to the server, and the server verifies the accuracy of the target data and generates a corresponding verification result to feed back to the terminal. After receiving the verification result, the terminal can determine the accuracy of the target data according to the verification result.
[0020] Optionally, the target data is a product code of the household appliance. After the terminal sends the product code to the server, the server verifies the number of digits, format and uniqueness of the product code, and generates a corresponding verification result.
[0021] In any of the above technical solutions, further, a step of establishing a communication connection with the home appliance to obtain device information of the home appliance specifically includes: determining the service set identifier of the home appliance, and establishing a wireless communication connection with the home appliance through the service set identifier; determining the management code of the home appliance in the server, and obtaining the device information through the management code of the home appliance.
[0022] In this technical solution, when establishing a communication connection with a home appliance through a terminal, the wireless LAN hotspot of the home appliance is first turned on. The hotspot identifier is the service set identifier (SSID) of the home appliance. Then, the terminal is controlled to determine the SSID of the home appliance in the SSID list of the current wireless network environment, and initiate a connection request to the SSID, thereby establishing a wireless communication connection with the home appliance.
[0023] When obtaining the device information of the home appliance, the management code of the home appliance is determined in the server. Optionally, a specific application is installed in the terminal, and the server is logged in through the specific application (the server can be a cloud server or a smart gateway server in the same local area network), and the corresponding RoomID is entered in the server (each RoomID corresponds to a home appliance, and the RoomID is used to manage multiple home appliances in a system), and then the RoomID is sent to the home appliance to obtain the device information of the home appliance.
[0024] In any of the above technical solutions, further, the data writing method also includes: receiving the writing result of the target data returned by the home appliance, and displaying the writing result.
[0025] In this technical solution, after receiving the target data, the home appliance generates a corresponding write result based on the writing status of the target data (success or failure), and feeds back the write result to the terminal. After the terminal receives the write result returned by the home appliance, it displays the corresponding write result.
[0026] In any of the above technical solutions, further, the target data includes any one of the following or a combination thereof: a product code of the household appliance, a device code of the household appliance, and a management code of the household appliance.
[0027] In this technical solution, the target data includes the product code (SN code) of the home appliance, which is the unique identifier of the corresponding home appliance. The target data also includes the device code (DeviceID) of the home appliance, which is the ID number corresponding to the SN code assigned by the server after the home appliance is normally configured and connected to the network. The target data also includes the management code (RoomID) of the home appliance, which corresponds to the device code and is used to manage multiple home appliances in a system (local area network).
[0028] The second aspect of the present invention provides a data writing system for a terminal, which can interact with a home appliance and a near-field communication card. The data writing system includes: a card reading unit, which is used to read a near-field communication card to obtain target data and verify the accuracy of the target data; a first communication unit, which is used to establish a communication connection with the home appliance to obtain device information of the home appliance; and a first control unit, which is used to send the target data to the home appliance based on the accuracy of the target data and the matching of the target data with the device information, so that the home appliance writes the target data.
[0029] In this technical solution, the NFC (Near Field Communication) function of the terminal is used to read the target data in the NFC card, such as the product code in the NFC card, and establish communication with the target home appliance, and obtain the device information of the target home appliance. After reading the target data, the accuracy of the target data is verified. If the target data is accurate and the target data matches the device information of the target home appliance, it means that the target data is the correct data of the target home appliance. At this time, the target data is sent to the target home appliance, and the target home appliance writes the received target data into its own memory.
[0030] Specifically, taking the home appliance as an air conditioner, the terminal as a smart phone, and the target data as the SN code (i.e., product code) of the air conditioner, the user uses the NFC function of the smart phone to read the SN code stored in the NFC card, wherein the NFC card is preferably packaged with the air conditioner before leaving the factory, or affixed to the air conditioner shell. After reading the SN code, the accuracy and uniqueness of the SN code can be verified through the built-in database of the smart phone, or by logging into the application to connect to the server and verifying the accuracy and uniqueness of the SN code through the server. Among them, the accuracy of the SN code includes the number of digits, format, and whether it is within the allowed range.
[0031] At the same time, the smartphone establishes a communication connection with the air conditioner through a wireless LAN or other means, and obtains the device information of the air conditioner. When the device information of the air conditioner is obtained and the SN code verification result is accurate and unique, it is further determined whether the SN code matches the device information of the air conditioner. For example, taking the SN code as a character with a length of 10 bits, the first three bits represent the type of home appliance, the fourth to sixth bits represent the product model of the home appliance, the seventh and eighth bits represent the sales area of the home appliance, and the ninth and tenth bits are check bits. The home appliance type of the current three bits is an air conditioner, the product model of the fourth to sixth bits is the same as the product model in the device information, and the sales area of the seventh and eighth bits is the same as the geographical location in the device information. That is, it is determined that the target data matches the device information. At this time, the smartphone sends the read SN code and the operator's write code instruction to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the motherboard according to the write code instruction.
[0032] By applying the technical solution provided by the present invention, NFC technology is used to read codes, and the "Internet of Things" between the terminal and the home appliance is used to write codes to the home appliance, thereby avoiding problems such as one code for multiple machines due to the serial code failure of the infrared barcode scanner. At the same time, when the "one code for multiple machines" problem occurs, consumers or after-sales personnel only need to read the near-field communication card through the terminal to obtain the correct product code and complete the code writing operation, thereby improving the accuracy and convenience of the code writing operation.
[0033] The third aspect of the present invention provides a terminal capable of interacting with household appliances and near-field communication cards, and the terminal includes a data writing system as provided in any of the above-mentioned technical solutions. Therefore, the terminal includes all the beneficial effects of the data writing system provided in any of the above-mentioned technical solutions, which will not be repeated here.
[0034] The fourth aspect of the present invention provides a data writing method for a household appliance, the household appliance including a memory, the household appliance being able to interact with a terminal provided in any of the above technical solutions, the data writing method comprising: establishing a communication connection with the terminal to receive a management code; sending device information of the household appliance to the terminal based on matching the management code with the household appliance; receiving target data sent by the terminal, and writing the target data into the memory.
[0035] In this technical solution, the home appliance includes a memory and a communication module, and accesses the Internet of Things through the communication module and interacts with the terminal. After establishing a communication connection with the terminal, the management code sent by the terminal is received to determine whether the management code matches the home appliance itself. If the management code sent by the terminal matches the home appliance, the device information of the home appliance is sent to the corresponding terminal, so that the terminal determines whether the read target data matches the device information of the home appliance, and when the target data matches the device information of the home appliance, the target data is sent to the home appliance. After receiving the target data, the home appliance writes the target data into its own memory.
[0036] In the above technical solution, further, the step of establishing a communication connection with the terminal to receive the management code specifically includes: turning on the network hotspot to broadcast the service set identifier of the home appliance; receiving a connection request for the service set identifier, and establishing a communication connection with the terminal through the connection request to receive the management code.
[0037] In this technical solution, the home appliance first turns on the network hotspot to broadcast the service set identifier (SSID) of the home appliance in the wireless network environment. After scanning the SSID of the home appliance, the terminal initiates a connection request for the SSID. The home appliance establishes a wireless communication connection with the terminal through the received connection request, and receives the management code sent by the terminal after the communication connection is established.
[0038] In any of the above technical solutions, further, after the step of writing the target data into the memory, the data writing method further includes: generating a writing result for the target data, and sending the writing result to the terminal so that the terminal displays the writing result.
[0039] In this technical solution, after receiving the target data, the household appliance executes the step of writing the target data into the memory, and generates a corresponding writing result and feeds it back to the terminal based on whether the target data is written successfully, so that the terminal side displays the corresponding writing result.
[0040] The fifth aspect of the present invention provides a data writing system for household appliances, the data writing system comprising: a second communication unit, used to establish a communication connection with a terminal to obtain a management code; a second control unit, used to match the management code with the household appliance, and send device information of the household appliance to the terminal; and receiving target data sent by the terminal through the second communication unit, and writing the target data into a memory.
[0041] In this technical solution, the home appliance accesses the Internet of Things through the second communication module and interacts with the terminal. After establishing a communication connection with the terminal, the management code sent by the terminal is received to determine whether the management code matches the home appliance itself. If the management code sent by the terminal matches the home appliance, the device information of the home appliance is sent to the corresponding terminal, so that the terminal determines whether the read target data matches the device information of the home appliance, and when the target data matches the device information of the home appliance, the target data is sent to the home appliance. After receiving the target data, the home appliance writes the target data into its own memory.
[0042] The sixth aspect of the present invention provides a household appliance, including a memory and a data writing system as provided in any of the above technical solutions. Therefore, all the technical effects of the household appliance including the data writing system provided in any of the above technical solutions will not be repeated here.
[0043] The seventh aspect of the present invention provides a computer device, which includes a processor, and the processor is used to implement a data writing method as provided in any of the above technical solutions when executing a computer program stored in a memory. Therefore, the computer device includes all the beneficial effects of the data writing method provided in any of the above technical solutions, which will not be repeated here.
[0044] The eighth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer-readable storage medium implements the data writing method provided in any of the above-mentioned technical solutions. Therefore, the computer-readable storage medium includes all the beneficial effects of the data writing method provided in any of the above-mentioned technical solutions, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0046] Figure 1 A flow chart of a data writing method according to an embodiment of the present invention is shown;
[0047] Figure 2 A flow chart of a data writing method according to another embodiment of the present invention is shown;
[0048] Figure 3 A flow chart of a data writing method according to another embodiment of the present invention is shown;
[0049] Figure 4 A structural block diagram of a data writing system according to an embodiment of the present invention is shown;
[0050] Figure 5 A flow chart of a data writing method according to another embodiment of the present invention is shown;
[0051] Figure 6 A flow chart of a data writing method according to another embodiment of the present invention is shown;
[0052] Figure 7 An interactive schematic diagram of a data writing method according to an embodiment of the present invention is shown;
[0053] Figure 8 A schematic diagram showing an interactive process of a data writing method according to an embodiment of the present invention;
[0054] Fig. 9 A structural block diagram of a data writing system according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0057] Refer to the following Figures 1 to 9 The data writing method, data writing system, terminal, data writing method, data writing system, home appliance, computer device and computer readable storage medium according to some embodiments of the present invention are described.
[0058] like Figure 1 As shown, in an embodiment of the first aspect of the present invention, a data writing method is provided, which is used for a terminal, and the terminal can interact with a home appliance and a near field communication card. The data writing method includes:
[0059] S102, reading the near field communication card to obtain target data, and verifying the accuracy of the target data;
[0060] S104, establishing a communication connection with the home appliance to obtain device information of the home appliance;
[0061] S106, based on the target data being accurate and matching the target data with the device information, sending the target data to the home appliance so that the home appliance writes the target data.
[0062] In this embodiment, the NFC (Near Field Communication) function of the terminal is used to read the target data in the NFC card, such as the product code in the NFC card, and establish communication with the target home appliance, and obtain the device information of the target home appliance. After reading the target data, the accuracy of the target data is verified. If the target data is accurate and the target data matches the device information of the target home appliance, it means that the target data is the correct data of the target home appliance. At this time, the target data is sent to the target home appliance, and the target home appliance writes the received target data into its own memory.
[0063] Specifically, taking the home appliance as an air conditioner, the terminal as a smart phone, and the target data as the SN code (i.e., product code) of the air conditioner, the user uses the NFC function of the smart phone to read the SN code stored in the NFC card, wherein the NFC card is preferably packaged with the air conditioner before leaving the factory, or affixed to the air conditioner shell. After reading the SN code, the accuracy and uniqueness of the SN code can be verified through the built-in database of the smart phone, or by logging into the application to connect to the server and verifying the accuracy and uniqueness of the SN code through the server. Among them, the accuracy of the SN code includes the number of digits, format, and whether it is within the allowed range.
[0064] At the same time, the smartphone establishes a communication connection with the air conditioner through a wireless LAN or other means, and obtains the device information of the air conditioner. When the device information of the air conditioner is obtained and the SN code verification result is accurate and unique, it is further determined whether the SN code matches the device information of the air conditioner. For example, taking the SN code as a character with a length of 10 bits, the first three bits represent the type of home appliance, the fourth to sixth bits represent the product model of the home appliance, the seventh and eighth bits represent the sales area of the home appliance, and the ninth and tenth bits are check bits. The home appliance type of the current three bits is an air conditioner, the product model of the fourth to sixth bits is the same as the product model in the device information, and the sales area of the seventh and eighth bits is the same as the geographical location in the device information. That is, it is determined that the target data matches the device information. At this time, the smartphone sends the read SN code and the operator's write code instruction to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the motherboard according to the write code instruction.
[0065] The above-mentioned embodiment provided by the present invention uses NFC technology to read codes and uses the "Internet of Things" between the terminal and the home appliance to write codes to the home appliance, thereby avoiding problems such as one code for multiple machines due to the serial code failure of the infrared barcode scanner. At the same time, when the "one code for multiple machines" problem occurs, consumers or after-sales personnel only need to read the near-field communication card through the terminal to obtain the correct product code and complete the code writing operation, thereby improving the accuracy and convenience of the code writing operation.
[0066] In one embodiment of the present invention, further, Figure 2 As shown, the steps of verifying the accuracy of the target data specifically include:
[0067] S202, sending the target data to the server so that the server generates a verification result for the target data;
[0068] S204, receiving the verification result, and determining the accuracy of the target data according to the verification result.
[0069] In this embodiment, the accuracy of the target data is verified by the server. Specifically, a specific application can be installed in the terminal, and the server can be logged in through the specific application. After logging in to the server, the target data is sent to the server, and the server verifies the accuracy of the target data and generates a corresponding verification result to feed back to the terminal. After receiving the verification result, the terminal can determine the accuracy of the target data according to the verification result.
[0070] Optionally, the target data is a product code of the household appliance. After the terminal sends the product code to the server, the server verifies the number of digits, format and uniqueness of the product code, and generates a corresponding verification result.
[0071] In one embodiment of the present invention, further, Figure 3 As shown, the steps of establishing a communication connection with a home appliance to obtain device information of the home appliance specifically include:
[0072] S302, determining a service set identifier of the home appliance, and establishing a wireless communication connection with the home appliance through the service set identifier;
[0073] S304, determining the management code of the home appliance in the server, and obtaining device information through the management code of the home appliance.
[0074] In this embodiment, when establishing a communication connection with a home appliance through a terminal, the wireless LAN hotspot of the home appliance is first turned on. The hotspot identifier is the service set identifier (SSID) of the home appliance. Then, the terminal is controlled to determine the SSID of the home appliance in the SSID list of the current wireless network environment, and initiate a connection request to the SSID, thereby establishing a wireless communication connection with the home appliance.
[0075] When obtaining the device information of the home appliance, the management code of the home appliance is determined in the server. Optionally, a specific application is installed in the terminal, and the server is logged in through the specific application (the server can be a cloud server or a smart gateway server in the same local area network), and the corresponding RoomID is entered in the server (each RoomID corresponds to a home appliance, and the RoomID is used to manage multiple home appliances in a system), and then the RoomID is sent to the home appliance to obtain the device information of the home appliance.
[0076] In one embodiment of the present invention, the data writing method further includes: receiving the writing result of the target data returned by the household appliance, and displaying the writing result.
[0077] In this embodiment, after receiving the target data, the home appliance generates a corresponding write result based on the writing status of the target data (success or failure), and feeds back the write result to the terminal. After receiving the write result returned by the home appliance, the terminal displays the corresponding write result.
[0078] In one embodiment of the present invention, further, the target data includes any one of the following or a combination thereof: a product code of the household appliance, a device code of the household appliance, and a management code of the household appliance.
[0079] In this embodiment, the target data includes the product code (SN code) of the home appliance, which is the unique identifier of the corresponding home appliance. The target data also includes the device code (DeviceID) of the home appliance, which is the ID number corresponding to the SN code assigned by the server after the home appliance is normally configured and connected to the network. The target data also includes the management code (RoomID) of the home appliance, which corresponds to the device code and is used to manage multiple home appliances in a system (local area network).
[0080] like Figure 4As shown, in an embodiment of the second aspect of the present invention, a data writing system 400 is provided, which is used for a terminal, and the terminal can interact with a home appliance and a near-field communication card. The data writing system 400 includes: a card reading unit 402, which is used to read a near-field communication card to obtain target data and verify the accuracy of the target data; a first communication unit 404, which is used to establish a communication connection with the home appliance to obtain device information of the home appliance; and a first control unit 406, which is used to send the target data to the home appliance based on the accuracy of the target data and the matching of the target data with the device information, so that the home appliance writes the target data.
[0081] In this embodiment, the NFC (Near Field Communication) function of the terminal is used to read the target data in the NFC card, such as the product code in the NFC card, and establish communication with the target home appliance, and obtain the device information of the target home appliance. After reading the target data, the accuracy of the target data is verified. If the target data is accurate and the target data matches the device information of the target home appliance, it means that the target data is the correct data of the target home appliance. At this time, the target data is sent to the target home appliance, and the target home appliance writes the received target data into its own memory.
[0082] Specifically, taking the home appliance as an air conditioner, the terminal as a smart phone, and the target data as the SN code (i.e., product code) of the air conditioner, the user uses the NFC function of the smart phone to read the SN code stored in the NFC card, wherein the NFC card is preferably packaged with the air conditioner before leaving the factory, or affixed to the air conditioner shell. After reading the SN code, the accuracy and uniqueness of the SN code can be verified through the built-in database of the smart phone, or by logging into the application to connect to the server and verifying the accuracy and uniqueness of the SN code through the server. Among them, the accuracy of the SN code includes the number of digits, format, and whether it is within the allowed range.
[0083] At the same time, the smartphone establishes a communication connection with the air conditioner through a wireless LAN or other means, and obtains the device information of the air conditioner. When the device information of the air conditioner is obtained and the SN code verification result is accurate and unique, it is further determined whether the SN code matches the device information of the air conditioner. For example, taking the SN code as a character with a length of 10 bits, the first three bits represent the type of home appliance, the fourth to sixth bits represent the product model of the home appliance, the seventh and eighth bits represent the sales area of the home appliance, and the ninth and tenth bits are check bits. The home appliance type of the current three bits is an air conditioner, the product model of the fourth to sixth bits is the same as the product model in the device information, and the sales area of the seventh and eighth bits is the same as the geographical location in the device information. That is, it is determined that the target data matches the device information. At this time, the smartphone sends the read SN code and the operator's write code instruction to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the motherboard according to the write code instruction.
[0084] The above-mentioned embodiment provided by the present invention uses NFC technology to read codes and uses the "Internet of Things" between the terminal and the home appliance to write codes to the home appliance, thereby avoiding problems such as one code for multiple machines due to the serial code failure of the infrared barcode scanner. At the same time, when the "one code for multiple machines" problem occurs, consumers or after-sales personnel only need to read the near-field communication card through the terminal to obtain the correct product code and complete the code writing operation, thereby improving the accuracy and convenience of the code writing operation.
[0085] In an embodiment of the third aspect of the present invention, a terminal is provided, which is capable of interacting with a home appliance and a near-field communication card, and the terminal includes a data writing system as provided in any of the above technical solutions. Therefore, the terminal includes all the beneficial effects of the data writing system provided in any of the above technical solutions, which will not be repeated here.
[0086] like Figure 5 As shown, in an embodiment of the fourth aspect of the present invention, a data writing method is provided, which is used for a home appliance, the home appliance includes a memory, and the home appliance can interact with a terminal provided in any of the above technical solutions, and the data writing method includes:
[0087] S502, establishing a communication connection with a terminal to receive a management code;
[0088] S504, sending device information of the home appliance to the terminal based on matching the management code with the home appliance;
[0089] S506, receiving target data sent by the terminal, and writing the target data into a memory.
[0090] In this embodiment, the home appliance includes a memory and a communication module, and accesses the Internet of Things through the communication module and interacts with the terminal. After establishing a communication connection with the terminal, the management code sent by the terminal is received to determine whether the management code matches the home appliance itself. If the management code sent by the terminal matches the home appliance, the device information of the home appliance is sent to the corresponding terminal, so that the terminal determines whether the read target data matches the device information of the home appliance, and when the target data matches the device information of the home appliance, the target data is sent to the home appliance. After receiving the target data, the home appliance writes the target data into its own memory.
[0091] In one embodiment of the present invention, further, Figure 6 As shown, the step of establishing a communication connection with the terminal to receive the management code specifically includes:
[0092] S602, opening a network hotspot to broadcast a service set identifier of the home appliance;
[0093] S604: Receive a connection request for the service set identifier, and establish a communication connection with the terminal through the connection request to receive the management code.
[0094] In this embodiment, the home appliance first turns on the network hotspot to broadcast the service set identifier (i.e., SSID) of the home appliance in the wireless network environment. After scanning the SSID of the home appliance, the terminal initiates a connection request for the SSID. The home appliance establishes a wireless communication connection with the terminal through the received connection request, and receives the management code sent by the terminal after the communication connection is established.
[0095] In one embodiment of the present invention, further, after the step of writing the target data into the memory, the data writing method further comprises: generating a writing result for the target data, and sending the writing result to the terminal so that the terminal displays the writing result.
[0096] In this embodiment, after receiving the target data, the household appliance executes the step of writing the target data into the memory, and generates a corresponding writing result and feeds it back to the terminal according to whether the target data is written successfully, so that the terminal side displays the corresponding writing result.
[0097] In one embodiment of the present invention, Figure 7 As shown, the smartphone and the NFC card interact with each other through NFC technology, and the smartphone and the air conditioner interact with each other through Wi-Fi (a wireless local area network technology based on the IEEE 802.11 standard created by the Wi-Fi Alliance).
[0098] Specifically, Figure 8 As shown in the figure, the interaction process of the smartphone reading the SN code stored in the NFC card through the NFC function and writing the SN code into the air conditioner is as follows:
[0099] 1. First, the user starts the hotspot of the air conditioner according to the instructions. The mobile phone can see the SSID of the air conditioner in the SSID list (for example: midea_ac_xxxx);
[0100] 2. Turn on your phone and connect it to the air conditioner's hotspot;
[0101] 3. Open the Meiju APP (Application) on your mobile phone and log in to the Meiju APP with your user account;
[0102] 4. Enter the RoomID corresponding to the air conditioner in the Meiju APP and find the target air conditioner;
[0103] 5. Read the equipment information of the air conditioner;
[0104] 6. Enter the coding operation;
[0105] 7. Place the phone close to the NFC card and use the NFC function of the phone to read the SN code;
[0106] 8. The NFC card returns the SN code data, and the mobile phone automatically verifies the accuracy of the SN code based on the air conditioner information read;
[0107] 9. The mobile phone displays the verification result of the SN code;
[0108] 10. The user performs coding operations through the Meiju APP;
[0109] 11. The mobile phone displays the return status of the coding result;
[0110] 12. After the coding operation is completed, the air conditioner exits the coding operation process and enters the normal working process;
[0111] 13. After the mobile phone coding operation is completed, return to the homepage of the Meiju APP;
[0112] 14. The coding process is completed.
[0113] like Fig. 9 As shown, in an embodiment of the fifth aspect of the present invention, a data writing system 900 is provided for household appliances, and the data writing system 900 includes: a second communication unit 902, used to establish a communication connection with a terminal to obtain a management code; a second control unit 904, used to match the management code with the household appliance, and send device information of the household appliance to the terminal; and receive target data sent by the terminal through the second communication unit, and write the target data into a memory.
[0114] In this embodiment, the home appliance accesses the Internet of Things through the second communication module and interacts with the terminal. After establishing a communication connection with the terminal, the management code sent by the terminal is received to determine whether the management code matches the home appliance itself. If the management code sent by the terminal matches the home appliance, the device information of the home appliance is sent to the corresponding terminal, so that the terminal determines whether the read target data matches the device information of the home appliance, and when the target data matches the device information of the home appliance, the target data is sent to the home appliance. After receiving the target data, the home appliance writes the target data into its own memory.
[0115] In an embodiment of the sixth aspect of the present invention, a household appliance is provided, comprising a memory and a data writing system as provided in any of the above embodiments. Therefore, all technical effects of the household appliance including the data writing system provided in any of the above embodiments are not repeated here.
[0116] In an embodiment of the seventh aspect of the present invention, a computer device is provided, the computer device includes a processor, and the processor is used to implement the data writing method provided in any of the above embodiments when executing a computer program stored in a memory. Therefore, the computer device includes all the beneficial effects of the data writing method provided in any of the above embodiments, which will not be repeated here.
[0117] In an embodiment of the eighth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data writing method provided in any of the above embodiments is implemented. Therefore, the computer-readable storage medium includes all the beneficial effects of the data writing method provided in any of the above embodiments, which will not be repeated here.
[0118] In the description of the present invention, the term "plurality" refers to two or more than two. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship described in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0119] In the description of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data writing method, used in a terminal, characterized in that: The terminal can interact with the home appliance and the near field communication card, and the data writing method includes: Reading the near field communication card to obtain target data, and verifying the accuracy of the target data; Establishing a communication connection with the home appliance to obtain device information of the home appliance; Based on the target data being accurate and the target data matching the device information, sending the target data to the home appliance so that the home appliance writes the target data; The step of verifying the accuracy of the target data specifically includes: Sending the target data to a server so that the server generates a verification result for the target data; receiving the verification result, and determining the accuracy of the target data according to the verification result; The step of establishing a communication connection with the household appliance to obtain the device information of the household appliance specifically includes: Determine a service set identifier of the home appliance, and establish a wireless communication connection with the home appliance through the service set identifier; Determining a management code of the home appliance in the server, and acquiring the device information through the management code of the home appliance; The hotspot identifier is the service set identifier of the home appliance.
2. The data writing method according to claim 1, characterized in that: Also includes: Receive the writing result of the target data returned by the home appliance, and display the writing result.
3. The data writing method according to claim 1, characterized in that: The target data includes any one or a combination of the following: The product code of the household appliance, the device code of the household appliance, and the management code of the household appliance.
4. A data writing system, used in a terminal, characterized in that: The terminal can interact with home appliances and near field communication cards, and the data writing system includes: A card reading unit, used for reading the near field communication card to obtain target data and verifying the accuracy of the target data; A first communication unit, configured to establish a communication connection with the home appliance to obtain device information of the home appliance; A first control unit, configured to send the target data to the home appliance based on the target data being accurate and the target data matching the device information, so that the home appliance writes the target data; The step of verifying the accuracy of the target data specifically includes: Sending the target data to a server so that the server generates a verification result for the target data; receiving the verification result, and determining the accuracy of the target data according to the verification result; The step of establishing a communication connection with the household appliance to obtain the device information of the household appliance specifically includes: Determine a service set identifier of the home appliance, and establish a wireless communication connection with the home appliance through the service set identifier; Determining a management code of the home appliance in the server, and acquiring the device information through the management code of the home appliance; The hotspot identifier is the service set identifier of the home appliance.
5. A terminal, characterized in that: The terminal can interact with the home appliance and the near field communication card, and the terminal includes: The data writing system as claimed in claim 4.
6. A data writing method for a household appliance, wherein the household appliance includes a memory, characterized in that: The household appliance can interact with the terminal according to claim 5, and the data writing method includes: establishing a communication connection with the terminal to receive a management code; Based on the matching of the management code and the home appliance, sending the device information of the home appliance to the terminal; receiving target data sent by the terminal, and writing the target data into the memory; The step of establishing a communication connection with the terminal to receive the management code specifically includes: Opening a network hotspot to broadcast the service set identifier of the home appliance; receiving a connection request for the service set identifier, and establishing a communication connection with the terminal through the connection request to receive the management code; The hotspot identifier is the service set identifier of the home appliance.
7. The data writing method according to claim 6, characterized in that: After the step of writing the target data into the memory, the data writing method further comprises: A writing result for the target data is generated, and the writing result is sent to the terminal so that the terminal displays the writing result.
8. A data writing system for a household appliance, wherein the household appliance includes a memory, characterized in that: The household appliance can interact with the terminal according to claim 5, and the data writing system includes: A second communication unit, used to establish a communication connection with the terminal to receive a management code; a second control unit, configured to send device information of the home appliance to the terminal based on matching the management code with the home appliance; and Receiving the target data sent by the terminal through the second communication unit, and writing the target data into the memory; the step of establishing a communication connection with the terminal to receive the management code specifically includes: Opening a network hotspot to broadcast the service set identifier of the home appliance; receiving a connection request for the service set identifier, and establishing a communication connection with the terminal through the connection request to receive the management code; The hotspot identifier is the service set identifier of the home appliance.
9. A household appliance, characterized in that: include: Memory; The data writing system according to claim 8, wherein the data writing system is connected to the memory.
10. A computer device, characterized in that: The computer device comprises a processor, and the processor is used to implement: The data writing method according to any one of claims 1 to 3; and / or The data writing method according to claim 6 or 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it realizes: The data writing method according to any one of claims 1 to 3; and / or The data writing method according to claim 6 or 7.
