WO2020207045A1 - 一种远程升级方法、装置、电子设备及存储介质 - Google Patents
一种远程升级方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2020207045A1 WO2020207045A1 PCT/CN2019/124784 CN2019124784W WO2020207045A1 WO 2020207045 A1 WO2020207045 A1 WO 2020207045A1 CN 2019124784 W CN2019124784 W CN 2019124784W WO 2020207045 A1 WO2020207045 A1 WO 2020207045A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- upgrade
- parameter
- upgraded
- package
- data
- Prior art date
Links
Images
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the embodiments of the present application relate to the technical field of software upgrades, and in particular, to a remote upgrade method, device, electronic equipment, and storage medium.
- the embodiments of the present application provide a remote upgrade method, device, electronic device, and storage medium, which can back up the parameters set by the user when the device is upgraded.
- the embodiments of the present application provide a remote upgrade method, corresponding to the upper computer server side, including:
- the upgrade data package After confirming the end of the breakpoint state or after receiving the resume transfer request of the device to be upgraded, the upgrade data package will be sent from the corresponding data packet page number when entering the breakpoint state;
- the embodiment of the present application provides another remote upgrade method corresponding to the device to be upgraded, including:
- the upgrade data package contains the corresponding data package page number
- the upgrade flag is detected, and the information is reported to the host computer based on the uncompleted upgrade record;
- an embodiment of the present application provides a remote upgrade device, including:
- the upgrade module is configured to send upgrade data packages to the device one by one, where the upgrade data packages contain corresponding data package page numbers;
- the breakpoint detection module is configured to receive the receiving status reply returned by the device to be upgraded corresponding to each upgrade data packet, and confirm to enter the breakpoint state when the reply times out;
- the breakpoint resume module is configured to start sending the upgrade data package from the corresponding data packet page number when entering the breakpoint state after confirming the end of the breakpoint state or after receiving the resuming request of the device to be upgraded;
- the parameter backup module is configured to send a pre-backed up parameter package to the device to be upgraded.
- an embodiment of the present application provides an electronic device, including: a memory and one or more processors;
- the memory is configured to store one or more programs
- the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the remote upgrade method as described in the first aspect.
- embodiments of the present application provide a storage medium containing computer-executable instructions configured to execute the remote upgrade method as described in the first aspect when executed by a computer processor.
- the user parameters sent by the device are received in advance, the user setting parameters are pre-backed up, and after the upgrade is completed, the pre-backed up parameter package is sent to the device for use after the device upgrade Parameter settings. Avoid erasing all content after the program is upgraded, resulting in the loss of user parameters, which affects the actual use of users.
- the upgrade data package will be sent again according to the data package page number of the previous breakpoint, so as to realize the resuming transfer of the device system software upgrade and avoid the repeated upgrade process. At the same time achieve the effect of saving traffic.
- FIG. 1 is a flowchart of a remote upgrade method provided in Embodiment 1 of the present application;
- Fig. 2 is a flow chart of resuming the transfer during the device upgrade process in the first embodiment of the application
- FIG. 3 is a flow chart of user parameter backup during the device upgrade process in Embodiment 1 of the present application.
- FIG. 4 is a flowchart of inserting new parameters in the device upgrade process of Embodiment 1 of the present application;
- FIG. 5 is a schematic diagram of dual-link transmission of a parameter packet according to Embodiment 1 of the present application.
- FIG. 6 is a flowchart of another remote upgrade method provided in Embodiment 2 of the present application.
- FIG. 7 is a schematic structural diagram of a remote upgrade device provided in Embodiment 4 of the present application.
- the remote upgrade solution provided by this application is applied to the equipment system software upgrade, and is aimed at the interruption of the upgrade data packet transmission in the equipment upgrade in the prior art, the user setting parameters will be completely erased after the system upgrade, and the new parameter point parameter value cannot Compatibility and other issues, corresponding to the provision of solutions such as resumable transmission, parameter backup and new parameter settings, so that the equipment upgrade does not affect the user's use.
- Fig. 1 shows a flowchart of a remote upgrade method provided in Embodiment 1 of the present application.
- the remote upgrade method provided in this embodiment can be executed by the server of the upper computer and implemented by means of a software program.
- the upper computer exchanges data with one end of the device to be upgraded, and sends an upgrade data package to the end of the device to realize the upgrade of the device system software.
- one end of the device to be upgraded can be a single device or a remote upgrade of multiple devices.
- the upper computer is a device that executes the remote upgrade method as an example for description.
- the remote upgrade method specifically includes:
- the host computer server can be connected to a remote device to be upgraded through a communication module, and the upgrade data packet can be transmitted through a remote data transmission link.
- the software code software version number refers to the way of setting the version number for the software.
- the version number is set by numbers, which intuitively indicates the order of the corresponding versions of the software.
- the software version number can also be expressed in different ways according to actual needs.
- the upper computer sends the version number to the end of the device to be upgraded every set time period.
- the device After the device receives the new version number, it compares it with the version number of the current device system software to determine whether the received version number is higher than the existing installed version of the device, if the received version number is higher than the existing installed version of the device , The software upgrade conditions are met, the device responds to the upper computer to allow the upgrade instruction, and the device upgrade process starts. If the received version number is not higher than the existing installed version of the device, it does not meet the software upgrade conditions, and the device will reply to the host computer with an upgrade not allowed instruction.
- the upper computer adopts a timer retransmission method to avoid the device not receiving the version number information due to the unstable transmission network.
- the host computer starts timing after sending the version number. If it does not receive a reply from the device after one minute, it will resend the software version number information to the device, and exit the upgrade until it has not received a reply after three retransmissions.
- the host computer receives a reply that the upgrade is not allowed, it directly exits the device upgrade process. It should be noted that the retransmission timing and the number of retransmissions are set according to actual upgrade needs, and there is no fixed limit in this application.
- the upper computer starts the device upgrade process.
- the host computer sends the MD5 verification code to the device in advance, and is configured to perform the MD5 verification operation after the subsequent upgrade data package is received.
- MD5 verification is to check the correctness of the data by performing a hash operation on the received transmission data.
- the calculated hash value is compared with the hash value transmitted with the data. If the two values are the same, the transmitted data is intact and has not been tampered with (provided that the hash value has not been tampered with), so you can use it with confidence .
- the host computer first sends the MD5 check code of the upgrade data package to the device.
- the device receives the MD5 check code and replies to the host computer's upgrade permission.
- the host computer will start to send the upgrade data package after receiving the reply, otherwise the host computer will not receive it.
- the MD5 check code of the upgrade data package will be re-sent to the device every one minute until the upper limit is sent to exit the upgrade.
- the retransmission time interval and the upper limit of the number of retransmissions are set according to actual needs, and there is no fixed limit in this application.
- every data package sent will have a crc check code, and the device will perform a crc check (cyclic redundancy check) after receiving the data packet.
- Cyclic redundancy check is the most commonly used error checking in the field of data communication. The check code is that the length of the information field and the check field can be arbitrarily selected.
- Cyclic Redundancy Check (CRC) uses the data transmission error detection function to perform polynomial calculations on the data and attach the obtained results to the back of the frame.
- the receiving device also executes similar algorithms to ensure the correctness and integrity of the data transmission . After the CRC check is passed, the device will reply to receive the correct information, and at the same time send the data packet page number information to the upper computer.
- the upper computer will check the page number after receiving the reply. If the check is passed, the next data packet will be sent. If the check is not passed or the response is not received within the timeout, the host computer will retransmit the current data packet until the number of retransmissions reaches the upper limit and exit the upgrade. The upper computer repeats the above upgrade data packet sending operation until all upgrade data packets are sent.
- the device to be upgraded calculates the MD5 check code of the received upgrade data package and compares it with the MD5 check code of the upgrade data package received before the upgrade. If the comparison result is correct, it will reply that the upgrade is successful and send it Upgrade end sign. At this point, the equipment has been upgraded.
- data packet transmission is interrupted, and the device exits the upgrade from time to time. If the device has unstable network or power failure, the device will not respond to the upgrade command from the host computer. If the device that has entered the upgrade state does not respond to the upgrade command from the host computer for a continuous period of time, it means the device If the reply expires, it will automatically exit the upgrade mode and record the current upgrade information. As the upgrade record of the device breakpoint, after the communication link is restored, the device uploads the upgrade record of the breakpoint to the upper computer. After the upper computer is powered off during the upgrade, it will detect whether the device has a breakpoint upgrade record.
- the device if the received data package is checked as a data error, the device returns the data package error message, and the server resends the corresponding data package. If the number of retransmissions of the same data package reaches the upper limit, all return error messages, the upgrade fails and the upgrade exits. It should be noted that the device exiting the upgrade here is different from the case of response timeout. After the device replies to the host computer receiving failure, after exiting the upgrade, the host computer needs to check whether the upgrade data package is correct. The next upgrade needs to start from the first Data packets are sent.
- the upgrade data packet is sent from the data packet page number corresponding to when the breakpoint state is entered.
- the initiation of the breakpoint resume action can be initiated by the upper computer actively interacting with the device to be upgraded to confirm the end of the breakpoint state, or the device to be upgraded can automatically send a resume request to the upper computer to start the resume action.
- the device to be upgraded judges that the breakpoint state is over, which may be that the device to be upgraded detects the data transmission network state every set time period, confirms that the communication link returns to normal, and determines that the breakpoint state is over.
- the device After the device upgrade breakpoint, the device actively detects the upgrade flag after exiting the upgrade/or restarting. Since the previously received upgrade data package is stored in the device, the upgrade data package contains the data package page number. According to the data package page number, the device upgrade flag can be determined. The upgrade flag bit marks the interrupt node of the uncompleted upgrade record. Re-receive the upgrade data package from the upgrade flag. When the device detects an unfinished upgrade record, it will report the information. The host computer will detect whether the device has a timeout upgrade record after receiving this information, and if there is, it will start to resume the transfer.
- the host computer After the host computer re-establishes the communication link with the device, the host computer starts to detect the upgrade record of the device overtime, and obtains the data packet page information corresponding to the data packet sent by the overtime upgrade breakpoint according to the overtime upgrade record.
- S142 Send the upgrade data package from the data package page number of the previous breakpoint.
- step S12 When the host computer restarts to send the data packet, the above step S12 will be repeated.
- the host computer starts sending from the data packet page number of the last breakpoint to realize the breakpoint resuming transmission function.
- the host computer According to the data packet page number information corresponding to the data packet sent by the breakpoint, the host computer starts to send the upgrade data packet from the data packet corresponding to the data packet page number until the device upgrade is completed.
- the breakpoint resumable transmission function can effectively solve the unstable network factors caused by the equipment environment, and at the same time solve the problem of repeatedly sending the same data packet for repeated upgrade failures, and also achieve the effect of saving traffic.
- the system software program upgrade will erase all the content and the parameters set by the user cannot be saved, resulting in the loss of the user parameters, which will seriously affect the actual application of the user. Therefore, during the upgrade process or after the device upgrade is completed, the upper computer sends the pre-backed up parameter package of user settings to the device, and the device performs user parameter settings after obtaining the parameter package to realize the user parameter backup function.
- the parameter backup is as follows:
- the device Before starting the upgrade, the device will send all the data packets of the current parameter settings to the upper computer, and the upper computer will save the parameter packets set by the user, and return to the device after the device upgrade is completed.
- the upgrade completion instruction is sent to the host computer according to the device, or the host computer actively sends it during the upgrade process.
- the upper computer starts to send the pre-backed up parameter packets one by one.
- the parameter package includes the parameter package page number. The parameter package page number is used for subsequent calibration of the device to ensure that the parameter package is sent correctly.
- the upper computer sends the pre-backed up parameter packet through the dual data communication link.
- the same parameter packet is sent to the device end through different data communication links, and the device end receives the parameter packet from the two communication links.
- the parameter package contains the parameter package page number.
- the device After receiving the parameter package, the device first obtains the parameter package page number information corresponding to the parameter package. Since the device receives parameter packets through two communication links, if both communication links can transmit stably, the device will receive two identical parameter packets. Then, after the device obtains the parameter package page number, it judges whether the parameter package has been received according to the previously received and stored parameter package page number. If it has been received, the parameter package will be discarded. If it has not been received, the parameter package will be discarded. Save the parameter package and set the parameters.
- the device can receive the parameter package in sequence to avoid the missed parameter package transmission and the incomplete response of the user setting parameter.
- the upper computer compares the sent parameter package information according to all the received parameter package information, and confirms that all parameter package devices have been received, then the verification is passed and the parameter package sending process is completed.
- the upper computer saves the parameter package, and after the device upgrade is completed, the newly added parameter points are inserted into the parameter package and sent to the device. among them:
- the host computer obtains the default values of all the parameter points of the currently upgraded program version, compares the parameter points of the version before the upgrade, and judges whether the upgraded version has new parameter points.
- the host computer judges that if there is no new parameter point in the upgraded version, it will send the parameter package directly; if there is a new point, the host computer will insert the default value of the new point into the saved parameter package, and then Send it to the device side, and the device side changes the corresponding parameter value. In this way, the upgrade program parameter compatibility function is realized, and the problem of incompatibility of newly added parameters is avoided.
- the user setting parameters are pre-backed up, and after the upgrade is completed, the pre-backed up parameter package is sent to the device for the parameters after the device upgrade Set up. Avoid erasing all content after the program is upgraded, resulting in the loss of user parameters, which affects the actual use of users.
- the upgrade data package will be sent again according to the data package page number of the previous breakpoint, so as to realize the resuming transfer of the device system software upgrade and avoid the repeated upgrade process. At the same time achieve the effect of saving traffic.
- FIG. 6 shows a flowchart of another remote upgrade method provided in the second embodiment of the present application.
- the remote upgrade method is executed corresponding to the device to be upgraded.
- the remote upgrade method includes:
- the remote upgrade method corresponding to the device to be upgraded described in this embodiment is the remote upgrade method executed by the device to be upgraded in the remote upgrade method described in the first embodiment, which has corresponding functions and beneficial effects. For the specific process, see the embodiment One, I won't go into details here.
- another remote upgrade method provided in the third embodiment of the present application corresponds to the interaction process between the upper computer and the device to be upgraded.
- the host computer first sends an upgrade request to the device to be upgraded.
- the upgrade request contains the software code and software version number. If the conditions are met (the device determines that the current version received is higher than the existing installed version of the device after receiving the new version number), the device responds Upgrade is allowed.
- the host computer will send the MD5 check code of the upgrade data package when it receives the reply from the device to allow the upgrade, and the device will reply to the host computer when it receives the MD5 check code.
- the host computer will start to send the upgrade data package when it receives the reply, otherwise the host computer has not received the device
- the MD5 check code of the upgrade data package will be re-sent every one minute until the upper limit is sent to exit the upgrade.
- Each data packet sent by the host computer will have a crc check code. After the device receives the data packet, the crc check is performed. If the check is passed, the received correct and the data packet page number will be sent to the host computer. The host computer will perform page number calibration after receiving the reply. If passed, the next data packet will be sent. If the timeout does not receive a reply, the host computer will retransmit the current data packet until the upper limit of the number of retransmissions and exit the upgrade. Repeat the above steps until the data packets are sent, and the device will perform MD5 verification after receiving all the data packets. If the verification is passed, it will reply to the host computer and complete the upgrade.
- the host computer retransmits three times without receiving a reply from the device, exit the upgrade and enter the upgrade breakpoint transition state.
- the device will be marked as a timeout state and record the page number of the currently sent data packet. If the device has unstable network or power failure, it will not respond to the upgrade instruction of the host computer. If the device that has entered the upgrade state has not received the upgrade instruction from the host computer for a continuous period of time, it will automatically exit the upgrade Mode and record the current upgrade information. After exiting the upgrade/or restarting the device, the device actively detects the upgrade flag bit. When it detects an unfinished upgrade record, it will report the information. The host computer will check whether the device has this information. The timeout upgrade record, if there is, it will start to resume the transfer. It should be noted that the device actively sends a resume transfer request or the host computer actively asks the end of the breakpoint status to determine whether to start the resume transfer.
- the host computer restarts to send the upgrade data package to the device.
- the device will send all the data packets of the current parameter settings to the upper computer, the upper computer saves the parameter package, and during the device upgrade or after the upgrade is completed, all the versions of the currently upgraded program are obtained from the server
- the default value of the parameter point is compared with the parameter point of the previous version. If there is a new point, the default value of the new point will be inserted into the saved parameter package, and then sent to the device to change the corresponding parameter value , Realize the parameter cloud backup function.
- the remote upgrade method corresponding to the device to be upgraded described in this embodiment corresponds to the method of interaction between the host computer and the device to be upgraded in the remote upgrade method of Embodiment 1 and Embodiment 2, and has corresponding functions and beneficial effects.
- Embodiment 1 and Second I won't go into details here.
- FIG. 7 is a schematic structural diagram of a remote upgrade apparatus provided in Embodiment 4 of this application.
- the remote upgrade device provided by this embodiment specifically includes: an upgrade module 31, a breakpoint detection module 32, a breakpoint resume transmission module 33 and a parameter backup module 34.
- the upgrade module 31 is configured to send upgrade data packages to the devices one by one, and the upgrade data packages contain corresponding data package page numbers;
- the breakpoint detection module 32 is configured to receive each upgrade data package corresponding to the device to be upgraded The returned receiving status reply confirms that it enters the breakpoint state when the reply times out;
- the breakpoint resuming transmission module 33 is configured to enter the breakpoint after confirming the end of the breakpoint state or after receiving the resuming transmission request of the device to be upgraded
- the data package page number corresponding to the state starts to send the upgrade data package;
- the parameter backup module 34 is configured to send the pre-backed up parameter package to the device.
- the user setting parameters are pre-backed up, and during or after the upgrade, the pre-backed up parameter package is sent to the device for use in the device Parameter settings after the upgrade. Avoid erasing all content after the program is upgraded, resulting in the loss of user parameters, which affects the actual use of users.
- the upgrade data package will be sent again according to the data package page number of the previous breakpoint, so as to realize the resuming transfer of the device system software upgrade and avoid the repeated upgrade process. At the same time achieve the effect of saving traffic.
- the upgrade module 31 includes a crc verification unit, which is configured to send upgrade data packets with crc verification codes to the device one by one to receive the device verification results; the page number verification unit receives the correct information after receiving the device reply And the data package page number, then the page number verification is performed, and the next upgrade data package is sent after the verification is passed; the upgrade data package retransmission unit is configured to not receive the device reply within the set time or receive the device reply receiving error Message, then resend the current upgrade data package.
- a crc verification unit which is configured to send upgrade data packets with crc verification codes to the device one by one to receive the device verification results
- the page number verification unit receives the correct information after receiving the device reply And the data package page number, then the page number verification is performed, and the next upgrade data package is sent after the verification is passed
- the upgrade data package retransmission unit is configured to not receive the device reply within the set time or receive the device reply receiving error Message, then resend the current upgrade data package.
- the breakpoint detection module 33 includes a breakpoint detection unit, which is configured to obtain the data package page number information corresponding to the upgrade data package that sent the breakpoint in the upgrade record according to the upgrade record of the device breakpoint; the resume transfer unit is configured to start from the previous The data package page number of the breakpoint starts to send the upgrade data package.
- the parameter backup module 34 includes a parameter package receiving unit, which is configured to receive all current parameter packages sent by the device before starting the upgrade; the parameter package sending unit is configured to send parameter packages to the device one by one, the parameter packages including parameter packages Page number; the parameter page number verification unit is configured to receive the previous parameter package page number verification pass information, and notify the parameter package sending unit to send the next parameter package to the device, and after all parameter packages are sent, the device uploads All parameter package information, parameter check.
- the parameter backup module further includes a failure retransmission unit, which is configured to perform data retransmission when the parameter package fails to be transmitted; after several data retransmissions fail, it will prompt the device parameter download failure.
- a failure retransmission unit which is configured to perform data retransmission when the parameter package fails to be transmitted; after several data retransmissions fail, it will prompt the device parameter download failure.
- the parameter backup module further includes a newly added point insertion unit configured to detect whether there are newly added parameter points in the protocol of the upgrade program, and save the parameter default values corresponding to the newly added parameter points to the parameter package, Then send it to the device; the dual-link redundant sending unit is configured to send the pre-backed up parameter packet through the dual-data communication link.
- a newly added point insertion unit configured to detect whether there are newly added parameter points in the protocol of the upgrade program, and save the parameter default values corresponding to the newly added parameter points to the parameter package, Then send it to the device;
- the dual-link redundant sending unit is configured to send the pre-backed up parameter packet through the dual-data communication link.
- the remote upgrade apparatus further includes an upgrade query module configured to obtain the upgrade permission from the device reply, send the MD5 check code of the upgrade data packet to the device, and start sending the upgrade data packet to the device according to the device reply.
- the remote upgrade device provided in the fourth embodiment of the present application can be configured to execute the remote upgrade method provided in the first embodiment above, and has corresponding functions and beneficial effects.
- the fifth embodiment of the present application provides an electronic device, which includes a processor, a memory, and a communication module.
- the number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more.
- the processor, memory, and communication module of the electronic device can be connected via a bus or in other ways.
- the memory can be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the remote upgrade method described in any embodiment of this application (for example, in a remote upgrade device). Upgrade module, breakpoint detection module, breakpoint resume module and parameter backup module).
- the memory may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one application program required by a function; the data storage area may store data created according to the use of the device, etc.
- the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
- the memory may further include a memory remotely provided with respect to the processor, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the communication module is configured to establish a wireless connection with the device to be upgraded and perform data transmission.
- the processor executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory, that is, realizing the above-mentioned remote upgrade method.
- the electronic device provided above can be configured to execute the remote upgrade method provided in the first embodiment above, and has corresponding functions and beneficial effects.
- Embodiment 6 is a diagrammatic representation of Embodiment 6
- An embodiment of the present application also provides a storage medium containing computer-executable instructions configured to execute a remote upgrade method when executed by a computer processor, and the remote upgrade method includes: sending upgrade data one by one The package is sent to the device to be upgraded, the upgrade data package contains the corresponding data package page number; the receiving status reply returned by the device to be upgraded corresponding to each upgrade data package is received, and the receiving status reply is confirmed to enter the breakpoint state when the reception fails; After confirming the end of the breakpoint state or after receiving the resuming transfer request of the device to be upgraded, the upgrade data package will be sent from the corresponding data packet page number when entering the breakpoint state; and the pre-backed up parameter package will be sent to the device to be upgraded.
- Storage medium any of various types of storage devices or storage devices.
- the term "storage medium” is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM or Rambus RAM, etc. ; Non-volatile memory, such as flash memory or magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements.
- the storage medium may further include other types of memory or a combination thereof.
- the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the Internet).
- the second computer system may provide program instructions to the first computer for execution.
- storage media may include two or more storage media that may reside in different locations (e.g., in different computer systems connected through a network).
- the storage medium may store program instructions executable by one or more processors (for example, embodied as a computer program).
- the storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the above-mentioned remote upgrade method, and can also execute the remote upgrade method provided by any embodiment of the present application. Related operations.
- the remote upgrade device, storage medium, and electronic equipment provided in the above embodiments can execute the remote upgrade method provided in any embodiment of this application.
- Remote upgrade method For technical details not described in detail in the above embodiments, please refer to any embodiment of this application. Remote upgrade method.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (14)
- 一种远程升级方法,其特征在于,包括:逐个发送升级数据包给待升级设备,所述升级数据包包含有对应的数据包页码;接收待升级设备对应于每个升级数据包返回的接收状态回复,在回复超时时确认进入断点状态;在确认断点状态结束后或者在接收到待升级设备的续传请求后,从进入断点状态时所对应的数据包页码开始发送升级数据包;发送预先备份的参数包给待升级设备。
- 根据权利要求1所述的远程升级方法,其特征在于,所述发送预先备份的参数包给待升级设备包括:逐个发送参数包给待升级设备,所述参数包包括参数包页码;接收到之前一个参数包页码校检通过信息后,发送下一个参数包给待升级设备;完成所有参数包发送后,接收设备上传的所有参数包信息,进行参数校检。
- 根据权利要求2所述的远程升级方法,其特征在于,所述发送预先备份的参数包给待升级设备还包括:若参数包发送失败,进行数据重发;执行若干次数据重发失败后,提示待升级设备参数下载失败。
- 根据权利要求1所述的远程升级方法,其特征在于,在所述发送预先备份的参数包给待升级设备中,还包括:检测升级程序的协议中是否有新增加的参数点位,若有,将新增加参数点位对应的参数默认值保存至参数包,再下发给待升级设备。
- 根据权利要求1所述的远程升级方法,其特征在于,在所述发送预先备份的参数包给待升级设备中,通过双数据通信链路发送预先备份的参数包。
- 根据权利要求1所述的远程升级方法,其特征在于,所述逐个发送升级数据包给待升级设备包括:逐个发送带有crc校检码的升级数据包给待升级设备,接收待升级设备校检结果;若接收到设备回复的接收正确信息及数据包页码,则进行页码校检,校检通过后发送下一个升级数据包;若设定时间内未接收到待升级设备回复或者接收到待升级设备回复的接收错误信息,则重发当前升级数据包。
- 根据权利要求1所述的远程升级方法,其特征在于,在所述逐个发送升级数据 包给待升级设备之前,还包括:获取待升级设备回复的升级允许,发送升级数据包的MD5校验码给待升级设备,根据待升级设备回复开始执行所述逐个发送升级数据包给待升级设备;在所有升级数据包发送完成之后,所述待升级设备计算接收到的升级数据包的MD5校验码,并与升级前接收到的升级数据包的MD5校验码进行比对,若比对结果正确,回复升级成功,发送升级结束标志。
- 根据权利要求1所述的远程升级方法,其特征在于,在所述接收待升级设备对应于每个升级数据包返回的接收状态回复,在回复超时时确认进入断点状态中,还包括:在回复接收失败时,重新发送对应升级数据包;接收失败达到预设次数,则升级失败,退出升级。
- 一种远程升级方法,其特征在于,包括:发送当前所有参数包到上位机;逐个接收上位机发送的升级数据包,所述升级数据包包含有对应的数据包页码;发送对应于每个升级数据包的接收状态回复给上位机,确认在设定时段内未接收到所述升级数据包的下一升级数据包,进入断点状态;进入断点状态达到预设时长后,检测升级标志位,根据未完成的升级记录上报信息给上位机;接收上位机从进入断点状态时所对应的数据包页码开始发送的升级数据包;接收预先备份的参数包。
- 根据权利要求9所述的远程升级方法,其特征在于,在所述接收预先备份的参数包中,还包括:接收包含新增加参数点位对应参数默认值的参数包。
- 一种远程升级装置,其特征在于,包括:升级模块,被配置成逐个发送升级数据包给待升级设备,所述升级数据包包含有对应的数据包页码;断点检测模块,被配置成接收待升级设备对应于每个升级数据包返回的接收状态回复,在回复超时时确认进入断点状态;断点续传模块,被配置成在确认断点状态结束后或者在接收到待升级设备的续传请求后,从进入断点状态时所对应的数据包页码开始发送升级数据包;参数备份模块,被配置成发送预先备份的参数包给待升级设备。
- 根据权利要求11所述的远程升级装置,其特征在于,所述远程升级装置还包 括:新参数点位设置模块,被配置成检测升级程序的协议中是否有新增加的参数点位,若有,将新增加参数点位对应的参数默认值保存至参数包,再下发给设备。
- 一种电子设备,其特征在于,包括:存储器以及一个或多个处理器;所述存储器,被配置成存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8任一所述的远程升级方法。
- 一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令被配置成在由计算机处理器执行时执行如权利要求1-8任一所述的远程升级方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910286083.8 | 2019-04-10 | ||
CN201910286083.8A CN111813424A (zh) | 2019-04-10 | 2019-04-10 | 一种远程升级方法、装置、电子设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020207045A1 true WO2020207045A1 (zh) | 2020-10-15 |
Family
ID=72751847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/124784 WO2020207045A1 (zh) | 2019-04-10 | 2019-12-12 | 一种远程升级方法、装置、电子设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111813424A (zh) |
WO (1) | WO2020207045A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110023021A1 (en) * | 2009-07-27 | 2011-01-27 | Canon Kabushiki Kaisha | Information processing apparatus for efficiently informing information associated with update details of software and control method thereof |
CN102364891A (zh) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | 嵌入式以太网设备升级软件的方法及嵌入式以太网设备 |
CN105183515A (zh) * | 2015-09-02 | 2015-12-23 | 深圳一电科技有限公司 | 云台固件升级的方法及装置 |
CN107450945A (zh) * | 2017-07-13 | 2017-12-08 | 北京小鸟看看科技有限公司 | 一种虚拟现实设备的固件更新方法 |
-
2019
- 2019-04-10 CN CN201910286083.8A patent/CN111813424A/zh not_active Withdrawn
- 2019-12-12 WO PCT/CN2019/124784 patent/WO2020207045A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110023021A1 (en) * | 2009-07-27 | 2011-01-27 | Canon Kabushiki Kaisha | Information processing apparatus for efficiently informing information associated with update details of software and control method thereof |
CN102364891A (zh) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | 嵌入式以太网设备升级软件的方法及嵌入式以太网设备 |
CN105183515A (zh) * | 2015-09-02 | 2015-12-23 | 深圳一电科技有限公司 | 云台固件升级的方法及装置 |
CN107450945A (zh) * | 2017-07-13 | 2017-12-08 | 北京小鸟看看科技有限公司 | 一种虚拟现实设备的固件更新方法 |
Also Published As
Publication number | Publication date |
---|---|
CN111813424A (zh) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8707291B2 (en) | Firmware recovery of wireless devices | |
CN107179909B (zh) | 软件升级方法、装置及计算机可读存储介质 | |
WO2018214775A1 (zh) | 一种固件升级方法、设备及存储介质 | |
US7805637B2 (en) | Network equipment and a method for monitoring the start up of such equipment | |
CN107547245B (zh) | 一种版本升级方法和装置 | |
US9430221B2 (en) | Device and method for updating firmware of a rackmount server system | |
WO2011157074A1 (zh) | 一种数据文件传输和校验的方法、设备及系统 | |
CN105511929A (zh) | 一种设备远程无线升级方法 | |
CN109743135A (zh) | 一种断点续传文件传输的方法 | |
CN106886438A (zh) | 基于fpga的系统远程更新方法 | |
US7808998B2 (en) | Disconnected transport protocol connectivity | |
WO2019084843A1 (zh) | 固件升级方法、电子设备、相机系统和无人飞行器 | |
CN111309363A (zh) | 基于Contiki操作系统的在线升级方法及装置 | |
WO2010006529A1 (zh) | 数据卡的操作模式切换及其控制方法、装置及数据卡 | |
JP2017208710A (ja) | 通信装置、通信方法、プログラム、および、通信システム | |
CN112395237A (zh) | 一种至少两个控制器之间通信的方法及其系统 | |
WO2020207045A1 (zh) | 一种远程升级方法、装置、电子设备及存储介质 | |
WO2010135966A1 (zh) | 成对冗余结构中器件的升级方法及设备 | |
JP2016086240A (ja) | 無線通信装置、無線通信プログラム及び無線通信システム | |
KR101566640B1 (ko) | 임의의 통신망 오류에 대처 가능한 이중화 can 통신 장치 및 방법, 그 방법을 수행하기 위한 기록 매체 | |
CN116450180A (zh) | 一种终端设备远程升级方法 | |
TW201606649A (zh) | 機架式伺服器系統的韌體更新方法及其裝置 | |
CN112203170B (zh) | 一种光网络单元的升级方法、装置、介质及设备 | |
CN111880817B (zh) | 一种用于光电监控系统的远程烧写方法 | |
CN111694516B (zh) | 一种分布式块存储系统的版本在线升级方法及终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19923936 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19923936 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.03.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19923936 Country of ref document: EP Kind code of ref document: A1 |