CN113190259B - Data burning method, device, Internet module and storage medium - Google Patents
Data burning method, device, Internet module and storage medium Download PDFInfo
- Publication number
- CN113190259B CN113190259B CN202110540825.2A CN202110540825A CN113190259B CN 113190259 B CN113190259 B CN 113190259B CN 202110540825 A CN202110540825 A CN 202110540825A CN 113190259 B CN113190259 B CN 113190259B
- Authority
- CN
- China
- Prior art keywords
- data
- programmed
- terminal
- programming
- air conditioner
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Selective Calling Equipment (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及空调器技术领域,具体而言,涉及一种数据烧写方法、装置、互联网模组及存储介质。The present invention relates to the technical field of air conditioners, and in particular to a data burning method, device, Internet module and storage medium.
背景技术Background technique
维修人员在维修空调器时,通常需要对空调器中的参数数据进行重新设置,现有技术中,维修人员需要随身携带数十个已存有数据的存储器,并从中挑选出合适的存储器连接到空调外机的控制器上,从而给维修工作带来极大的不便。When repairing an air conditioner, maintenance personnel usually need to reset the parameter data in the air conditioner. In the prior art, the maintenance personnel need to carry dozens of memory devices with stored data and select appropriate memory devices from them to connect to the controller of the air conditioner outdoor unit, which brings great inconvenience to the maintenance work.
另一种实现方案,借助调试器对空调器中的参数进行重新烧写,由此达到重新设置的目的,但是在烧写过程中如果空调器突然断电后重新上电时,需要维修人员对调试器进行重新设置后再次重新启动烧写,导致烧写效率低。Another implementation scheme is to re-burn the parameters in the air conditioner with the help of a debugger to achieve the purpose of resetting. However, if the air conditioner suddenly loses power and then powers on again during the burning process, maintenance personnel are required to reset the debugger and restart the burning again, resulting in low burning efficiency.
发明内容Summary of the invention
本发明解决的问题是如何在烧写过程中空调器突然断电后重新上电的情况下提高烧写效率。The problem solved by the invention is how to improve the burning efficiency when the air conditioner is suddenly powered off and then powered on again during the burning process.
为解决上述问题,本发明提供一种数据烧写方法,应用于空调器中的物联网模组,所述物联网模组包括Flash存储器,所述Flash存储器存储有待烧写数据,所述空调器还通过所述物联网模组与终端通信,所述方法包括:当所述物联网模组向所述空调器烧写所述待烧写数据的过程中断电后重新上电时,若收到所述终端发送的烧写查询命令,则对所述待烧写数据进行校验;若所述待烧写数据通过校验,则将所述待烧写数据重新烧写至所述空调器。To solve the above problems, the present invention provides a data burning method, which is applied to an Internet of Things module in an air conditioner, wherein the Internet of Things module includes a Flash memory, the Flash memory stores data to be burned, and the air conditioner also communicates with a terminal through the Internet of Things module. The method includes: when the Internet of Things module is powered off and then powered on again during the process of burning the data to be burned to the air conditioner, if a burning query command sent by the terminal is received, the data to be burned is verified; if the data to be burned passes the verification, the data to be burned is re-burned to the air conditioner.
相对于现有技术,本发明所述的数据烧写方法具有以下优势:空调器中的物联网模组包括Flash存储器,Flash存储器存储有待烧写数据,空调器还通过物联网模组与终端通信,当物联网模组向空调器烧写待烧写数据的过程中断电后重新上电时,若收到终端发送的烧写查询命令,则对待烧写数据进行校验,若待烧写数据通过校验,则将待烧写数据重新烧写至空调器,由此可以在烧写数据的过程中出现物联网模组断电后又重新上电时,无需维修人员的干预,物联网模组基于接收的终端发送的烧写查询命令,即可以从Flash存储器中读出待烧写数据并进行校验,从而实现待烧写数据的重新烧写,提高了此场景下的烧写效率。Compared with the prior art, the data burning method described in the present invention has the following advantages: the Internet of Things module in the air conditioner includes a Flash memory, and the Flash memory stores the data to be burned. The air conditioner also communicates with the terminal through the Internet of Things module. When the Internet of Things module is powered off and then powered on again during the process of burning the data to be burned to the air conditioner, if a burning query command sent by the terminal is received, the data to be burned is verified. If the data to be burned passes the verification, the data to be burned is re-burned to the air conditioner. Therefore, when the Internet of Things module is powered off and then powered on again during the data burning process, there is no need for the intervention of maintenance personnel. Based on the burning query command sent by the terminal, the Internet of Things module can read the data to be burned from the Flash memory and verify it, thereby realizing the re-burning of the data to be burned, thereby improving the burning efficiency in this scenario.
进一步地,所述将所述待烧写数据重新烧写至所述空调器的步骤之后包括:Furthermore, after the step of re-burning the data to be burned into the air conditioner, the following steps are included:
若所述待烧写数据烧写成功,则向所述终端反馈烧写成功的烧写结果;If the data to be programmed is successfully programmed, a programming result indicating successful programming is fed back to the terminal;
若所述待烧写数据烧写失败,则重新烧写待烧写数据;If the data to be written fails to be written, re-write the data to be written;
若烧写次数达到预设次数且每次均烧写失败,则向所述终端反馈烧写失败的烧写结果。If the number of programming times reaches the preset number and the programming fails each time, the programming result indicating the programming failure is fed back to the terminal.
进一步地,所述方法还包括:Furthermore, the method further comprises:
接收所述终端发送的数据发送指令,其中,所述数据发送指令用于启动发送所述待烧写数据的流程;Receiving a data sending instruction sent by the terminal, wherein the data sending instruction is used to start a process of sending the data to be burned;
基于所述数据发送指令接收所述终端发送的所述待烧写数据;Receiving the data to be programmed sent by the terminal based on the data sending instruction;
当所述待烧写数据接收完毕后,对所述待烧写数据进行校验;After the data to be written is received, the data to be written is verified;
若所述待烧写数据通过校验,则将所述待烧写数据存储至所述Flash存储器并向所述终端反馈校验完成的消息;If the data to be written passes the verification, the data to be written is stored in the Flash memory and a verification completion message is fed back to the terminal;
若所述待烧写数据未通过校验,则向所述终端反馈校验失败的消息。If the data to be burned fails to pass the verification, a message indicating the verification failure is fed back to the terminal.
进一步地,所述若所述待烧写数据通过校验,则将所述待烧写数据存储至所述Flash存储器并向所述终端反馈校验完成的消息的步骤之后还包括:Further, if the data to be written passes the verification, the step of storing the data to be written in the Flash memory and feeding back a verification completion message to the terminal also includes:
接收所述终端发送的数据烧写指令,其中,所述数据烧写指令是所述终端在接收到所述物联网模组反馈的校验完成的消息之后发出的;Receiving a data burning instruction sent by the terminal, wherein the data burning instruction is sent by the terminal after receiving a verification completion message fed back by the Internet of Things module;
基于所述数据烧写指令将所述待烧写数据烧写至所述空调器。The data to be written is written into the air conditioner based on the data writing instruction.
进一步地,所述终端还与数据库服务器通信连接,所述方法还包括:Furthermore, the terminal is also connected to a database server for communication, and the method further includes:
接收所述终端发送的用于查询所述物联网模组的连接状态的查询消息;Receiving a query message sent by the terminal for querying the connection status of the Internet of Things module;
若所述物联网模组与所述终端本地连接,则基于所述查询消息向所述终端反馈所述物联网模组的连接状态为本地连接状态,以使所述终端基于所述本地连接状态向所述数据库服务器获取所述待烧写数据;If the Internet of Things module is locally connected to the terminal, feeding back to the terminal based on the query message that the connection state of the Internet of Things module is a local connection state, so that the terminal obtains the data to be burned from the database server based on the local connection state;
若所述物联网模组与所述数据库服务器远程连接,则基于所述查询消息向所述终端反馈所述物联网模组的连接状态为远程连接状态,以使所述终端基于所述远程连接状态指示所述数据库服务器将所述待烧写数据发送至所述物联网模组。If the Internet of Things module is remotely connected to the database server, the connection status of the Internet of Things module is fed back to the terminal as a remote connection status based on the query message, so that the terminal instructs the database server to send the data to be burned to the Internet of Things module based on the remote connection status.
进一步地,所述待烧写数据包括内机数据,所述空调器包括内机,所述若所述待烧写数据通过校验,则将所述待烧写数据重新烧写至所述空调器的步骤还包括:Further, the data to be burned includes indoor unit data, the air conditioner includes an indoor unit, and if the data to be burned passes the verification, the step of re-burning the data to be burned into the air conditioner further includes:
若所述内机数据通过校验,则将所述内机数据重新烧写至所述空调器的内机。If the indoor unit data passes the verification, the indoor unit data is re-burned to the indoor unit of the air conditioner.
进一步地,所述待烧写数据还包括外机数据,所述空调器还包括外机,所述外机与所述内机通过内外机通信线路通信,所述若所述待烧写数据通过校验,则将所述待烧写数据重新烧写至所述空调器的步骤还包括:Furthermore, the data to be burned also includes external unit data, the air conditioner also includes an external unit, the external unit communicates with the internal unit through an internal and external unit communication line, and if the data to be burned passes the verification, the step of re-burning the data to be burned into the air conditioner also includes:
若所述外机数据通过校验,则将所述外机数据通过所述内外机通信线路重新烧写至所述空调器的外机。If the outdoor unit data passes the verification, the outdoor unit data is re-written to the outdoor unit of the air conditioner through the outdoor unit communication line.
本发明还提供一种数据烧写装置,应用于空调器中的物联网模组,所述物联网模组包括Flash存储器,所述Flash存储器存储有待烧写数据,所述空调器还通过所述物联网模组与终端通信,所述装置包括:The present invention also provides a data burning device, which is applied to an Internet of Things module in an air conditioner, wherein the Internet of Things module includes a Flash memory, and the Flash memory stores data to be burned. The air conditioner also communicates with a terminal through the Internet of Things module. The device includes:
接收模块,用于当所述物联网模组向所述空调器烧写所述待烧写数据的过程中断电后重新上电时,若收到所述终端发送的烧写查询命令,则对所述待烧写数据进行校验;A receiving module, used for verifying the data to be written if a writing query command sent by the terminal is received when the power is turned off and then turned on again during the process of the Internet of Things module writing the data to be written into the air conditioner;
烧写模块,用于若所述待烧写数据通过校验,则将所述待烧写数据重新烧写至所述空调器。The burning module is used for re-burning the data to be burned into the air conditioner if the data to be burned passes the verification.
本发明还提供一种物联网模组,包括存储器和处理器,所述存储器包括Flash存储器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上述的数据烧写方法。The present invention also provides an Internet of Things module, including a memory and a processor, wherein the memory includes a Flash memory, the memory stores a computer program, and the processor implements the above-mentioned data burning method when executing the computer program.
本发明还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述的数据烧写方法。The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data burning method as described above is implemented.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明提供的应用场景示例图。FIG. 1 is a diagram showing an example of an application scenario provided by the present invention.
图2为本发明提供的物联网模组的方框示意图。FIG. 2 is a block diagram of an Internet of Things module provided by the present invention.
图3为本发明提供的一种数据烧写方法的流程图。FIG. 3 is a flow chart of a data programming method provided by the present invention.
图4为本发明提供的另一种数据烧写方法的流程图。FIG. 4 is a flow chart of another data programming method provided by the present invention.
图5为本发明提供的另一种数据烧写方法的流程图。FIG. 5 is a flow chart of another data programming method provided by the present invention.
图6为本发明提供的另一种数据烧写方法的流程图。FIG. 6 is a flow chart of another data programming method provided by the present invention.
图7为本发明提供的另一种数据烧写方法的流程图。FIG. 7 is a flow chart of another data programming method provided by the present invention.
图8为本发明提供的另一种数据烧写方法的流程图。FIG. 8 is a flow chart of another data programming method provided by the present invention.
图9为本发明提供的另一种数据烧写方法的流程图。FIG. 9 is a flow chart of another data programming method provided by the present invention.
图10为本发明提供的一种数据烧写装置的方框示意图。FIG. 10 is a block diagram of a data burning device provided by the present invention.
附图标记说明:Description of reference numerals:
10-物联网模组;11-处理器;12-存储器;13-总线;14-通信接口;20-终端;30-空调器;40-数据库服务器;100-数据烧写装置;110-接收模块;120-烧写模块;130-查询模块。10-Internet of Things module; 11-processor; 12-memory; 13-bus; 14-communication interface; 20-terminal; 30-air conditioner; 40-database server; 100-data burning device; 110-receiving module; 120-burning module; 130-query module.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
请参照图1,图1为本发明提供的一种应用场景示例图。图1中,空调器30中安装有物联网模组10,终端20和物联网模组10之间可以本地连接,例如通过蓝牙技术实现本地连接,也可以和数据库服务器之间可以远程连接,例如通过无线网络实现远程连接,物联网模组10还可以同时存在本地连接和远程连接。终端20预先对物联网模组10进行注册和绑定,终端20和数据库服务器40通信连接。Please refer to FIG. 1, which is an example diagram of an application scenario provided by the present invention. In FIG. 1, an Internet of Things module 10 is installed in an air conditioner 30, and a terminal 20 and the Internet of Things module 10 can be locally connected, for example, by Bluetooth technology, and can also be remotely connected to a database server, for example, by a wireless network. The Internet of Things module 10 can also have local and remote connections at the same time. The terminal 20 pre-registers and binds the Internet of Things module 10, and the terminal 20 is connected to the database server 40 for communication.
作为一种具体实施方式,当物联网模组10和终端20之间为本地连接时,若需要向空调器30烧写数据时,终端20首先从数据库服务器40获取待烧写数据,并将待烧写数据发送至物联网模组10,物联网模组10接收完待烧写数据后对待烧写数据进行校验,校验通过后,将待烧写数据存储至Flash存储器,并向终端20返回校验完成的消息,终端20接收到校验完成的消息后,向物联网模组10发送数据烧写指令,物联网模组10基于数据烧写指令将待烧写数据烧写至空调器30。As a specific implementation, when the Internet of Things module 10 and the terminal 20 are locally connected, if data needs to be burned into the air conditioner 30, the terminal 20 first obtains the data to be burned from the database server 40, and sends the data to be burned to the Internet of Things module 10. After receiving the data to be burned, the Internet of Things module 10 verifies the data to be burned. After the verification passes, the data to be burned is stored in the Flash memory, and a message of verification completion is returned to the terminal 20. After receiving the message of verification completion, the terminal 20 sends a data burning instruction to the Internet of Things module 10, and the Internet of Things module 10 burns the data to be burned into the air conditioner 30 based on the data burning instruction.
作为另一种具体实施方式,当物联网模组10和终端20之间为远程连接时,若需要向空调器30烧写数据时,终端20将空调器的机型信息发送至数据库服务器40,数据库服务器40将该机型信息对应的待烧写数据发送至物联网模组10,物联网模组10进行与上述本地连接相同的数据接收、校验、存储和烧写,最终将待烧写数据烧写至空调器30。As another specific implementation, when the Internet of Things module 10 and the terminal 20 are remotely connected, if data needs to be burned into the air conditioner 30, the terminal 20 sends the model information of the air conditioner to the database server 40, and the database server 40 sends the data to be burned corresponding to the model information to the Internet of Things module 10. The Internet of Things module 10 performs the same data reception, verification, storage and burning as the above-mentioned local connection, and finally burns the data to be burned into the air conditioner 30.
作为另一种具体实施方式,当物联网模组10同时支持本地连接和远程连接,若需要向空调器30烧写数据时,物联网模组10优先选择本地连接的方式获取待烧写数据,并进行后续的待烧写数据的烧写。As another specific implementation, when the Internet of Things module 10 supports both local connection and remote connection, if data needs to be burned into the air conditioner 30, the Internet of Things module 10 preferentially selects the local connection method to obtain the data to be burned, and then burns the data to be burned.
物联网模组10在烧写过程中,终端20会周期性地向物联网模组10发送烧写查询命令,以判断物联网模组10是否正在烧写数据,若预设时长内未收到物联网模组10反馈的响应信息,且查询次数超过预设次数,则判定烧写失败,此处的查询的预设次数可以根据实际场景的需要进行设置,例如,查询的预设次数可以设置为5次。During the burning process of the IoT module 10, the terminal 20 will periodically send a burning query command to the IoT module 10 to determine whether the IoT module 10 is burning data. If no response information is received from the IoT module 10 within the preset time, and the number of queries exceeds the preset number, the burning is determined to have failed. The preset number of queries here can be set according to the needs of the actual scenario. For example, the preset number of queries can be set to 5 times.
若物联网模组10在烧写过程中断电且一致未重新上电,则终端20最终会判定烧写失败。否则,物联网模组10在重新上电时,会收到终端20发送的烧写查询命令,物联网模组10基于该烧写查询命令可以判断自身在断电前正在进行数据烧写,从而可以自动地从Flash存储器中重新获取待烧写数据,重新将待烧写数据烧写至空调器30。If the IoT module 10 is powered off during the programming process and is not powered on again, the terminal 20 will eventually determine that the programming has failed. Otherwise, when the IoT module 10 is powered on again, it will receive a programming query command sent by the terminal 20. Based on the programming query command, the IoT module 10 can determine that it was programming data before the power failure, and can automatically reacquire the data to be programmed from the Flash memory and reprogram the data to be programmed into the air conditioner 30.
物联网模组10可以支持蓝牙、WIFI等通信方式,以实现与终端20或者数据库服务器40之间的通信连接。The Internet of Things module 10 can support communication methods such as Bluetooth and WIFI to achieve communication connection with the terminal 20 or the database server 40.
终端20可以是移动终端,例如手机、平板电脑、笔记本电脑等。The terminal 20 may be a mobile terminal, such as a mobile phone, a tablet computer, a laptop computer, etc.
空调器30和物联网模组10之间存在烧写总线,烧写总线可以是L2C总线,物联网模组10将烧写数据通过烧写总线烧写至空调器30。空调器30可以包括内机和外机,内机和外机之间存在内外机通信线路,待烧写数据可以包括内机数据和外机数据,物联网模组10将内机数据通过烧写总线烧写至空调器30的内机,物联网模组10通过内外机通信线路将烧写数据烧写至空调器30的外机。There is a burning bus between the air conditioner 30 and the Internet of Things module 10, and the burning bus can be an L2C bus. The Internet of Things module 10 burns the burning data to the air conditioner 30 through the burning bus. The air conditioner 30 may include an indoor unit and an outdoor unit, and there is an indoor-outdoor unit communication line between the indoor unit and the outdoor unit. The data to be burned may include indoor unit data and outdoor unit data. The Internet of Things module 10 burns the indoor unit data to the indoor unit of the air conditioner 30 through the burning bus, and the Internet of Things module 10 burns the burning data to the outdoor unit of the air conditioner 30 through the indoor-outdoor unit communication line.
数据库服务器40可以是实体计算机或者实现与实体计算机相同功能的虚拟机,数据库服务器40可以是一台计算机,也可以是由多台计算机组成的集群。数据库服务器40存储有不同型号的空调器的烧写数据。The database server 40 may be a physical computer or a virtual machine that implements the same functions as a physical computer. The database server 40 may be a single computer or a cluster of multiple computers. The database server 40 stores the burning data of air conditioners of different models.
在图1的基础上,本发明实施例还提供了图1中的物联网模组10的方框示意图,请参照图2,图2为本发明提供的物联网模组10的方框示意图,物联网模组10包括处理器11、存储器12、总线13及通信接口14,处理器11、存储器12及通信接口14通过总线13连接。Based on Figure 1, an embodiment of the present invention further provides a block diagram of the Internet of Things module 10 in Figure 1. Please refer to Figure 2, which is a block diagram of the Internet of Things module 10 provided by the present invention. The Internet of Things module 10 includes a processor 11, a memory 12, a bus 13 and a communication interface 14. The processor 11, the memory 12 and the communication interface 14 are connected through the bus 13.
处理器11可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,空调参数处理方法的各步骤可以通过处理器11中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器11可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor 11 may be an integrated circuit chip having signal processing capability. In the implementation process, each step of the air conditioning parameter processing method may be completed by an integrated logic circuit of hardware in the processor 11 or by instructions in the form of software. The above-mentioned processor 11 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
存储器12用于存储程序,例如上述数据烧写装置。该数据烧写装置分别包括至少一个可以软件或固件(firmware)的形式存储于存储器12中或固化在物联网模组10中的软件功能模块。处理器11在接收到执行指令后,执行所述程序以实现下述实施例揭示数据烧写方法。The memory 12 is used to store programs, such as the above-mentioned data burning device. The data burning device includes at least one software function module that can be stored in the memory 12 in the form of software or firmware or fixed in the Internet of Things module 10. After receiving the execution instruction, the processor 11 executes the program to implement the data burning method disclosed in the following embodiment.
存储器12还包括Flash存储器,用于存储待烧写数据,由于Flash存储器具有掉电后数据不丢失的特性,故而在数据烧写过程中,若物联网模组10意外断电后重新上电,仍然可以从Flash存储器中读取待烧写数据。The memory 12 also includes a Flash memory for storing data to be burned. Since the Flash memory has the characteristic that data is not lost after power failure, during the data burning process, if the Internet of Things module 10 is accidentally powered off and then powered on again, the data to be burned can still be read from the Flash memory.
通信接口14可以有多个,物联网模组10可以通过不同的通信接口14与空调器30、数据库服务器40等其他设备进行通信。There may be multiple communication interfaces 14 , and the IoT module 10 may communicate with other devices such as the air conditioner 30 and the database server 40 through different communication interfaces 14 .
在图1和图2的基础上,本发明实施例提供一种数据烧写方法,应用于图1和图2中的物联网模组10,请参照图3,图3为本发明提供的一种数据烧写方法的流程示意图,该方法包括以下步骤:Based on FIG. 1 and FIG. 2 , an embodiment of the present invention provides a data burning method, which is applied to the Internet of Things module 10 in FIG. 1 and FIG. 2 . Please refer to FIG. 3 , which is a flow chart of a data burning method provided by the present invention. The method includes the following steps:
步骤S100,当物联网模组向空调器烧写待烧写数据的过程中断电后重新上电时,若收到终端发送的烧写查询命令,则对待烧写数据进行校验。Step S100, when the Internet of Things module is powered off and then powered on again during the process of programming the data to be programmed into the air conditioner, if a programming query command sent by the terminal is received, the data to be programmed is verified.
在本实施例中,烧写查询命令可以是物联网模组10启动数据烧写后,终端20周期性地向物联网模组10发送的用于获知数据烧写是否正常进行的查询命令,该烧写查询命令一方面可以避免物联网模组10在烧写过程中突然出现异常中断或者断电导致烧写异常终止,而终端20不能及时得知烧写出现异常,进而无法及时给予用户反馈烧写异常情况,另一方面,在物联网模组10重新上电时,可以基于搜到的烧写查询命令,自动重新启动烧写,避免了维修人员的人工干预,提高了重新烧写的效率。In this embodiment, the burning query command can be a query command that the terminal 20 periodically sends to the Internet of Things module 10 after the Internet of Things module 10 starts data burning, and is used to inquire whether the data burning is proceeding normally. On the one hand, the burning query command can prevent the Internet of Things module 10 from suddenly having an abnormal interruption or power failure during the burning process, resulting in abnormal termination of the burning, and the terminal 20 cannot be informed of the abnormality in the burning in time, and thus cannot provide timely feedback to the user on the abnormal burning situation. On the other hand, when the Internet of Things module 10 is powered on again, it can automatically restart the burning based on the searched burning query command, thereby avoiding manual intervention by maintenance personnel and improving the efficiency of re-burning.
作为一种具体实施方式,终端20在物联网模组10开始数据烧写预设时长(预设时长可以根据需要进行设置,例如,预设时长为30秒)后,若未收到物联网模组10返回的烧写状态信息,则周期性地向物联网模组发送烧写查询命令,查询周期可以根据需要进行设置,例如查询周期设置为5s查询一次,若查询次数达到预设次数后仍未收到物联网模组10的反馈的烧写状态信息,则终端20判定此处烧写失败,预设次数可以根据需要进行设置,例如,预设次数可以设置为5次。As a specific implementation manner, after the Internet of Things module 10 starts data burning for a preset time (the preset time can be set as needed, for example, the preset time is 30 seconds), if the terminal 20 does not receive the burning status information returned by the Internet of Things module 10, it periodically sends a burning query command to the Internet of Things module. The query period can be set as needed, for example, the query period is set to query once every 5 seconds. If the burning status information is still not received from the Internet of Things module 10 after the query times reach the preset times, the terminal 20 determines that the burning has failed here. The preset number of times can be set as needed, for example, the preset number of times can be set to 5 times.
在本实施例中,由于物联网模组10在烧写过程中断电,为了保证物联网模组10在重新上电后烧写数据的正确性,因此,在重新烧写数据之前首先对物联网模组10的Flash存储器中的待烧写数据进行校验,以免将错误的待烧写数据烧写至空调器30,导致空调器30的数据更新失败。作为一种具体实施方式,校验可以包括对待烧写数据的完整性校验,校验方法可以为CRC校验。In this embodiment, since the IoT module 10 is powered off during the burning process, in order to ensure the correctness of the data burned in the IoT module 10 after it is powered on again, the data to be burned in the Flash memory of the IoT module 10 is first verified before the data is re-burned, so as to avoid burning the wrong data to be burned into the air conditioner 30, resulting in the failure of the data update of the air conditioner 30. As a specific implementation, the verification may include the integrity verification of the data to be burned, and the verification method may be a CRC verification.
步骤S110,若待烧写数据通过校验,则将待烧写数据重新烧写至空调器。Step S110: if the data to be burned passes the verification, the data to be burned is re-burned into the air conditioner.
在本实施例中,作为一种具体实施方式,不管断电时烧写进度如何,上电后重新烧写待烧写数据时均全部进行烧写。In this embodiment, as a specific implementation method, no matter what the burning progress is when the power is off, all the data to be burned are burned when the data to be burned is burned again after power is turned on.
在本实施例中,物联网模组10通过烧写总线将待烧写数据烧写至空调器30,通常情况下,空调器包括EEPROM(Electrically Erasable Programmable read only memory,即带电可擦可编程只读存储器)存储器,该存储器一般存储空调相关的配置信息,如空调内机存储的机型参数,空调外机存储的压缩机参数等。将待烧写数据烧写至空调器30,通常指将待烧写数据烧写至空调器30的EEPROM存储器中。In this embodiment, the Internet of Things module 10 burns the data to be burned into the air conditioner 30 through the burning bus. Usually, the air conditioner includes an EEPROM (Electrically Erasable Programmable read only memory) memory, which generally stores configuration information related to the air conditioner, such as model parameters stored in the air conditioner indoor unit, compressor parameters stored in the air conditioner outdoor unit, etc. Burning the data to be burned into the air conditioner 30 usually refers to burning the data to be burned into the EEPROM memory of the air conditioner 30.
本发明实施例提供的上述方法,在烧写数据的过程中出现物联网模组断电后又重新上电时,无需维修人员的干预,物联网模组基于接收的终端发送的烧写查询命令,即可以从Flash存储器中读出待烧写数据并进行校验,从而实现待烧写数据的重新烧写,提高了此场景下的烧写效率。The above method provided by the embodiment of the present invention does not require the intervention of maintenance personnel when the Internet of Things module is powered off and then powered on again during the data burning process. The Internet of Things module can read the data to be burned from the Flash memory and verify it based on the burning query command sent by the received terminal, thereby realizing the re-burning of the data to be burned, thereby improving the burning efficiency in this scenario.
在本实施例中,一方面为了让终端20及时得知烧写结果,另一方面也为了在烧写失败后通过重试提高烧写的成功率,避免不必要地烧写失败的处理,本发明实施例在图3的基础上,在步骤S110之后还提供了一种反馈烧写结果并针对烧写结果进行处理的实现方式,请参照图4,图4为本发明提供的另一种数据烧写方法的流程图,步骤S110之后还包括如下步骤:In this embodiment, in order to allow the terminal 20 to know the burning result in time, and to improve the success rate of burning by retrying after burning fails, and to avoid unnecessary burning failure processing, the embodiment of the present invention further provides a method for feeding back the burning result and processing the burning result after step S110 based on FIG. 3. Please refer to FIG. 4, which is a flow chart of another data burning method provided by the present invention. After step S110, the following steps are also included:
步骤S120,若待烧写数据烧写成功,则向终端反馈烧写成功的烧写结果。Step S120: If the data to be programmed is programmed successfully, a programming result indicating successful programming is fed back to the terminal.
步骤S130,若待烧写数据烧写失败,则重新烧写待烧写数据。Step S130: if the data to be programmed fails to be programmed, the data to be programmed is reprogrammed.
步骤S140,若烧写次数达到预设次数且每次均烧写失败,则向终端反馈烧写失败的烧写结果。Step S140: If the number of programming times reaches the preset number and the programming fails each time, a programming result indicating the programming failure is fed back to the terminal.
在本实施例中,预设次数可以根据实际场景的需要进行设置,例如预设次数设置为5次,若烧写次数达到了2次,且2次烧写均失败,则物联网模组10停止重试,不再继续重新烧写待烧写数据,而向终端20反馈烧写失败的烧写结果,以避免无效重试导致的烧写结果反馈不及时。In this embodiment, the preset number of times can be set according to the needs of the actual scenario. For example, the preset number of times is set to 5 times. If the number of burning times reaches 2 times and both burning times fail, the Internet of Things module 10 stops retrying and no longer continues to re-burn the data to be burned, but feeds back the burning result of the failed burning to the terminal 20 to avoid untimely feedback of the burning result due to invalid retries.
本发明实施例提供的上述方法,在烧写成功时及时向终端20反馈烧写成功的烧写结果,在烧写失败时,通常预设次数的重试,提高烧写的成功率,避免不必要地烧写失败的处理。The above method provided by the embodiment of the present invention timely feeds back the successful burning result to the terminal 20 when the burning is successful, and when the burning fails, usually a preset number of retries are performed to improve the success rate of the burning and avoid unnecessary processing of the burning failure.
在本实施例中,为了在烧写待烧写数据之前正确地获取到待烧写数据,并保证待烧写数据的可靠性,本发明实施例还提供了一种获取待烧写数据的实现方式,请参照图5,图5为本发明提供的另一种数据烧写方法的流程图,该方法包括以下步骤:In this embodiment, in order to correctly obtain the data to be burned before burning the data to be burned and ensure the reliability of the data to be burned, the embodiment of the present invention also provides an implementation method for obtaining the data to be burned. Please refer to Figure 5, which is a flow chart of another data burning method provided by the present invention. The method includes the following steps:
步骤200,接收终端发送的数据发送指令,其中,数据发送指令用于启动发送待烧写数据的流程。Step 200, receiving a data sending instruction sent by a terminal, wherein the data sending instruction is used to start a process of sending data to be burned.
在本实施例中,数据发送指令用于指示物联网模组10进入数据接收状态,以准备接收待烧写数据。In this embodiment, the data sending instruction is used to instruct the Internet of Things module 10 to enter a data receiving state to prepare to receive the data to be burned.
步骤210,基于数据发送指令接收终端发送的待烧写数据。Step 210: receiving the data to be programmed sent by the terminal based on the data sending instruction.
步骤220,当待烧写数据接收完毕后,对待烧写数据进行校验。Step 220, after the data to be programmed is received, the data to be programmed is verified.
在本实施例中,对待烧写数据进行校验包括对待烧写数据进行完整性校验,校验方式包括CRC校验。In this embodiment, verifying the data to be written includes performing integrity check on the data to be written, and the verification method includes CRC check.
步骤230,若待烧写数据通过校验,则将待烧写数据存储至Flash存储器并向终端反馈校验完成的消息。Step 230: If the data to be programmed passes the verification, the data to be programmed is stored in the Flash memory and a verification completion message is fed back to the terminal.
在本实施例中,将通过校验的待烧写数据存储至Flash存储器,而Flash存储器具有掉电后数据不丢失这一特性,故而使得在烧写过程中物联网模组异常断电后重新上电后仍然可以从Flash存储器中自动读取到待烧写数据进行重新烧写。In this embodiment, the verified data to be burned is stored in the Flash memory, and the Flash memory has the characteristic that the data is not lost after power failure. Therefore, if the Internet of Things module is abnormally powered off during the burning process and then powered on again, the data to be burned can still be automatically read from the Flash memory for re-burning.
步骤240,若待烧写数据未通过校验,则向终端反馈校验失败的消息。Step 240: If the data to be programmed fails to pass the verification, a verification failure message is fed back to the terminal.
在图5的基础上,本发明实施例还提供了一种将通过校验的待烧写数据烧写至空调器30的具体实现方式,请参照图6,图6为本发明提供的另一种数据烧写方法的流程图,该方法还包括以下步骤:Based on FIG. 5 , the embodiment of the present invention further provides a specific implementation method of burning the verified data to be burned into the air conditioner 30, please refer to FIG. 6 , which is a flow chart of another data burning method provided by the present invention, and the method further includes the following steps:
步骤250,接收终端发送的数据烧写指令,其中,数据烧写指令是终端在接收到物联网模组反馈的校验完成的消息之后发出的。Step 250, receiving a data burning instruction sent by the terminal, wherein the data burning instruction is sent by the terminal after receiving a verification completion message fed back by the Internet of Things module.
在本实施例中,终端20在接收到物联网模组10反馈的校验完成的消息之后,向物联网模组10发送数据烧写指令,以指示物联网模组10启动数据烧写。In this embodiment, after receiving the verification completion message fed back by the IoT module 10 , the terminal 20 sends a data burning instruction to the IoT module 10 to instruct the IoT module 10 to start data burning.
步骤260,基于数据烧写指令将待烧写数据烧写至空调器。Step 260, burning the data to be burned into the air conditioner based on the data burning instruction.
本发明实施例提供的上述方法,用户通过终端20和物联网模组10自动进行数据烧写,不需要借助第三方工具即可完成,对于用户或者维修人员操作起来方便快捷,简单的故障维修需进行数据烧写的操作甚至可以由用户自行完成,大大提高了空调器30的维修效率。According to the above method provided by the embodiment of the present invention, the user can automatically burn data through the terminal 20 and the Internet of Things module 10 without the help of a third-party tool. It is convenient and quick for users or maintenance personnel to operate. Simple fault repairs that require data burning can even be completed by the user himself, which greatly improves the maintenance efficiency of the air conditioner 30.
在本实施例中,物联网模组10的连接状态可以是本地连接,也可以是远程连接,还可以是同时存在本地连接和远程连接,为了根据不同的连接状态采用不同的方式获取待烧写数据,本发明实施还提供了获取待烧写数据的具体实施方式,请参照图7,图7为本发明提供的另一种数据烧写方法的流程图,该方法包括以下步骤:In this embodiment, the connection state of the Internet of Things module 10 can be a local connection, a remote connection, or a local connection and a remote connection at the same time. In order to obtain the data to be burned in different ways according to different connection states, the present invention also provides a specific implementation method for obtaining the data to be burned. Please refer to Figure 7, which is a flow chart of another data burning method provided by the present invention. The method includes the following steps:
步骤300,接收终端发送的用于查询物联网模组的连接状态的查询消息。Step 300: receiving a query message sent by a terminal for querying the connection status of an Internet of Things module.
在本实施例中,物联网模组可以是WiFi模组、蓝牙模组或者WiFi模组和蓝牙模组的双模组合模组等。In this embodiment, the Internet of Things module can be a WiFi module, a Bluetooth module, or a dual-mode combination module of a WiFi module and a Bluetooth module.
在本实施例中,物联网模组的连接状态包括本地连接状态和远程连接状态,在本地连接状态下,物联网模组10和终端20通信,而不能和数据库服务器通信,在远程连接状态下,物联网模组10可以和终端20通信,也可以和数据库服务器通信。In this embodiment, the connection state of the Internet of Things module includes a local connection state and a remote connection state. In the local connection state, the Internet of Things module 10 communicates with the terminal 20 but cannot communicate with the database server. In the remote connection state, the Internet of Things module 10 can communicate with the terminal 20 and the database server.
步骤310,若物联网模组与终端本地连接,则基于查询消息向终端反馈物联网模组的连接状态为本地连接状态,以使终端基于本地连接状态向数据库服务器获取待烧写数据。Step 310: If the IoT module is locally connected to the terminal, the connection state of the IoT module is fed back to the terminal based on the query message as a local connection state, so that the terminal obtains the data to be burned from the database server based on the local connection state.
在本实施例中,终端20与物联网模组10之间预先进行注册和绑定,终端20可以获取空调器30的配置信息,配置信息包括空调器30的型号、网络信息等,获取配置信息方式,可以是用户在终端20输入的,也可以是通过扫描空调器30的二维码得到的,还可以是通过物联网模组10向空调器30的控制器查询得到的。In this embodiment, the terminal 20 and the Internet of Things module 10 are pre-registered and bound, and the terminal 20 can obtain the configuration information of the air conditioner 30. The configuration information includes the model and network information of the air conditioner 30. The configuration information can be obtained by the user inputting it at the terminal 20, or by scanning the QR code of the air conditioner 30, or by querying the controller of the air conditioner 30 through the Internet of Things module 10.
需要说明的是,一个终端20可以和一个物联网模组10绑定,也可以与多个物联网模组10绑定,当与多个物联网模组10绑定时,实际上是登录终端20的可以有多个用户,每一个用户和一个物联网模组10绑定。It should be noted that a terminal 20 can be bound to one IoT module 10 or to multiple IoT modules 10 . When bound to multiple IoT modules 10 , there can actually be multiple users logging into the terminal 20 , and each user is bound to one IoT module 10 .
在本实施例中,物联网模组10向终端20反馈自身的连接状态为本地连接状态,终端20获取到物联网模组10的本地连接状态后,向数据库服务器40发送空调器30的型号信息,数据库服务器40根据型号信息得到与之匹配的待烧写数据、并将其返回至终端20,终端20将待烧写数据发送至物联网模组10,以指示物联网模组10对待烧写数据进行后续的校验、存储、及烧写。In this embodiment, the Internet of Things module 10 feeds back to the terminal 20 its own connection status as a local connection status. After the terminal 20 obtains the local connection status of the Internet of Things module 10, it sends the model information of the air conditioner 30 to the database server 40. The database server 40 obtains the data to be burned that matches the model information and returns it to the terminal 20. The terminal 20 sends the data to be burned to the Internet of Things module 10 to instruct the Internet of Things module 10 to perform subsequent verification, storage, and burning of the data to be burned.
步骤320,若物联网模组与数据库服务器远程连接,则基于查询消息向终端反馈物联网模组的连接状态为远程连接状态,以使终端基于远程连接状态指示数据库服务器将待烧写数据发送至物联网模组。Step 320: If the IoT module is remotely connected to the database server, the connection status of the IoT module is fed back to the terminal based on the query message as a remote connection status, so that the terminal instructs the database server to send the data to be burned to the IoT module based on the remote connection status.
在本实施例中,终端20获取到物联网模组10的远程连接状态后,向数据库服务器40发送空调器30的型号信息,并指示数据库服务器40将与型号信息匹配的待烧写数据发送至与终端20绑定的物联网模组10。In this embodiment, after the terminal 20 obtains the remote connection status of the Internet of Things module 10, it sends the model information of the air conditioner 30 to the database server 40, and instructs the database server 40 to send the data to be burned that matches the model information to the Internet of Things module 10 bound to the terminal 20.
需要说明的是,若物联网模组10同时支持本地连接和远程连接,则优先采用本地连接的方式获取待烧写数据。It should be noted that if the Internet of Things module 10 supports both local connection and remote connection, the local connection is preferably used to obtain the data to be burned.
在本实施例中,空调器30包括内机,本发明实施例还提供了一种对内机进行烧写数据的方法,请参照图8,图8为本发明提供的另一种数据烧写方法的流程图,该方法包括以下步骤:In this embodiment, the air conditioner 30 includes an indoor unit. The embodiment of the present invention further provides a method for burning data into the indoor unit. Please refer to FIG. 8, which is a flow chart of another data burning method provided by the present invention. The method includes the following steps:
步骤S400,若内机数据通过校验,则将内机数据重新烧写至空调器的内机。Step S400: If the indoor unit data passes the verification, the indoor unit data is re-burned into the indoor unit of the air conditioner.
在本实施例中,内机数据包括、但不限于盘管温度等。In this embodiment, the indoor unit data includes, but is not limited to, coil temperature and the like.
在本实施例中,空调器30包括外机,本发明实施例还提供了一种对外机进行烧写数据的方法,请参照图9,图9为本发明提供的另一种数据烧写方法的流程图,该方法包括以下步骤:In this embodiment, the air conditioner 30 includes an external unit. The embodiment of the present invention further provides a method for burning data into the external unit. Please refer to FIG. 9, which is a flow chart of another data burning method provided by the present invention. The method includes the following steps:
步骤S500,若外机数据通过校验,则将外机数据通过内外机通信线路重新烧写至空调器的外机。Step S500: If the outdoor unit data passes the verification, the outdoor unit data is re-burned to the outdoor unit of the air conditioner through the indoor and outdoor unit communication line.
在本实施例中,外机数据包括、但不限于压缩机参数等。In this embodiment, the external machine data includes, but is not limited to, compressor parameters and the like.
为了执行上述实施例及各个可能的实施方式中的相应步骤,下面给出一种数据烧写的实现方式。请参照图10,图10为本发明所提供的数据烧写装置100的功能模块示意图。需要说明的是,本发明实施例所述的数据烧写装置100,其基本原理及产生的技术效果与前述方法实施例相同,为简要描述,本实施例中未提及部分,可参考前述方法实施例的相应内容。下面结合图3~图9对该数据烧写装置100进行介绍,该数据烧写装置100包括:接收模块110、烧写模块120及查询模块130。In order to execute the corresponding steps in the above-mentioned embodiment and each possible implementation method, a method for implementing data burning is given below. Please refer to Figure 10, which is a functional module schematic diagram of the data burning device 100 provided by the present invention. It should be noted that the basic principle and technical effect of the data burning device 100 described in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in this embodiment can refer to the corresponding contents of the aforementioned method embodiment. The data burning device 100 is introduced below in conjunction with Figures 3 to 9. The data burning device 100 includes: a receiving module 110, a burning module 120 and a query module 130.
接收模块110,用于当物联网模组向空调器烧写待烧写数据的过程中断电后重新上电时,若收到终端发送的烧写查询命令,则对待烧写数据进行校验。The receiving module 110 is used to verify the data to be written if a writing query command sent by the terminal is received when the power is turned off and then on again during the process of the Internet of Things module writing the data to be written into the air conditioner.
作为一种具体实施方式,接收模块110还用于接收终端发送的数据发送指令,其中,数据发送指令用于启动发送待烧写数据的流程。As a specific implementation, the receiving module 110 is further used to receive a data sending instruction sent by the terminal, wherein the data sending instruction is used to start a process of sending the data to be burned.
作为一种具体实施方式,接收模块110还用于接收终端发送的用于查询物联网模组的连接状态的查询消息。As a specific implementation, the receiving module 110 is further used to receive a query message sent by the terminal for querying the connection status of the Internet of Things module.
烧写模块120,用于若待烧写数据通过校验,则将待烧写数据重新烧写至空调器。The burning module 120 is used to re-burn the data to be burned into the air conditioner if the data to be burned passes the verification.
作为一种具体实施方式,烧写模块120还用于:若待烧写数据烧写成功,则向终端反馈烧写成功的烧写结果;若待烧写数据烧写失败,则重新烧写待烧写数据;若烧写次数达到预设次数且每次均烧写失败,则向终端反馈烧写失败的烧写结果。As a specific implementation, the burning module 120 is also used for: if the data to be burned is burned successfully, then the burning result of successful burning is fed back to the terminal; if the data to be burned fails to be burned, then the data to be burned is re-burned; if the number of burning times reaches a preset number of times and the burning fails each time, then the burning result of failed burning is fed back to the terminal.
作为一种具体实施方式,烧写模块120还用于:基于数据发送指令接收终端发送的待烧写数据;当待烧写数据接收完毕后,对待烧写数据进行校验;若待烧写数据通过校验,则将待烧写数据存储至Flash存储器并向终端反馈校验完成的消息;若待烧写数据未通过校验,则向终端反馈校验失败的消息。As a specific implementation, the burning module 120 is also used for: receiving the data to be burned sent by the terminal based on the data sending instruction; after the data to be burned is received, verifying the data to be burned; if the data to be burned passes the verification, storing the data to be burned in the Flash memory and feeding back a message of verification completion to the terminal; if the data to be burned fails the verification, feeding back a message of verification failure to the terminal.
作为一种具体实施方式,烧写模块120在用于若待烧写数据通过校验,则将待烧写数据存储至Flash存储器并向终端反馈校验完成的消息之后,还用于:接收终端发送的数据烧写指令,其中,数据烧写指令是终端在接收到物联网模组反馈的校验完成的消息之后发出的;基于数据烧写指令将待烧写数据烧写至空调器。As a specific implementation, the burning module 120 is used to: receive a data burning instruction sent by the terminal, wherein the data burning instruction is issued by the terminal after receiving the verification completion message fed back by the Internet of Things module; and burn the data to be burned into the air conditioner based on the data burning instruction.
作为一种具体实施方式,待烧写数据包括内机数据,空调器包括内机,烧写模块120具体用于若内机数据通过校验,则将内机数据重新烧写至空调器的内机。As a specific implementation, the data to be burned includes indoor unit data, and the air conditioner includes an indoor unit. The burning module 120 is specifically used to re-burn the indoor unit data to the indoor unit of the air conditioner if the indoor unit data passes the verification.
作为一种具体实施方式,待烧写数据还包括外机数据,空调器还包括外机,外机与内机通过内外机通信线路通信,烧写模块120具体用于若外机数据通过校验,则将外机数据通过内外机通信线路重新烧写至空调器的外机。As a specific implementation method, the data to be burned also includes outdoor unit data, and the air conditioner also includes an outdoor unit. The outdoor unit communicates with the indoor unit through an indoor-outdoor unit communication line. The burning module 120 is specifically used to re-burn the outdoor unit data to the outdoor unit of the air conditioner through the indoor-outdoor unit communication line if the outdoor unit data passes the verification.
查询模块130,用于:若物联网模组与所述终端本地连接,则基于查询消息向终端反馈物联网模组的连接状态为本地连接状态,以使终端基于本地连接状态向数据库服务器获取待烧写数据;若物联网模组与数据库服务器远程连接,则基于查询消息向终端反馈物联网模组的连接状态为远程连接状态,以使终端基于远程连接状态指示数据库服务器将待烧写数据发送至物联网模组。The query module 130 is used for: if the Internet of Things module is locally connected to the terminal, then based on the query message, feedback to the terminal that the connection status of the Internet of Things module is a local connection status, so that the terminal obtains the data to be burned from the database server based on the local connection status; if the Internet of Things module is remotely connected to the database server, then based on the query message, feedback to the terminal that the connection status of the Internet of Things module is a remote connection status, so that the terminal instructs the database server to send the data to be burned to the Internet of Things module based on the remote connection status.
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述的数据烧写方法。An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data burning method as described above is implemented.
综上所述,本发明提出一种数据烧写方法、装置、互联网模组及存储介质,应用于空调器中的物联网模组,物联网模组包括Flash存储器,Flash存储器存储有待烧写数据,空调器还通过物联网模组与终端通信,所述方法包括:当物联网模组向空调器烧写待烧写数据的过程中断电后重新上电时,若收到终端发送的烧写查询命令,则对待烧写数据进行校验;若待烧写数据通过校验,则将待烧写数据重新烧写至空调器。相对于现有技术,本发明实施例中,空调器中的物联网模组包括Flash存储器,Flash存储器存储有待烧写数据,空调器还通过物联网模组与终端通信,当物联网模组向空调器烧写待烧写数据的过程中断电后重新上电时,若收到终端发送的烧写查询命令,则对待烧写数据进行校验,若待烧写数据通过校验,则将待烧写数据重新烧写至空调器,由此可以在烧写数据的过程中出现物联网模组断电后又重新上电时,无需维修人员的干预,物联网模组基于接收的终端发送的烧写查询命令,即可以从Flash存储器中读出待烧写数据并进行校验,从而实现待烧写数据的重新烧写,提高了此场景下的烧写效率。In summary, the present invention proposes a data burning method, device, Internet module and storage medium, which are applied to an Internet of Things module in an air conditioner. The Internet of Things module includes a Flash memory, and the Flash memory stores data to be burned. The air conditioner also communicates with a terminal through the Internet of Things module. The method includes: when the Internet of Things module is powered off and then powered on again during the process of burning the data to be burned to the air conditioner, if a burning query command sent by the terminal is received, the data to be burned is verified; if the data to be burned passes the verification, the data to be burned is re-burned to the air conditioner. Compared with the prior art, in the embodiment of the present invention, the Internet of Things module in the air conditioner includes a Flash memory, and the Flash memory stores data to be burned. The air conditioner also communicates with the terminal through the Internet of Things module. When the Internet of Things module is powered off and then powered on again during the process of burning the data to be burned to the air conditioner, if a burning query command sent by the terminal is received, the data to be burned is verified. If the data to be burned passes the verification, the data to be burned is re-burned to the air conditioner. Therefore, when the Internet of Things module is powered off and then powered on again during the data burning process, there is no need for the intervention of maintenance personnel. Based on the burning query command sent by the terminal, the Internet of Things module can read the data to be burned from the Flash memory and verify it, thereby realizing the re-burning of the data to be burned, thereby improving the burning efficiency in this scenario.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110540825.2A CN113190259B (en) | 2021-05-18 | 2021-05-18 | Data burning method, device, Internet module and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110540825.2A CN113190259B (en) | 2021-05-18 | 2021-05-18 | Data burning method, device, Internet module and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113190259A CN113190259A (en) | 2021-07-30 |
CN113190259B true CN113190259B (en) | 2024-04-16 |
Family
ID=76982396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110540825.2A Active CN113190259B (en) | 2021-05-18 | 2021-05-18 | Data burning method, device, Internet module and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190259B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116150818B (en) * | 2023-04-17 | 2023-07-25 | 杭州利尔达展芯科技有限公司 | Method for realizing safety of micro-controller chip writer |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013053262A1 (en) * | 2011-10-14 | 2013-04-18 | 烽火通信科技股份有限公司 | Method for automatically burning flash in batches |
CN103679230A (en) * | 2013-12-04 | 2014-03-26 | 西安诺瓦电子科技有限公司 | Device, method and system for programming product sequence codes |
WO2015165305A1 (en) * | 2014-04-30 | 2015-11-05 | 深圳市九洲电器有限公司 | Set-top box programming method and system |
CN106775880A (en) * | 2016-12-22 | 2017-05-31 | 海信(山东)空调有限公司 | The programming device and method of a kind of EEPROM data |
CN107678753A (en) * | 2017-06-15 | 2018-02-09 | 卡姆福(北京)能源服务有限公司 | A kind of program burn writing method, apparatus and electronic equipment |
WO2018120213A1 (en) * | 2016-12-30 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Firmware updating method and controller |
CN110879717A (en) * | 2019-11-27 | 2020-03-13 | 四川虹美智能科技有限公司 | EEPROM parameter programming device and method |
CN111142886A (en) * | 2019-12-25 | 2020-05-12 | 宁波奥克斯电气股份有限公司 | Data programming method and related device |
CN111880817A (en) * | 2020-07-27 | 2020-11-03 | 北京环境特性研究所 | Remote programming method for photoelectric monitoring system |
CN112181444A (en) * | 2020-08-25 | 2021-01-05 | 北京航天时代激光导航技术有限责任公司 | DSP multi-core data programming method based on 1553B bus |
-
2021
- 2021-05-18 CN CN202110540825.2A patent/CN113190259B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013053262A1 (en) * | 2011-10-14 | 2013-04-18 | 烽火通信科技股份有限公司 | Method for automatically burning flash in batches |
CN103679230A (en) * | 2013-12-04 | 2014-03-26 | 西安诺瓦电子科技有限公司 | Device, method and system for programming product sequence codes |
WO2015165305A1 (en) * | 2014-04-30 | 2015-11-05 | 深圳市九洲电器有限公司 | Set-top box programming method and system |
CN106775880A (en) * | 2016-12-22 | 2017-05-31 | 海信(山东)空调有限公司 | The programming device and method of a kind of EEPROM data |
WO2018120213A1 (en) * | 2016-12-30 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Firmware updating method and controller |
CN107678753A (en) * | 2017-06-15 | 2018-02-09 | 卡姆福(北京)能源服务有限公司 | A kind of program burn writing method, apparatus and electronic equipment |
CN110879717A (en) * | 2019-11-27 | 2020-03-13 | 四川虹美智能科技有限公司 | EEPROM parameter programming device and method |
CN111142886A (en) * | 2019-12-25 | 2020-05-12 | 宁波奥克斯电气股份有限公司 | Data programming method and related device |
CN111880817A (en) * | 2020-07-27 | 2020-11-03 | 北京环境特性研究所 | Remote programming method for photoelectric monitoring system |
CN112181444A (en) * | 2020-08-25 | 2021-01-05 | 北京航天时代激光导航技术有限责任公司 | DSP multi-core data programming method based on 1553B bus |
Non-Patent Citations (2)
Title |
---|
基于STM32的高可靠IAP在线烧写设计;李光学;郭燕红;李超;岳宗帅;宋茜;;电子测量技术(17);全文 * |
基于串行总线和FPGA的FLASH烧写方法研究与实现;丁宁;樊宏伦;;电子世界(13);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113190259A (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111522264B (en) | Control method and device of equipment, storage medium and electronic device | |
CN107179909B (en) | Software upgrading method and device and computer readable storage medium | |
US9268318B2 (en) | Air conditioner, method for controlling outdoor units thereof, and central control system having the same | |
CN112130881A (en) | Firmware remote upgrading method and device | |
WO2019105211A1 (en) | Electronic device and program updating method therefor | |
CN114071439A (en) | Method, device, equipment and storage medium for pairing Bluetooth remote controller and multiple equipment | |
CN109828769B (en) | Embedded program remote updating system and method based on TCP/IP | |
US20200097278A1 (en) | Method for online updating firmware of complex programmable logic device | |
CN111998510B (en) | Air conditioner and control method thereof | |
CN113672270B (en) | Upgrading method, computer system and remote upgrading device | |
CN114281394A (en) | Method, system, equipment and medium for fast on-line upgrading program | |
CN113190259B (en) | Data burning method, device, Internet module and storage medium | |
WO2020207045A1 (en) | Remote upgrading method and apparatus, electronic device, and storage medium | |
CN112333278A (en) | Intelligent equipment upgrading method and system and intelligent equipment | |
CN107479917A (en) | A kind of batch refresh PSU FW method | |
CN108121553B (en) | Method and device for updating application program | |
CN114489732A (en) | Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment | |
KR20100030110A (en) | Method of debuging softwere for air-conditioner | |
CN111464333A (en) | Remote debugging method, computer equipment, storage device and remote debugging system | |
CN115714723A (en) | Program upgrading method and device, storage medium and electronic equipment | |
CN116184943A (en) | Method and device for maintaining software of control unit of industrial control system | |
CN115509812A (en) | Data backup method and server based on Keepalive dual-computer hot standby | |
CN115268965A (en) | Adaptive software remote upgrading method and system for low-voltage intelligent circuit breaker | |
CN113778472A (en) | FLASH chip programming method and device and electronic equipment | |
CN110096047B (en) | Robot motion control system upgrading method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 315191 No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee after: NINGBO AUX ELECTRIC Co.,Ltd. Country or region after: China Patentee after: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. Address before: No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee before: NINGBO AUX ELECTRIC Co.,Ltd. Country or region before: China Patentee before: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. |
|
CP03 | Change of name, title or address |