CN105700924A - Method and device for burning program of multiple modules - Google Patents

Method and device for burning program of multiple modules Download PDF

Info

Publication number
CN105700924A
CN105700924A CN201610021855.1A CN201610021855A CN105700924A CN 105700924 A CN105700924 A CN 105700924A CN 201610021855 A CN201610021855 A CN 201610021855A CN 105700924 A CN105700924 A CN 105700924A
Authority
CN
China
Prior art keywords
module
program
burning
judged result
file
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.)
Granted
Application number
CN201610021855.1A
Other languages
Chinese (zh)
Other versions
CN105700924B (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.)
Shenzhen Sinexcel Electric Co Ltd
Original Assignee
Shenzhen Sinexcel Electric 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 Shenzhen Sinexcel Electric Co Ltd filed Critical Shenzhen Sinexcel Electric Co Ltd
Priority to CN201610021855.1A priority Critical patent/CN105700924B/en
Publication of CN105700924A publication Critical patent/CN105700924A/en
Application granted granted Critical
Publication of CN105700924B publication Critical patent/CN105700924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/60Software deployment
    • G06F8/61Installation

Landscapes

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

Abstract

The invention discloses a method and a device for burning a program of multiple modules. The method comprises the following steps: (S1) obtaining a program file to be burnt into multiple modules; (S2) judging whether a file format of the program file is an out format or an hex format or not to obtain a first judgment result; (S31) when the first judgment result is positive, judging whether the file format of the program file is the out format or not to obtain a second judgment result; (S41) when the second judgment result is positive, converting the file format of the program file into the hex format; and (S51) reading row data of the program file in the hex format, and broadcasting and transmitting the row data to a CAN bus to transmit data content in the row data to the multiple modules for burning through the CAN bus. According to the method and the device, online program burning for DSP modules under the premises that the system does not need to be de-electrified and the modules do not need to be disassembled and assembled is achieved; and program burning upgrading can be simultaneously carried out for the multiple DSP modules.

Description

A kind of method for multiple module burning programs and device
Technical field
The present invention relates to the software program burning upgrade technique field of module, particularly relate to a kind of method for multiple module burning programs and device。
Background technology
Along with developing rapidly of computer and information technology, Digital Signal Processing (DSP, DigitalSignalProcessor) technology and on-site programmable gate array FPGA (FieldProgrammableGateArray) technology are also maked rapid progress。Dsp chip and fpga chip are that modern digital signal processing provides powerful hardware foundation, user needs to carry out software program according to the function of application scenario and writes, and successful software program module burning will be write in dsp chip or fpga chip, to realize required function when chip powers on。Wherein, DSP is a kind of by using mathematical skill to perform conversion or extraction information, the method carrying out Coping with Reality signal, and these signals are represented by Serial No.。Its advantage be mainly equipment flexibly, accurately, capacity of resisting disturbance is strong, long-distance transmissions speed is fast and undistorted in transmitting procedure。
At present, the multiplex DSP such as Power quality management, photovoltaic generation, battery test system realizes signals collecting, rapidly Digital Signal Algorithm etc., the module device of these systems is numerous, dsp chip is arranged on the panel of each module device, when carrying out software burning upgrading, needing to disassemble panel from the module device of system, after the good software of emulator burning, then installation is gone back。But, adopt and carry out at least following deficiency of modular program burning existence in such a way:
1) dismounting panel burning program is complex, and the time cost of cost is high, and module is heavier, and disassembly process needs many people to coordinate, and the human cost of cost is high;
2) emulator can only realize one DSP module of a burning, and on-the-spot equipment is multi-module system, need to distinguish burning;
3) existing burning mode needs electricity dismounting under module entirety, therefore for not allowing the burning program of the power electronic equipment of lower electricity to upgrade inapplicable。
That is, existing burning program mode needs electricity under module device and is dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading。
Summary of the invention
The application is by providing a kind of method for multiple module burning programs and device, solve prior art Program burning need electricity under module device and dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading, achieve system without lower electricity and module need not be dismounted premise under, online is DSP module burning program, and can carry out burning program upgrading for multiple DSP module simultaneously。
On the one hand, the embodiment of the present application provides a kind of method for multiple module burning programs, comprises the following steps:
S1, obtain the program file waiting to be burnt in multiple module;
Whether S2, the file format judging described program file are out form or hex form, it is thus achieved that the first judged result;
S31, when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
S41, when described second judged result is for being, the file format of described program file is converted to hex form;
S51, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
Optionally, after described step S2, described method also includes:
S32, when described first judged result is no, output represents the information of file format mistake of described program file。
Optionally, after described step S31 and when described second judged result is no, or after described step S41, described method also includes:
S42, in the plurality of module each send erasing order so that each module perform described erasing order, wipe original program;
Described in S43, judgement, whether original program of each module wipes successfully, it is thus achieved that the 3rd judged result;
S44, when described 3rd judged result is for being, perform described step S51。
Optionally, after described step S43, described method also includes:
S52, when described 3rd judged result is no, the output failed information of representation module burning program。
Optionally, described step S51 specifically includes following sub-step:
S511, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
S512, judge whether described in receiving, to treat the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
S513a, when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
S513b, when described 4th judged result is no, treat that burning module carries out burning program by point-to-point communication mode to described。
On the other hand, the embodiment of the present application additionally provides a kind of device for multiple module burning programs, including:
Program file acquisition module, for obtaining the program file waiting to be burnt in multiple module;
Whether the first file format judge module, be out form or hex form for judging the file format of described program file, it is thus achieved that the first judged result;
Second file format judge module, for when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
File format changing module, for when described second judged result is for being, being converted to hex form by the file format of described program file;
Program broadcast sending module, for reading the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carries out burning the data content in described row data being sent to the plurality of module by described CAN。
Optionally, described device also includes:
File format miscue module, for obtaining the first judged result at described first file format judge module, and when described first judged result is no, output represents the information of the file format mistake of described program file。
Optionally, described device also includes:
Program erasing order sending module, for when described second file format judge module obtains the second judged result and described second judged result is no, or after the file format of described program file is converted to hex form by described file format changing module, erasing order is sent to each in the plurality of module, so that each module performs described erasing order, wipe original program;
Program erasing judge module, whether the original program for judging each module described wipes successfully, it is thus achieved that the 3rd judged result;
Perform module, for when described 3rd judged result is for being, the row data of the described program file of hex form are read by described program broadcast sending module, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
Optionally, described device also includes:
Burning program failure reminding module, for when described program wipes judge module acquisition the 3rd judged result and described 3rd judged result is no, exporting the information that representation module burning program is failed。
Optionally, described program broadcast sending module specifically includes:
Row digital independent transmitting element, for reading the row data of the described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
Response frame correction judgement unit, treats, described in judging whether to receive, the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
First burning unit, for when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
To described, second burning unit, for when described 4th judged result is no, treating that burning module carries out burning program by point-to-point communication mode。
The one or more technical schemes provided in the embodiment of the present application, at least have the following technical effect that or advantage:
Due in the embodiment of the present application, by first obtaining the program file waiting to be burnt in multiple module, whether the file format then judging described program file is out form or hex form, when judged result is for being, whether the file format then judging described program file is out form, and when this document form is out form, the file format of described program file is converted to hex form;Finally read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。Effectively solve prior art Program burning mode need electricity under module device and dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading, achieve system without lower electricity and module need not be dismounted premise under, online is DSP module burning program, and can carry out the technique effect of burning program upgrading for multiple DSP module simultaneously。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided。
The method flow diagram that the first is multiple module burning program that Fig. 1 provides for the embodiment of the present application;
The system of burning program structural representation that Fig. 2 provides for the embodiment of the present application;
Fig. 3 A is method flow diagram that the second that the embodiment of the present application provides is multiple module burning program;
The method flow diagram that the third is multiple module burning programs that Fig. 3 B provides for the embodiment of the present application;
The apparatus structure block diagram that the first is multiple module burning program that Fig. 4 A provides for the embodiment of the present application;
Fig. 4 B is apparatus structure block diagram that the second that the embodiment of the present application provides is multiple module burning program。
Detailed description of the invention
The embodiment of the present application is by providing a kind of method for multiple module burning programs, solve prior art Program burning need electricity under module device and dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading, achieve system without lower electricity and module need not be dismounted premise under, online is DSP module burning program, and can carry out the technique effect of burning program upgrading for multiple DSP module simultaneously。
The technical scheme of the embodiment of the present application is for solving above-mentioned technical problem, and general thought is as follows:
The embodiment of the present application provides a kind of method for multiple module burning programs, comprises the following steps: S1, obtain the program file waiting to be burnt in multiple module;Whether S2, the file format judging described program file are out form or hex form, it is thus achieved that the first judged result;S31, when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;S41, when described second judged result is for being, the file format of described program file is converted to hex form;S51, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
Visible, in the embodiment of the present application, by the row data broadcast transmission that will treat in burning program file to CAN, and by CAN, the data content in described row data is sent to the plurality of module and carries out burning。Effectively solve prior art Program burning need electricity under module device and dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading, achieve system without lower electricity and module need not be dismounted premise under, online is DSP module burning program, and can carry out the technique effect of burning program upgrading for multiple DSP module simultaneously。
In order to be better understood from technique scheme, below in conjunction with Figure of description and specific embodiment, technique scheme is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical scheme, rather than the restriction to technical scheme, when not conflicting, the embodiment of the present application and the technical characteristic in embodiment can be mutually combined。
Embodiment one
Refer to Fig. 1, the embodiment of the present application provides a kind of method for multiple module burning programs, is applied in the device that is multiple module burning programs, said method comprising the steps of:
S1, obtain the program file waiting to be burnt in multiple module;
Whether S2, the file format judging described program file are out form or hex form, it is thus achieved that the first judged result;
S31, when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
S41, when described second judged result is for being, the file format of described program file is converted to hex form;
S51, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
In specific implementation process, programmer writes, on PC (PersonalComputer) machine 10, the program file treating burning, refer to Fig. 2, PC 10 and the described device 20 for multiple module burning programs communicate to connect, and device 20 is connected with the multiple modules 40 treating burning program by CAN (ControllerAreaNetworkBus) 30。Device 20 obtains the program file waiting to be burnt to multiple module 40 from PC 10, after judging through the file format of above-mentioned steps S2 and S31, the file format of described program file is converted to hex form, then, read the row data of the described program file of hex form, and by described row data broadcast transmission to CAN 30, carry out burning the data content in described row data being sent to the plurality of module 40 by described CAN 30。
Wherein, CAN belongs to the category of fieldbus, and it is a kind of effective support distributed AC servo system or the serial communication network controlled in real time。CAN controller works in various ways, each node in network all can adopt the mode of bit-by-bit arbitration of lossless structure to compete according to bus access priority (depending on message identifier) and send data to bus, and CAN protocol abolished station address coding, and instead communication data is encoded, this can make different nodes be simultaneously received identical data, these features make the data communication between each node of network that CAN is constituted real-time, and easily constitute redundancy structure, improve the reliability of system and the motility of system。
Refer to Fig. 3 A, in the present embodiment, supported recordable paper is hex file (i.e. the file of extension hex by name) and out file (i.e. the file of extension out by name), in order to user being reminded when the recordable paper obtained is not for above two form, after described step S2, described method also includes:
S32, when described first judged result is no, output represents the information of file format mistake of described program file。
Then, referring still to Fig. 3 A, in specific implementation process, in order to before for each module burning program, routine data original in module is wiped such that it is able to successfully to the program that each module burning is new, after described step S31 and when described second judged result is no, or after described step S41, described method also includes:
S42, in the plurality of module each send erasing order so that each module perform described erasing order, wipe original program;
Described in S43, judgement, whether original program of each module wipes successfully, it is thus achieved that the 3rd judged result;
S44, when described 3rd judged result is for being, perform described step S51。
In specific implementation process, refer to Fig. 3 B, in order to ensure the described device for multiple module burning programs and each module can communication, after above-mentioned steps S41 and before above-mentioned steps S42, described method further comprises the steps of:
S411, send handshaking information with point-to-point communication mode to each in multiple modules, and judge whether to shake hands successfully;Concrete, " point-to-point communication mode " refers to: the described device for multiple module burning programs carries out information exchange with each module is man-to-man;Additionally, between communication apparatus the transmission of any practical application information invariably accompany some control information transmission, they are according to set communications protocol work, it is sent to destination by safe, reliable, efficient for application message, two equipment are made before a communication by Handshake Protocol, mutually " understanding ", just intercoming mutually afterwards, therefore this handshake steps is very important。
Further, referring still to Fig. 3 B, in order to ensure the safety of burning program, after above-mentioned steps S411, described method further comprises the steps of:
S412, when judge to shake hands failure time, output represents the information of failure of shaking hands, and stops the burning program to respective modules and operate;
S413, when judging to shake hands successful, send checking information to each in the plurality of module, and judge whether receive the module of this checking information is verified;Concrete, each in the plurality of module receives and based on whether the device described in this checking Information Authentication being multiple module burning programs has burning authority, and sending a feedback information to described device, based on this feedback information, described device judges whether respective modules is verified。
After being verified, perform step S42, when checking does not pass through, perform step:
S414, output represent the information of authentication failed, and stop operating to the burning program of respective modules。
In specific implementation process, described checking information can be a string password, treats that burning module verifies the correctness of this password, when determining that this password is correct, just allow the burning process carried out below, it is thus possible to ensure to treat that burning module will not by the illegal burning of the object of lack of competence。
Further, in order to user being reminded when program is wiped unsuccessfully, after described step S43, described method also includes:
S52, when described 3rd judged result is no, the output failed information of representation module burning program, and the burning program of corresponding module operates by stopping。
In specific implementation process, described row data content is the hex file content of standard, and including burning address and data content, referring still to Fig. 3 A, described step S51 specifically includes following sub-step:
S511, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
S512, judge whether described in receiving, to treat the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
S513a, when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
S513b, when described 4th judged result is no, treat that burning module carries out burning program by point-to-point communication mode to described。
Concrete, above-mentioned steps S512 comprises two layers of meaning: 1. judge whether described in receiving, to treat the burning module response frame based on row data feedback;If 2. receiving response frame, it is judged that whether the frame information of this response frame comprises the judged result that row data are treated that burning module is properly received。In above-mentioned steps S513a, when described in receiving until comprising row data during burning module is based on the response frame of row data feedback and the frame information of this response frame by during until the judged result that burning module is properly received, can then judge whether the described program file of hex form is sent completely, when being sent completely, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;It addition, when the described program file of hex form is not sent completely, it may be judged whether also have other module can continue burning, if also having other module can continue burning, then returning and perform step S511, if not having other module can continue burning, then terminating bum task。In above-mentioned steps S513b, when described in not receiving until the burning module response frame based on row data feedback or do not comprise row data in receiving the frame information of response frame and this response frame by during until the judged result that burning module is properly received, by point-to-point communication mode to not replying module or replying the module of error code and carried out burning program。
In specific implementation process, refer to Fig. 3 B, in order to ensure treating that burning module completes burning program, after step S513a and S513b, described method further comprises the steps of:
S514, after completing burning program, end frame is sent to respective modules, and terminate burning program task after receiving the respective modules correct feedback frame (namely receive feedback frame and feedback frame is correct) based on described end frame, and the successful information of output program burning, if do not receive feedback frame or receive feedback frame mistake time, then the information of output program burning failure。
This method is based on CAN and realizes, what adopt is broadcast and the mode of point-to-point burning cooperation, when for multiple module burning program, module type and module No. can be set, after tested can simultaneously 64 modules of burning, and the recordable time of 64 modules and 1 module is similar, is more than 20 second;Certainly, in specific implementation process, according to practical situations, the module number of burning program can be other numerical value simultaneously, is merely illustrative a citing, and module number is not specifically limited。
Generally speaking, by implement this method system without lower electricity and module need not be dismounted premise under, online is DSP module burning program, and burning program upgrading can be carried out for multiple DSP module simultaneously, effectively solve prior art Program burning need electricity under module device and dismounted by panel, make burning program cost plenty of time cost and human cost, and discomfort is combined into the technical problem not allowing the power electronic equipment of lower electricity to carry out burning program upgrading。
Embodiment two
Based on same inventive concept, refer to Fig. 4 A, the embodiment of the present application additionally provides a kind of device for multiple module burning programs, including:
Program file acquisition module 41, for obtaining the program file waiting to be burnt in multiple module;
Whether the first file format judge module 42, be out form or hex form for judging the file format of described program file, it is thus achieved that the first judged result;
Second file format judge module 43, for when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
File format changing module 44, for when described second judged result is for being, being converted to hex form by the file format of described program file;
Program broadcast sending module 45, for reading the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carries out burning the data content in described row data being sent to the plurality of module by described CAN。
In specific implementation process, refer to Fig. 4 B, described device also includes:
File format miscue module 46, for obtaining the first judged result at described first file format judge module 42, and when described first judged result is no, output represents the information of the file format mistake of described program file。
In specific implementation process, described device also includes:
Program erasing order sending module 47, for when described second file format judge module 43 obtains the second judged result and described second judged result is no, or after the file format of described program file is converted to hex form by described file format changing module 44, erasing order is sent to each in the plurality of module, so that each module performs described erasing order, wipe original program;
Program erasing judge module 48, whether the original program for judging each module described wipes successfully, it is thus achieved that the 3rd judged result;
Perform module 49, for when described 3rd judged result is for being, the row data of the described program file of hex form are read by described program broadcast sending module 45, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
In specific implementation process, in order to ensure the described device for multiple module burning programs and each module can communication, described device also includes:
Communication building block, after the file format of described program file being converted to hex form at file format changing module 44, and before program erasing order sending module 47 sends erasing order to each in the plurality of module, send handshaking information with point-to-point communication mode to each in multiple modules, and judge whether to shake hands successfully。
Further, in order to ensure the safety of burning program, described device also includes:
Shaking hands failure reminding module, for when described communication building block judges to shake hands failure, output represents the information of failure of shaking hands, and stops the burning program to respective modules and operate;
Authentication module, for when described communication building block judges to shake hands successful, sending checking information to each in the plurality of module, and judge whether the module receiving this checking information is verified;After being proved to be successful, wipe order sending module 47 by program and send erasing order to each in the plurality of module;It addition, described device also includes: authentication failed reminding module, for when checking does not pass through, output represents the information of authentication failed, and stopping operates to the burning program of respective modules。
In specific implementation process, referring still to Fig. 4 B, described device also includes:
Burning program failure reminding module 410, for when described program erasing judge module 48 obtains the 3rd judged result and described 3rd judged result is no, exporting the information that representation module burning program is failed。
In specific implementation process, referring also to Fig. 4 B, described program broadcast sending module 45 specifically includes:
Row digital independent transmitting element 451, for reading the row data of the described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
Response frame correction judgement unit 452, treats, described in judging whether to receive, the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
First burning unit 453, for when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
To described, second burning unit 454, for when described 4th judged result is no, treating that burning module carries out burning program by point-to-point communication mode。
In specific implementation process, in order to ensure treating that burning module completes burning program, described device also includes:
Burning program success Tip element, for after the first burning unit 453 and the second burning unit 454 complete burning program, end frame is sent to respective modules, and terminate burning program task the successful information of output program burning after receiving the respective modules correct feedback frame (namely receive feedback frame and feedback frame is correct) based on described end frame。
As described above, the above-mentioned device for multiple module burning programs is used for realizing the above-mentioned method for multiple module burning programs, so, the work process of this device is consistent with one or more embodiments of said method, just no longer repeats one by one at this。
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program。Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect。And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code。
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment。So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention。
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art。So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification。

Claims (10)

1. one kind is the method for multiple module burning program, it is characterised in that comprise the following steps:
S1, obtain the program file waiting to be burnt in multiple module;
Whether S2, the file format judging described program file are out form or hex form, it is thus achieved that the first judged result;
S31, when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
S41, when described second judged result is for being, the file format of described program file is converted to hex form;
S51, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
2. it is the method for multiple module burning program as claimed in claim 1, it is characterised in that after described step S2, described method also includes:
S32, when described first judged result is no, output represents the information of file format mistake of described program file。
3. it is the method for multiple module burning program as claimed in claim 1, it is characterised in that after described step S31 and when described second judged result is no, or after described step S41, described method also includes:
S42, in the plurality of module each send erasing order so that each module perform described erasing order, wipe original program;
Described in S43, judgement, whether original program of each module wipes successfully, it is thus achieved that the 3rd judged result;
S44, when described 3rd judged result is for being, perform described step S51。
4. it is the method for multiple module burning program as claimed in claim 3, it is characterised in that after described step S43, described method also includes:
S52, when described 3rd judged result is no, the output failed information of representation module burning program。
5. it is the method for multiple module burning program as claimed in claim 1, it is characterised in that described step S51 specifically includes following sub-step:
S511, read the row data of described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
S512, judge whether described in receiving, to treat the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
S513a, when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
S513b, when described 4th judged result is no, treat that burning module carries out burning program by point-to-point communication mode to described。
6. one kind is the device of multiple module burning program, it is characterised in that including:
Program file acquisition module, for obtaining the program file waiting to be burnt in multiple module;
Whether the first file format judge module, be out form or hex form for judging the file format of described program file, it is thus achieved that the first judged result;
Second file format judge module, for when described first judged result is for being, it is judged that whether the file format of described program file is out form, it is thus achieved that the second judged result;
File format changing module, for when described second judged result is for being, being converted to hex form by the file format of described program file;
Program broadcast sending module, for reading the row data of described program file of hex form, and by described row data broadcast transmission to CAN, carries out burning the data content in described row data being sent to the plurality of module by described CAN。
7. it is the device of multiple module burning program as claimed in claim 6, it is characterised in that described device also includes:
File format miscue module, for obtaining the first judged result at described first file format judge module, and when described first judged result is no, output represents the information of the file format mistake of described program file。
8. it is the device of multiple module burning program as claimed in claim 6, it is characterised in that described device also includes:
Program erasing order sending module, for when described second file format judge module obtains the second judged result and described second judged result is no, or after the file format of described program file is converted to hex form by described file format changing module, erasing order is sent to each in the plurality of module, so that each module performs described erasing order, wipe original program;
Program erasing judge module, whether the original program for judging each module described wipes successfully, it is thus achieved that the 3rd judged result;
Perform module, for when described 3rd judged result is for being, the row data of the described program file of hex form are read by described program broadcast sending module, and by described row data broadcast transmission to CAN, carry out burning the data content in described row data being sent to the plurality of module by described CAN。
9. it is the device of multiple module burning program as claimed in claim 8, it is characterised in that described device also includes:
Burning program failure reminding module, for when described program wipes judge module acquisition the 3rd judged result and described 3rd judged result is no, exporting the information that representation module burning program is failed。
10. it is the device of multiple module burning program as claimed in claim 6, it is characterised in that described program broadcast sending module specifically includes:
Row digital independent transmitting element, for reading the row data of the described program file of hex form, and by described row data broadcast transmission to CAN, with by described CAN according to the burning address in described row data, what to be sent in the plurality of module by the data content in described row data corresponding with described burning address treats burning module;
Response frame correction judgement unit, treats, described in judging whether to receive, the correct response frame that burning module feeds back, it is thus achieved that the 4th judged result;
First burning unit, for when described 4th judged result is for being, to described, the row data based on described broadcast transmission to CAN treat that burning module carries out burning program;
To described, second burning unit, for when described 4th judged result is no, treating that burning module carries out burning program by point-to-point communication mode。
CN201610021855.1A 2016-01-13 2016-01-13 A kind of method and device for multiple module burning programs Active CN105700924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610021855.1A CN105700924B (en) 2016-01-13 2016-01-13 A kind of method and device for multiple module burning programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610021855.1A CN105700924B (en) 2016-01-13 2016-01-13 A kind of method and device for multiple module burning programs

Publications (2)

Publication Number Publication Date
CN105700924A true CN105700924A (en) 2016-06-22
CN105700924B CN105700924B (en) 2018-11-27

Family

ID=56227225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610021855.1A Active CN105700924B (en) 2016-01-13 2016-01-13 A kind of method and device for multiple module burning programs

Country Status (1)

Country Link
CN (1) CN105700924B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708584A (en) * 2016-12-30 2017-05-24 深圳Tcl数字技术有限公司 Program burn method and device thereof
CN107885510A (en) * 2017-11-03 2018-04-06 北京思诺信安科技有限公司 It is a kind of can simultaneously burning two CSTR replication tool and method for burn-recording
CN108170487A (en) * 2016-12-06 2018-06-15 比亚迪股份有限公司 DSP Program programming method, apparatus and vehicle
CN109491688A (en) * 2018-11-16 2019-03-19 珠海云洲智能科技有限公司 The method, apparatus and system of firmware upgrade are carried out to the control equipment of unmanned boat
CN109976767A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 Software method for burn-recording and device
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN104216714A (en) * 2014-09-03 2014-12-17 东方电气(乐山)新能源设备有限公司 DSP (Digital Signal Processor) programming method based on CAN (Controller Area Network) bus
CN104915219A (en) * 2014-03-12 2015-09-16 奇点新源国际技术开发(北京)有限公司 Single chip microcomputer program upgrading method and device
CN105187287A (en) * 2015-09-16 2015-12-23 中航锂电(洛阳)有限公司 CAN-bus-based software upgrading method of battery management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN104915219A (en) * 2014-03-12 2015-09-16 奇点新源国际技术开发(北京)有限公司 Single chip microcomputer program upgrading method and device
CN104216714A (en) * 2014-09-03 2014-12-17 东方电气(乐山)新能源设备有限公司 DSP (Digital Signal Processor) programming method based on CAN (Controller Area Network) bus
CN105187287A (en) * 2015-09-16 2015-12-23 中航锂电(洛阳)有限公司 CAN-bus-based software upgrading method of battery management system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170487A (en) * 2016-12-06 2018-06-15 比亚迪股份有限公司 DSP Program programming method, apparatus and vehicle
CN108170487B (en) * 2016-12-06 2020-08-25 比亚迪股份有限公司 Program programming method and device in DSP (digital Signal processor) and vehicle
CN106708584A (en) * 2016-12-30 2017-05-24 深圳Tcl数字技术有限公司 Program burn method and device thereof
CN107885510A (en) * 2017-11-03 2018-04-06 北京思诺信安科技有限公司 It is a kind of can simultaneously burning two CSTR replication tool and method for burn-recording
CN109976767A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 Software method for burn-recording and device
CN109491688A (en) * 2018-11-16 2019-03-19 珠海云洲智能科技有限公司 The method, apparatus and system of firmware upgrade are carried out to the control equipment of unmanned boat
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program

Also Published As

Publication number Publication date
CN105700924B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN105700924A (en) Method and device for burning program of multiple modules
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN107018127A (en) The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN102480420A (en) Message sending method as well as message receiving method, device and system
CN108282375B (en) Computer interlocking interface general simulation system and method based on PLC series-parallel technology
WO2023093409A1 (en) Power distribution terminal based on modular configuration, and topology model verification method and apparatus therefor
CN101079757A (en) A testing device and operation method for broadband aviation electronic bus
CN109981360A (en) Internet of things equipment website activating method, device, system and storage medium
CN108696475A (en) A kind of distribution power automation terminal automatic registration method and device with safety certification
CN101996265A (en) Verification system and method for memory controller
CN102724164A (en) Multi-communication protocol transmission apparatus of electric power control system and method thereof
CN114089719B (en) Vehicle signal interface simulation verification method and device for TACS system
CN108508290A (en) A kind of noise failure analogy method and device
CN203706058U (en) CAN bus based multi-I/O board card expansion structure
CN106020898A (en) Software upgrading method and system of multi-processor device
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN205004841U (en) Intelligence substation equipment and data transmission system thereof
CN102884515B (en) Serial ports re-orientation processes method, apparatus and system
CN102089756A (en) System for injecting protocol specific errors during the certification of components in a storage area network
CN104184486A (en) Train running state information system vehicle-mounted platform
JP2016225985A (en) Method of controlling inverters
CN209964093U (en) Hierarchical isolation information exchange equipment for industrial bus
CN114785681B (en) Automatic checking and accepting system and method for monitoring information of transformer substation on-line equipment
CN101945422A (en) Test method of antennas and wireless communication device applying same
CN109495499A (en) Communication protocol bi-directional verification automated test tool and method based on Encryption Algorithm

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