CN105224359B - Program loading method - Google Patents

Program loading method Download PDF

Info

Publication number
CN105224359B
CN105224359B CN201510562806.4A CN201510562806A CN105224359B CN 105224359 B CN105224359 B CN 105224359B CN 201510562806 A CN201510562806 A CN 201510562806A CN 105224359 B CN105224359 B CN 105224359B
Authority
CN
China
Prior art keywords
file
loaded
package
content
program
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
CN201510562806.4A
Other languages
Chinese (zh)
Other versions
CN105224359A (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.)
Xi'an Nova Nebula Technology Co., Ltd.
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201510562806.4A priority Critical patent/CN105224359B/en
Publication of CN105224359A publication Critical patent/CN105224359A/en
Application granted granted Critical
Publication of CN105224359B publication Critical patent/CN105224359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of program loading methods, comprising steps of (a) obtains file to be loaded made of being merged as multiple package files, the file header of the file to be loaded includes the number of package file, the initial position of the content of the load target hardware address of the content of package file and each package file and length;(b) judge host computer and lower computer system whether successful connection;And the loading sequence (c) based on multiple load target hardware address is discharged the system temporary buffer of the content deposit host computer of described program APMB package and after being successfully loaded onto lower computer system from system temporary buffer from the initial position for the content for sequentially parsing each package file in the file header of file to be loaded and length, according to the initial position and length parsed.Therefore, the present invention can simplify the operating process of program load, improves production efficiency and reduces unnecessary error probability.

Description

Program loading method
Technical field
The present invention relates to lower computer system update method field, in particular to a kind of program loading method.
Background technique
In the synchronous control system application of LED display, LED display control system program resource is further abundant, no Only simple MCU program, FPGA program, LED display control system also simultaneously support liquid crystal display panel display (image and Text), web displaying etc..Therefore, LED display control system program just includes MCU program bag, FPGA program bag (and root Be divided into according to different function multiple), web page program packet, character library program bag, graphic program packet etc..
Since the program load of entire LED display control system needs user to pass through host computer for each package file It is loaded into LED display control system sending card one by one in corresponding hardware address, then user just needs a text Selection browsing, load are gone to one file of part, it is specific as shown in Figure 1.In this way, there is during program load following several A problem: 1) user must be known by the loading sequence of these files to be loaded, 2) user needs repeatedly to select text to be loaded The path of part.
Since file loads one by one, after the completion of user needs to know the load of file, guarantee host computer and Hardware connects the load out of question for carrying out next file again, greatly reduces the efficiency of program update in this way, and to user Cause unnecessary trouble and puzzlement.
Summary of the invention
Therefore, aiming at the shortcomings in the prior art, the present invention proposes a kind of program loading method.
Specifically, a kind of program loading method that the embodiment of the present invention proposes, for passing through host computer to lower computer system Loading procedure packet.Described program loading method is comprising steps of (a) obtains published article to be added made of being merged as multiple package files Part, wherein the file to be loaded includes the content of file header and the multiple package file, and the file header includes described The number of multiple package files, multiple load target hardware address of the content of the multiple package file and each Initial position and length of the content of a described program APMB package in the file to be loaded;(b) judge the host computer with The lower computer system whether successful connection;And the host computer (c) is obtained in judgement and is connected into the lower computer system It is hard using the multiple load target based on the package file loading sequence of the multiple load target hardware address after function Part address sequentially parses the content of each described program APMB package in institute from the file header of the file to be loaded State initial position and length in file to be loaded, will be in described program APMB package according to the initial position that parses and length Store the system temporary buffer into the host computer and in the content of described program APMB package from the system temporary buffer It is successfully loaded onto after the lower computer system and discharges the content of described program APMB package from the system temporary buffer.
In one embodiment of the invention, the file to be loaded is binary file.
In one embodiment of the invention, the lower computer system is LED display control system.
In one embodiment of the invention, the LED display control system includes sending card and reception card, the hair Card feed is adapted to be attached between the host computer and reception card, and the multiple load target hardware address is the sending card And/or the storage address received on card.
From the foregoing, it will be observed that the embodiment of the present invention need to only select file of load (file to be loaded after merging), it is upper For machine software in the loading sequence of internal processing program APMB package, the load not needed when user is concerned about multiple package files is suitable Sequence;Therefore, when product batch production or product batch upgrade, it is greatly improved the efficiency of production, reduces program more Unnecessary error probability is generated during new.
In addition, a kind of program loading method that another embodiment of the present invention proposes, for passing through host computer to slave computer system System loading procedure packet.Described program loading method is comprising steps of (i) obtain to be loaded as made of the merging of multiple package files File, wherein the file to be loaded includes the content of file header and the multiple package file, and the file header includes every Initial position and length and associated load mesh of the content of one described program APMB package in the file to be loaded Mark hardware address;(ii) judge the host computer and the lower computer system whether successful connection;And (iii) is obtained in judgement After the host computer and the lower computer system successful connection, the package file loading sequence based on multiple hardware address, benefit Same multiple load mesh are sequentially searched from the file header of the file to be loaded with the multiple hardware address Mark hardware address sequentially parses corresponding journey according to the multiple load target hardware address found out in the file header Initial position and length of the content of sequence APMB package in the file to be loaded, will according to the initial position and length that parse The content of corresponding package file is stored in the system temporary buffer of the host computer and in institute in the file to be loaded State the content of corresponding package file from the system temporary buffer be successfully loaded onto the lower computer system after by institute The content for stating package file is discharged from the system temporary buffer, wherein the multiple hardware address includes described to be loaded Target hardware address is loaded some or all of in the file header of file.
Through the following detailed description with reference to the accompanying drawings, other aspects of the invention and feature become obvious.But it should know Road, which is only the purpose design explained, not as the restriction of the scope of the present invention, this is because it should refer to Appended claims.It should also be noted that unless otherwise noted, it is not necessary to which scale attached drawing, they only try hard to concept Ground illustrates structure and process described herein.
Detailed description of the invention
Below in conjunction with attached drawing, specific embodiments of the present invention will be described in detail.
Fig. 1 is a kind of program loading method flow diagram in the prior art.
Fig. 2 is a kind of data structure schematic diagram of file to be loaded of the embodiment of the present invention.
Fig. 3 is a kind of program loading method flow diagram of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
Refer to Fig. 2 and Fig. 3, a kind of program loading method that the embodiment of the present invention proposes can by following technical solution Lai It realizes.
Specifically, in order to realize the program loading method of the present embodiment, it is necessary first to preposition work are as follows: at any one Increase a file combination module in host computer, the package file under different paths is loaded into file combination module, by file Multiple package files that merging module is loaded onto merge into a file as file to be loaded.For in the present embodiment in Fig. 2 The data structure schematic diagram of file to be loaded;As shown in Fig. 2, file to be loaded includes the interior of file header and multiple package files Hold;Wherein, the content of multiple package files is, for example, first content to n-th package file, and N is just greater than 1 Integer;Number (such as N) of the file header comprising package file, the load target hardware of the content of each package file The information such as initial address and length of the content of location and each package file in file to be loaded, wherein each The initial address and length of the content of package file are associated together with load target hardware address, in this way convenient in rear onward encoding Inquire the starting of the content of corresponding package file in sequence loading procedure in file header using load target hardware address Address and length.Herein it is understood that initial address and length due to the content of package file are to load mesh with it It is associated to mark hardware address, therefore without carrying out sequentially consolidation procedure Bao Wen according to loading sequence in package file merging process Part, the package file that will can be also loaded into any order merge.
It is described in detail below in conjunction with program loading method of the Fig. 3 to the present embodiment:
Firstly, start upper computer software and browse the path of aforementioned file to be loaded, so that upper computer software is from the browsing Path obtains file to be loaded;Herein, upper computer software runs on host computer, such as PC machine.
Later, judge that upper computer software is connect with hardware by upper computer software whether to succeed, start if successful connection Otherwise subsequent file loading procedure re-requests connection hardware until with hardware successful connection;Hardware herein is slave computer System, e.g. LED display control system;Typically, LED display control system includes sending card and receives card, and is sent out Card feed is adapted to be attached between reception card and host computer such as PC machine.
Next the load of file to be loaded is carried out by upper computer software, specifically: it is provided in upper computer software to be added Publish papers part in multiple package files content institute it is corresponding it is multiple load target hardware address package files load Sequentially, thus upper computer software can according to it is the multiple load target hardware address in current load target hardware address from The initial address and length that the content of corresponding package file is parsed in the file header of file to be loaded, then according to solution The initial address and length of precipitation obtain the content of corresponding present procedure APMB package from file to be loaded and are stored in upper The system temporary buffer of machine, later, when the content of the corresponding present procedure APMB package be loaded onto lower computer system at After function, the resource of system temporary buffer is discharged, output system redundancy file is avoided.In the present embodiment, added based on the multiple The package file loading sequence of target hardware address is carried, the multiple load target hardware address is sequentially as current load mesh Mark hardware address, the system that the content of multiple package files in file to be loaded was sequentially stored in/was copied to host computer Temporary buffer is simultaneously loaded onto the target hardware address in lower computer system and discharges system temporal cache after loading successfully Area.
Finally, when the content of all package files in file to be loaded is loaded success, then it represents that program bag adds It carries and completes.It is, of course, understood that in practical applications, the multiple load target hardware address being arranged in upper computer software Package file loading sequence be also possible to the part in the file header of file to be loaded load target hardware address program In this case the content of subprogram APMB package in file to be loaded is only loaded onto bottom by APMB package loading sequence Machine system is to carry out software upgrading;In this way, the single file to be loaded after merging can be applicable in multiple programs loading procedure, or Say that user can be by the number of the load target hardware address in the package file loading sequence in setting upper computer software The content of some or all of package file in file to be loaded is selectively loaded onto lower computer system.
In conclusion the embodiment of the present invention need to only select file of load (file to be loaded after merging), it is upper For machine software in the loading sequence of internal processing program APMB package, the load not needed when user is concerned about multiple package files is suitable Sequence;Therefore, when product batch production or product batch upgrade, it is greatly improved the efficiency of production, reduces program more Unnecessary error probability is generated during new.
So far, specific case used herein carries out the principle and embodiment of program loading method of the invention It illustrates, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for this field Those skilled in the art, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up Described, the contents of this specification are not to be construed as limiting the invention, and protection scope of the present invention should be with the attached claims Subject to.

Claims (6)

1. a kind of program loading method, for passing through host computer to slave computer system loads program bag;It is characterized in that, the journey Sequence loading method comprising steps of
(a) file to be loaded made of being merged as multiple package files is obtained, wherein the file to be loaded includes file header With the content of the multiple package file, the file header includes number, the multiple journey of the multiple package file Multiple load target hardware address of the content of sequence APMB package and the content of each described program APMB package are described to be added Initial position and length in published article part, wherein the content of each package file is in the file to be loaded The initial position and the length be associated together with the load target hardware address;
(b) judge the host computer and the lower computer system whether successful connection;And
(c) hard based on the multiple load target after judgement obtains the host computer and the lower computer system successful connection The package file loading sequence of part address, using the multiple load target hardware address from described in the file to be loaded Initial position and length of the content of each described program APMB package in the file to be loaded are sequentially parsed in file header Degree temporarily delays the system that the content of described program APMB package is stored in the host computer according to the initial position and length that parse It deposits area and is incited somebody to action after the content of described program APMB package is successfully loaded onto the lower computer system from the system temporary buffer The content of described program APMB package is discharged from the system temporary buffer.
2. program loading method as described in claim 1, which is characterized in that the file to be loaded is binary file.
3. program loading method as described in claim 1, which is characterized in that the lower computer system is LED display control System.
4. program loading method as claimed in claim 3, which is characterized in that the LED display control system includes sending Card and reception card, the sending card are adapted to be attached between the host computer and reception card, and the multiple load target is hard Part address is the sending card and/or the storage address received on card.
5. a kind of program loading method, for passing through host computer to slave computer system loads program bag;It is characterized in that, the journey Sequence loading method comprising steps of
(i) file to be loaded made of being merged as multiple package files is obtained, wherein the file to be loaded includes file header With the content of the multiple package file, the file header includes the content of each described program APMB package described to be added Initial position and length and associated load target hardware address in published article part;
(ii) judge the host computer and the lower computer system whether successful connection;And
(iii) after judgement obtains the host computer and the lower computer system successful connection, the journey based on multiple hardware address Sequence APMB package loading sequence, using the multiple hardware address from the file header of the file to be loaded sequentially search with Identical multiple load target hardware address, according to multiple load target hardware address for finding out in the file header according to Sequence parses initial position and length of the content of corresponding package file in the file to be loaded, according to parsing Initial position and length by what the content of corresponding package file in the file to be loaded was stored in the host computer be System temporary buffer is simultaneously successfully loaded onto institute from the system temporary buffer in the content of the corresponding package file The content of described program APMB package is discharged from the system temporary buffer after stating lower computer system, wherein the multiple hardware Address includes load target hardware address some or all of in the file header of the file to be loaded.
6. program loading method as claimed in claim 5, which is characterized in that the file to be loaded is binary file.
CN201510562806.4A 2015-09-07 2015-09-07 Program loading method Active CN105224359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510562806.4A CN105224359B (en) 2015-09-07 2015-09-07 Program loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510562806.4A CN105224359B (en) 2015-09-07 2015-09-07 Program loading method

Publications (2)

Publication Number Publication Date
CN105224359A CN105224359A (en) 2016-01-06
CN105224359B true CN105224359B (en) 2019-01-29

Family

ID=54993351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510562806.4A Active CN105224359B (en) 2015-09-07 2015-09-07 Program loading method

Country Status (1)

Country Link
CN (1) CN105224359B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426511B (en) * 2017-08-18 2022-03-22 西安诺瓦星云科技股份有限公司 Soft core updating method and system
CN110162482A (en) * 2019-06-11 2019-08-23 宋岩 A kind of mark access flaw detection apparatus and mark access defect detecting method
CN113806390A (en) * 2020-06-16 2021-12-17 西安诺瓦星云科技股份有限公司 LED box management method, device and system
CN113031975A (en) * 2021-03-24 2021-06-25 山东英信计算机技术有限公司 Method and device for sharing storage chip by multiple images and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567049A (en) * 2011-12-09 2012-07-11 惠州市德赛西威汽车电子有限公司 Upgrade method of embedded operating system
CN103019794A (en) * 2012-12-27 2013-04-03 安徽中兴继远信息技术股份有限公司 Off-line batching programming method of multiple embedded program files
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN103902303A (en) * 2012-12-26 2014-07-02 中国航空工业集团公司第六三一研究所 Program solidifying method based on configuration table
CN104516759A (en) * 2014-12-08 2015-04-15 武汉烽火网络有限责任公司 Generating method for integration mirror image document, testing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567049A (en) * 2011-12-09 2012-07-11 惠州市德赛西威汽车电子有限公司 Upgrade method of embedded operating system
CN103902303A (en) * 2012-12-26 2014-07-02 中国航空工业集团公司第六三一研究所 Program solidifying method based on configuration table
CN103019794A (en) * 2012-12-27 2013-04-03 安徽中兴继远信息技术股份有限公司 Off-line batching programming method of multiple embedded program files
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN104516759A (en) * 2014-12-08 2015-04-15 武汉烽火网络有限责任公司 Generating method for integration mirror image document, testing method and device

Also Published As

Publication number Publication date
CN105224359A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105224359B (en) Program loading method
CN109766082B (en) Method and device for application program page jump
US9619563B2 (en) Search engine optimization using page anchors
US11979300B2 (en) Standardized format for containerized applications
CN105515872B (en) The update method of configuration information, apparatus and system
CN104836843A (en) Client application program updating method and device
KR20210035290A (en) Data synchronization method and apparatus, computer device and readable storage medium
US8983908B2 (en) File link migration for decommisioning a storage server
US20130047148A1 (en) Automated service solution delivery
CN111241061A (en) Writing method of state database, data processing device and storage medium
CN102946413B (en) Method and system for resource preprocessing in dispatching and deployment performing process of virtual machine
US20220237254A1 (en) Page displaying method and device, computer-readable storage medium and electronic device
US20140059094A1 (en) Making use of a file path to determine file locality for applications
US10218574B1 (en) Detecting software misconfiguration at a remote machine
CN103699635A (en) Information processing method and device
CN102508892A (en) System and method for quickly previewing pictures
CN103218425B (en) The disposal route of browser extension item and device
CN109271193B (en) Data processing method, device, equipment and storage medium
CN103139235B (en) Show method and the client of Web side navigation
CN102737028A (en) Synchronization method and synchronization system of database
US9922005B2 (en) Method and apparatus for animating transitions between search results
US20220391388A1 (en) Automatic replacement of command parameters during command history searching
US11194885B1 (en) Incremental document object model updating
US20070245336A1 (en) Method of generating patch file and computer readable recording medium storing programs for executing the method
CN106648610A (en) Function interface remote call method and device and function interface remote call response method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Nova Nebula Technology Co., Ltd.

Address before: 710075 Qinfengge D District 401, Xi'an Software Park, 68 Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee before: Xian Novastar Electronic Technology Co., Ltd.

CP03 Change of name, title or address