CN114827128B - Breakpoint continuous transmission method and related equipment - Google Patents

Breakpoint continuous transmission method and related equipment Download PDF

Info

Publication number
CN114827128B
CN114827128B CN202210329105.6A CN202210329105A CN114827128B CN 114827128 B CN114827128 B CN 114827128B CN 202210329105 A CN202210329105 A CN 202210329105A CN 114827128 B CN114827128 B CN 114827128B
Authority
CN
China
Prior art keywords
data packet
upgrade
upgraded
equipment
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210329105.6A
Other languages
Chinese (zh)
Other versions
CN114827128A (en
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.)
Xiamen Ziguang Zhanrui Technology Co ltd
Original Assignee
Xiamen Ziguang Zhanrui Technology Co ltd
Filing date
Publication date
Application filed by Xiamen Ziguang Zhanrui Technology Co ltd filed Critical Xiamen Ziguang Zhanrui Technology Co ltd
Priority to CN202210329105.6A priority Critical patent/CN114827128B/en
Publication of CN114827128A publication Critical patent/CN114827128A/en
Application granted granted Critical
Publication of CN114827128B publication Critical patent/CN114827128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the field of data downloading, in particular to a breakpoint continuous transmission method and related equipment. The method applied to the equipment to be upgraded comprises the following steps: when the system is detected to restart, determining whether the system file is complete; if the system file is incomplete, entering a downloading mode, and reading the information of the interruption point record; the interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information; generating a break point record data packet according to the break point record information, wherein the break point record data packet comprises data packet identification information and partition identification information of a first upgrading data packet; transmitting the break point record data packet to an upper computer device, so that the upper computer device continuously transmits an upgrade data packet to the device to be upgraded from the first upgrade data packet according to the break point record data packet; and carrying out system upgrading according to the upgrading data packet sent by the upper computer equipment.

Description

Breakpoint continuous transmission method and related equipment
[ Field of technology ]
The invention relates to the field of data downloading, in particular to a breakpoint continuous transmission method and related equipment.
[ Background Art ]
In the production line upgrading process of embedded equipment such as computers, mobile phones and cameras, unexpected disconnection of a communication port and interruption of upgrade file downloading caused by power failure of upgrading equipment can occur. In the prior art, when a production line is upgraded, an upgrade file is often split into a plurality of small data packets by an upper computer device, and the small data packets are sent to equipment to be upgraded in units of the data packets. Because the device to be upgraded often cancels the 'forced downloading' key, when the device to be upgraded is abnormally stopped due to unexpected reasons, the device to be upgraded often enters the downloading mode again by adopting a mode of simulating an electric signal of the 'forced downloading' key, and one or a plurality of wires are required to be welded on a circuit board of the device to be upgraded by adopting the mode and used for transmitting the electric signal which is forced to be downloaded. Thus, this approach will result in increased costs. Because the communication mode and the upgrade file sizes of different devices are different, the time for the device to be upgraded to upgrade the system is tens of minutes to tens of minutes. In the case of a large upgrade file, if the device to be upgraded is accidentally suspended during the upgrade process at a later stage of the upgrade process, retransmitting a plurality of data packets corresponding to the upgrade file will waste a lot of time and cost.
[ Invention ]
In order to solve the problems, the embodiment of the invention provides a breakpoint continuous transmission method and related equipment, which can improve the efficiency of the equipment in system upgrading.
In a first aspect, an embodiment of the present invention provides a breakpoint continuous transmission method applied to a device to be upgraded, including:
when the system is detected to restart, determining whether the system file is complete;
If the system file is incomplete, entering a downloading mode, and reading the information of the interruption point record; the interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information;
generating a break point record data packet according to the break point record information, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrading data packet;
Transmitting the break point record data packet to an upper computer device, so that the upper computer device continuously transmits an upgrade data packet to the device to be upgraded from the first upgrade data packet according to the break point record data packet;
And carrying out system upgrading according to the upgrading data packet sent by the upper computer equipment.
In the embodiment of the invention, after restarting, the equipment to be upgraded determines whether to enter a downloading mode by judging whether the system file is complete, and sends the interruption point record information to the upper computer equipment, so that the upper computer equipment continuously transmits the upgrading data packet from the terminal position before restarting, and the upgrading efficiency is improved.
In one possible implementation manner, the upgrade data packet is obtained after the upgrade file is parsed, where the upgrade file corresponds to a plurality of partitions, each partition corresponds to a plurality of upgrade data packets, and the upgrade file is used to upgrade the system of the device to be upgraded, and perform system upgrade according to the upgrade data packet sent by the upper computer device, where the method includes:
analyzing the upgrade data packet sent by the upper computer equipment and distributing a cache space;
Writing the parsed upgrade data packet into a storage medium of the equipment to be upgraded, and updating the breakpoint record information according to the data packet identification information of the upgrade data packet and the corresponding partition identification information;
Updating the target partition after all upgrade data packets corresponding to the target partition are acquired;
after all the partitions are updated, updating the target system file;
And clearing the interruption point record information and executing system restart.
In one possible implementation, the method further includes:
And when the upgrade data packet sent by the upper computer equipment is not acquired within the preset time, updating the interruption point record information according to the acquired upgrade data packet, and executing system restarting.
In one possible implementation, when a system restart is detected, before determining whether the system file is complete, the method further includes:
Receiving an upgrade instruction sent by the upper computer equipment, wherein the upgrade instruction comprises a target system file erase instruction;
and erasing the target system file according to the target system file erasing instruction.
In a second aspect, an embodiment of the present invention provides a breakpoint continuous transmission method applied to an upper computer device, including:
receiving a break point record data packet sent by the equipment to be upgraded, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrading data packet;
Determining the position of the first upgrading data packet in a data packet sequence according to the data packet identification information and the partition identification information of the first upgrading data packet; the data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence;
removing the upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence so as to update the upgrade data packet contained in the data packet sequence;
and sending an upgrade data packet to the equipment to be upgraded according to the updated data packet sequence.
In one possible implementation manner, an upgrade file is parsed to obtain a plurality of upgrade data packets, wherein the upgrade file is used for upgrading a system of the equipment to be upgraded;
determining the data packet sequence according to the plurality of upgrading data packets;
Sending an upgrade instruction to the equipment to be upgraded, wherein the upgrade instruction comprises a target system file erasing instruction;
And sequentially sending the plurality of upgrading data packets to the equipment to be upgraded according to the data packet sequence.
In a third aspect, an embodiment of the present invention provides a device to be upgraded, including:
the first processing module is used for determining whether the system file is complete or not when the system is restarted;
The reading module is used for entering a downloading mode and reading the information of the interruption point record if the system file is incomplete; the interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information;
The first processing module is further configured to generate a breakpoint record data packet according to the breakpoint record information, where the breakpoint record data packet includes data packet identification information and partition identification information of the first upgrade data packet;
The first communication module is used for sending the interrupt point record data packet to the upper computer equipment so that the upper computer equipment can continuously send an upgrade data packet to the equipment to be upgraded from the first upgrade data packet according to the first upgrade data packet;
the first processing module is further configured to perform system upgrade according to an upgrade data packet sent by the upper computer device.
In a fourth aspect, an embodiment of the present invention provides an upper computer device, including:
the second communication module is used for receiving a break point record data packet sent by the equipment to be upgraded, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrading data packet;
The second processing module is used for determining the position of the first upgrading data packet in the data packet sequence according to the data packet identification information and the partition identification information of the first upgrading data packet; the data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence;
The second processing module is further configured to reject an upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence, so as to update the upgrade data packet included in the data packet sequence;
the second communication module is further configured to send an upgrade data packet to the device to be upgraded according to the updated data packet sequence.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
At least one memory communicatively coupled to the processor, wherein:
The memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the methods of the first through fourth aspects.
In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that cause a computer to perform the methods of the first to fourth aspects.
It should be understood that, the method described in the third aspect of the embodiment of the present invention is related to the technical solution of the first aspect of the embodiment of the present invention, and the method described in the fourth aspect of the embodiment of the present invention is related to the technical solution of the second aspect of the embodiment of the present invention, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar and are not repeated.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a breakpoint resume method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device to be upgraded according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of an upper computer device according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[ Detailed description ] of the invention
For a better understanding of the technical solutions of the present specification, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are only some, but not all, of the embodiments of the present description. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present invention based on the embodiments herein.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the embodiment of the invention, the data packet identification information and the partition identification information of the upgrading data packet which is being downloaded are recorded, and the recorded data packet identification information and partition identification information are used as the interrupt point record information to be sent to the upper computer equipment after the system is restarted, so that the upper computer equipment continuously transmits the upgrading data packet from the interrupt point position, and the time cost waste caused by retransmission of the whole packet is avoided.
Fig. 1 is a flowchart of a breakpoint resume method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
And step 101, when the equipment to be upgraded detects the restarting of the system, determining whether the system file is complete. Optionally, the device to be upgraded and the upper computer device can be connected in a wired manner or a wireless manner. Such as data lines, local area networks, wiFi, etc. When the equipment to be upgraded executes the system upgrade of the current system version for the first time, the upper computer instructs the equipment to be upgraded to erase the target system file, and before the upgrade is completed, the target system file is still in an erased state, so that the equipment to be upgraded determines whether the cause of the restarting is abnormal in the upgrading process by determining whether the system file is complete or not.
Specifically, before the equipment to be upgraded is upgraded, the upper computer equipment needs to analyze an upgrade file to obtain a plurality of upgrade data packets, wherein the upgrade file is used for upgrading the system of the equipment to be upgraded. And then determining the data packet sequence according to the plurality of upgrading data packets. For example, if the upgrade file is an image file, the upper computer device analyzes the image file and the partition description file to obtain a plurality of packet packets, and generates a fixed data packet sequence. And then, the upper computer equipment sends an upgrade instruction to the equipment to be upgraded, wherein the upgrade instruction comprises a target system file erasing instruction. The equipment to be upgraded receives an upgrade instruction sent by the upper computer equipment, wherein the upgrade instruction comprises a target system file erasing instruction. And the equipment to be upgraded erases the target system file according to the target system file erasing instruction. And then, the upper computer equipment sequentially sends a plurality of upgrading data packets to the equipment to be upgraded according to the data packet sequence. Thereby starting to upgrade the device to be upgraded. In the upgrading process, if the upgrading process is aborted, the equipment to be upgraded determines that the system file is missing after restarting, so that the equipment enters a downloading state and executes a breakpoint continuous transmission step.
And 102, if the system file is incomplete, entering a downloading mode, and reading the breakpoint record information by the equipment to be upgraded. The interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information. The terminal device may write the packet identification information of the currently downloaded upgrade packet and the corresponding partition identification information into a storage medium of the device to be upgraded. After the current upgrading data packet is processed, when the next upgrading data packet is acquired, the data packet identification information and the partition identification information in the storage medium are updated, so that the effect of recording the upgrading progress is achieved.
Step 103, the device to be upgraded generates a break point record data packet according to the break point record information, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrade data packet.
And 104, the device to be upgraded sends the break point record data packet to the upper computer device, so that the upper computer device continuously sends the upgrade data packet to the device to be upgraded from the first upgrade data packet according to the break point record data packet. Wherein, the break point record data packet may be implemented in the form of a packet data packet, and the format of the packet data packet including the break point record information is shown in table 1-1.
Packet header Length information Other fields Recording information at break point Packet tail
TABLE 1-1
Step 105, the upper computer device receives a break point record data packet sent by the device to be upgraded, where the break point record data packet includes data packet identification information and partition identification information of the first upgrade data packet.
Step 106, the upper computer equipment determines the position of the first upgrading data packet in the data packet sequence according to the data packet identification information and the partition identification information of the first upgrading data packet; the data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence. After receiving the data packet of the breakpoint record, the upper computer device analyzes the data packet of the breakpoint record, thereby obtaining the data packet identification information and the partition identification information of the first upgrading data packet.
And step 107, the upper computer equipment rejects the upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence so as to update the upgrade data packet contained in the data packet sequence. For example, the upper computer analyzes the upgrade file to obtain 100 data packets before starting the upgrade, and determines the data packet sequence. The upper computer equipment determines the 32 nd upgrade data packet in the data packet sequence of the first upgrade data packet according to the breakpoint record data packet, then the first 31 upgrade data packets in the data packet sequence can be removed, and the sequence of the rest upgrade data packets is kept unchanged, so that a data packet sequence containing 69 upgrade data packets is obtained.
And step 108, the upper computer equipment sends an upgrade data packet to the equipment to be upgraded according to the updated data packet sequence.
And step 109, the equipment to be upgraded performs system upgrade according to the upgrade data packet sent by the upper computer equipment. The system comprises an upgrade data packet, an upgrade file, a plurality of partitions, a plurality of data storage units and a plurality of data storage units, wherein the upgrade data packet is obtained after the upgrade file is analyzed, the upgrade file corresponds to the partitions, each partition corresponds to the upgrade data packet, and the upgrade file is used for upgrading a system of equipment to be upgraded. For example, the upper computer device disassembles an image file (upgrade file) into 100 upgrade data packages, and divides 10 partitions each containing 10 upgrade data packages. The equipment to be upgraded analyzes the upgrade data packet sent by the upper computer equipment and allocates a cache space. And the equipment to be upgraded writes the parsed upgrading data packet into a storage medium of the equipment to be upgraded, and updates the interrupt point record information according to the data packet identification information of the upgrading data packet and the corresponding partition identification information. And after the equipment to be upgraded acquires all the upgrading data packets corresponding to the target partition, the target partition can be updated. After all the partitions are updated, the target system file can be updated to ensure the system integrity. And then, the equipment to be upgraded clears the breakpoint record information and executes system restarting so as to complete system upgrading.
In some embodiments, there may be instances where the device to be upgraded will be involved in the command processing loop because it is not powered down and the download stream Cheng Yiwai is suspended. Therefore, when the equipment to be upgraded does not acquire the upgrade data packet sent by the upper computer equipment within the preset time, the information of the interruption point record is updated according to the acquired upgrade data packet, and the system is restarted. Optionally, the terminal device may execute the system restart when the terminal device does not acquire the control instruction sent by the upper computer device within the preset duration.
In some embodiments, the breakpoint resume method provided by the embodiment of the present invention may be implemented by improving an existing BSL protocol interaction instruction. Optionally, the following actions may be added to the response functions of bsl_cmd_start_data, bsl_cmd_ MIDST _data, and bsl_cmd_end_data instructions in the BSL protocol: the name of the current transmission partition is recorded in the BSL_CMD_START_DATA instruction action, and the sequence number CNT of the current transmission DATA packet is set to 0; the first execution will erase the second stage application loader (Secondary program loader, spl) partition (corresponding to the erase target system file in step above). And after the BSL_CMD_ MIDST _DATA instruction action processes the transmission DATA and processes one packet of DATA, carrying out +1 operation on the DATA packet sequence number CNT. If the data is processed in the background, the sequence number of the data packet processed in the background is recorded. In order to prevent the memory area from being accessed too frequently, the partition name and the partition serial number record are written into the memory once only when the CNT is an integer multiple of a preset threshold value. The recorded storage location selects an area that the terminal program will not access frequently. The bsl_cmd_end_data action confirms that the DATA transmission of the current partition has ended, and the record information is written once. Therefore, after the device is restarted, the firmware program of the device to be upgraded detects the spl program missing, so that the device enters a downloading mode and sends the interrupt point record information to the upper computer device.
In a specific example, the breakpoint continuous transmission method provided by the invention comprises the following implementation steps: after restarting the device to be upgraded, the firmware program detects whether the spl program is complete. If the spl program is incomplete, the download mode is entered. At this time, the upper computer device detects that the device to be upgraded is restarted, and transmits source codes of the first-level downloading program (File Download Loader, FDL 1) and the second-level downloading program (File Download Loader, FDL 2) to the device to be upgraded. The FDL1 is used for indicating the equipment to be upgraded to finish DDR initialization and FDL2 downloading. The FDL2 is used for indicating the device to be upgraded to complete downloading of all other image files (i.e. a plurality of upgrade data packets obtained by disassembling the upgrade files). After that, the device to be upgraded executes the FDL2 source code, the FDL2 transmits the interrupt point record data packet to the upper computer device, and after receiving the interrupt point record data packet, the upper computer regenerates a transmission sequence according to the packet sequence number and the partition name, and transmits the packet (upgrade data packet).
Corresponding to the breakpoint resume method, an embodiment of the present invention provides a schematic structural diagram of a device to be upgraded, as shown in fig. 2, where the device includes: a first processing module 201, a reading module 202 and a first communication module 203.
The first processing module 201 is configured to determine whether the system file is complete when a system restart is detected.
The reading module 202 is configured to enter a download mode and read the breakpoint record information if the system file is incomplete. The interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information.
The first processing module 201 is further configured to generate an interruption point record data packet according to the interruption point record information, where the interruption point record data packet includes data packet identification information and partition identification information of the first upgrade data packet.
The first communication module 203 is configured to send the interruption point record data packet to the host device, so that the host device continues to send the upgrade data packet to the device to be upgraded from the first upgrade data packet according to the first upgrade data packet.
The first processing module 201 is further configured to perform a system upgrade according to an upgrade data packet sent by the host computer device.
The mobile terminal provided by the embodiment shown in fig. 2 may be used to implement the technical solution of the method embodiment shown in fig. 1 in this specification, and the implementation principle and technical effects may be further referred to in the related description of the method embodiment.
Fig. 3 is a schematic structural diagram of an upper computer device according to an embodiment of the present invention, as shown in fig. 3, where the device includes: a second communication module 301 and a second processing module 302.
The second communication module 301 is configured to receive a break point record data packet sent by a device to be upgraded, where the break point record data packet includes data packet identification information and partition identification information of the first upgrade data packet.
The second processing module 302 is configured to determine a location of the first upgrade data packet in the data packet sequence according to the data packet identification information and the partition identification information of the first upgrade data packet. The data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence.
The second processing module 302 is further configured to reject an upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence, so as to update the upgrade data packet included in the data packet sequence.
The second communication module 301 is further configured to send an upgrade data packet to the device to be upgraded according to the updated data packet sequence.
The mobile terminal provided by the embodiment shown in fig. 3 may be used to implement the technical solution of the method embodiment shown in fig. 1 in this specification, and the implementation principle and technical effects may be further referred to in the related description of the method embodiment.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where, as shown in fig. 4, the electronic device may include at least one processor and at least one memory communicatively connected to the processor, where: the memory stores program instructions executable by the processor, and the processor invokes the program instructions to perform the breakpoint resume method provided in the embodiment shown in fig. 1 of the present specification.
As shown in fig. 4, the electronic device is in the form of a general purpose computing device. Components of an electronic device may include, but are not limited to: one or more processors 410, a communication interface 420, and a memory 430, a communication bus 440 that connects the various system components (including the memory 430, the communication interface 420, and the processing unit 410).
The communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECTION; hereinafter PCI) bus.
Electronic devices typically include a variety of computer system readable media. Such media can be any available media that can be accessed by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 430 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) and/or cache memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the present description.
A program/utility having a set (at least one) of program modules may be stored in the memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules typically carry out the functions and/or methods of the embodiments described herein.
The processor 410 executes various functional applications and data processing by running programs stored in the memory 430, for example, implementing the breakpoint resume method provided in the embodiment shown in fig. 1 of the present specification.
Embodiments of the present disclosure provide a computer readable storage medium storing computer instructions that cause a computer to perform the breakpoint resume method provided by the embodiment of fig. 1 of the present disclosure.
Any combination of one or more computer readable media may be utilized as the above-described computer readable storage media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory; EPROM) or flash Memory, an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present specification, the meaning of "plurality" means at least two, for example, two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present specification in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present specification.
Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that the devices according to the embodiments of the present disclosure may include, but are not limited to, a Personal Computer (Personal Computer; hereinafter referred to as a PC), a Personal digital assistant (Personal DIGITAL ASSISTANT; hereinafter referred to as a PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 display, an MP4 display, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in each embodiment of the present specification may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a connector, or a network device, etc.) or a Processor (Processor) to perform part of the steps of the methods described in the embodiments of the present specification. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (hereinafter referred to as ROM), a random access Memory (Random Access Memory hereinafter referred to as RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. The breakpoint resume method is characterized by being applied to equipment to be upgraded and comprising the following steps of:
when the system is detected to restart, determining whether the system file is complete;
If the system file is incomplete, entering a downloading mode, and reading the information of the interruption point record; the interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information;
generating a break point record data packet according to the break point record information, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrading data packet;
Transmitting the break point record data packet to an upper computer device, so that the upper computer device continuously transmits an upgrade data packet to the device to be upgraded from the first upgrade data packet according to the break point record data packet;
performing system upgrade according to the upgrade data packet sent by the upper computer equipment;
The interruption point record data packet is used for indicating the upper computer equipment to reject the upgrade data packet before the first upgrade data packet in the data packet sequence so as to update the upgrade data packet contained in the data packet sequence; and the upper computer equipment starts to send an upgrade data packet to the equipment to be upgraded from the first upgrade data packet according to the updated data packet sequence.
2. The method of claim 1, wherein the upgrade data packet is obtained after an upgrade file is parsed, the upgrade file corresponds to a plurality of partitions, each partition corresponds to a plurality of upgrade data packets, the upgrade file is used for upgrading a system of the device to be upgraded, and the system upgrade is performed according to the upgrade data packet sent by the host computer device, and the method comprises:
analyzing the upgrade data packet sent by the upper computer equipment and distributing a cache space;
Writing the parsed upgrade data packet into a storage medium of the equipment to be upgraded, and updating the breakpoint record information according to the data packet identification information of the upgrade data packet and the corresponding partition identification information;
Updating the target partition after all upgrade data packets corresponding to the target partition are acquired;
After all the partitions are updated, updating the target system file;
And clearing the interruption point record information and executing system restart.
3. The method according to claim 1, wherein the method further comprises:
And when the upgrade data packet sent by the upper computer equipment is not acquired within the preset time, updating the interruption point record information according to the acquired upgrade data packet, and executing system restarting.
4. The method of claim 1, wherein upon detecting a system restart, before determining whether a system file is complete, the method further comprises:
Receiving an upgrade instruction sent by the upper computer equipment, wherein the upgrade instruction comprises a target system file erase instruction;
and erasing the target system file according to the target system file erasing instruction.
5. The breakpoint continuous transmission method is characterized by being applied to upper computer equipment and comprising the following steps of:
receiving a break point record data packet sent by equipment to be upgraded, wherein the break point record data packet comprises data packet identification information and partition identification information of a first upgrading data packet;
Determining the position of the first upgrading data packet in a data packet sequence according to the data packet identification information and the partition identification information of the first upgrading data packet; the data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence;
removing the upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence so as to update the upgrade data packet contained in the data packet sequence;
and sending an upgrade data packet to the equipment to be upgraded according to the updated data packet sequence.
6. The method of claim 5, wherein prior to receiving the break point record data packet sent by the device to be upgraded, the method further comprises:
Analyzing an upgrade file to obtain a plurality of upgrade data packages, wherein the upgrade file is used for upgrading a system of the equipment to be upgraded;
determining the data packet sequence according to the plurality of upgrading data packets;
Sending an upgrade instruction to the equipment to be upgraded, wherein the upgrade instruction comprises a target system file erasing instruction;
And sequentially sending the plurality of upgrading data packets to the equipment to be upgraded according to the data packet sequence.
7. A device to be upgraded, comprising:
the first processing module is used for determining whether the system file is complete or not when the system is restarted;
The reading module is used for entering a downloading mode and reading the information of the interruption point record if the system file is incomplete; the interruption point record information is determined according to the data packet identification information of the first upgrading data packet which is being downloaded before restarting the equipment to be upgraded and the corresponding partition identification information;
The first processing module is further configured to generate a breakpoint record data packet according to the breakpoint record information, where the breakpoint record data packet includes data packet identification information and partition identification information of the first upgrade data packet;
The first communication module is used for sending the interrupt point record data packet to the upper computer equipment so that the upper computer equipment can continuously send an upgrade data packet to the equipment to be upgraded from the first upgrade data packet according to the first upgrade data packet;
the first processing module is further used for performing system upgrade according to the upgrade data packet sent by the upper computer equipment;
The interruption point record data packet is used for indicating the upper computer equipment to reject the upgrade data packet before the first upgrade data packet in the data packet sequence so as to update the upgrade data packet contained in the data packet sequence; and the upper computer equipment starts to send an upgrade data packet to the equipment to be upgraded from the first upgrade data packet according to the updated data packet sequence.
8. An upper computer device, comprising:
The second communication module is used for receiving a break point record data packet sent by equipment to be upgraded, wherein the break point record data packet comprises data packet identification information and partition identification information of the first upgrading data packet;
The second processing module is used for determining the position of the first upgrading data packet in the data packet sequence according to the data packet identification information and the partition identification information of the first upgrading data packet; the data packet sequence comprises a plurality of upgrading data packets, and the plurality of upgrading data packets are arranged according to a preset sequence;
The second processing module is further configured to reject an upgrade data packet before the first upgrade data packet in the data packet sequence according to the position of the first upgrade data packet in the data packet sequence, so as to update the upgrade data packet included in the data packet sequence;
the second communication module is further configured to send an upgrade data packet to the device to be upgraded according to the updated data packet sequence.
9. An electronic device, comprising:
at least one processor; and
At least one memory communicatively coupled to the processor, wherein:
The memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-6.
10. A computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 6.
CN202210329105.6A 2022-03-30 Breakpoint continuous transmission method and related equipment Active CN114827128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210329105.6A CN114827128B (en) 2022-03-30 Breakpoint continuous transmission method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210329105.6A CN114827128B (en) 2022-03-30 Breakpoint continuous transmission method and related equipment

Publications (2)

Publication Number Publication Date
CN114827128A CN114827128A (en) 2022-07-29
CN114827128B true CN114827128B (en) 2024-07-05

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760333A (en) * 2021-09-16 2021-12-07 海宁奕斯伟集成电路设计有限公司 Software upgrading method and device, electronic equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760333A (en) * 2021-09-16 2021-12-07 海宁奕斯伟集成电路设计有限公司 Software upgrading method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106598835B (en) Application testing method, device and system
CN103106092A (en) System software updating method and device in terminal appliance
US20160054927A1 (en) System management controller and method of configuration file backup and recovery
WO2014194865A1 (en) Firmware upgrade method and apparatus, and communication device
CN104581397A (en) System upgrade method and device for android set-top box
CN111611145B (en) Breakdown information collection method and device, storage medium and electronic equipment
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
EP3291086A1 (en) Method and device for downloading software version, and storage medium
CN110795353A (en) Debugging method, device and equipment for fast application and storage medium
CN110289039B (en) Debugging method and device of eMMC
WO2015176468A1 (en) Method and apparatus for recovering system software of intelligent terminal
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN104978204A (en) Application installing and updating method based on mobile terminal and application installing and updating device based on mobile terminal
CN110908837A (en) Application program exception handling method and device, electronic equipment and storage medium
CN114827128B (en) Breakpoint continuous transmission method and related equipment
CN110134423B (en) Firmware updating method and device and computer readable storage medium
CN111124455B (en) Battery management system upgrading method, device, server and storage medium
CN103336699A (en) Upgrade method and device for embedded system software
CN114827128A (en) Breakpoint continuous transmission method and related equipment
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
WO2016058188A1 (en) Software upgrading method and apparatus applied to terminal and terminal
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN107294768A (en) EMMC firmware upgrade methods, equipment and storage device
CN113434151A (en) Service deployment method, server and system

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant