Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data lossless remote code updating method and apparatus

A code update and data lossless technology, applied in the direction of program control device, program loading/starting, input/output to record carrier, etc., can solve the problems of low update delay, long code update time, data acquisition loss, etc., to reduce The effect of the timing of code updates

Inactive Publication Date: 2015-11-04
南京芯艺教育科技有限公司
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the technical problems of a large number of lost data and long time spent on code update during traditional wireless remote code update based on GPRS, the present invention proposes a remote code update method with no loss of data, which reduces code update by using space for time. The problem of long time, due to the low update delay, there will not be a large amount of data loss during the code update process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data lossless remote code updating method and apparatus
  • Data lossless remote code updating method and apparatus
  • Data lossless remote code updating method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The first code to be executed after the embedded system is powered on is the BootLoader code, which initializes the hardware related to the CPU, loads the image of the operating system or the embedded application into the memory, and then jumps to the application to execute the relevant code.

[0029] The startup of the embedded BootLoader is generally divided into two stages. The first stage is mainly used to initialize the hardware that depends on the CPU, and this code is generally implemented in assembly language. The main tasks at this stage are: (1) Initialize basic hardware devices (such as closing all interrupts, closing processor internal data, instruction cache, etc.); (2) preparing RAM space for applications. If the user application is stored in a solid-state storage medium (such as SD card, server hard disk, etc.), then copy the code of the second stage of BootLoader to RAM, set the corresponding stack pointer and jump to the entry point of the C code progr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a data lossless remote code updating method and apparatus. The method comprises: S1, a server side sends a ProcessAppInfoMsg frame, the frame transmits a total byte number and a total packet number of a code to a controller, the controller writes the total byte number and the total packet number of the code into a designated position of an SD card for a checking frame to check, and the controller returns the ProcessAppInfoMsg frame; S2, the server side sends the ProcessAppInfoMsg frame, a controller side checks the frame according to a check code of the frame and if the frame is correct, the codes are written into corresponding addresses of the SD card according to a record format of the SD card; S3, the server side sends the ProcessAppInfoMsg frame, the frame is sent after code frames are sent, a 32-bit total checksums of all the codes is recorded in the frame, checking is successfully carried out if a 32-bit total checksum of all the code frames read from the SD card is equal to that of all the codes, or error information is carried by a return frame of the frame and a server is requested to resend the frame; and S4, the server side sends the ProcessAppInfoMsg frame, a user application skips to the position of a bootloader after receiving the frame, and the bootloader completes the code updating operation. The data lossless remote code updating method and apparatus have the advantages of short code updating time and lossless data.

Description

technical field [0001] The present invention relates to the field of remote code update, and more particularly, to a data lossless remote code update method and device. Background technique [0002] With the development of Internet of Things technology, wireless remote code update technology is becoming more and more necessary in fields such as wireless sensor networks. In military, scientific research and other fields, some data is extremely precious, and the loss of data collected within 2 or 3 minutes becomes intolerable, which brings new challenges to the wireless remote code update mechanism. [0003] At present, remote code update technologies based on WiFi, Ethernet, GPRS, ZigBee, CAN bus and other technologies emerge in an endless stream. They all follow the principle of separating the BootLoader (code update) code from the user code, that is, receive the machine code file of the program to be updated in the BootLoader program, copy it to the ROM at the specified ad...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/445G06F3/06
Inventor 王宜怀陈建明顾会光陈瑞杰
Owner 南京芯艺教育科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products