[go: up one dir, main page]

CN105468389A - CPLD-based remote upgrading control method and apparatus - Google Patents

CPLD-based remote upgrading control method and apparatus Download PDF

Info

Publication number
CN105468389A
CN105468389A CN201410448313.3A CN201410448313A CN105468389A CN 105468389 A CN105468389 A CN 105468389A CN 201410448313 A CN201410448313 A CN 201410448313A CN 105468389 A CN105468389 A CN 105468389A
Authority
CN
China
Prior art keywords
file
check code
loaded
cpld
attached
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.)
Withdrawn
Application number
CN201410448313.3A
Other languages
Chinese (zh)
Inventor
董超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201410448313.3A priority Critical patent/CN105468389A/en
Priority to PCT/CN2014/094130 priority patent/WO2015154513A1/en
Publication of CN105468389A publication Critical patent/CN105468389A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention discloses a CPLD-based remote upgrading control method. The method comprises: receiving a to-be-loaded file sent from a remote control platform, wherein the to-be-loaded file comprising file content and an attached check code, and the attached check code is uniquely generated after checking the file content of the loaded file according to a conventional algorithm; re-checking the received to-be-loaded file according to the conventional algorithm, generating a new unique check code, and comparing the new unique check code with the attached check code; and if the new generated check code is detected to be the same with the attached checked code, loading the to-be-loaded file on a CPLD. The present invention further discloses a CPLD-based remote upgrading control apparatus. According to the control method and apparatus provided by the present invention, errors in transmission of a to-be-loaded file can be timely found before loading a file, thereby keeping reliability of CPLD remote upgrading, maintaining the normal operation of the whole system, and preventing damage of an electronic device.

Description

基于CPLD的远程升级控制方法和装置CPLD-based remote upgrade control method and device

技术领域technical field

本发明涉及电子通信控制领域,尤其涉及基于CPLD的远程升级控制方法和装置。The invention relates to the field of electronic communication control, in particular to a CPLD-based remote upgrade control method and device.

背景技术Background technique

在通信系统中,使用电子设备的增加和版本的不断升级,固件版本也越来越多,例如:处理器的BOOT(引导)版本,CPLD(ComplexProgramableLogicDevice,复杂可编程逻辑器件)的逻辑版本以及FPGA(FieldProgrammableGateArray,现场可编程逻辑门阵列)的逻辑版本,而可编程器件的固件版本往往并非一成不变的,当客户要求新增功能或者出现了一些缺陷时就需要进行升级。In the communication system, the use of electronic equipment increases and the version is continuously upgraded, and there are more and more firmware versions, such as: BOOT (boot) version of the processor, logic version of CPLD (Complex Programable Logic Device, complex programmable logic device) and FPGA (FieldProgrammableGateArray, Field Programmable Logic Gate Array) logic version, and the firmware version of programmable devices is often not static, and needs to be upgraded when customers request new functions or some defects occur.

为了适应通信系统可维护性的要求,可编程器件的升级目前主要通过远程升级的方式,远程升级时首先通过外部通信口从远程控制平台获取待加载的可编程器件的升级文件,并保存在系统的非易失性存储器中,接着远程控制平台对CPU下发加载可编程逻辑器件指令,继而CPU从非易失性存储器中读取待加载文件并通过加载电路的加载接口对可编程器件进行文件加载,并将加载结果反馈给远程控制平台,输出相应结果。In order to meet the maintainability requirements of the communication system, the upgrade of programmable devices is currently mainly through remote upgrades. During remote upgrades, first obtain the upgrade file of the programmable device to be loaded from the remote control platform through the external communication port, and save it in the system In the non-volatile memory, then the remote control platform sends the instruction to load the programmable logic device to the CPU, and then the CPU reads the file to be loaded from the non-volatile memory and loads the file to the programmable device through the loading interface of the loading circuit. Load, and feed back the loading result to the remote control platform, and output the corresponding result.

一般通信系统的加载电路都有一定的容错能力,对于加载过程中出现的异常情况都有相应的处理机制,而有一种情况却很难处理,那就是文件在传输过程中会出错,比如说在远程升级的过程中必不可少的一个环节就是从远程控制平台将待升级的文件拷贝到待升级的通信设备,在这一过程中存在着一定的风险,数据传输链路的不确定性导致了文件在传输过程中可能会出错,而这种错误在文件加载中是无法发现的。升级文件在传输过程中损坏出错的概率虽然较低,但是由于可编程器件在通信系统中功能一般都很重要,一旦加载文件出错很有可能导致整个系统的工作异常,甚至会损坏设备,而根据通信设备高可靠性的要求,这种情况是绝对不允许,需要避免的,因此,如何保障CPLD远程升级的可靠性,是一个亟待解决的问题。Generally, the loading circuit of the communication system has a certain fault-tolerant ability, and there is a corresponding processing mechanism for abnormal situations that occur during the loading process, but there is a situation that is difficult to deal with, that is, errors will occur during file transmission, An essential link in the remote upgrade process is to copy the file to be upgraded from the remote control platform to the communication device to be upgraded. There are certain risks in this process, and the uncertainty of the data transmission link leads to Errors may occur during file transfer that would go undetected during file loading. Although the probability of damage and error of the upgrade file during transmission is low, since the functions of programmable devices are generally very important in the communication system, once the file is loaded incorrectly, it is likely to cause abnormal operation of the entire system and even damage the equipment. High reliability requirements of communication equipment, this situation is absolutely not allowed and needs to be avoided. Therefore, how to ensure the reliability of CPLD remote upgrade is an urgent problem to be solved.

发明内容Contents of the invention

本发明的主要目的在于提供一种基于CPLD复杂可编程逻辑器件的远程升级控制方法和装置,旨在保障CPLD远程升级的可靠性。The main purpose of the present invention is to provide a remote upgrade control method and device based on CPLD complex programmable logic devices, aiming at ensuring the reliability of CPLD remote upgrade.

为实现上述目的,本发明提供的一种基于CPLD的远程升级控制方法,所述基于CPLD的远程升级控制方法包括以下步骤:In order to achieve the above object, the present invention provides a CPLD-based remote upgrade control method, the CPLD-based remote upgrade control method includes the following steps:

接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和附带的校验码,所述附带的校验码根据约定算法对所述加载文件的文件内容进行校验后唯一生成;Receive the file to be loaded sent by the remote control platform; the file to be loaded includes the file content and the attached check code, and the attached check code is unique after verifying the file content of the loaded file according to the agreed algorithm generate;

对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较;re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, and comparing the newly generated check code with the attached check code;

如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。If it is detected that the newly generated check code is the same as the attached check code, then load the file to be loaded to the CPLD.

优选地,所述对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较的步骤之后还包括:Preferably, the step of re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, and comparing the newly generated check code with the attached check code Then also include:

如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给所述远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,直至校验码相同,加载所述待加载文件至CPLD。If it is detected that the newly generated check code is different from the attached check code, the result is fed back to the remote control platform to re-receive the file to be loaded sent by the remote control platform, and re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, comparing the newly generated check code with the attached check code until the check codes are the same, Load the file to be loaded to the CPLD.

优选地,所述对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较的步骤之后还包括:Preferably, the step of re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, and comparing the newly generated check code with the attached check code Then also include:

如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。If it is detected that the newly generated check code is the same as the attached check code, then save the file to be loaded to a non-volatile memory; if it detects that the newly generated check code is the same as the attached check codes are not the same, then delete the file to be loaded.

优选地,所述待加载文件的校验码位于所述文件内容的头部或尾部。Preferably, the verification code of the file to be loaded is located at the head or tail of the file content.

优选地,所述约定算法为MD5算法。Preferably, the agreed algorithm is MD5 algorithm.

为了解决上述的技术问题,本发明还提供一种基于CPLD的远程升级控制装置,所述远程升级装置包括:In order to solve the above-mentioned technical problems, the present invention also provides a remote upgrade control device based on CPLD, the remote upgrade device includes:

接收模块,用于接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和与所述文件内容对应的唯一校验码;The receiving module is used to receive the file to be loaded sent by the remote control platform; the file to be loaded includes file content and a unique check code corresponding to the file content;

校验模块,用于对所述接收的待加载文件按约定算法进行校验,生成新的校验码,将生成的校验码和所述待加载文件的校验码进行比较,A verification module, configured to verify the received file to be loaded according to an agreed algorithm, generate a new verification code, and compare the generated verification code with the verification code of the file to be loaded,

加载模块,用于如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。A loading module, configured to load the file to be loaded to the CPLD if it is detected that the newly generated check code is the same as the attached check code.

优选地,所述校验模块还用于如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给所述远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,直至校验码相同,加载所述待加载文件至CPLD。Preferably, the verification module is further configured to feed back the result to the remote control platform to receive the remote control again if it is detected that the newly generated verification code is different from the attached verification code The file to be loaded sent by the platform, and re-check the received file to be loaded according to the agreed algorithm, generate a new unique check code, and combine the newly generated check code and the attached check code The verification codes are compared until the verification codes are the same, and the file to be loaded is loaded to the CPLD.

优选地,所述基于CPLD的远程升级控制装置还包括存储模块,所述存储模块,用于对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。Preferably, the CPLD-based remote upgrade control device further includes a storage module, which is used to re-check the received file to be loaded according to the agreed algorithm, generate a new unique check code, and store the Compare the newly generated check code with the attached check code, if it is detected that the newly generated check code is the same as the attached check code, save the file to be loaded to a non-volatile If it is detected that the newly generated check code is different from the attached check code, then delete the file to be loaded.

优选地,所述待加载文件的校验码位于所述文件内容的头部或尾部。Preferably, the verification code of the file to be loaded is located at the head or tail of the file content.

优选地,所述约定算法为MD5算法。Preferably, the agreed algorithm is MD5 algorithm.

本发明提供的基于CPLD复杂可编程逻辑器件的远程升级控制方法,通过接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和附带的校验码,所述附带的校验码根据约定算法对所述加载文件的文件内容进行校验后唯一生成;对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较;如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD,本发明在加载文件前,及时发现待加载文件在传输中的错误,从而保障CPLD远程升级的可靠性、维护整个系统的正常运行、防止电子设备的损坏。The remote upgrade control method based on the CPLD complex programmable logic device provided by the present invention receives the file to be loaded sent by the remote control platform; the file to be loaded includes the file content and the attached check code, and the attached checksum The verification code is uniquely generated after verifying the file content of the loaded file according to the agreed algorithm; the received file to be loaded is re-verified according to the agreed algorithm to generate a new unique verification code, and the newly generated Check code and described attached check code are compared; If detect that described newly generated check code is identical with described attached check code, then load described to-be-loaded file to CPLD, the present invention is loading file It can detect errors in the transmission of the files to be loaded in time, so as to ensure the reliability of CPLD remote upgrade, maintain the normal operation of the entire system, and prevent damage to electronic equipment.

附图说明Description of drawings

图1为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第一实施例的流程示意图;Fig. 1 is the schematic flow chart of the first embodiment of the remote upgrade control method based on CPLD complex programmable logic device of the present invention;

图2为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第二实施例的流程示意图;Fig. 2 is the schematic flow chart of the second embodiment of the remote upgrade control method based on CPLD complex programmable logic device of the present invention;

图3为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第三实施例的流程示意图;Fig. 3 is the schematic flow chart of the third embodiment of the remote upgrade control method based on CPLD complex programmable logic device of the present invention;

图4为本发明基于CPLD复杂可编程逻辑器件的远程升级控制装置一实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of an embodiment of the remote upgrade control device based on CPLD complex programmable logic devices of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式detailed description

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明提供一种基于CPLD的远程升级控制方法,参照图1,图1为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第一实施例的流程示意图,在第一实施例中,所述基于CPLD的远程升级方法包括以下步骤:The present invention provides a kind of remote upgrade control method based on CPLD, with reference to Fig. 1, Fig. 1 is the schematic flow chart of the first embodiment of the remote upgrade control method based on CPLD complex programmable logic device of the present invention, in the first embodiment, the The remote upgrading method based on CPLD comprises the following steps:

步骤S100、接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和附带的校验码,所述附带的校验码根据约定算法对所述加载文件的文件内容进行校验后唯一生成。Step S100, receiving the file to be loaded sent from the remote control platform; the file to be loaded includes file content and an attached check code, and the attached check code verifies the file content of the loaded file according to the agreed algorithm Uniquely generated after verification.

基于CPLD的远程升级控制装置接收远程控制平台发送过来的待加载文件,待加载文件包括文件内容和附带的校验码,其中,附带的校验码,在待加载文件接收之前就已经产生,附带的校验码是根据对加载文件的文件内容按照约定算法Y=F(X)而产生的一组校验码,约定算法针对不同文件所输出的校验码唯一确定的,附带的校验码和加载文件按照约定的方法合并为一个完整文件,作为待加载系统的文件。加载文件传输之前先按照约定算法对其进行校验。算法的选择较为灵活,但是为了保证传输的可靠性,要求针对不同的文件内容,算法所输出的校验码是唯一的,本实施例中以约定算法为MD5(Message-DigestAlgorithm5,信息-摘要算法5)算法为例进行说明:The CPLD-based remote upgrade control device receives the file to be loaded sent by the remote control platform. The file to be loaded includes the content of the file and the attached check code, wherein the attached check code has been generated before the file to be loaded is received. The check code is a set of check codes generated according to the agreed algorithm Y=F(X) based on the file content of the loaded file. The agreed algorithm is uniquely determined for the check codes output by different files. The attached check code and the loading file are combined into a complete file according to the agreed method, which is used as the file of the system to be loaded. Verify the uploaded file according to the agreed algorithm before transferring it. The selection of the algorithm is relatively flexible, but in order to ensure the reliability of transmission, it is required that the check code output by the algorithm is unique for different file contents. In this embodiment, the agreed algorithm is MD5 (Message-DigestAlgorithm5, information-digest algorithm 5) The algorithm is illustrated as an example:

MD5算法用于确保信息传输完整一致,是计算机广泛使用的杂凑算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实现,MD5的典型应用是对一段Message(字节串)产生独一无二的“指纹”,以防止文件内容被“篡改”。具体说,针对不同的文件MD5算法可以将其字节串映射为一组128bit的大整数。如果文件内容在传输过程中出现错误损坏,那么损坏的文件再通过MD5算法生成的“指纹”即128bit的大整数必定和原始文件通过MD5算法生成的“指纹”不同,从而可以及时在加载待升级文件前及时发现传输错误,避免系统升级后不能正常工作的情况出现。The MD5 algorithm is used to ensure the integrity and consistency of information transmission. It is one of the hash algorithms widely used by computers (also translated as digest algorithm, hash algorithm). The mainstream programming language generally has MD5 implementation. The typical application of MD5 is to process a message (byte string) to generate a unique "fingerprint" to prevent the content of the file from being "tampered with". Specifically, for different file MD5 algorithms, its byte string can be mapped to a group of 128-bit large integers. If the content of the file is damaged by mistake during the transmission process, the "fingerprint" generated by the MD5 algorithm of the damaged file, that is, a 128-bit large integer, must be different from the "fingerprint" generated by the MD5 algorithm of the original file, so that it can be loaded in time to be upgraded Find transmission errors in time before the file to avoid the situation that the system cannot work normally after the upgrade.

待加载文件经过MD5算法映射的128bit的校验码和待加载文件内容本身一起合并为一个完整的文件,具体合并的方式,无特定要求,例如将MD5校验码放在待加载文件的头部或尾部,基于CPLD的远程升级控制装置即能迅速从合并后的待加载文件中解析出哪些是文件内容,哪些是MD5校验码,从而方便操作,不浪费校验的时间。The 128-bit check code mapped by the MD5 algorithm of the file to be loaded is merged with the content of the file to be loaded into a complete file. The specific method of merging has no specific requirements, such as putting the MD5 check code at the head of the file to be loaded or At the end, the remote upgrade control device based on CPLD can quickly analyze which is the file content and which is the MD5 check code from the merged files to be loaded, so that the operation is convenient and the time for checking is not wasted.

步骤S200、对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较。Step S200, re-check the received file to be loaded according to the agreed algorithm, generate a new unique check code, and compare the newly generated check code with the attached check code.

基于CPLD的远程升级控制装置对远程控制平台发送过来的待加载文件按约定算法重新进行校验,并按照约定方法从待加载文件中解析出文件内容和校验码,对文件内容按照特定算法Y=F(X)同样计算出一组校验码,将计算出的校验码和接收的待加载文件中自带的校验码进行比对。在本实施例中,基于CPLD的远程升级控制装置的CPU根据约定好的文件合并方式,解析出待加载文件的文件内容和附带的128bit的MD5校验码,CPU按照MD5算法映射出接收的待加载文件的文件内容所对应的128bit校验码,并将映射的校验码与解析出来的128bitMD5校验码进行比较,结果反馈给远程控制平台。The CPLD-based remote upgrade control device re-verifies the file to be loaded sent by the remote control platform according to the agreed algorithm, and parses the file content and check code from the file to be loaded according to the agreed method, and checks the file content according to the specific algorithm Y =F(X) also calculates a set of check codes, and compares the calculated check codes with the check codes contained in the received file to be loaded. In this embodiment, the CPU of the CPLD-based remote upgrade control device analyzes the file content of the file to be loaded and the attached 128-bit MD5 check code according to the agreed file merging method, and the CPU maps out the received file to be loaded according to the MD5 algorithm. Load the 128bit check code corresponding to the file content of the file, compare the mapped check code with the parsed 128bit MD5 check code, and feed back the result to the remote control platform.

步骤S300、如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。Step S300, if it is detected that the newly generated check code is the same as the attached check code, load the file to be loaded to the CPLD.

基于CPLD的远程升级控制装置将映射的校验码与解析出来的128bitMD5校验码进行比较,结果反馈给远程控制平台,若校验码相同,则证明待加载文件在传输中没有出错,将所述待加载文件加载至CPLD。The CPLD-based remote upgrade control device compares the mapped check code with the parsed 128bitMD5 check code, and feeds back the result to the remote control platform. If the check codes are the same, it proves that there is no error in the transmission of the file to be loaded. The file to be loaded is loaded to the CPLD.

本实施例基于CPLD复杂可编程逻辑器件的远程升级控制方法,在加载文件前,就及时发现待加载文件在传输中的错误,从而保障CPLD远程升级的可靠性、维护整个系统的正常运行、防止电子设备的损坏。This embodiment is based on the remote upgrade control method of the CPLD complex programmable logic device. Before the file is loaded, the error in the transmission of the file to be loaded is found in time, thereby ensuring the reliability of the remote upgrade of the CPLD, maintaining the normal operation of the entire system, and preventing Damage to electronic equipment.

参照图2,图2为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第二实施例的流程示意图,在第一实施例的基础上,所述步骤S200之后还包括:Referring to Fig. 2, Fig. 2 is the schematic flow chart of the second embodiment of the remote upgrade control method based on the CPLD complex programmable logic device of the present invention, on the basis of the first embodiment, after the step S200, it also includes:

步骤S300A、如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给所述远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,直至校验码相同,加载所述待加载文件至CPLD。Step S300A, if it is detected that the newly generated check code is different from the attached check code, feedback the result to the remote control platform to re-receive the to-be-loaded check code sent by the remote control platform file, and re-check the received file to be loaded according to the agreed algorithm to generate a new unique check code, and compare the newly generated check code with the attached check code until the verification code is the same, load the file to be loaded to the CPLD.

基于CPLD的远程升级控制装置如果在校验码比对过程中,如果检测到新生成的校验码和所述附带的校验码不相同,则证明文件在传输过程中出现错误,将结果反馈给远程控制平台以提示文件传输错误,需要重新传输待加载文件,并对重新接收的待加载文件按约定算法再次进行校验,生成新的唯一校验码,与接收的待加载文件附带的校验码进行比较,直至校验码相同,加载待加载文件至CPLD,完成正常的加载升级,从而保障CPLD远程升级的可靠性,确保CPLD远程升级到最新版本软件。If the CPLD-based remote upgrade control device detects that the newly generated check code is not the same as the attached check code during the check code comparison process, it will prove that an error occurred during the transmission of the file, and the result will be fed back To the remote control platform to prompt the file transmission error, the file to be loaded needs to be retransmitted, and the re-received file to be loaded is checked again according to the agreed algorithm, and a new unique check code is generated, which is the same as the checksum attached to the received file to be loaded. Check the codes for comparison until the check codes are the same, load the file to be loaded to the CPLD, and complete the normal loading and upgrading, thereby ensuring the reliability of the CPLD remote upgrade and ensuring that the CPLD is remotely upgraded to the latest version of the software.

参照图3,图3为本发明基于CPLD复杂可编程逻辑器件的远程升级控制方法第三实施例的流程示意图,在第一实施例的基础上,所述步骤S200之后还包括:Referring to Fig. 3, Fig. 3 is the schematic flow chart of the third embodiment of the remote upgrade control method based on the CPLD complex programmable logic device of the present invention, on the basis of the first embodiment, after the step S200, it also includes:

步骤S300B、如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。Step S300B, if it is detected that the newly generated check code is the same as the attached check code, then save the file to be loaded to a non-volatile memory; if it is detected that the newly generated check code and If the attached check codes are different, the file to be loaded is deleted.

基于CPLD的远程升级控制装置如果在校验码比对过程中,如果检测到所述新生成的校验码和所述附带的校验码相同,则将所述待加载文件保存至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则将所述待加载文件进行删除,基于CPLD的远程升级控制装置将检测到的非正常传输的待加载文件及时进行删除,保障了非易失性存储器的存储空间容量,以利于下次有效接收远程控制平台传输的待加载文件,从而确保CPLD远程升级的可靠性。If the CPLD-based remote upgrade control device detects that the newly generated check code is identical to the attached check code during the check code comparison process, the file to be loaded is saved to a non-volatile If it is detected that the newly generated check code is different from the attached check code, then the file to be loaded will be deleted, and the remote upgrade control device based on CPLD will detect the abnormal transmission The files to be loaded are deleted in time to ensure the storage space capacity of the non-volatile memory, so as to effectively receive the files to be loaded transmitted by the remote control platform next time, thereby ensuring the reliability of the remote upgrade of the CPLD.

本发明进一步提供一种基于CPLD复杂可编程逻辑器件的远程升级控制装置,参照图4,图4为本发明基于CPLD复杂可编程逻辑器件的远程升级控制装置一实施例的功能模块示意图,在一实施例中,所述远程升级装置包括:The present invention further provides a remote upgrade control device based on CPLD complex programmable logic devices, referring to Fig. 4, Fig. 4 is a functional module schematic diagram of an embodiment of the present invention based on CPLD complex programmable logic device remote upgrade control devices, in a In an embodiment, the remote upgrade device includes:

接收模块10,用于接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和与所述文件内容对应的唯一校验码;The receiving module 10 is configured to receive the file to be loaded sent by the remote control platform; the file to be loaded includes file content and a unique check code corresponding to the file content;

校验模块20,用于对所述接收的待加载文件按约定算法进行校验,生成新的校验码,将生成的校验码和所述待加载文件的校验码进行比较;The verification module 20 is used to verify the received file to be loaded according to the agreed algorithm, generate a new verification code, and compare the generated verification code with the verification code of the file to be loaded;

加载模块30,如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。The loading module 30, if it is detected that the newly generated check code is the same as the attached check code, then load the file to be loaded to the CPLD.

基于CPLD的远程升级控制装置的接收模块10接收远程控制平台发送过来的待加载文件,待加载文件包括文件内容和附带的校验码,其中,附带的校验码,在待加载文件接收之前就已经产生,附带的校验码是根据对加载文件的文件内容按照约定算法Y=F(X)而产生的一组校验码,约定算法针对不同文件所输出的校验码唯一确定的,附带的校验码和待加载文件按照约定的方法合并为一个完整文件,作为待加载系统的文件。待加载文件传输之前先按照特定算法对其进行校验。算法的选择较为灵活,但是为了保证传输的可靠性,要求针对不同的文件内容,算法所输出的校验码是唯一的,本实施例中以约定算法为MD5(Message-DigestAlgorithm5,信息-摘要算法5)算法为例进行说明:The receiving module 10 of the CPLD-based remote upgrade control device receives the file to be loaded sent by the remote control platform. The file to be loaded includes file content and an attached check code, wherein the attached check code is received before the file to be loaded is received. It has already been generated, and the attached check code is a set of check codes generated according to the agreed algorithm Y=F(X) for the file content of the loaded file. The agreed algorithm is uniquely determined for the check codes output by different files. The verification code and the file to be loaded are combined into a complete file according to the agreed method, which is used as the file of the system to be loaded. Before the file to be loaded is transmitted, it is verified according to a specific algorithm. The selection of the algorithm is relatively flexible, but in order to ensure the reliability of transmission, it is required that the check code output by the algorithm is unique for different file contents. In this embodiment, the agreed algorithm is MD5 (Message-DigestAlgorithm5, information-digest algorithm 5) The algorithm is illustrated as an example:

MD5算法用于确保信息传输完整一致,是计算机广泛使用的杂凑算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实现,MD5的典型应用是对一段Message(字节串)产生独一无二的“指纹”,以防止文件内容被“篡改”。具体说,针对不同的文件MD5算法可以将其字节串映射为一组128bit的大整数。如果文件内容在传输过程中出现错误损坏,那么损坏的文件再通过MD5算法生成的“指纹”即128bit的大整数必定和原始文件通过MD5算法生成的“指纹”不同,从而可以及时在加载待升级文件前及时发现传输错误,避免系统升级后不能正常工作的情况出现。The MD5 algorithm is used to ensure the integrity and consistency of information transmission. It is one of the hash algorithms widely used by computers (also translated as digest algorithm, hash algorithm). The mainstream programming language generally has MD5 implementation. The typical application of MD5 is to process a message (byte string) to generate a unique "fingerprint" to prevent the content of the file from being "tampered with". Specifically, for different file MD5 algorithms, its byte string can be mapped to a group of 128-bit large integers. If the content of the file is damaged by mistake during the transmission process, the "fingerprint" generated by the MD5 algorithm of the damaged file, that is, a 128-bit large integer, must be different from the "fingerprint" generated by the MD5 algorithm of the original file, so that it can be loaded in time to be upgraded Find transmission errors in time before the file to avoid the situation that the system cannot work normally after the upgrade.

待加载文件经过MD5算法映射的128bit的校验码和待加载文件内容本身一起合并为一个完整的文件,具体合并的方式,无特定要求,例如将MD5校验码放在待加载文件的头部或尾部,基于CPLD的远程升级控制装置即能迅速从合并后的待加载文件中解析出哪些是文件内容,哪些是MD5校验码,从而方便操作,不浪费校验的时间。The 128-bit check code mapped by the MD5 algorithm of the file to be loaded is merged with the content of the file to be loaded into a complete file. The specific method of merging has no specific requirements, such as putting the MD5 check code at the head of the file to be loaded or At the end, the remote upgrade control device based on CPLD can quickly analyze which is the file content and which is the MD5 check code from the merged files to be loaded, so that the operation is convenient and the time for checking is not wasted.

基于CPLD的远程升级控制装置的校验模块20对远程控制平台发送过来的待加载文件按约定算法重新进行校验,并按照约定方法从待加载文件中解析出文件内容和校验码,对文件内容按照特定算法Y=F(X)同样计算出一组校验码,将计算出的校验码和接收的待加载文件中自带的校验码进行比对。在本实施例中,基于CPLD的远程升级控制装置的CPU根据约定好的文件合并方式,解析出待加载文件的文件内容和附带的128bit的MD5校验码,CPU按照MD5算法映射出接收的待加载文件的文件内容所对应的128bit校验码,并将映射的校验码与解析出来的128bitMD5校验码进行比较,结果反馈给远程控制平台。The verification module 20 of the CPLD-based remote upgrade control device re-verifies the file to be loaded sent by the remote control platform according to the agreed algorithm, and parses the file content and the check code from the file to be loaded according to the agreed method, and checks the file. The content also calculates a set of check codes according to the specific algorithm Y=F(X), and compares the calculated check codes with the check codes contained in the received file to be loaded. In this embodiment, the CPU of the CPLD-based remote upgrade control device analyzes the file content of the file to be loaded and the attached 128-bit MD5 check code according to the agreed file merging method, and the CPU maps out the received file to be loaded according to the MD5 algorithm. Load the 128bit check code corresponding to the file content of the file, compare the mapped check code with the parsed 128bit MD5 check code, and feed back the result to the remote control platform.

基于CPLD的远程升级控制装置的加载模块30将映射的校验码与解析出来的128bitMD5校验码进行比较,结果反馈给远程控制平台,若校验码相同,则证明待加载文件在传输中没有出错,将所述待加载文件加载至CPLD。The loading module 30 of the remote upgrade control device based on CPLD compares the mapped check code with the parsed 128bitMD5 check code, and the result is fed back to the remote control platform. If the check code is the same, it proves that the file to be loaded has no Error, load the file to be loaded to CPLD.

本实施例基于CPLD复杂可编程逻辑器件的远程升级控制装置,在加载文件前,就及时发现待加载文件在传输中的错误,从而保障CPLD远程升级的可靠性、维护整个系统的正常运行、防止电子设备的损坏。This embodiment is based on the remote upgrade control device of the CPLD complex programmable logic device. Before the file is loaded, the error in the transmission of the file to be loaded is found in time, thereby ensuring the reliability of the remote upgrade of the CPLD, maintaining the normal operation of the entire system, and preventing Damage to electronic equipment.

进一步参照图4,本实施例提供的基于CPLD复杂可编程逻辑器件的远程升级控制装置,所述校验模块20还用于如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将新生成的校验码和附带的校验码进行比较,直至校验码相同,加载传输正常的待加载文件至CPLD。Further referring to Fig. 4, the remote upgrade control device based on the CPLD complex programmable logic device provided by the present embodiment, the verification module 20 is also used for detecting the newly generated verification code and the attached verification code If the codes are not the same, the result is fed back to the remote control platform to re-receive the file to be loaded sent by the remote control platform, and re-check the received file to be loaded according to the agreed algorithm to generate a new unique check Code, compare the newly generated check code with the attached check code until the check code is the same, load and transmit the normal file to be loaded to the CPLD.

基于CPLD的远程升级控制装置的校验模块20在校验码比对过程中,如果检测到所述新生成的校验码和所述附带的校验码不相同,则证明文件在传输过程中出现错误,将结果反馈给远程控制平台以提示文件传输错误,需要重新传输待加载文件,并对重新接收的待加载文件按约定算法再次进行校验,生成新的唯一校验码,与接收的待加载文件附带的校验码进行比较,直至校验码相同,加载待加载文件至CPLD,完成正常的加载升级,从而保障CPLD远程升级的可靠性,确保CPLD远程升级到最新版本软件。In the verification code comparison process, if the verification module 20 of the CPLD-based remote upgrade control device detects that the newly generated verification code is not the same as the attached verification code, it proves that the file is in the transmission process. If there is an error, the result will be fed back to the remote control platform to indicate that the file transmission error, the file to be loaded needs to be retransmitted, and the re-received file to be loaded will be checked again according to the agreed algorithm to generate a new unique check code, which is consistent with the received The check code attached to the file to be loaded is compared until the check code is the same, the file to be loaded is loaded to the CPLD, and the normal loading and upgrading is completed, thereby ensuring the reliability of the remote upgrade of the CPLD and ensuring that the CPLD is remotely upgraded to the latest version of the software.

进一步参照图4,本实施例提供的基于CPLD复杂可编程逻辑器件的远程升级控制装置,所述基于CPLD的远程升级控制装置还包括存储模块40,所述存储模块40,用于如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。With further reference to Fig. 4, the remote upgrade control device based on CPLD complex programmable logic device provided by the present embodiment, the remote upgrade control device based on CPLD also includes a storage module 40, and the storage module 40 is used to detect the The newly generated check code is the same as the attached check code, then save the file to be loaded to a non-volatile memory; if the newly generated check code and the attached check code are detected If they are not the same, the file to be loaded is deleted.

基于CPLD的远程升级控制装置的存储模块40在校验码比对过程中,如果检测到新生成的校验码和所述附带的校验码相同,则将待加载文件保存至非易失性存储器;如果检测到新生成的校验码和所述附带的校验码不相同,则将待加载文件进行删除,基于CPLD的远程升级控制装置的存储模块40将检测到的非正常传输的待加载文件及时进行删除,保障了非易失性存储器的存储空间容量,以利于下次有效接收远程控制平台传输的待加载文件,从而确保CPLD远程升级的可靠性。In the check code comparison process, if the storage module 40 of the CPLD-based remote upgrade control device detects that the newly generated check code is identical to the attached check code, the file to be loaded is saved to the nonvolatile memory; if it is detected that the newly generated check code is different from the attached check code, the file to be loaded will be deleted, and the storage module 40 of the remote upgrade control device based on CPLD will detect the abnormally transmitted pending The loading file is deleted in time to ensure the storage space capacity of the non-volatile memory, so as to effectively receive the file to be loaded transmitted by the remote control platform next time, thereby ensuring the reliability of CPLD remote upgrade.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种基于复杂可编程逻辑器件CPLD的远程升级控制方法,其特征在于,所述基于CPLD的远程升级控制方法包括以下步骤:1. a kind of remote upgrade control method based on complex programmable logic device CPLD, it is characterized in that, described remote upgrade control method based on CPLD comprises the following steps: 接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和附带的校验码,所述附带的校验码根据约定算法对所述加载文件的文件内容进行校验后唯一生成;Receive the file to be loaded sent by the remote control platform; the file to be loaded includes the file content and the attached check code, and the attached check code is unique after verifying the file content of the loaded file according to the agreed algorithm generate; 对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较;re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, and comparing the newly generated check code with the attached check code; 如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。If it is detected that the newly generated check code is the same as the attached check code, then load the file to be loaded to the CPLD. 2.如权利要求1所述的基于CPLD的远程升级控制方法,其特征在于,所述对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较的步骤之后还包括:2. the remote upgrade control method based on CPLD as claimed in claim 1, is characterized in that, the described to-be-loaded file of described reception is verified again by agreed algorithm, generates new unique verification code, and described After the step of comparing the newly generated check code with the attached check code, it also includes: 如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给所述远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,直至校验码相同,加载所述待加载文件至CPLD。If it is detected that the newly generated check code is different from the attached check code, the result is fed back to the remote control platform to re-receive the file to be loaded sent by the remote control platform, and re-checking the received file to be loaded according to the agreed algorithm, generating a new unique check code, comparing the newly generated check code with the attached check code until the check codes are the same, Load the file to be loaded to the CPLD. 3.如权利要求1或2所述的基于CPLD的远程升级控制方法,其特征在于,所述对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较的步骤之后还包括:3. the remote upgrade control method based on CPLD as claimed in claim 1 or 2, it is characterized in that, the described to-be-loaded file of described reception is checked again by agreed algorithm, generates new unique check code, will After the step of comparing the newly generated check code with the attached check code, it also includes: 如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。If it is detected that the newly generated check code is the same as the attached check code, then save the file to be loaded to a non-volatile memory; if it detects that the newly generated check code is the same as the attached check codes are not the same, then delete the file to be loaded. 4.如权利要求3所述的基于CPLD的远程升级控制方法,其特征在于,所述待加载文件的校验码位于所述文件内容的头部或尾部。4. The CPLD-based remote upgrade control method according to claim 3, wherein the check code of the file to be loaded is located at the head or tail of the file content. 5.如权利要求1或2所述的基于CPLD的远程升级控制方法,其特征在于,所述约定算法为MD5算法。5. The remote upgrade control method based on CPLD as claimed in claim 1 or 2, characterized in that, the agreed algorithm is an MD5 algorithm. 6.一种基于CPLD复杂可编程逻辑器件的远程升级控制装置,其特征在于,所述远程升级装置包括:6. A remote upgrade control device based on CPLD complex programmable logic device, it is characterized in that, described remote upgrade device comprises: 接收模块,用于接收远程控制平台发送过来的待加载文件;所述待加载文件中包括文件内容和与所述文件内容对应的唯一校验码;The receiving module is used to receive the file to be loaded sent by the remote control platform; the file to be loaded includes file content and a unique check code corresponding to the file content; 校验模块,用于对所述接收的待加载文件按约定算法进行校验,生成新的校验码,将生成的校验码和所述待加载文件的校验码进行比较;A verification module, configured to verify the received file to be loaded according to an agreed algorithm, generate a new verification code, and compare the generated verification code with the verification code of the file to be loaded; 加载模块,用于如果检测到所述新生成的校验码和所述附带的校验码相同,则加载所述待加载文件至CPLD。A loading module, configured to load the file to be loaded to the CPLD if it is detected that the newly generated check code is the same as the attached check code. 7.如权利要求6所述的基于CPLD的远程升级控制装置,其特征在于,所述校验模块还用于如果检测到所述新生成的校验码和所述附带的校验码不相同,则将结果反馈给所述远程控制平台以重新接收所述远程控制平台发送过来的所述待加载文件,并对所述接收的待加载文件按约定算法重新进行校验,生成新的唯一校验码,将所述新生成的校验码和所述附带的校验码进行比较,直至校验码相同,加载所述待加载文件至CPLD。7. The remote upgrade control device based on CPLD as claimed in claim 6, wherein the verification module is also used for detecting that the newly generated verification code is different from the attached verification code , the result is fed back to the remote control platform to re-receive the file to be loaded sent by the remote control platform, and re-check the received file to be loaded according to the agreed algorithm to generate a new unique calibration Check code, compare the newly generated check code with the attached check code until the check codes are the same, and load the file to be loaded to the CPLD. 8.如权利要求6或7所述的基于CPLD的远程升级控制装置,其特征在于,所述基于CPLD的远程升级控制装置还包括存储模块,所述存储模块,用于如果检测到所述新生成的校验码和所述附带的校验码相同,则保存所述待加载文件至非易失性存储器;如果检测到所述新生成的校验码和所述附带的校验码不相同,则删除所述待加载文件。8. The remote upgrade control device based on CPLD as claimed in claim 6 or 7, characterized in that, the remote upgrade control device based on CPLD also includes a storage module, and the storage module is used to detect if the new The generated check code is the same as the attached check code, then save the file to be loaded to a non-volatile memory; if it is detected that the newly generated check code is not the same as the attached check code , then delete the file to be loaded. 9.如权利要求8所述的基于CPLD的远程升级控制装置,其特征在于,所述待加载文件的校验码位于所述文件内容的头部或尾部。9. The CPLD-based remote upgrade control device according to claim 8, characterized in that, the check code of the file to be loaded is located at the head or tail of the file content. 10.如权利要求6或7所述的基于CPLD的远程升级控制方法,其特征在于,所述约定算法为MD5算法。10. The CPLD-based remote upgrade control method according to claim 6 or 7, wherein the agreed algorithm is an MD5 algorithm.
CN201410448313.3A 2014-09-04 2014-09-04 CPLD-based remote upgrading control method and apparatus Withdrawn CN105468389A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410448313.3A CN105468389A (en) 2014-09-04 2014-09-04 CPLD-based remote upgrading control method and apparatus
PCT/CN2014/094130 WO2015154513A1 (en) 2014-09-04 2014-12-17 Cpld-based remote upgrade control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410448313.3A CN105468389A (en) 2014-09-04 2014-09-04 CPLD-based remote upgrading control method and apparatus

Publications (1)

Publication Number Publication Date
CN105468389A true CN105468389A (en) 2016-04-06

Family

ID=54287253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410448313.3A Withdrawn CN105468389A (en) 2014-09-04 2014-09-04 CPLD-based remote upgrading control method and apparatus

Country Status (2)

Country Link
CN (1) CN105468389A (en)
WO (1) WO2015154513A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273152A (en) * 2017-05-26 2017-10-20 安徽贵博新能科技有限公司 The solution that a kind of anti-locking system ECU software is upgraded by mistake
CN108306959A (en) * 2018-01-29 2018-07-20 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares
CN109117160A (en) * 2018-08-15 2019-01-01 广州南方卫星导航仪器有限公司 GNSS host, system and method with online upgrading CPLD firmware
CN109582334A (en) * 2018-11-29 2019-04-05 杭州迪普科技股份有限公司 The upgrade method and device of programmable logic device
CN110069272A (en) * 2019-04-29 2019-07-30 新华三技术有限公司 The method and electronic equipment of logical file upgrading
CN111259370A (en) * 2020-01-13 2020-06-09 苏州浪潮智能科技有限公司 FPGA program security verification method, system, terminal and storage medium
CN112181459A (en) * 2020-09-25 2021-01-05 苏州浪潮智能科技有限公司 A kind of CPLD upgrade optimization method and system
CN113495729A (en) * 2020-03-20 2021-10-12 株洲中车时代电气股份有限公司 Software upgrading method and device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784303B (en) * 2019-10-18 2023-06-02 天津津航计算技术研究所 Remote upgrading device with safety certification
CN110717185B (en) * 2019-10-18 2023-06-02 天津津航计算技术研究所 Security authentication method for remote upgrading
CN112099833B (en) * 2020-08-07 2023-07-14 北京控制工程研究所 A method for remotely updating the firmware of an on-board computer
CN112560042A (en) * 2020-11-25 2021-03-26 北京交大微联科技有限公司 Data configuration method and device for computer interlocking system
CN112631628B (en) * 2020-12-11 2024-09-20 邦彦技术股份有限公司 Singlechip upgrading method, singlechip and storage medium
CN114741091A (en) * 2022-03-18 2022-07-12 武汉光迅信息技术有限公司 Firmware loading method and device, electronic equipment and computer readable storage medium
CN116578322A (en) * 2023-07-13 2023-08-11 北京大禹智芯科技有限公司 CPLD chip firmware upgrading method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207492A (en) * 2006-12-21 2008-06-25 中兴通讯股份有限公司 File download method and device for avoiding downloading wrong files
US20100058311A1 (en) * 2008-09-02 2010-03-04 Fujitsu Network Communications, Inc. Providing Code To A Programmable Device
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571272B (en) * 2011-12-14 2015-07-15 展讯通信(上海)有限公司 Method and device for receiving service data in communication system, and baseband chip
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN103559066B (en) * 2013-11-19 2017-03-08 上海创程车联网络科技有限公司 Embedded software upgrade method based on CANOPEN agreement

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207492A (en) * 2006-12-21 2008-06-25 中兴通讯股份有限公司 File download method and device for avoiding downloading wrong files
US20100058311A1 (en) * 2008-09-02 2010-03-04 Fujitsu Network Communications, Inc. Providing Code To A Programmable Device
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273152A (en) * 2017-05-26 2017-10-20 安徽贵博新能科技有限公司 The solution that a kind of anti-locking system ECU software is upgraded by mistake
CN108306959A (en) * 2018-01-29 2018-07-20 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares
CN109117160A (en) * 2018-08-15 2019-01-01 广州南方卫星导航仪器有限公司 GNSS host, system and method with online upgrading CPLD firmware
CN109582334A (en) * 2018-11-29 2019-04-05 杭州迪普科技股份有限公司 The upgrade method and device of programmable logic device
CN109582334B (en) * 2018-11-29 2022-04-26 杭州迪普科技股份有限公司 Upgrading method and device for programmable logic device
CN110069272A (en) * 2019-04-29 2019-07-30 新华三技术有限公司 The method and electronic equipment of logical file upgrading
CN110069272B (en) * 2019-04-29 2023-07-25 新华三技术有限公司 Logic file upgrading method and electronic equipment
CN111259370A (en) * 2020-01-13 2020-06-09 苏州浪潮智能科技有限公司 FPGA program security verification method, system, terminal and storage medium
CN113495729A (en) * 2020-03-20 2021-10-12 株洲中车时代电气股份有限公司 Software upgrading method and device
CN112181459A (en) * 2020-09-25 2021-01-05 苏州浪潮智能科技有限公司 A kind of CPLD upgrade optimization method and system
CN112181459B (en) * 2020-09-25 2022-08-26 苏州浪潮智能科技有限公司 CPLD upgrade optimization method and system

Also Published As

Publication number Publication date
WO2015154513A1 (en) 2015-10-15

Similar Documents

Publication Publication Date Title
CN105468389A (en) CPLD-based remote upgrading control method and apparatus
US20210124574A1 (en) Techniques for updating a file using a multi-version patch file
US7921237B1 (en) Preserving data integrity of DMA descriptors
JP2006508432A (en) Electronic file upgrade including automatic recovery from failures and mistakes that occurred during the upgrade
US20100241838A1 (en) Method and system for firmware updates
US20110010557A1 (en) Control message signature for device control
TWI533216B (en) Operating system updating method
CN105260215A (en) Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
US11163886B2 (en) Information handling system firmware bit error detection and correction
WO2018001140A1 (en) Self-verification method and system for file
CN102687472B (en) Processing devices and methods for transmitting and receiving data
CN113849212B (en) Software upgrading control method and device and electronic equipment
WO2021184712A1 (en) Software upgrading method and device
CN108647119A (en) The startup method, apparatus and equipment of linux system
CN105278993B (en) A kind of drive module upgrade method and device based on linux system
CN109992280A (en) An embedded software upgrade method, terminal device and storage device
CN111352764B (en) Chip repairing method, device, equipment and storage medium
CN104461589A (en) Single-chip microcomputer updating method and system
US7415654B2 (en) Data integrity checking
CN109002317B (en) PCBA firmware upgrading method and system and PCBA
CN115904230A (en) A data verification method, system and device
CN110413467A (en) Debugging method, device, equipment and medium of server BIOS
CN117112287A (en) Standby verification error correction method, device, server and storage medium
CN117908910A (en) MCU upgrade method, device, electronic device and storage medium
CN106528248A (en) Downloading method and system of mobile terminal based on software integrity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20160406

WW01 Invention patent application withdrawn after publication