Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
To this end, a first aspect of the present invention proposes a data writing method.
A second aspect of the present invention proposes a data writing system.
A third aspect of the present invention proposes a terminal.
A fourth aspect of the present invention proposes a data writing method.
A fifth aspect of the present invention proposes a data writing system.
A sixth aspect of the present invention proposes a home appliance.
A seventh aspect of the present invention proposes a computer apparatus.
An eighth aspect of the present invention proposes a computer-readable storage medium.
In view of this, a first aspect of the present invention provides a data writing method for a terminal, the terminal being capable of interacting with a home appliance and a near field communication card, the data writing method comprising: reading a near field communication card to acquire target data and checking the accuracy of the target data; establishing communication connection with the household electrical appliance to acquire equipment information of the household electrical appliance; and based on the accurate target data and the matching of the target data and the equipment information, transmitting the target data to the household equipment so as to enable the household equipment to write the target data.
In the technical scheme, the NFC (NEAR FIELD Communication) function of the terminal is utilized to read target data in the near field Communication card, such as reading a product code in the near field Communication card, establish Communication with a target household appliance, and acquire the equipment information of the target household appliance. After the target data are read, checking the accuracy of the target data, if the target data are accurate and the target data are matched with the equipment information of the target household appliance, representing that the target data are the correct data of the target household appliance, sending the target data to the target household appliance at the moment, and writing the received target data into a memory of the target household appliance.
Specifically, taking home appliances as air conditioners, a terminal as a smart phone, and SN codes (i.e. product codes) of the air conditioners as target data, a user reads the SN codes stored in an NFC card through the NFC function of the smart phone, wherein the NFC card is preferably packaged together with the air conditioners to leave factories or is adhered to an air conditioner shell, after the SN codes are read, the accuracy and the uniqueness of the SN codes can be checked through a database built in the smart phone, or the SN codes can be checked through a login application program to connect with a server. The accuracy of the SN code includes the number of bits, format, and whether the SN code is within an allowable range.
Meanwhile, the intelligent mobile phone establishes communication connection with the air conditioner through a wireless local area network and the like, and acquires equipment information of the air conditioner. When the equipment information of the air conditioner is obtained and the SN code verification result is accurate and unique, further judging whether the SN code is matched with the equipment information of the air conditioner or not. For example, taking an SN code as an example of a character with a length of 10 bits, where the first three bits represent household appliance types, the fourth to six bits represent product types of household appliances, the seventh and eight bits represent household appliance sales areas, the ninth and tenth bits are check bits, the current three-bit household appliance type is an air conditioner, the four to six-bit product types are the same as the product types in the device information, the seven and eight-bit sales areas are the same as the geographic positions in the device information, that is, the identification target data are matched with the device information, at this time, the smart phone sends the read SN code and the writing instruction of the operator to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the main board according to the writing instruction.
By applying the technical scheme provided by the invention, the NFC technology is used for reading the code, meanwhile, the Internet of things between the terminal and the household appliance is utilized for writing the code to the household appliance, the problems of one code with multiple machines (namely, the product code is not unique) and the like caused by the serial code fault of the infrared code scanning gun are avoided, and meanwhile, when the problem of one code with multiple machines occurs, a consumer or after-sales person can acquire the correct product code only by reading the near field communication card through the terminal, so that the code writing operation is completed, and the accuracy and convenience of the code writing operation are improved.
In addition, the data writing method in the technical scheme provided by the invention can also have the following additional technical characteristics:
In the above technical solution, further, the step of verifying the accuracy of the target data specifically includes: transmitting the target data to a server so that the server generates a verification result aiming at the target data; and receiving a verification result, and determining the accuracy of the target data according to the verification result.
In the technical scheme, the accuracy of target data is checked through a server. Specifically, a specific application program can be installed in the terminal, and the terminal logs in to the server through the specific application program. After logging in the server, the target data are sent to the server, the server checks the accuracy of the target data, a corresponding check result is generated and fed back to the terminal, and after the terminal receives the check result, the accuracy of the target data can be determined according to the check result.
Optionally, the target data is a product code of the home appliance, and after the terminal sends the product code to the server, the server checks the number of bits, format and uniqueness of the product code and generates a corresponding checking result.
In any of the above technical solutions, further, the step of establishing a communication connection with the home appliance to obtain device information of the home appliance specifically includes: determining a service set identifier of the household appliance, and establishing wireless communication connection with the household appliance through the service set identifier; and determining the management code of the household appliance in the server, and acquiring the equipment information through the management code of the household appliance.
In the technical scheme, when communication connection is established between the terminal and the household electrical equipment, a wireless local area network hot spot of the household electrical equipment is started firstly, a hot spot identifier is a service set identifier (SSID, service Set Identifier) of the household electrical equipment, then the control terminal determines an SSID of the household electrical equipment in an SSID list of the current wireless network environment, and initiates a connection request to the SSID, so that wireless communication connection is established between the wireless local area network hot spot and the household electrical equipment.
When the equipment information of the household equipment is acquired, the management code of the household equipment is determined in the server. Optionally, a specific application program is installed in the terminal, the specific application program is logged in to a server (the server may be a cloud server or an intelligent gateway server under the same local area network), a corresponding RoomID is entered in the server (each RoomID corresponds to one home appliance, roomID is used for managing a plurality of home appliances in one system), and the RoomID is further sent to the home appliance, so as to obtain the device information of the home appliance.
In any of the above technical solutions, further, the data writing method further includes: and receiving a writing result of the target data returned by the household appliance and displaying the writing result.
In the technical scheme, after receiving target data, the home appliance generates a corresponding writing result according to the writing condition (success or failure) of the target data, and feeds back the writing result to the terminal, and after receiving the writing result returned by the home appliance, the terminal displays the corresponding writing result.
In any of the above embodiments, further, the target data includes any one or a combination of the following: product codes of household appliances, appliance codes of household appliances and management codes of household appliances.
In this technical solution, the target data includes a product code (SN code) of the home appliance, where the product code is a unique identifier of the corresponding home appliance. The target data also comprises a device code (deviceID) of the household electrical appliance, wherein the device code is an ID number corresponding to the SN code, which is distributed for a server obtained after the household electrical appliance is normally connected with a network. The object data also includes a management code (RoomID) of the home devices, corresponding to the device code, for managing a plurality of home devices in a system (local area network).
A second aspect of the present invention provides a data writing system for a terminal, the terminal being capable of interacting with a home device and a near field communication card, the data writing system comprising: the card reading unit is used for reading the near field communication card to acquire target data and checking the accuracy of the target data; the first communication unit is used for establishing communication connection with the household electrical appliance to acquire the equipment information of the household electrical appliance; and the first control unit is used for transmitting the target data to the household appliance based on the fact that the target data are accurate and the target data are matched with the equipment information, so that the household appliance writes the target data.
In the technical scheme, the NFC (NEAR FIELD Communication) function of the terminal is utilized to read target data in the near field Communication card, such as reading a product code in the near field Communication card, establish Communication with a target household appliance, and acquire the equipment information of the target household appliance. After the target data are read, checking the accuracy of the target data, if the target data are accurate and the target data are matched with the equipment information of the target household appliance, representing that the target data are the correct data of the target household appliance, sending the target data to the target household appliance at the moment, and writing the received target data into a memory of the target household appliance.
Specifically, taking home appliances as air conditioners, a terminal as a smart phone, and SN codes (i.e. product codes) of the air conditioners as target data, a user reads the SN codes stored in an NFC card through the NFC function of the smart phone, wherein the NFC card is preferably packaged together with the air conditioners to leave factories or is adhered to an air conditioner shell, after the SN codes are read, the accuracy and the uniqueness of the SN codes can be checked through a database built in the smart phone, or the SN codes can be checked through a login application program to connect with a server. The accuracy of the SN code includes the number of bits, format, and whether the SN code is within an allowable range.
Meanwhile, the intelligent mobile phone establishes communication connection with the air conditioner through a wireless local area network and the like, and acquires equipment information of the air conditioner. When the equipment information of the air conditioner is obtained and the SN code verification result is accurate and unique, further judging whether the SN code is matched with the equipment information of the air conditioner or not. For example, taking an SN code as an example of a character with a length of 10 bits, where the first three bits represent household appliance types, the fourth to six bits represent product types of household appliances, the seventh and eight bits represent household appliance sales areas, the ninth and tenth bits are check bits, the current three-bit household appliance type is an air conditioner, the four to six-bit product types are the same as the product types in the device information, the seven and eight-bit sales areas are the same as the geographic positions in the device information, that is, the identification target data are matched with the device information, at this time, the smart phone sends the read SN code and the writing instruction of the operator to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the main board according to the writing instruction.
By applying the technical scheme provided by the invention, the NFC technology is used for reading the code, meanwhile, the Internet of things between the terminal and the household appliance is utilized for writing the code to the household appliance, the problems of one code, multiple machines and the like caused by the code string faults of the infrared code scanning gun are avoided, and meanwhile, when the problem of one code, the consumer or after-sales personnel can acquire the correct product code only by reading the near field communication card through the terminal, the code writing operation is completed, and the accuracy and convenience of the code writing operation are improved.
A third aspect of the present invention provides a terminal capable of interacting with a home appliance and a near field communication card, the terminal including a data writing system as provided in any one of the above technical solutions, so that the terminal includes all the beneficial effects of the data writing system as provided in any one of the above technical solutions, which are not described herein.
A fourth aspect of the present invention provides a data writing method, for a home appliance, where the home appliance includes a memory, and the home appliance is capable of interacting with a terminal provided in any one of the foregoing technical solutions, where the data writing method includes: establishing a communication connection with the terminal to receive the management code; based on the matching of the management code and the household electrical appliance, sending the equipment information of the household electrical appliance to the terminal; and receiving target data sent by the terminal, and writing the target data into a memory.
In the technical scheme, the household appliance comprises a memory and a communication module, accesses the Internet of things through the communication module and interacts with the terminal. After the communication connection is established with the terminal, receiving the management code sent by the terminal, and judging whether the management code is matched with the household appliance. If the management code sent by the terminal is matched with the household appliance, the equipment information of the household appliance is sent to the corresponding terminal, so that the terminal judges whether the read target data is matched with the equipment information of the household appliance, and when the target data is matched with the equipment information of the household appliance, the target data is sent to the household appliance. After receiving the target data, the home appliance writes the target data into its own memory.
In the above technical solution, further, the step of establishing a communication connection with the terminal to receive the management code specifically includes: starting a network hot spot to broadcast service set identification of the household appliance; a connection request for the service set identification is received, and a communication connection is established with the terminal through the connection request to receive the management code.
In the technical scheme, the home appliance firstly starts a network hotspot to broadcast Service Set Identifiers (SSIDs) of the home appliance in a wireless network environment, and after the terminal scans the SSIDs of the home appliance, initiates a connection request aiming at the SSIDs, the home appliance establishes wireless communication connection with the terminal through the received connection request, and receives management codes sent by the terminal after the communication connection is established.
In any of the foregoing embodiments, further, after the step of writing the target data into the memory, the data writing method further includes: and generating a writing result aiming at the target data, and sending the writing result to the terminal so that the terminal displays the writing result.
In the technical scheme, after receiving the target data, the home appliance executes the step of writing the target data into the memory, and generates a corresponding writing result according to whether the target data is successfully written or not and feeds the corresponding writing result back to the terminal, so that the terminal side displays the corresponding writing result.
A fifth aspect of the present invention provides a data writing system for an electric home appliance, the data writing system comprising: the second communication unit is used for establishing communication connection with the terminal to acquire a management code; the second control unit is used for sending the equipment information of the household electrical equipment to the terminal based on the matching of the management code and the household electrical equipment; and receiving target data sent by the terminal through the second communication unit, and writing the target data into the memory.
In the technical scheme, the home appliance accesses the Internet of things through the second communication module and interacts with the terminal. After the communication connection is established with the terminal, receiving the management code sent by the terminal, and judging whether the management code is matched with the household appliance. If the management code sent by the terminal is matched with the household appliance, the equipment information of the household appliance is sent to the corresponding terminal, so that the terminal judges whether the read target data is matched with the equipment information of the household appliance, and when the target data is matched with the equipment information of the household appliance, the target data is sent to the household appliance. After receiving the target data, the home appliance writes the target data into its own memory.
A sixth aspect of the present invention provides an electric home appliance, including a memory and a data writing system provided in any of the foregoing technical solutions, so that the electric home appliance includes all technical effects of the data writing system provided in any of the foregoing technical solutions, which are not described herein again.
A seventh aspect of the present invention provides a computer apparatus, the computer apparatus including a processor configured to implement the data writing method provided in any of the above-mentioned aspects when executing a computer program stored in a memory, and therefore, the computer apparatus includes all the advantages of the data writing method provided in any of the above-mentioned aspects, which are not described herein.
An eighth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the data writing method provided in any of the above-mentioned aspects, and therefore, the computer-readable storage medium includes all the advantageous effects of the data writing method provided in any of the above-mentioned aspects, which are not described in detail herein.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
A data writing method, a data writing system, a terminal, a data writing method, a data writing system, an electric home appliance, a computer device, and a computer-readable storage medium according to some embodiments of the present invention are described below with reference to fig. 1 to 9.
As shown in fig. 1, in an embodiment of the first aspect of the present invention, there is provided a data writing method for a terminal, where the terminal is capable of interacting with a home appliance and a near field communication card, the data writing method including:
s102, reading a near field communication card to acquire target data, and checking the accuracy of the target data;
S104, establishing communication connection with the household electrical appliance to acquire equipment information of the household electrical appliance;
and S106, based on the fact that the target data are accurate and the target data are matched with the equipment information, the target data are sent to the household equipment, and the household equipment writes the target data.
In this embodiment, the NFC (NEAR FIELD Communication) function of the terminal is utilized to read the target data in the near field Communication card, for example, read the product code in the near field Communication card, and establish Communication with the target home appliance, and acquire the device information of the target home appliance. After the target data are read, checking the accuracy of the target data, if the target data are accurate and the target data are matched with the equipment information of the target household appliance, representing that the target data are the correct data of the target household appliance, sending the target data to the target household appliance at the moment, and writing the received target data into a memory of the target household appliance.
Specifically, taking home appliances as air conditioners, a terminal as a smart phone, and SN codes (i.e. product codes) of the air conditioners as target data, a user reads the SN codes stored in an NFC card through the NFC function of the smart phone, wherein the NFC card is preferably packaged together with the air conditioners to leave factories or is adhered to an air conditioner shell, after the SN codes are read, the accuracy and the uniqueness of the SN codes can be checked through a database built in the smart phone, or the SN codes can be checked through a login application program to connect with a server. The accuracy of the SN code includes the number of bits, format, and whether the SN code is within an allowable range.
Meanwhile, the intelligent mobile phone establishes communication connection with the air conditioner through a wireless local area network and the like, and acquires equipment information of the air conditioner. When the equipment information of the air conditioner is obtained and the SN code verification result is accurate and unique, further judging whether the SN code is matched with the equipment information of the air conditioner or not. For example, taking an SN code as an example of a character with a length of 10 bits, where the first three bits represent household appliance types, the fourth to six bits represent product types of household appliances, the seventh and eight bits represent household appliance sales areas, the ninth and tenth bits are check bits, the current three-bit household appliance type is an air conditioner, the four to six-bit product types are the same as the product types in the device information, the seven and eight-bit sales areas are the same as the geographic positions in the device information, that is, the identification target data are matched with the device information, at this time, the smart phone sends the read SN code and the writing instruction of the operator to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the main board according to the writing instruction.
According to the embodiment of the invention, the NFC technology is used for reading the code, meanwhile, the Internet of things between the terminal and the household appliance is utilized for writing the code to the household appliance, so that the problems of one code, multiple machines and the like caused by the code string faults of the infrared code scanning gun are avoided, and meanwhile, when the problem of one code, the consumer or after-sales personnel can acquire the correct product code only by reading the near field communication card through the terminal, the code writing operation is completed, and the accuracy and convenience of the code writing operation are improved.
In one embodiment of the present invention, further, as shown in fig. 2, the step of verifying the accuracy of the target data specifically includes:
s202, sending target data to a server so that the server generates a verification result aiming at the target data;
S204, receiving the verification result, and determining the accuracy of the target data according to the verification result.
In this embodiment, the accuracy of the target data is checked by the server. Specifically, a specific application program can be installed in the terminal, and the terminal logs in to the server through the specific application program. After logging in the server, the target data are sent to the server, the server checks the accuracy of the target data, a corresponding check result is generated and fed back to the terminal, and after the terminal receives the check result, the accuracy of the target data can be determined according to the check result.
Optionally, the target data is a product code of the home appliance, and after the terminal sends the product code to the server, the server checks the number of bits, format and uniqueness of the product code and generates a corresponding checking result.
In one embodiment of the present invention, as shown in fig. 3, further, the step of establishing a communication connection with the home appliance to obtain device information of the home appliance specifically includes:
S302, determining a service set identifier of the household appliance, and establishing wireless communication connection with the household appliance through the service set identifier;
s304, determining a management code of the household appliance in the server, and acquiring the equipment information through the management code of the household appliance.
In this embodiment, when communication connection is established between the terminal and the home appliance, a wireless local area network hotspot of the home appliance is started first, a hotspot identifier is a service set identifier (SSID, service Set Identifier) of the home appliance, then the control terminal determines an SSID of the home appliance in an SSID list of a current wireless network environment, and initiates a connection request to the SSID, so that wireless communication connection is established between the control terminal and the home appliance.
When the equipment information of the household equipment is acquired, the management code of the household equipment is determined in the server. Optionally, a specific application program is installed in the terminal, the specific application program is logged in to a server (the server may be a cloud server or an intelligent gateway server under the same local area network), a corresponding RoomID is entered in the server (each RoomID corresponds to one home appliance, roomID is used for managing a plurality of home appliances in one system), and the RoomID is further sent to the home appliance, so as to obtain the device information of the home appliance.
In one embodiment of the present invention, further, the data writing method further includes: and receiving a writing result of the target data returned by the household appliance and displaying the writing result.
In this embodiment, after receiving the target data, the home appliance generates a corresponding writing result according to the writing condition (success or failure) of the target data, and feeds back the writing result to the terminal, and after receiving the writing result returned by the home appliance, the terminal displays the corresponding writing result.
In one embodiment of the invention, further, the target data includes any one or a combination of the following: product codes of household appliances, appliance codes of household appliances and management codes of household appliances.
In this embodiment, the target data includes a product code (SN code) of the home appliance, which is a unique identification of the corresponding home appliance. The target data also comprises a device code (deviceID) of the household electrical appliance, wherein the device code is an ID number corresponding to the SN code, which is distributed for a server obtained after the household electrical appliance is normally connected with a network. The object data also includes a management code (RoomID) of the home devices, corresponding to the device code, for managing a plurality of home devices in a system (local area network).
As shown in fig. 4, in an embodiment of the second aspect of the present invention, there is provided a data writing system 400 for a terminal, the terminal being capable of interacting with an electric home appliance and a near field communication card, the data writing system 400 comprising: a card reading unit 402, configured to read a near field communication card to obtain target data, and check accuracy of the target data; a first communication unit 404, configured to establish a communication connection with a home appliance to obtain device information of the home appliance; the first control unit 406 is configured to send the target data to the home device based on the target data being accurate and the target data being matched with the device information, so that the home device writes the target data.
In this embodiment, the NFC (NEAR FIELD Communication) function of the terminal is utilized to read the target data in the near field Communication card, for example, read the product code in the near field Communication card, and establish Communication with the target home appliance, and acquire the device information of the target home appliance. After the target data are read, checking the accuracy of the target data, if the target data are accurate and the target data are matched with the equipment information of the target household appliance, representing that the target data are the correct data of the target household appliance, sending the target data to the target household appliance at the moment, and writing the received target data into a memory of the target household appliance.
Specifically, taking home appliances as air conditioners, a terminal as a smart phone, and SN codes (i.e. product codes) of the air conditioners as target data, a user reads the SN codes stored in an NFC card through the NFC function of the smart phone, wherein the NFC card is preferably packaged together with the air conditioners to leave factories or is adhered to an air conditioner shell, after the SN codes are read, the accuracy and the uniqueness of the SN codes can be checked through a database built in the smart phone, or the SN codes can be checked through a login application program to connect with a server. The accuracy of the SN code includes the number of bits, format, and whether the SN code is within an allowable range.
Meanwhile, the intelligent mobile phone establishes communication connection with the air conditioner through a wireless local area network and the like, and acquires equipment information of the air conditioner. When the equipment information of the air conditioner is obtained and the SN code verification result is accurate and unique, further judging whether the SN code is matched with the equipment information of the air conditioner or not. For example, taking an SN code as an example of a character with a length of 10 bits, where the first three bits represent household appliance types, the fourth to six bits represent product types of household appliances, the seventh and eight bits represent household appliance sales areas, the ninth and tenth bits are check bits, the current three-bit household appliance type is an air conditioner, the four to six-bit product types are the same as the product types in the device information, the seven and eight-bit sales areas are the same as the geographic positions in the device information, that is, the identification target data are matched with the device information, at this time, the smart phone sends the read SN code and the writing instruction of the operator to the air conditioner, and the air conditioner writes the SN code into the corresponding memory on the main board according to the writing instruction.
According to the embodiment of the invention, the NFC technology is used for reading the code, meanwhile, the Internet of things between the terminal and the household appliance is utilized for writing the code to the household appliance, so that the problems of one code, multiple machines and the like caused by the code string faults of the infrared code scanning gun are avoided, and meanwhile, when the problem of one code, the consumer or after-sales personnel can acquire the correct product code only by reading the near field communication card through the terminal, the code writing operation is completed, and the accuracy and convenience of the code writing operation are improved.
In an embodiment of the third aspect of the present invention, a terminal is provided, where the terminal 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 foregoing technical solutions, so that the terminal includes all the beneficial effects of the data writing system as provided in any of the foregoing technical solutions, which are not described herein again.
As shown in fig. 5, in an embodiment of the fourth aspect of the present invention, there is provided a data writing method, for an electric home appliance, where the electric home appliance includes a memory, and the electric home appliance is capable of interacting with a terminal provided in any one of the foregoing technical solutions, where the data writing method includes:
S502, establishing communication connection with a terminal to receive a management code;
s504, based on the matching of the management code and the household electrical appliance, transmitting the equipment information of the household electrical appliance to the terminal;
s506, receiving target data sent by the terminal, and writing the target data into the memory.
In this embodiment, the home appliance includes a memory and a communication module, accesses the internet of things through the communication module, and interacts with the terminal. After the communication connection is established with the terminal, receiving the management code sent by the terminal, and judging whether the management code is matched with the household appliance. If the management code sent by the terminal is matched with the household appliance, the equipment information of the household appliance is sent to the corresponding terminal, so that the terminal judges whether the read target data is matched with the equipment information of the household appliance, and when the target data is matched with the equipment information of the household appliance, the target data is sent to the household appliance. After receiving the target data, the home appliance writes the target data into its own memory.
In one embodiment of the present invention, further, as shown in fig. 6, the step of establishing a communication connection with the terminal to receive the management code specifically includes:
s602, starting a network hot spot to broadcast a service set identifier of the household appliance;
S604, receiving a connection request for the service set identification, and establishing communication connection with the terminal through the connection request to receive the management code.
In this embodiment, the home appliance first starts a network hotspot to broadcast a Service Set Identifier (SSID) of the home appliance in a wireless network environment, and after the terminal scans the SSID of the home appliance, initiates a connection request to the SSID, the home appliance establishes a wireless communication connection with the terminal through the received connection request, and receives a management code sent by the terminal after the communication connection is established.
In one embodiment of the present invention, further, after the step of writing the target data to the memory, the data writing method further includes: and generating a writing result aiming at the target data, and sending the writing result to the terminal so that the terminal displays the writing result.
In this embodiment, after receiving the target data, the home appliance executes a step of writing the target data into the memory, and generates a corresponding writing result according to whether the target data is successfully written, and feeds the corresponding writing result back to the terminal, so that the terminal side displays the corresponding writing result.
In one embodiment of the present invention, as shown in fig. 7, interaction is implemented between the smart phone and the NFC card through NFC technology, and interaction is implemented between the smart phone and the air conditioner through Wi-Fi (wireless local area network technology based on IEEE 802.11 standard created by Wi-Fi alliance).
Specifically, as shown in fig. 8, the interaction flow of the smart phone reading the SN code stored in the NFC card and writing the SN code into the air conditioner through the NFC function is as follows:
1. The user starts the hot spot of the air conditioner according to the description, and the mobile phone can see the SSID of the air conditioner in the SSID list (such as midea _ac_xx);
2. starting a hot spot of the mobile phone connected with the air conditioner;
3. Opening a Meijoa (Application) on the mobile phone, and logging in the Meijoa by using a user account;
4. finding a target air conditioner under RoomID corresponding to the entering air conditioner of the Meiju APP;
5. reading equipment information of an air conditioner;
6. Entering a code writing operation;
7. The mobile phone approaches the NFC card, and the SN code is read through the NFC function of the mobile phone;
8. The NFC card returns the SN data, and the mobile phone automatically checks the accuracy of the SN according to the read air conditioner information;
9. the mobile phone displays the verification result of the SN code;
10. The user executes a code writing operation through the Meiju APP;
11. the mobile phone displays the return state of the code writing result;
12. the code writing operation is completed, the air conditioner exits the code writing operation flow and enters the normal working flow;
13. the mobile phone writing operation is completed, and the home page of the Meiju APP is returned;
14. The code writing process is completed.
As shown in fig. 9, in an embodiment of the fifth aspect of the present invention, there is provided a data writing system 900 for an electric home appliance, the data writing system 900 including: a second communication unit 902, configured to establish a communication connection with a terminal to obtain a management code; a second control unit 904, configured to send device information of the home appliance to the terminal based on the management code being matched with the home appliance; and receiving target data sent by the terminal through the second communication unit, and writing the target data into the memory.
In this embodiment, the home appliance accesses the internet of things through the second communication module and interacts with the terminal. After the communication connection is established with the terminal, receiving the management code sent by the terminal, and judging whether the management code is matched with the household appliance. If the management code sent by the terminal is matched with the household appliance, the equipment information of the household appliance is sent to the corresponding terminal, so that the terminal judges whether the read target data is matched with the equipment information of the household appliance, and when the target data is matched with the equipment information of the household appliance, the target data is sent to the household appliance. After receiving the target data, the home appliance writes the target data into its own memory.
In an embodiment of the sixth aspect of the present invention, there is provided an electric home appliance including a memory and the data writing system provided in any of the above embodiments, so that the electric home appliance includes all technical effects of the data writing system provided in any of the above embodiments, which are not described herein.
In an embodiment of the seventh aspect of the present invention, there is provided a computer apparatus, including a processor for implementing the data writing method provided in any of the above embodiments when executing a computer program stored in a memory, and therefore, the computer apparatus includes all the advantages of the data writing method provided in any of the above embodiments, which are not described herein again.
In an embodiment of the eighth aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data writing method as provided in any of the above embodiments, and therefore, the computer-readable storage medium includes all the advantageous effects of the data writing method as provided in any of the above embodiments, which are not described in detail herein.
In the description of the present invention, the term "plurality" means two or more, unless explicitly defined otherwise, the orientation or positional relationship indicated by the terms "upper", "lower", etc. are orientation or positional relationship based on the drawings, merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention; the terms "coupled," "mounted," "secured," and the like are to be construed broadly, and may be fixedly coupled, detachably coupled, or integrally connected, for example; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the description of the present invention, the terms "one embodiment," "some embodiments," "particular embodiments," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In the present invention, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.