CN113411210A - Online upgrade system, method, device and computer readable storage medium - Google Patents

Online upgrade system, method, device and computer readable storage medium Download PDF

Info

Publication number
CN113411210A
CN113411210A CN202110667527.XA CN202110667527A CN113411210A CN 113411210 A CN113411210 A CN 113411210A CN 202110667527 A CN202110667527 A CN 202110667527A CN 113411210 A CN113411210 A CN 113411210A
Authority
CN
China
Prior art keywords
frame
data
computer
upper computer
abnormal
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.)
Pending
Application number
CN202110667527.XA
Other languages
Chinese (zh)
Inventor
许云峰
杜志鹏
田昌亮
姜楚
熊泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Autel Intelligent Technology Corp Ltd
Original Assignee
Autel Intelligent Technology Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Autel Intelligent Technology Corp Ltd filed Critical Autel Intelligent Technology Corp Ltd
Priority to CN202110667527.XA priority Critical patent/CN113411210A/en
Publication of CN113411210A publication Critical patent/CN113411210A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses an online upgrading system, method and device and a computer readable storage medium. The system comprises an upper computer and a lower computer, wherein the upper computer is in communication connection with the lower computer in a simplex communication mode; the upper computer is used for sequentially sending each data frame of the online upgrading data to the lower computer; the lower computer is used for sequentially receiving each data frame sent by the upper computer, updating abnormal frame information when detecting that the data frame sent by the upper computer is abnormal, continuously receiving the rest data frames sent by the upper computer, and displaying the abnormal frame information after receiving; the upper computer is also used for determining a data frame needing to be retransmitted according to the abnormal frame information and sending the data frame needing to be retransmitted to the lower computer; the lower computer is also used for continuously receiving the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. Through the mode, the online upgrading efficiency under the simplex communication scene is improved.

Description

Online upgrade system, method, device and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an online upgrading system, method and device and a computer readable storage medium.
Background
The simplex communication is a communication mode with a unidirectional communication link, and can be applied to a plurality of scenes, such as radio frequency remote control, infrared remote control, remote anti-theft bell and the like.
In the related art, when the function of the electronic device is upgraded by the upper computer, the upper computer needs to send the online upgrade file to the electronic device, and the electronic device executes the upgrade according to the received online upgrade file. If the electronic device only supports simplex communication, the upper computer cannot receive the feedback information of the electronic device, and cannot determine whether the receiving process of the online upgrade file is abnormal. However, the inventors found in the course of implementing embodiments of the present invention that: in the related art, the upper computer cannot receive the feedback information of the electronic equipment, so that the upper computer needs to resend the online upgrade file once the electronic equipment receives the abnormal information, and the online upgrade efficiency of the electronic equipment is low.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide an online upgrade system, method, apparatus, and computer-readable storage medium, which are used to solve the problem in the prior art that the efficiency of online upgrade is low in a simplex communication scenario.
According to an aspect of an embodiment of the present invention, an online upgrade system is provided, where the system includes an upper computer and a lower computer, and the upper computer establishes a communication connection with the lower computer through a simplex communication manner;
the upper computer is used for dividing the online upgrading data into a plurality of data frames and sequentially sending each data frame to the lower computer;
the lower computer is used for sequentially receiving each data frame sent by the upper computer, updating abnormal frame information when the data frame sent by the upper computer is detected to be abnormal, continuously receiving the rest data frames sent by the upper computer, and displaying the abnormal frame information after the data frame is received;
the upper computer is also used for receiving the abnormal frame information input by maintenance personnel, determining a data frame needing to be retransmitted according to the abnormal frame information, and sending the data frame needing to be retransmitted to the lower computer;
and the lower computer is also used for continuously receiving the data frames needing to be retransmitted and executing online upgrading after the data frames needing to be retransmitted are received.
In an optional manner, the data frame includes a total number of data frames, a current frame sequence number, current frame data, and current frame check data;
the lower computer is used for:
determining the frame sequence number of the data frame lost according to the total number of the data frames and the current frame sequence number, and storing the frame sequence number of the data frame lost as the abnormal frame information; and/or the presence of a gas in the gas,
and determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information.
In an optional mode, the lower computer is used for stopping receiving the current data frame and displaying the current receiving progress when the waiting time for receiving the current data frame is judged to be greater than the preset maximum waiting time;
and the upper computer is used for receiving the current receiving progress input by the maintenance personnel and determining the data frame needing to be retransmitted according to the current receiving progress.
In an optional manner, the upper computer is configured to:
establishing communication connection with a server through Ethernet, and starting online upgrade on the lower computer if online upgrade data corresponding to the lower computer in the server is detected to be updated.
In an optional mode, the lower computer is further configured to:
and if the current abnormal frame number is judged to be larger than the preset maximum abnormal frame number according to the abnormal frame information, stopping receiving the data frame sent by the upper computer, and giving an alarm prompt.
According to another aspect of the embodiments of the present invention, an online upgrade method is provided, which is applied to an online upgrade system, where the system includes an upper computer and a lower computer, the upper computer establishes a communication connection with the lower computer in a simplex communication manner, and the method includes:
the upper computer divides the online upgrading data into a plurality of data frames and sequentially sends each data frame to the lower computer;
the lower computer receives each data frame sent by the upper computer in sequence, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, the rest data frames sent by the upper computer are continuously received, and after the data frame is received, the abnormal frame information is displayed;
the upper computer receives the abnormal frame information input by maintenance personnel, determines a data frame needing to be retransmitted according to the abnormal frame information, and sends the data frame needing to be retransmitted to the lower computer;
and the lower computer continuously receives the data frame needing to be retransmitted, and after the data frame needing to be retransmitted is received, online upgrading is executed.
According to another aspect of the embodiments of the present invention, an online upgrade method is provided, which is applied to a lower computer of an online upgrade system, where the system includes an upper computer and the lower computer, the upper computer establishes a communication connection with the lower computer in a simplex communication manner, and the method includes:
sequentially receiving each data frame sent by the upper computer;
when the data frame sent by the upper computer is detected to be abnormal, updating abnormal frame information;
continuously receiving the residual data frames sent by the upper computer;
when the receiving is finished, displaying the abnormal frame information;
continuously receiving the data frame which is sent by the upper computer and needs to be retransmitted;
and after the data frame needing to be retransmitted is received, performing online upgrading.
In an optional manner, the data frame includes a total number of data frames, a current frame sequence number, current frame data, and current frame check data, and the method further includes:
determining the frame sequence number of the data frame lost according to the total number of the data frames and the current frame sequence number, and storing the frame sequence number of the data frame lost as the abnormal frame information; and/or the presence of a gas in the gas,
and determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information.
According to another aspect of the embodiments of the present invention, there is provided an online upgrade apparatus, applied to a lower computer of an online upgrade system, where the system includes an upper computer and the lower computer, and the upper computer establishes a communication connection with the lower computer through a simplex communication manner, and the apparatus includes:
the receiving module is used for sequentially receiving each data frame sent by the upper computer;
the detection module is used for detecting whether the data frame sent by the upper computer is abnormal or not;
the updating module is used for updating abnormal frame information when the detection module detects that the data frame sent by the upper computer is abnormal;
the receiving module is further configured to continue to receive the remaining data frames sent by the upper computer after the updating module updates the abnormal frame information;
the display module is used for displaying the abnormal frame information after the receiving module finishes receiving;
the receiving module is further configured to continue to receive the data frame that needs to be retransmitted and is sent by the upper computer;
and the upgrading module is used for executing online upgrading after the receiving module finishes receiving the data frame needing to be retransmitted.
According to another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, in which at least one executable instruction is stored, and when the executable instruction is executed on an electronic device, the electronic device executes the operations of the online upgrade method.
In the embodiment of the invention, an upper computer is connected with a lower computer in a simplex communication mode, the lower computer can sequentially receive each data frame sent by the upper computer, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, and the remaining data frames sent by the upper computer are continuously received until the receiving is finished; then, the lower computer displays the abnormal frame information to display the abnormal frame information to maintenance personnel, so that the maintenance personnel can input the abnormal frame information into the upper computer; the upper computer can determine the data frame needing to be retransmitted according to the abnormal frame information and send the data frame needing to be retransmitted to the lower computer; the lower computer can continue to receive the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. In the above embodiment, the upper computer may determine the data frame to be retransmitted according to the abnormal frame information updated by the lower computer, and the lower computer may perform online upgrade after receiving the data frame to be retransmitted without retransmitting all the online upgrade data, thereby improving the efficiency of online upgrade.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic structural diagram illustrating an online upgrade system provided by an embodiment of the present invention;
FIG. 2 is a flow chart of an online upgrade method provided by an embodiment of the present invention;
FIG. 3 is a flow chart of an online upgrade method according to another embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an online upgrade apparatus provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein.
Fig. 1 shows a schematic structural diagram of an online upgrade system according to an embodiment of the present invention. The online upgrading system comprises an upper computer and a lower computer, wherein the upper computer is in communication connection with the lower computer in a simplex communication mode. Simplex communication is a working mode of unidirectional information transmission, in which an upper computer can only transmit information but cannot receive information, and a lower computer can only receive information but cannot transmit information.
The system comprises an upper computer, an online upgrading system and a control system, wherein the upper computer is a module for sending data in the online upgrading system and comprises upper computer equipment and an application program installed on the upper computer equipment; the lower computer is a module for receiving data in the online upgrading system and comprises lower computer equipment and an application program installed on the lower computer equipment. The upper computer can be a mobile phone with application software installed, and the lower computer can be a set-top box, an air conditioner and the like. In the online upgrading system, the upper computer can obtain online upgrading data required by the lower computer during online upgrading, and the online upgrading data is sent to the lower computer, so that the lower computer executes online upgrading after obtaining the online upgrading data sent by the upper computer.
Furthermore, the upper computer is used for dividing the online upgrading data into a plurality of data frames, the size of each data frame does not exceed the preset maximum frame capacity value, and each data frame is sequentially sent to the lower computer; the lower computer is used for sequentially receiving each data frame sent by the upper computer, detecting whether each data frame is abnormal or not, updating abnormal frame information when the data frame sent by the upper computer is detected to be abnormal, continuously receiving the rest data frames sent by the upper computer, and displaying the abnormal frame information to display the abnormal frame information to maintenance personnel for the maintenance personnel to input the abnormal frame information into the upper computer after the abnormal frame information is completely received; the upper computer is also used for determining a data frame needing to be retransmitted according to the abnormal frame information and sending the data frame needing to be retransmitted to the lower computer; the lower computer is also used for continuously receiving the data frames which are sent by the upper computer and need to be retransmitted, and after the data frames which need to be retransmitted are received, the online upgrade is executed.
In an optional mode, the data frame includes a total number of data frames, a current frame number, current frame data, and current frame check data, the total number of data frames is used to identify a total frame number of the data frame sent by the upper computer to the lower computer, the current frame number is used to identify a frame number of the current data frame sent by the upper computer to the lower computer, the current frame data is used to identify frame data of the current data frame sent by the upper computer to the lower computer, and the current frame check data is used to identify check data of the current data frame sent by the upper computer to the lower computer. The current frame data may be checked by the current frame check data to determine whether the current frame data is erroneous.
Further, the lower computer is used for determining the frame number of the data frame lost according to the total number of the data frames and the current frame number, and storing the frame number of the data frame lost as abnormal frame information; and/or determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information. For example, the total number of data frames is 10, and the lower computer should receive the 6 th frame transmitted by the upper computer after receiving the 1 st to 5 th frames transmitted by the upper computer, and if the 7 th frame transmitted by the upper computer is actually received, it can be determined that the data frame with the frame number of 6 is lost.
In an optional manner, the lower computer is configured to stop receiving the current data frame and perform an alarm when it is determined that the waiting time for receiving the current data frame is greater than a preset maximum waiting time. Furthermore, the current receiving progress can be displayed to show the current receiving progress to maintenance personnel, so that the maintenance personnel can input the current receiving progress into the upper computer; the upper computer is used for receiving the current receiving progress input by the maintenance personnel and determining the data frames needing to be retransmitted according to the current receiving progress. The maximum waiting time may be set according to actual needs, for example, if the interval time for the upper computer to send different data frames is 800ms, the maximum waiting time may be set to 2400 ms.
In an optional manner, the upper computer is configured to establish a communication connection with the server through an ethernet, and start online upgrade on the lower computer when it is detected that a condition for online upgrade of the lower computer is satisfied, for example, start online upgrade on the lower computer when it is detected that online upgrade data corresponding to the lower computer in the server is updated.
In an optional mode, the lower computer is further configured to stop receiving the data frame sent by the upper computer and perform alarm prompting if the current abnormal frame number is judged to be greater than a preset maximum abnormal frame number according to the abnormal frame information. The abnormal frame information may include a frame number of the abnormal frame, and the abnormal frame may include a data frame in which an error is checked and a data frame in which a loss occurs. Further, in the process that the lower computer receives the data frames sent by the upper computer, the frame number of the data frames with errors in verification and the frame number of the data frames with losses can be stored in a preset abnormal frame array, and when the number of elements in the abnormal frame array is larger than the maximum abnormal frame number, the data frames sent by the upper computer are stopped being received, and alarm prompt is carried out. And after the abnormal frame data is cleared, the lower computer finishes receiving all the data frames sent by the upper computer, and can further execute online upgrade.
In the embodiment of the invention, an upper computer is connected with a lower computer in a simplex communication mode, the lower computer can sequentially receive each data frame sent by the upper computer, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, and the remaining data frames sent by the upper computer are continuously received until the receiving is finished; then, the lower computer displays the abnormal frame information to display the abnormal frame information to maintenance personnel, so that the maintenance personnel can input the abnormal frame information into the upper computer; the upper computer can determine the data frame needing to be retransmitted according to the abnormal frame information and send the data frame needing to be retransmitted to the lower computer; the lower computer can continue to receive the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. In the above embodiment, the upper computer may determine the data frame to be retransmitted according to the abnormal frame information updated by the lower computer, and the lower computer may perform online upgrade after receiving the data frame to be retransmitted without retransmitting all the online upgrade data, thereby improving the efficiency of online upgrade.
Fig. 2 shows a flow diagram of an online upgrade method according to an embodiment of the present invention. The online upgrading method is applied to an online upgrading system, the online upgrading system comprises an upper computer and a lower computer, and the upper computer is in communication connection with the lower computer in a simplex communication mode. As shown in fig. 2, the method includes:
step 110: the upper computer divides the online upgrading data into a plurality of data frames and sequentially sends each data frame to the lower computer.
The upper computer can divide the online upgrading data into a plurality of data frames according to a preset framing mode, and each data frame is respectively sent to the lower computer according to preset interval time. Furthermore, the upper computer can display the data frame sending progress on a display interface of the upper computer according to the total number of the data frames and the number of the sent data frames so as to be referred by maintenance personnel. Before sending the first frame data frame, the upper computer may send an upgrade command frame to the lower computer to notify the lower computer to start receiving the data frame, or the upper computer may add identification information to the first frame data frame to notify the lower computer to start receiving the data frame.
Step 120: and the lower computer receives each data frame sent by the upper computer in sequence, updates abnormal frame information when detecting that the data frame sent by the upper computer is abnormal, continues to receive the rest data frames sent by the upper computer, and displays the abnormal frame information after receiving.
After receiving the data frame sent by the upper computer, the lower computer can detect the data frame to determine whether the data frame is abnormal, and when the data frame is detected to be abnormal, abnormal frame information can be updated according to the abnormal condition of the data frame. The lower computer can comprise a lower computer display interface, and the lower computer can display the abnormal frame information on the lower computer display interface so that maintenance personnel can acquire the abnormal frame information through the lower computer display interface and input the abnormal frame information into the upper computer. For example, the lower computer display interface may be a 6-digit display pipe, which identifies the abnormal data frames as data frames with frame number 0 to data frames with frame number 29 by displaying "F00-29". If the lower computer display interface is a 2-bit digital display tube, 00 to 29 can be flash-displayed in sequence to identify the abnormal data frame as a data frame with a frame number of 0 to the data frame with a frame number of 29.
Step 130: and the upper computer receives the abnormal frame information input by maintenance personnel, determines a data frame needing to be retransmitted according to the abnormal frame information, and sends the data frame needing to be retransmitted to the lower computer.
Wherein, the host computer can include host computer display interface, and maintainer can be with unusual frame information input host computer display interface. The upper computer can acquire the abnormal frame information from the display interface of the upper computer and determine the data frame needing to be retransmitted according to the acquired abnormal frame information. For example, if a maintainer inputs "F00-29" on a display interface of an upper computer, the upper computer may analyze that the abnormal data frames are from a data frame with a frame number of 0 to a data frame with a frame number of 29, and determine that the data frame with the frame number of 0 to the data frame with the frame number of 29 are data frames that need to be retransmitted.
Step 140: and the lower computer continuously receives the data frame needing to be retransmitted, and after the data frame needing to be retransmitted is received, online upgrading is executed.
The lower computer can continue to receive the data frames which are sent by the upper computer and need to be retransmitted. In the process of receiving the data frame needing to be retransmitted, identifying the data frame as a normal data frame and updating abnormal frame information for the successfully received data frame; for the data frame with failed reception, the data frame is still retained in the abnormal frame information. Further, the lower computer can display the updated abnormal frame information to maintenance personnel, so that the upper computer sends the data frames with failed reception again until all the data frames sent by the upper computer are successfully received.
In the embodiment of the invention, an upper computer is connected with a lower computer in a simplex communication mode, the lower computer can sequentially receive each data frame sent by the upper computer, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, and the remaining data frames sent by the upper computer are continuously received until the receiving is finished; then, the lower computer displays the abnormal frame information to display the abnormal frame information to maintenance personnel, so that the maintenance personnel can input the abnormal frame information into the upper computer; the upper computer can determine the data frame needing to be retransmitted according to the abnormal frame information and send the data frame needing to be retransmitted to the lower computer; the lower computer can continue to receive the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. In the above embodiment, the upper computer may determine the data frame to be retransmitted according to the abnormal frame information updated by the lower computer, and the lower computer may perform online upgrade after receiving the data frame to be retransmitted without retransmitting all the online upgrade data, thereby improving the efficiency of online upgrade.
Fig. 3 shows a flow diagram of an online upgrade method according to another embodiment of the present invention. The online upgrading method is applied to a lower computer of an online upgrading system, the online upgrading system comprises an upper computer and the lower computer, and the upper computer is in communication connection with the lower computer in a simplex communication mode. As shown in fig. 3, the method includes:
step 210: and sequentially receiving each data frame sent by the upper computer.
Step 220: and when the data frame sent by the upper computer is detected to be abnormal, updating abnormal frame information.
The abnormal frame information is used to record identification information of the data frame with the abnormality, such as a frame number of the data frame with the abnormality.
Step 230: and continuously receiving the residual data frames sent by the upper computer.
When the lower computer detects that the data frame sent by the upper computer is abnormal, the lower computer discards the abnormal data frame and continues to receive the residual data frame sent by the upper computer, in the process of receiving the residual data frame, the data frame which is successfully received is stored to the specified position of the memory, the data frame which is failed to be received is discarded, and the abnormal frame information is updated again.
Step 240: and displaying the abnormal frame information after the receiving is finished.
Step 250: and continuously receiving the data frame which is sent by the upper computer and needs to be retransmitted.
The upper computer can determine the data frames needing to be retransmitted according to the abnormal frame information, and sequentially sends the data frames needing to be retransmitted to the lower computer, and the lower computer can further receive the data frames needing to be retransmitted.
Step 260: and after the data frame needing to be retransmitted is received, performing online upgrading.
Further, the data frame may include a total number of data frames, a current frame number, current frame data, and current frame check data, and the frame number of the data frame lost may be determined according to the total number of data frames and the current frame number, and the frame number of the data frame lost may be stored as the abnormal frame information; and/or determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information.
The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise. In the embodiment of the invention, an upper computer is connected with a lower computer in a simplex communication mode, the lower computer can sequentially receive each data frame sent by the upper computer, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, and the remaining data frames sent by the upper computer are continuously received until the receiving is finished; then, the lower computer displays the abnormal frame information to display the abnormal frame information to maintenance personnel, so that the maintenance personnel can input the abnormal frame information into the upper computer; the upper computer can determine the data frame needing to be retransmitted according to the abnormal frame information and send the data frame needing to be retransmitted to the lower computer; the lower computer can continue to receive the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. In the above embodiment, the upper computer may determine the data frame to be retransmitted according to the abnormal frame information updated by the lower computer, and the lower computer may perform online upgrade after receiving the data frame to be retransmitted without retransmitting all the online upgrade data, thereby improving the efficiency of online upgrade.
Fig. 4 shows a schematic structural diagram of an online upgrade apparatus according to an embodiment of the present invention. The online upgrading device is applied to a lower computer of an online upgrading system, the online upgrading system comprises an upper computer and the lower computer, and the upper computer is in communication connection with the lower computer in a simplex communication mode. As shown in fig. 4, the apparatus 300 includes: a receiving module 310, a detecting module 320, an updating module 330, a displaying module 340, and an upgrading module 350.
The receiving module 310 is configured to sequentially receive each data frame sent by the upper computer; the detecting module 320 is configured to detect whether a data frame sent by the upper computer is abnormal; the updating module 330 is configured to update the abnormal frame information when the detecting module detects that the data frame sent by the upper computer is abnormal; the receiving module 310 is further configured to continue to receive the remaining data frames sent by the upper computer after the updating module updates the abnormal frame information; the display module 340 is configured to display the abnormal frame information after the receiving module finishes receiving the abnormal frame information; the receiving module 310 is further configured to continue to receive the data frame that needs to be retransmitted and is sent by the upper computer; the upgrade module 350 is configured to perform online upgrade after the receiving module finishes receiving the data frame that needs to be retransmitted.
In the embodiment of the invention, an upper computer is connected with a lower computer in a simplex communication mode, the lower computer can sequentially receive each data frame sent by the upper computer, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, and the remaining data frames sent by the upper computer are continuously received until the receiving is finished; then, the lower computer displays the abnormal frame information to display the abnormal frame information to maintenance personnel, so that the maintenance personnel can input the abnormal frame information into the upper computer; the upper computer can determine the data frame needing to be retransmitted according to the abnormal frame information and send the data frame needing to be retransmitted to the lower computer; the lower computer can continue to receive the data frames needing to be retransmitted, and after the data frames needing to be retransmitted are received, online upgrading is executed. In the above embodiment, the upper computer may determine the data frame to be retransmitted according to the abnormal frame information updated by the lower computer, and the lower computer may perform online upgrade after receiving the data frame to be retransmitted without retransmitting all the online upgrade data, thereby improving the efficiency of online upgrade.
An embodiment of the present invention provides a computer-readable storage medium, where the storage medium stores at least one executable instruction, and when the executable instruction is executed on an electronic device, the electronic device is caused to execute an online upgrade method in any method embodiment described above.
The embodiment of the invention provides an online upgrading device, which is used for executing the online upgrading method.
Embodiments of the present invention provide a computer program, where the computer program can be called by a processor to enable an electronic device to execute an online upgrade method in any of the above method embodiments.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when run on a computer, cause the computer to perform the online upgrade method in any of the above-mentioned method embodiments.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

Claims (10)

1. An online upgrading system is characterized by comprising an upper computer and a lower computer, wherein the upper computer is in communication connection with the lower computer in a simplex communication mode;
the upper computer is used for dividing the online upgrading data into a plurality of data frames and sequentially sending each data frame to the lower computer;
the lower computer is used for sequentially receiving each data frame sent by the upper computer, updating abnormal frame information when the data frame sent by the upper computer is detected to be abnormal, continuously receiving the rest data frames sent by the upper computer, and displaying the abnormal frame information after the data frame is received;
the upper computer is also used for receiving the abnormal frame information input by maintenance personnel, determining a data frame needing to be retransmitted according to the abnormal frame information, and sending the data frame needing to be retransmitted to the lower computer;
and the lower computer is also used for continuously receiving the data frames needing to be retransmitted and executing online upgrading after the data frames needing to be retransmitted are received.
2. The system of claim 1, wherein the data frame comprises a total number of data frames, a current frame sequence number, current frame data, and current frame check data;
the lower computer is used for:
determining the frame sequence number of the data frame lost according to the total number of the data frames and the current frame sequence number, and storing the frame sequence number of the data frame lost as the abnormal frame information; and/or the presence of a gas in the gas,
and determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information.
3. The system according to claim 1 or 2,
the lower computer is used for stopping receiving the current data frame and displaying the current receiving progress when judging that the waiting time for receiving the current data frame is greater than the preset maximum waiting time;
and the upper computer is used for receiving the current receiving progress input by the maintenance personnel and determining the data frame needing to be retransmitted according to the current receiving progress.
4. The system according to claim 1 or 2, wherein the upper computer is configured to:
establishing communication connection with a server through Ethernet, and starting online upgrade on the lower computer if online upgrade data corresponding to the lower computer in the server is detected to be updated.
5. The system of claim 1 or 2, wherein the lower computer is further configured to:
and if the current abnormal frame number is judged to be larger than the preset maximum abnormal frame number according to the abnormal frame information, stopping receiving the data frame sent by the upper computer, and giving an alarm prompt.
6. An online upgrading method is characterized in that the online upgrading method is applied to an online upgrading system, the system comprises an upper computer and a lower computer, the upper computer is in communication connection with the lower computer in a simplex communication mode, and the method comprises the following steps:
the upper computer divides the online upgrading data into a plurality of data frames and sequentially sends each data frame to the lower computer;
the lower computer receives each data frame sent by the upper computer in sequence, when the data frame sent by the upper computer is detected to be abnormal, abnormal frame information is updated, the rest data frames sent by the upper computer are continuously received, and after the data frame is received, the abnormal frame information is displayed;
the upper computer receives the abnormal frame information input by maintenance personnel, determines a data frame needing to be retransmitted according to the abnormal frame information, and sends the data frame needing to be retransmitted to the lower computer;
and the lower computer continuously receives the data frame needing to be retransmitted, and after the data frame needing to be retransmitted is received, online upgrading is executed.
7. An online upgrading method is characterized in that the online upgrading method is applied to a lower computer of an online upgrading system, the system comprises an upper computer and the lower computer, the upper computer is in communication connection with the lower computer in a simplex communication mode, and the method comprises the following steps:
sequentially receiving each data frame sent by the upper computer;
when the data frame sent by the upper computer is detected to be abnormal, updating abnormal frame information;
continuously receiving the residual data frames sent by the upper computer;
when the receiving is finished, displaying the abnormal frame information;
continuously receiving the data frame which is sent by the upper computer and needs to be retransmitted;
and after the data frame needing to be retransmitted is received, performing online upgrading.
8. The method of claim 7, wherein the data frame comprises a total number of data frames, a current frame sequence number, current frame data, and current frame check data, the method further comprising:
determining the frame sequence number of the data frame lost according to the total number of the data frames and the current frame sequence number, and storing the frame sequence number of the data frame lost as the abnormal frame information; and/or the presence of a gas in the gas,
and determining the frame sequence number of the data frame with the error check according to the current frame data and the current frame check data, and storing the frame sequence number of the data frame with the error check as the abnormal frame information.
9. The utility model provides an online upgrading device which characterized in that, is applied to in the lower computer of online upgrading system, the system includes host computer and lower computer, the host computer through simplex communication mode with the communication connection is established to the lower computer, the device includes:
the receiving module is used for sequentially receiving each data frame sent by the upper computer;
the detection module is used for detecting whether the data frame sent by the upper computer is abnormal or not;
the updating module is used for updating abnormal frame information when the detection module detects that the data frame sent by the upper computer is abnormal;
the receiving module is further configured to continue to receive the remaining data frames sent by the upper computer after the updating module updates the abnormal frame information;
the display module is used for displaying the abnormal frame information after the receiving module finishes receiving;
the receiving module is further configured to continue to receive the data frame that needs to be retransmitted and is sent by the upper computer;
and the upgrading module is used for executing online upgrading after the receiving module finishes receiving the data frame needing to be retransmitted.
10. A computer-readable storage medium having stored therein at least one executable instruction that, when executed on an electronic device, causes the electronic device to perform operations of the online upgrade method of claim 7.
CN202110667527.XA 2021-06-16 2021-06-16 Online upgrade system, method, device and computer readable storage medium Pending CN113411210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110667527.XA CN113411210A (en) 2021-06-16 2021-06-16 Online upgrade system, method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110667527.XA CN113411210A (en) 2021-06-16 2021-06-16 Online upgrade system, method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113411210A true CN113411210A (en) 2021-09-17

Family

ID=77684445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110667527.XA Pending CN113411210A (en) 2021-06-16 2021-06-16 Online upgrade system, method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113411210A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04355856A (en) * 1991-06-04 1992-12-09 Nec Corp File transmission system for simplex communication
US20020041587A1 (en) * 1999-05-26 2002-04-11 Thomas Reisinger Method and device for carrying out simplex data transmission
CN101382982A (en) * 2008-10-06 2009-03-11 谢翔 Physical one-way transmission apparatus
US20130007823A1 (en) * 2009-10-02 2013-01-03 Jan-Erik Mangs Method for retransmission using checksums for identifying lost data packets
US20140153580A1 (en) * 2013-02-15 2014-06-05 Comtech Ef Data Corp. Reference encoding and decoding for improving network header compression throughput for noisy channels
US20150188985A1 (en) * 2012-08-16 2015-07-02 Airbus Defence And Space Sas Device and method for unidirectional data transfer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04355856A (en) * 1991-06-04 1992-12-09 Nec Corp File transmission system for simplex communication
US20020041587A1 (en) * 1999-05-26 2002-04-11 Thomas Reisinger Method and device for carrying out simplex data transmission
CN101382982A (en) * 2008-10-06 2009-03-11 谢翔 Physical one-way transmission apparatus
US20130007823A1 (en) * 2009-10-02 2013-01-03 Jan-Erik Mangs Method for retransmission using checksums for identifying lost data packets
US20150188985A1 (en) * 2012-08-16 2015-07-02 Airbus Defence And Space Sas Device and method for unidirectional data transfer
US20140153580A1 (en) * 2013-02-15 2014-06-05 Comtech Ef Data Corp. Reference encoding and decoding for improving network header compression throughput for noisy channels

Similar Documents

Publication Publication Date Title
CN109413134B (en) Vehicle-mounted application upgrading method, device, system and storage medium
CN106648669B (en) Product equipment remote firmware upgrading method and system
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN109582331A (en) Upgrade method, the device and system of vehicle-carrying communication module
CN114020297A (en) Bluetooth-based intelligent water meter program upgrading method, device, equipment and medium
CN108768709A (en) A kind of serial ports remote upgrade method of the network equipment
CN109992280A (en) A kind of method, terminal installation and the storage device of embedded software upgrading
CN113411210A (en) Online upgrade system, method, device and computer readable storage medium
EP2940540A1 (en) Power system monitoring and control system
CN105472418A (en) Abnormal state recovery method of set-top box system and set-top box
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN111475188A (en) Power module firmware updating method, device, equipment and storage medium
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN116305857A (en) Automatic driving simulation test method, device, equipment and storage medium
CN113645316B (en) Upgrade data processing method, upper computer, lower computer, device and storage medium
CN106412971B (en) A kind of abnormality eliminating method and device
CN102158462A (en) Method for repairing remote diagnosis by using 2nd Generation (2G) or 3rd Generation (3G) module
CN110597652A (en) Fault detection system of intelligent interactive panel and control method thereof
JP2009077194A (en) Gateway device, and gateway method of gateway device
CN113760328B (en) Firmware upgrading processing method, server system and storage medium
KR102519616B1 (en) Maintenance system for electric vehicle charger
CN112732307B (en) Firmware upgrading method, system and device for SSDs with different capacities
CN116450183A (en) Software upgrading method, device, equipment and medium of electronic control unit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210917