CN110286933A - A kind of cross-system serial ports upgrade method - Google Patents

A kind of cross-system serial ports upgrade method Download PDF

Info

Publication number
CN110286933A
CN110286933A CN201910572869.6A CN201910572869A CN110286933A CN 110286933 A CN110286933 A CN 110286933A CN 201910572869 A CN201910572869 A CN 201910572869A CN 110286933 A CN110286933 A CN 110286933A
Authority
CN
China
Prior art keywords
serial ports
upgrade
cross
host side
slave
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
CN201910572869.6A
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.)
Beijing Voice Music Technology Co Ltd
Original Assignee
Beijing Voice Music Technology Co 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 Beijing Voice Music Technology Co Ltd filed Critical Beijing Voice Music Technology Co Ltd
Priority to CN201910572869.6A priority Critical patent/CN110286933A/en
Publication of CN110286933A publication Critical patent/CN110286933A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of cross-system serial ports upgrade method, include the following steps: that 1) host obtains the order of slave version number, determines download server upgrade file;2) host sends upgrade command, and slave returns to confirmation;3) host sends upgrading data packet, and slave receives and CRC check, executes updating operation.The present invention is easy to operate, reliability is higher when it is implemented, do not need gradually to be instructed, and is conducive to large area deployment upgrading Soc software.

Description

A kind of cross-system serial ports upgrade method
Technical field
The present invention relates to internet and Serial technology field more particularly to a kind of cross-system serial ports upgrade methods.
Background technique
Traditional platform of multiple operating systems, it usually needs USB and serial ports carry out local upgrade to slave system.Such upgrading Mode not only needs to send upgrade file to client, or even needs to tear open machine connection serial ports.
Therefore, in specific operation process, all terminal users how to be contacted, how to distribute upgrade file, how into Row updating operation requires to instruct one by one, and operation is very cumbersome, and reliability is lower, is unfavorable for large area deployment upgrading Soc Software.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of cross-system serial ports upgrade methods, to solve in the prior art Existing defect.
The technical scheme to solve the above technical problems is that
It is a kind of cross-platform based on multisystem, include the following steps:
1) host obtains the order of slave version number, determines download server upgrade file;
2) host sends upgrade command, and slave returns to confirmation;
3) host sends upgrading data packet, and slave receives and CRC check, executes updating operation;
Further, the step 1) specifically includes following several steps:
11) host side opens serial ports, obtains from generator terminal current software version number (now_version);
12) host side requests network server, obtains from generator terminal recent software version number (new_version);
13) work as new_version > now_version, host side downloads upgrade file;
Further, specific step is as follows for the step 2): host side sends serial ports upgrade command 0x15, makes from generator terminal Response, returns to 0x18, and confirmation enters upgrade mode;
Further, specific step is as follows for the step 3):
31) host side receives 0x18, opens sub thread, circulation reads upgrade file, and transmits data according to struct Packet, data are transmitted, and send 0x1a to from generator terminal, and prompt just in updating operation;
32) slave termination is carried out CRC check by 0x1a, and verification is errorless to execute upgrading, opens bootloader mode, Flash erase/write storage region sends upgrading and completes to respond;
33) slave upgrading is completed, and returning response notice host side is restarted;
Further, the upgrade file is UPD file;
Further, it the host side and is communicated between generator terminal by UART protocol;
Further, the host side is Android system and supports the network port, is embedded OS from generator terminal.
The beneficial effects of the present invention are: the present invention is not when it is implemented, need gradually to be instructed, it is easy to operate, reliable Property it is higher, be conducive to large area deployment upgrading Soc software.
Detailed description of the invention
Fig. 1 is packet structure of the present invention;
Fig. 2 is cross-system serial ports upgrade method timing diagram of the present invention;
Fig. 3 is cross-system serial ports upgrade procedure flow chart of the present invention;
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the invention.
As shown in Figure 1-3, a kind of cross-system serial ports upgrade method, including
It is based on network programming and Serial Communication referring to Fig. 2-3 method of the invention, first request cloud and local soft Part version compares and transmits upgrade file, and it is erasable finally to carry out FLASH.
When it is implemented, data structure is as shown in Figure 1, escalation process is as shown in Figures 2 and 3.
Data format illustrated in table 1:
Table 1
As shown in figure 3, host side is switched on first, auto checking network is simultaneously obtained cloud version number (new_version), main Generator terminal opens UART, obtains from generator terminal current software version number (now_version).Work as new_version > now_version, Host side downloading upgrading upd file.
Specifically, host side sends serial ports upgrade command 0x15, responded from generator terminal, return to 0x18, confirmation, which enters, to rise Grade mode.
More specifically, host side receives 0x18, opens sub thread by Java Native Interface, circulation is read It takes upd upgrade file, and data packet is transmitted according to struct, data are transmitted, and send 0x1a to from generator terminal, and prompt Updating operation.
Finally, being 0x454B4F47 currently scalable equipment from generator terminal identification signature, identify msg for 0x19 upgrading Categorical data carries out CRC check, and verification is errorless to execute upgrading.Slave upgrading is completed, and returning response notice host side is restarted.For Convenient for the effect of observation upgrading, using Hi3798 as host side for illustrate.Hi3798 is exported by video, is shown to reply Words frame prompt information: upgrade tip dialog box, file transmission prompting frame, upgrades successfully complete machine and restarts and mention downloading file prompting frame Show frame, upgrading failed message etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of cross-system serial ports upgrade method, which comprises the steps of:
1) host obtains the order of slave version number, determines download server upgrade file;
2) host sends upgrade command, and slave returns to confirmation;
3) host sends upgrading data packet, and slave receives and CRC check, executes updating operation.
2. a kind of cross-system serial ports upgrade method according to claim 1, which is characterized in that the step 1) specifically includes Following several steps:
11) host side opens serial ports, obtains from generator terminal current software version number (now_version);
12) host side requests network server, obtains from generator terminal recent software version number (new_version);
13) work as new_version > now_version, host side downloads upgrade file.
3. a kind of cross-system serial ports upgrade method according to claim 1, which is characterized in that the step 2) specific steps As follows: host side sends serial ports upgrade command 0x15, responds from generator terminal, returns to 0x18, and confirmation enters upgrade mode.
4. a kind of cross-system serial ports upgrade method according to claim 1, which is characterized in that the step 3) specific steps It is as follows:
31) host side receives 0x18, opens sub thread, circulation reads upgrade file, and transmits data packet, number according to struct According to being transmitted, 0x1a is sent to from generator terminal, and prompt just in updating operation;
32) slave termination is carried out CRC check by 0x1a, and verification is errorless to execute upgrading, opens bootloader mode, erasable Flash storage region sends upgrading and completes to respond;
33) slave upgrading is completed, and returning response notice host side is restarted.
5. a kind of cross-system serial ports upgrade method according to claim 1 to 3, it is characterised in that: the upgrade file For UPD file.
6. a kind of cross-system serial ports upgrade method according to claim 1 to 3, it is characterised in that: the host side is Android system simultaneously supports the network port, is embedded OS from generator terminal.
7. a kind of cross-system serial ports upgrade method according to claim 1 to 3, it is characterised in that: the host side is Android system simultaneously supports the network port, is embedded OS from generator terminal.
CN201910572869.6A 2019-06-28 2019-06-28 A kind of cross-system serial ports upgrade method Pending CN110286933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910572869.6A CN110286933A (en) 2019-06-28 2019-06-28 A kind of cross-system serial ports upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910572869.6A CN110286933A (en) 2019-06-28 2019-06-28 A kind of cross-system serial ports upgrade method

Publications (1)

Publication Number Publication Date
CN110286933A true CN110286933A (en) 2019-09-27

Family

ID=68019386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910572869.6A Pending CN110286933A (en) 2019-06-28 2019-06-28 A kind of cross-system serial ports upgrade method

Country Status (1)

Country Link
CN (1) CN110286933A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740882A (en) * 2020-07-29 2020-10-02 江苏金智科技股份有限公司 Method for automatically checking configuration file of line protection measurement and control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741583A (en) * 2008-11-20 2010-06-16 英华达(上海)电子有限公司 Method, device and system for realizing data updating of intelligent household electrical appliance
WO2016202088A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Bootstrap program upgrade method, embedded device, control device and embedded system
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN107844305A (en) * 2016-09-20 2018-03-27 芯讯通无线科技(上海)有限公司 The method for upgrading software and embedded device of embedded device
CN108874428A (en) * 2018-06-29 2018-11-23 无锡和晶科技股份有限公司 A kind of remote upgrade method of refrigerator controller control software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741583A (en) * 2008-11-20 2010-06-16 英华达(上海)电子有限公司 Method, device and system for realizing data updating of intelligent household electrical appliance
WO2016202088A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Bootstrap program upgrade method, embedded device, control device and embedded system
CN106257417A (en) * 2015-06-17 2016-12-28 中兴通讯股份有限公司 Bootstrap upgrade method, embedded device, control equipment and embedded system
CN107844305A (en) * 2016-09-20 2018-03-27 芯讯通无线科技(上海)有限公司 The method for upgrading software and embedded device of embedded device
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN108874428A (en) * 2018-06-29 2018-11-23 无锡和晶科技股份有限公司 A kind of remote upgrade method of refrigerator controller control software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740882A (en) * 2020-07-29 2020-10-02 江苏金智科技股份有限公司 Method for automatically checking configuration file of line protection measurement and control device

Similar Documents

Publication Publication Date Title
CN104579719B (en) A kind of upgrade method and system, host computer and optical module of firmware
CN104636159B (en) The method and apparatus that software in virtual machine is upgraded
CN103200271B (en) The method of ARM server and automation installation system thereof
CN105183515A (en) Cloud deck firmware updating method and device
CN106612192A (en) An equipment upgrading method, apparatus and system
WO2009082906A1 (en) Method, equipment and system for software upgrading
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
CN101984406A (en) Method and system for upgrading terminal through wireless local area network
TW201621647A (en) Operating system updating method
CN110532009A (en) A kind of smart machine upgrading management system and method
CN110007941B (en) MCU firmware and upgrading method of intelligent garbage classification recycling system
CN109067559A (en) A kind of device updating method and device
CN114115984A (en) Server firmware upgrading method, storage device and terminal
CN105162667A (en) Method and device for configuration of virtual machine
CN110286933A (en) A kind of cross-system serial ports upgrade method
CN104965747A (en) Method and device for upgrading software
CN114440389A (en) Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium
CN105677422A (en) Method for renewing monitoring program, application and subsequent renewing application at same time
CN110704080B (en) Method for upgrading Bluetooth module through Wi-Fi module
CN111198698B (en) EtherCAT-based multi-device firmware program parallel downloading method and system
CN110716733A (en) ONT product software mutual upgrading method
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
CN106919812A (en) A kind of application process right management method and device
CN114168210A (en) Embedded equipment deployment method and system

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: 20190927