CN113407472A - Embedded device and program parallel downloading method thereof - Google Patents

Embedded device and program parallel downloading method thereof Download PDF

Info

Publication number
CN113407472A
CN113407472A CN202110729111.6A CN202110729111A CN113407472A CN 113407472 A CN113407472 A CN 113407472A CN 202110729111 A CN202110729111 A CN 202110729111A CN 113407472 A CN113407472 A CN 113407472A
Authority
CN
China
Prior art keywords
downloading
board
main cpu
parallel
embedded device
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
CN202110729111.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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202110729111.6A priority Critical patent/CN113407472A/en
Publication of CN113407472A publication Critical patent/CN113407472A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an embedded device and a program parallel downloading method thereof, wherein the method comprises the following steps: before downloading the program, the main CPU board inquires whether other board cards support parallel downloading; if yes, the main CPU board inquires whether other board cards finish preparation work of parallel downloading; if the parallel downloading is finished, the main CPU board sends parallel downloading data to a plurality of other board cards; after the downloading is finished, the main CPU board checks whether each board card is successfully downloaded; if the downloading is successful, whether files need to be downloaded in parallel is inquired, and if not, the downloading is finished. Compared with the prior art, the method and the device really realize parallel downloading, improve the downloading efficiency and improve the fault-tolerant rate.

Description

Embedded device and program parallel downloading method thereof
Technical Field
The invention belongs to the field of embedded device development, relates to a downloading method of various files, and particularly relates to an embedded device and a program parallel downloading method thereof.
Background
The embedded device is a key device for safe and stable operation in the fields of power systems, industrial control and the like. Since the embedded device requires a program driver to perform a specific function, the embedded device first needs to download a program file. Some program files are often large, if the number of board cards is large, the problem of consuming overlong time is presented, and the production efficiency is seriously affected, so that a method for downloading data with high efficiency is necessary to be researched.
In the prior art, parallel downloading modes can be divided into two modes, one mode is a downloading mode which adopts multithreading aiming at the plug-in of the same model, and is mostly based on network transmission, is parallel macroscopically, but is actually serial microscopically; the other method is that a plurality of board cards are respectively connected with corresponding downloaders, the downloading mode wastes resources, and in essence, the method is also used for downloading a single board card, namely, one downloader corresponds to one board card.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to provide an embedded device, which adopts a flexible mode of combining a unique address and a public address to realize parallel high-speed data downloading; a second object of the present invention is to provide a method for parallel downloading of programs by an embedded device that is reliable and efficient.
The technical scheme is as follows: the embedded device comprises a main CPU board and a plurality of other board cards, wherein the main CPU board is connected with the plurality of other board cards through a data bus, and the main CPU board is used for downloading programs to be downloaded to the other board cards; the plurality of other boards include unique addresses and public addresses.
The public address needs to be appointed in advance and is not repeated with the unique address; the public address is used for parallel transfer of programs.
The embedded device supports parallel downloading of a plurality of program files, and downloading efficiency is improved.
The data bus is a CAN bus.
The invention also comprises a program parallel downloading method of the embedded device, which comprises the following steps:
(1) before downloading the program, the main CPU board inquires whether other board cards support parallel downloading;
(2) if yes, the main CPU board inquires whether other board cards finish preparation work of parallel downloading;
(3) if the parallel downloading is finished, the main CPU board sends parallel downloading data to a plurality of other board cards;
(4) after the downloading is finished, the main CPU board checks whether each board card is successfully downloaded;
(5) if the downloading is successful, whether files need to be downloaded in parallel is inquired, and if not, the downloading is finished.
In the step (4), after the downloading is completed, each board card feeds the downloading result back to the main CPU board for verification through respective unique address.
In the step (4), if the main CPU board finds that there is a board card that fails to download during verification, the main CPU board determines to download again or directly fails to alarm according to the configuration.
And if the downloading is carried out again, the board card failed in the downloading is downloaded again through the unique address of the board card.
Has the advantages that: compared with the prior art, the invention has the beneficial effects that: the parallel downloading is really realized, the time is saved, and the production efficiency is improved.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail below with reference to the detailed description and the accompanying drawings.
The embedded device comprises a main CPU board and a plurality of other board cards, wherein the main CPU board is used for downloading programs to be downloaded to the other board cards, and the main CPU board is connected with the other board cards through a data bus; in this embodiment, the data bus is a CAN bus. The plurality of other boards include a unique address and a public address. The public address needs to be agreed in advance and is not repeated with the unique address, and the public address is used for parallel transmission programs. The embedded device supports the parallel downloading of a plurality of program files, namely, the file A is downloaded and then the file B is downloaded, and the number of the files is not limited.
As shown in fig. 1, the present invention further includes a program parallel downloading method for an embedded device, including the following steps:
(1) before downloading the program, the main CPU board inquires whether other board cards of the program to be downloaded support parallel downloading;
(2) if yes, the main CPU board inquires whether the board cards of other programs to be downloaded complete preparation work of parallel downloading;
(3) if the program downloading is finished, the main CPU board sends parallel downloading data to a plurality of board cards of other programs to be downloaded;
(4) after downloading, each board card feeds a downloading result back to the main CPU board through respective unique address for verification, and the main CPU board verifies whether each board card is downloaded successfully; if the main CPU board finds that the board card which fails in downloading exists during verification, the main CPU board determines to download again or directly fails to alarm according to configuration; and if the downloading is carried out again, the board card failed in the downloading is downloaded again through the unique address of the board card.
(5) If the downloading is successful, whether files need to be downloaded in parallel is inquired, and if not, the downloading is finished.
The downloading process is as follows: the main CPU board inquires whether the program board card to be downloaded supports parallel downloading or not through the unique address of the program board card to be downloaded, if the program board card supports the parallel downloading function, the main CPU board groups downloaded files, when all the board cards are ready to receive the parallel downloaded data through the unique address of each board card, the data are sent out through a CAN bus, and after other board cards resolve a public address, the data are stored in the board card. After the data is downloaded, the main CPU board inquires whether the data is downloaded successfully through the unique address of each board card, other board cards return the verification result to the CPU board through the unique addresses of the other board cards, and the CPU board can judge whether the data is downloaded successfully according to the received verification information. If successful, and there is a next file to download, then a parallel download is initiated. If the returned information shows that the downloading is failed, re-downloading or direct failure warning is adopted according to the configuration.

Claims (8)

1. An embedded device, characterized by: the main CPU board is connected with the other board cards through a data bus, and the main CPU board is used for downloading programs to be downloaded to the other board cards; the plurality of other boards include unique addresses and public addresses.
2. The embedded device according to claim 1, wherein: the public address needs to be agreed upon in advance and not duplicated with the unique address.
3. The embedded device according to claim 1, wherein: the embedded device supports parallel downloading of a plurality of program files.
4. The embedded device according to claim 1, wherein: the data bus is a CAN bus.
5. A program parallel downloading method based on the embedded device of claim 1, characterized by comprising the following steps:
(1) before downloading the program, the main CPU board inquires whether other board cards support parallel downloading;
(2) if yes, the main CPU board inquires whether other board cards finish preparation work of parallel downloading;
(3) if the parallel downloading is finished, the main CPU board sends parallel downloading data to a plurality of other board cards;
(4) after the downloading is finished, the main CPU board checks whether each board card is successfully downloaded;
(5) if the downloading is successful, whether files need to be downloaded in parallel is inquired, and if not, the downloading is finished.
6. The program parallel downloading method of the embedded device according to claim 5, wherein: in the step (4), after the downloading is completed, each board card feeds the downloading result back to the main CPU board for verification through respective unique address.
7. The program parallel downloading method of the embedded device according to claim 5, wherein: in the step (4), if the main CPU board finds that there is a board card that fails to download during verification, the main CPU board determines to download again or directly fails to alarm according to the configuration.
8. The program parallel downloading method of the embedded device according to claim 7, wherein: and if the downloading is carried out again, the board card failed in the downloading is downloaded again through the unique address of the board card.
CN202110729111.6A 2021-06-29 2021-06-29 Embedded device and program parallel downloading method thereof Pending CN113407472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729111.6A CN113407472A (en) 2021-06-29 2021-06-29 Embedded device and program parallel downloading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729111.6A CN113407472A (en) 2021-06-29 2021-06-29 Embedded device and program parallel downloading method thereof

Publications (1)

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

Family

ID=77680391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729111.6A Pending CN113407472A (en) 2021-06-29 2021-06-29 Embedded device and program parallel downloading method thereof

Country Status (1)

Country Link
CN (1) CN113407472A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594709A (en) * 2022-03-03 2022-06-07 安徽大学 Multi-path parallel writing piece and detection system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10105409A (en) * 1996-10-02 1998-04-24 Sharp Corp Slave module managing system for device
JP2000315158A (en) * 1999-05-06 2000-11-14 Nec Saitama Ltd Broadcast communication download circuit
KR20110076432A (en) * 2009-12-29 2011-07-06 한국생산기술연구원 System for upgrading multi-program by using can communication and method thereof
CN105117248A (en) * 2015-08-20 2015-12-02 浙江中科领航汽车电子有限公司 Program downloader of multi-split TPMS main controller and download method
CN109284121A (en) * 2018-11-15 2019-01-29 中车株洲电力机车有限公司 The method and system of accumulation power supply multistage network multi-control apparatus synchronized update program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10105409A (en) * 1996-10-02 1998-04-24 Sharp Corp Slave module managing system for device
JP2000315158A (en) * 1999-05-06 2000-11-14 Nec Saitama Ltd Broadcast communication download circuit
KR20110076432A (en) * 2009-12-29 2011-07-06 한국생산기술연구원 System for upgrading multi-program by using can communication and method thereof
CN105117248A (en) * 2015-08-20 2015-12-02 浙江中科领航汽车电子有限公司 Program downloader of multi-split TPMS main controller and download method
CN109284121A (en) * 2018-11-15 2019-01-29 中车株洲电力机车有限公司 The method and system of accumulation power supply multistage network multi-control apparatus synchronized update program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594709A (en) * 2022-03-03 2022-06-07 安徽大学 Multi-path parallel writing piece and detection system

Similar Documents

Publication Publication Date Title
CN109828935B (en) Parallel flash method based on CAN FD bus
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN103312549A (en) Transaction management method, device and system
JPH0789337B2 (en) Distributed file recovery method
CN102662793A (en) Hot backup and recovery method of distributed database with guarantee of data consistency
CN110516789A (en) The processing method of instruction set, device and relevant device in convolutional network accelerator
CN106034113A (en) Data processing method and data processing device
CN108765142B (en) Electronic device, multi-blockchain integration control method, and computer-readable storage medium
CN113407472A (en) Embedded device and program parallel downloading method thereof
CN114049123A (en) Block chain consensus method and device, computer equipment and storage medium
CN110784331A (en) Consensus process recovery method and related nodes
CN113051102B (en) File backup method, device, system, storage medium and computer equipment
CN112269981A (en) Block-based linkage computing power equipment data construction method, server and storage medium
CN106776074A (en) A kind of web plug-in units call method and system based on http
CN102737016A (en) A system and a method for generating information files based on parallel processing
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN112633885A (en) Multi-signature transaction implementation method and related device
CN1245686C (en) Method for loading and synchronizing of software patch for embedded system
CN111104346A (en) Static information curing method for FPGA acceleration board card product and related components
CN116232893A (en) Consensus method and device of distributed system, electronic equipment and storage medium
CN114090682A (en) Multi-channel alliance link chaining method, device, equipment and storage medium
CN112433968B (en) Controller sharing synchronization method and device
CN114443356A (en) Container cluster processing method and system
CN113377404A (en) New energy domain controller safety monitoring chip program updating method and system
CN112003732A (en) Method and system for realizing CPLD (Complex programmable logic device) firmware update in mass servers

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