A method for transmitting data to a home appliance product
By using FIFO or SRAM cache area in home appliances, the problem of difficult to determine the timing of data reading of built-in functional modules is solved, and data transmission efficiency and user experience are improved.
Patent Information
- Application Number
- CN202210435866.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-04-24
AI Technical Summary
In the prior art, when home appliances transmit data through NFC modules, it is difficult for the built-in functional module to determine the appropriate data reading time, resulting in low data transmission efficiency and poor user experience, especially when the data volume is large, it is necessary to "touch" the user equipment multiple times.
Using the characteristics of FIFO or SRAM cache area, product applications trigger the built-in functional module to read data in real time when writing data, and realize "write while reading" through the cache area to avoid waiting for all data to be written.
Real-time data transmission is realized, and the built-in functional modules obtain data faster, improving user experience and reducing the number of interactions between user equipment and home appliances.
Smart Images

Figure CN115329790B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the technical field of smart home appliances, and particularly to a method for transmitting data to home appliance products. Background Art
[0002] In the related art, home appliance products have an NFC module. Users can "tap" the sensing area of the NFC module of the home appliance product with their own user device (such as a mobile phone), and use the NFC module of their own user device to perform near-field communication with the NFC module of the home appliance product to achieve data transmission to the home appliance product.
[0003] Specifically, the product application installed on the user device can use near-field communication to write data (such as control instructions, network configuration information, etc.) into the flash memory (such as eeprom) data area of the NFC module of the home appliance product. After the built-in function module of the home appliance product determines that the writing by the product application is completed, it reads the data from the flash memory storage area and realizes corresponding functions according to the read data.
[0004] Based on this, a more efficient technical solution is needed to achieve data transmission from the product application to the home appliance product. Summary of the Invention
[0005] In view of the above technical problems, this specification provides the following technical solutions:
[0006] In a first aspect, a method for transmitting data to a home appliance product is provided. The home appliance product includes an NFC module and a built-in function module. The NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or an SRAM area;
[0007] The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product. The method includes:
[0008] The product application installed on the user device starts writing data continuously into the cache data area through the communication connection until all the data to be transmitted is written into the cache data area;
[0009] The built-in function module determines the data volume of all the data to be transmitted, and starts continuously reading data from the cache data area when it monitors that the cache data area starts to be written with data until it reads the data volume of data.
[0010] In the above technical solution, by utilizing the characteristics of the FIFO buffer or the SRAM buffer, when the product application starts writing data into the buffer data area at the beginning, it can trigger the built-in functional module to start reading data from the buffer data area in a timely manner, which is close to achieving the real-time nature of data transmission, equivalent to achieving the effect of the product application transmitting data to the built-in functional module in real time. The built-in functional module does not have to wait for the product application to complete writing all the data to be transmitted before it can read the data. In this way, the built-in functional module can obtain the data transmitted by the product application faster and start implementing the corresponding functions based on this data faster.
[0011] In some embodiments, the built-in functional module includes: a working control module, or a Wi-Fi module.
[0012] For example, if the data is a control instruction and the built-in functional module is a working control module, the working control module can start executing the control instruction faster. Another example is that if the data is network configuration information and the built-in functional module is a Wi-Fi module, the Wi-Fi module can start network configuration faster.
[0013] In some embodiments, the NFC module of the home appliance product further has a flash memory data area. The flash memory data area includes a flag area, and the flag area includes first flag information for characterizing the working state of the home appliance product. The working state includes one of shutdown, standby, working, and fault; wherein, the working control module of the home appliance product sets the first flag information according to the working state of the home appliance product;
[0014] The product application installed on the user device continuously writes data into the buffer data area through the communication connection, including:
[0015] The product application installed on the user device reads the first flag information from the flag area through the communication connection to determine the working state of the home appliance product; if the working state of the home appliance product meets the data transmission condition, it continuously writes data into the buffer data area; the data transmission condition includes: standby or working.
[0016] When the home appliance product is in standby or working state, it means that it is powered on, and at this time, the buffer data area can receive input and write operations.
[0017] In some embodiments, the flash memory data area includes a custom data area, which is configured to use a non-NFC data exchange format recognizable by the product application, and the operating system of the user device is readable and writable to the custom data area; the flag area is included in the custom data area.
[0018] Even if the operating system of the user device can modify the data in the custom data area, it will not pose a threat to the data security of the product manufacturer, because the operating system of the user device cannot recognize the non-NFC data exchange format customized by the product manufacturer.
[0019] In some embodiments, it further includes:
[0020] After the built-in functional module reads the data of the data volume, it clears the cache data area.
[0021] Generally, the default state of the cache data area is the cleared state. After the built-in functional module finishes reading all the data to be transmitted this time, it can clear the cache data area.
[0022] In some embodiments, it further includes:
[0023] After the built-in functional module reads the data of the data volume, it writes a transmission completion notification to the cache data area;
[0024] After the product application reads the transmission completion notification from the cache data area, it prompts the user that the transmission is completed, so that the user can disconnect the communication connection.
[0025] After the built-in functional module finishes reading all the data to be transmitted this time, it can promptly inform the product application that the reading is completed, so that the user can take the user device away from the sensing area of the NFC module of the home appliance product. In addition, the product application can also remind the user to take the user device away from the sensing area of the NFC module of the home appliance product by itself after determining that all the data to be transmitted has been written.
[0026] In some embodiments, the data volume exceeds the space size of the cache data area;
[0027] The steps for the product application to continuously write data to the cache data area and the built-in functional module to continuously read data from the cache data area include:
[0028] The product application sequentially writes each data packet of all the data to be transmitted into the cache data area. Whenever it is determined that the cache data area is in the cleared state, it writes one data packet; wherein, the size of each data packet does not exceed the space size of the cache data area;
[0029] The built-in functional module sequentially reads each data packet from the cache data area. After reading one data packet each time, if it is determined that the data of the data volume has not been read yet, it clears the cache data area.
[0030] Since the cache data area supports "writing while reading", the product application can write multiple data packets separately in multiple times. After the built-in functional module reads each data packet, if it is determined that not all the data to be transmitted has been read, the cache data area can be cleared, and the product application can continue to write the next data packet.
[0031] That is to say, even if the amount of all the data to be transmitted this time exceeds the size of the cache data area, it is not necessary for the user to use the user device to "touch" the home appliance product multiple times. The user only needs to "touch" the user device once to complete the transmission of all the data to be transmitted, so the user experience is relatively good.
[0032] In some embodiments, the method further includes:
[0033] The product application writes instruction information including the amount of data into the cache data area;
[0034] The built-in functional module determines the amount of all the data to be transmitted, including:
[0035] The built-in functional module reads the instruction information from the cache data area.
[0036] The product application can use the data cache area to send the size of the amount of all the data to be transmitted to the built-in functional module. In addition, the product application can also use other means to send the size of the amount of all the data to be transmitted to the built-in functional module, such as writing the size of the data amount into the flash data area, and the built-in functional module reads it from the flash data area.
[0037] In a second aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements the functions of the built-in functional module or the product application.
[0038] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, it implements the functions of the built-in functional module or the product application.
[0039] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit this specification. Description of the Drawings
[0040] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the embodiments of this specification. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.
[0041] Figure 1 It is a schematic flowchart of a method for transmitting data to a home appliance product provided by this specification;
[0042] Figure 2 It is a schematic diagram of transmitting data to a home appliance product using a FIFO channel provided by this specification;
[0043] Figure 3 It is another schematic diagram of transmitting data to a home appliance product using a FIFO channel provided by this specification;
[0044] Figure 4 It is a schematic diagram of a computer-readable storage medium provided by this disclosure;
[0045] Figure 5 It is a schematic structural diagram of a computing device provided by this disclosure. Detailed implementation manners
[0046] The home appliance products described in this specification generally refer to electrical appliance products for various purposes applied in a home environment or other environments. Specifically, they can be cooking appliances with a certain cooking function, such as electric pressure cookers, electric woks, wall breakers, juicers, etc. In addition, the cooking appliances can also be multi-functional cooking appliances with various cooking functions.
[0047] The home appliance products described in this specification have the conventional structures and functions of current home appliance products on the market (such as product shells, power interfaces, basic home appliance functions, etc.), which will not be particularly introduced herein.
[0048] Home appliance products usually include built-in function modules and NFC modules. Among them, the built-in function modules can be function modules that have requirements for the data transmitted from the user side, such as a work control module and a Wi-Fi module.
[0049] The product applications and home appliance products described in this specification are all provided by the same product manufacturer.
[0050] The data area of the NFC module usually can include the data area of a flash memory medium (such as EEPROM), which is usually called the flash data area. The characteristic of the flash data area is that it can ensure data non-loss without power supply. The data area of some NFC modules can also include a cache data area (or buffer data area), and the cache data area is generally a FIFO area or a SRAM area. The characteristic of the cache data area is that data will be lost without power supply.
[0051] The flash data area generally can include a system area and a standard data area. The standard data area is the data area defined based on the NFC protocol, which includes several NFC records. The flash data area can also include the data area customized by the household appliance product manufacturer, which will be introduced later.
[0052] The characteristic of the flash data area is that during the data writing process on the writing side (the side that writes data to the flash data area), if the reading side (the side that reads data from the flash data area) performs data reading, it will cause the data writing to be interrupted. Therefore, usually, after the writing side finishes writing data, the reading side can perform data reading and writing.
[0053] In the scenario of using NFC to implement data transmission to household appliance products, it is a difficult problem for the built-in functional module to determine the timing of starting to read data from the flash data area. If the built-in functional module reads at too early a timing, it may be that the product application has not completed writing all the data to be transmitted, resulting in a writing failure; if the built-in functional module reads at too late a timing, it will affect the data transmission efficiency, and the built-in functional module cannot obtain the data transmitted by the product application in time, resulting in a poor user experience.
[0054] Usually, the built-in functional module can read data from the flash data area in time after detecting the departure signal of the NFC module of the user device (indicating that the user takes the user device away from the NFC sensing area of the household appliance product, which is very likely to indicate that the writing is completed).
[0055] However, the built-in functional module can start reading only after the product application writes all the data to be transmitted into the flash data area. In particular, when the amount of data to be transmitted is relatively large, the time for the product application to write data will be longer. Therefore, a technical solution is needed to further advance the timing of the built-in functional module to read data, so as to shorten the data transmission time (the built-in functional module reads all the data before it can be regarded as the transmission is completed) and optimize the user experience.
[0056] In addition, when the amount of data to be transmitted is relatively large, it may exceed the size of the flash memory data area. Since the built-in function module triggers data reading based on the departure signal, the user has to first operate the user device to write a part of the data into the cache data area, then take the user device away from the NFC sensing area of the home appliance product to generate a departure signal to trigger the built-in function module to read the data and clear the flash memory data area, and then bring the user device close to the NFC sensing area of the home appliance product again to continue writing data. Obviously, this will cause the user to use the user device to "touch" the home appliance product multiple times to complete a single data transmission, resulting in a poor user experience.
[0057] The characteristic of the cache data area is that during the data writing process to the cache data area on the writing side, even if the reading side starts data reading, it will not cause the data writing to be interrupted. Therefore, by using the cache data area, the effect similar to a real-time data transmission channel can be achieved. In this way, the reading side does not have to wait for the writing side to complete the writing before starting to read.
[0058] In the scenario of using NFC to transmit data to a home appliance product, by utilizing the characteristics of the FIFO buffer or SRAM buffer, when the product application starts writing data into the cache data area at the beginning, it can trigger the built-in function module to start reading data from the cache data area in a timely manner. This is close to achieving the real-time nature of data transmission, which is equivalent to achieving the effect of the product application transmitting data to the built-in function module in real time. The built-in function module does not have to wait for the product application to complete writing all the data to be transmitted before it can perform data reading. In this way, the built-in function module can obtain the data transmitted by the product application faster and start implementing the corresponding functions based on this data faster.
[0059] Furthermore, even if the amount of all the data to be transmitted exceeds the size of the cache data area, the product application can sequentially write each data packet of the all data to be transmitted into the cache data area, writing one data packet each time it is determined that the cache data area is in an empty state; where the size of each data packet does not exceed the size of the cache data area. The built-in function module can sequentially read each data packet from the cache data area. After reading one data packet each time, if it is determined that the amount of data has not been fully read, the cache data area is cleared.
[0060] Since the cache data area supports "writing while reading", the product application can write multiple data packets separately in multiple times. After the built-in function module reads one data packet each time, if it is determined that not all the data to be transmitted has been read, the cache data area can be cleared, and the product application can continue to write the next data packet.
[0061] That is to say, even if the amount of all data to be transmitted this time exceeds the space size of the cache data area, it is not necessary for the user to "touch" the home appliance product multiple times with the user device. The user only needs to "touch" the user device once to complete the transmission of all data to be transmitted, which provides a better user experience.
[0062] Figure 1 It is a schematic flowchart of a method for transmitting data to a home appliance product provided in this specification, including:
[0063] S100: The product application installed on the user device starts writing data into the cache data area continuously through the communication connection until all data to be transmitted is written into the cache data area.
[0064] In practical applications, the user can bring their user device close to the NFC sensing area of the home appliance product, so that the NFC module of the user device establishes a communication connection with the NFC module of the home appliance product.
[0065] S102: The built-in function module determines the amount of all data to be transmitted, and starts reading data from the cache data area continuously when it monitors that data starts to be written into the cache data area until it reads the amount of data.
[0066] Figure 2 It is a schematic diagram of transmitting data to a home appliance product using a FIFO channel provided in this specification. As Figure 2 shown, the NFC module of the home appliance product includes an eeprom area (i.e., the flash data area) and a FIFO area (i.e., the cache data area). The product application can send a write instruction (write fifo instruction) to the NFC module of the home appliance product to trigger the NFC module to open the FIFO channel, so that the FIFO area enters the active state. The product application can start writing data. The built-in function module reads data from the FIFO channel. After the built-in function module confirms that it has read all the data with a sufficient amount, it sends a confirmation instruction to the FIFO channel. In response to this confirmation instruction, the product application sends an end instruction to the FIFO channel. In response to the end instruction, the NFC module closes the FIFO channel, and the FIFO area changes from the active state to the inactive state.
[0067] In some embodiments, the built-in function module includes: a working control module, or a Wi-Fi module.
[0068] For example, if the data is a control instruction and the built-in function module is a working control module, the working control module can start executing the control instruction faster. Another example is that if the data is network configuration information and the built-in function module is a Wi-Fi module, the Wi-Fi module can start network configuration faster.
[0069] The NFC module of the home appliance product may also have a flash memory data area. The flash memory data area includes a flag area, and the flag area includes first flag information, which is used to characterize the working state of the home appliance product. The working state includes one of shutdown, standby, working, and fault; wherein, the working control module of the home appliance product sets the first flag information according to the working state of the home appliance product.
[0070] The product application can read the first flag information from the flag area through the communication connection to determine the working state of the home appliance product; if the working state of the home appliance product meets the data transmission condition, data is continuously written into the cache data area; the data transmission condition includes: standby or working. When the home appliance product is in standby or working, it means that it is powered on, and at this time, the cache data area can receive input and write data.
[0071] The built-in function module can empty the cache data area after reading the data of the data volume. Generally, the default state of the cache data area is an empty state. After the built-in function module completes the reading of all the data to be transmitted this time, it can empty the cache data area.
[0072] The built-in function module can write a transmission completion notification to the cache data area after reading the data of the data volume. After the product application reads the transmission completion notification from the cache data area, it can prompt the user that the transmission is completed so that the user can disconnect the communication connection.
[0073] After the built-in function module completes the reading of all the data to be transmitted this time, it can promptly inform the product application that the reading is completed so that the user can take the user device away from the induction area of the NFC module of the home appliance product. In addition, the product application can also remind the user to take the user device away from the induction area of the NFC module of the home appliance product by itself after determining that all the data to be transmitted has been written.
[0074] In some embodiments, the product application can write instruction information including the data volume into the cache data area. The built-in function module can read the instruction information from the cache data area.
[0075] The product application can use the data cache area to send the data volume size of all the data to be transmitted to the built-in function module. In addition, the product application can also send the data volume size of all the data to be transmitted to the built-in function module through other means, such as writing the data volume size into the flash memory data area, and the built-in function module reads it from the flash memory data area.
[0076] Further, even if the data volume of all data to be transmitted exceeds the space size of the cache data area, the product application can sequentially write each data packet of the all data to be transmitted into the cache data area, and write one data packet each time it is determined that the cache data area is in an empty state; wherein, the size of each data packet does not exceed the space size of the cache data area. The built-in functional module can sequentially read each data packet from the cache data area. After reading one data packet each time, if it is determined that the data of the data volume has not been read yet, the cache data area is cleared.
[0077] Since the cache data area supports "writing while reading", the product application can write multiple data packets separately in multiple times. After the built-in functional module reads one data packet each time, if it is determined that all the data to be transmitted has not been read yet, the cache data area can be cleared, and the product application can continue to write the next data packet.
[0078] That is to say, even if the data volume of all data to be transmitted this time exceeds the space size of the cache data area, it is not necessary for the user to "touch" the home appliance product multiple times with the user device. The user only needs to "touch" the user device once to complete the transmission of all data to be transmitted, so the user experience is relatively good. Figure 3 It is another schematic diagram for transmitting data to a home appliance product using a FIFO channel provided in this specification.
[0079] In some embodiments, the flash memory data area includes a custom data area, which is configured to use a non-NFC data exchange format recognizable by the product application, and the operating system of the user device is readable and writable to the custom data area; the flag area is included in the custom data area.
[0080] Even if the operating system of the user device can modify the data in the custom data area, it will not pose a threat to the data security of the product manufacturer, because the operating system of the user device cannot recognize the non-NFC data exchange format customized by the product manufacturer.
[0081] Generally speaking, devices with NFC function will default to support the NFC protocol and can recognize NFC records with a common NFC data exchange format in the NFC data area. If the device manufacturer defines other types of NFC data exchange formats, the logic for recognizing NFC records of the other types of NFC data exchange formats will also be built into the operating system of the shipped device.
[0082] In practical applications, some important business data (such as the number of times the main-purpose function is used) may need to be stored in the data area of the NFC module of home appliance products. Due to considerations for the security of important business data, the manufacturers of home appliance products sometimes hope that the operating system of the user device (maintained by the user device manufacturer) can only read the data in the NFC but not write to it when not permitted. In other words, it is necessary that the operating system of the user mobile device cannot rewrite the data in the NFC module of the home appliance product by default, and it is also necessary that the operating system of the user mobile device can write data (such as user identification, network configuration information provided by the user, control instructions, etc.) to the NFC of the home appliance product when required by the manufacturer of the home appliance product.
[0083] For this purpose, a data area that cannot be recognized by the operating system of the user device can be added to the data area of the NFC module of the home appliance product. For the convenience of description, this added data area is called the (manufacturer of home appliance products) custom data area, and the custom data area uses a non-NFC data exchange format (a data exchange format agreed upon by the private protocol of the manufacturer of home appliance products, which can also be called the private data exchange format).
[0084] Since the data exchange format used by the custom data area is not the NFC data exchange format specified by the NFC protocol, even if the operating system of the user device can read the data in the custom data through the NFC module of the user mobile device, it cannot recognize the data in the custom data area.
[0085] Correspondingly, only the software developed by the product manufacturer (product server system, product application, working control module in the home appliance product) can recognize the important business data in the custom data area. Therefore, when the NFC module of the home appliance product has a custom data area, the user device needs to install the product application. After the product application is started, the product application recognizes the data in the custom data area read by the NFC module of the user mobile device. In addition, the product application can also call the operating system of the user device to write data to the custom data area.
[0086] In this way, through the above series of technical settings, all the data that the user device needs to write to the product NFC module is written to the custom data area. It is achieved that the operating system of the user device cannot rewrite the data in the NFC module of the home appliance product by default, and can write data to the NFC module of the home appliance product under the control of the installed product application.
[0087] In addition, in addition to the custom data area, the data area of the NFC module may also include a standard data area. Generally, manufacturers of home appliance products hope to make the home appliance product side readable and writable to the standard data area, while the product application side is not allowed to read or write the standard data area. Therefore, the working control module of the home appliance product needs to lock the data in the standard data area to prevent the product application side from modifying the data in the standard data area. Specifically, the working control module can indicate whether the product application that reads the lock flag bit information has the permission to modify the data in the standard data area by setting the lock flag bit information (indicating locked or unlocked) in the standard data area.
[0088] In addition, this specification also discloses:
[0089] A device for transmitting data to a home appliance product, the home appliance product includes an NFC module and a built-in function module, the NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or an SRAM area;
[0090] The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product, the device is applied to a product application installed on the user device, and the device includes:
[0091] A writing unit, through the communication connection, starts continuously writing data into the cache data area until all the data to be transmitted is written into the cache data area; so that the built-in function module determines the data volume of all the data to be transmitted, and when it monitors that the cache data area starts to be written with data, it starts continuously reading data from the cache data area until it reads the data volume of the data.
[0092] A device for transmitting data to a home appliance product, the home appliance product includes an NFC module and a built-in function module, the NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or an SRAM area;
[0093] The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product, the device is applied to the built-in function module, and the device includes:
[0094] A reading unit, determines the data volume of all the data to be transmitted, and when it monitors that the cache data area starts to be written with data, it starts continuously reading data from the cache data area until it reads the data volume of the data; wherein: the product application installed on the user device starts continuously writing data into the cache data area through the communication connection until all the data to be transmitted is written into the cache data area.
[0095] Figure 4It is a schematic diagram of a computer-readable storage medium provided by the present disclosure. A computer program is stored on the medium 140, and when the program is executed by a processor, the method of any embodiment of the present disclosure is implemented.
[0096] The present disclosure also provides a computing device, including a memory and a processor; the memory is used to store computer instructions that can run on the processor, and the processor is used to implement the method of any embodiment of the present disclosure when executing the computer instructions.
[0097] Figure 5 It is a schematic structural diagram of a computing device provided by the present disclosure, as Figure 5 shown, the computing device 15 may include but is not limited to: a processor 151, a memory 152, and a bus 153 connecting different system components (including the memory 152 and the processor 151).
[0098] Among them, the memory 152 stores computer instructions, and these computer instructions can be executed by the processor 151, so that the processor 151 can execute the training method of the aesthetic map generation model of any embodiment of the present disclosure. The memory 152 may include a random access storage unit RAM1521, a cache storage unit 1522, and / or a read-only storage unit ROM1523. The memory 152 may further include: a program tool 1525 having a set of program modules 1524, and the program modules 1524 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, and one or more combinations of these program modules may include the implementation of a network environment.
[0099] The bus 153 may include, for example, a data bus, an address bus, and a control bus, etc. The computing device 15 may also communicate with an external device 155 through an I / O interface 154, and the external device 155 may be, for example, a keyboard, a Bluetooth device, etc. The computing device 150 may also communicate with one or more networks through a network adapter 156. For example, the network may be a local area network, a wide area network, a public network, etc. As shown in the figure, the network adapter 156 may also communicate with other modules of the computing device 15 through the bus 153.
[0100] In addition, although the operations of the method of the present disclosure are described in a specific order in the drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution.
[0101] Although the spirit and principles of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the specific embodiments disclosed, and the division of each aspect does not mean that the features in these aspects cannot be combined for benefits. Such division is only for the convenience of expression. The present disclosure aims to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A method for transmitting data to a household electrical appliance product, characterized in that, The home appliance product includes an NFC module and a built-in functional module. The NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or a SRAM area; The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product. The method includes: The product application installed on the user device starts writing data continuously into the cache data area through the communication connection when the cache data area is in an empty state until all the data to be transmitted is written into the cache data area; The built-in functional module determines the amount of all the data to be transmitted, and starts reading data continuously from the cache data area when it monitors that data starts to be written into the cache data area. If it determines that the amount of data has not been fully read, it clears the cache data area until the amount of data is read; 2. The method according to claim 1, wherein The built-in functional module includes: a working control module, or a Wi-Fi module; 3. The method according to claim 1, wherein The NFC module of the home appliance product further has a flash memory data area. The flash memory data area includes a flag area, and the flag area includes first flag information which is used to characterize the working state of the home appliance product. The working state includes one of shutdown, standby, working, and fault. Wherein, the working control module of the home appliance product sets the first flag information according to the working state of the home appliance product; The product application installed on the user device writes data continuously into the cache data area through the communication connection, including: The product application installed on the user device reads the first flag information from the flag area through the communication connection to determine the working state of the home appliance product. If the working state of the home appliance product meets the data transmission condition, it writes data continuously into the cache data area in an empty state. The data transmission condition includes: standby or working; 4. The method according to claim 3, wherein The flash memory data area includes a custom data area which is configured to use a non-NFC data exchange format recognizable by the product application, and the operating system of the user device can read and write to the custom data area. The flag area is included in the custom data area; 5. The method according to claim 1, wherein It further includes: After the built-in functional module reads the amount of data, it clears the cache data area; 6. The method according to claim 1, wherein It further includes: After the built-in functional module reads the amount of data, it writes a transmission completion notification into the cache data area; After the product application reads the transmission completion notification from the cache data area, it prompts the user that the transmission is completed so that the user can disconnect the communication connection; 7. The method according to claim 1, wherein The amount of data exceeds the space size of the cache data area; The steps of the product application writing data continuously into the cache data area and the built-in functional module reading data continuously from the cache data area include: The product application writes each data packet of all the data to be transmitted into the cache data area in sequence. Whenever it determines that the cache data area is in an empty state, it writes one data packet. Wherein, the size of each data packet does not exceed the space size of the cache data area; The built-in function module sequentially reads each data packet from the cache data area. After each data packet is read, if it is determined that the data of the data volume has not been read yet, the cache data area is cleared.
8. The method according to claim 1, wherein The method further includes: The product application writes instruction information including the data volume into the cache data area; The built-in function module determines the data volume of all the data to be transmitted, including: The built-in function module reads the instruction information from the cache data area.
9. A method for transmitting data to a household electrical appliance product, characterized in that, The home appliance product includes an NFC module and a built-in function module. The NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or a SRAM area; The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product. The method is applied to a product application installed on the user device. The method includes: Through the communication connection, when the cache data area is in an empty state, data is continuously written into the cache data area until all the data to be transmitted is written into the cache data area; So that the built-in function module determines the data volume of all the data to be transmitted, and when it is monitored that data writing starts in the cache data area, starts continuously reading data from the cache data area. If it is determined that the data of the data volume has not been read yet, the cache data area is cleared until the data of the data volume is read.
10. A method for transmitting data to a home appliance product, characterized in that, The home appliance product includes an NFC module and a built-in function module. The NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or a SRAM area; The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product. The method is applied to the built-in function module. The method includes: Determine the data volume of all the data to be transmitted, and when it is monitored that data writing starts in the cache data area, start continuously reading data from the cache data area. If it is determined that the data of the data volume has not been read yet, the cache data area is cleared until the data of the data volume is read; wherein: the product application installed on the user device, through the communication connection, when the cache data area is in an empty state, starts continuously writing data into the cache data area until all the data to be transmitted is written into the cache data area.
11. A device for transmitting data to a home appliance product, characterized in that, The home appliance product includes an NFC module and a built-in function module. The NFC module of the home appliance product has a cache data area, and the cache data area includes a FIFO area or a SRAM area; The NFC module of the user device establishes a communication connection with the NFC module of the home appliance product. The device is applied to a product application installed on the user device. The device includes: A writing unit, through the communication connection, when the cache data area is in an empty state, starts continuously writing data into the cache data area until all the data to be transmitted is written into the cache data area; So that the built-in functional module determines the data volume of all the data to be transmitted, and starts continuously reading data from the cache data area when it is monitored that data starts to be written into the cache data area. If it is determined that the data volume of data has not been read yet, the cache data area is cleared until the data volume of data is read.
12. A device for transmitting data to a household electrical appliance product, characterized in that, The household electrical appliance product includes an NFC module and a built-in functional module. The NFC module of the household electrical appliance product has a cache data area, and the cache data area includes a FIFO area or a SRAM area; The NFC module of the user equipment establishes a communication connection with the NFC module of the household electrical appliance product. The device is applied to the built-in functional module, and the device includes: A reading unit, which determines the data volume of all the data to be transmitted, and starts continuously reading data from the cache data area when it is monitored that data starts to be written into the cache data area. If it is determined that the data volume of data has not been read yet, the cache data area is cleared until the data volume of data is read; wherein: the product application installed on the user equipment starts continuously writing data into the cache data area through the communication connection when the cache data area is in an empty state until all the data to be transmitted is written into the cache data area.
13. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the program is executed by a processor, it executes the functions of the product application or the built-in functional module in the method according to any one of claims 1-8.
14. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. Wherein, when the processor executes the computer program, it executes the functions of the product application or the built-in functional module in the method according to any one of claims 1-8.
Citation Information
Patent Citations
Device and method for upgrading single-chip microcomputer firmware based on NFC
CN112312374A