CN105700924B - A kind of method and device for multiple module burning programs - Google Patents

A kind of method and device for multiple module burning programs Download PDF

Info

Publication number
CN105700924B
CN105700924B CN201610021855.1A CN201610021855A CN105700924B CN 105700924 B CN105700924 B CN 105700924B CN 201610021855 A CN201610021855 A CN 201610021855A CN 105700924 B CN105700924 B CN 105700924B
Authority
CN
China
Prior art keywords
module
burning
format
file
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
CN201610021855.1A
Other languages
Chinese (zh)
Other versions
CN105700924A (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 kind of method and device for multiple module burning programs, this method includes:S1, program file wait be burnt in multiple modules is obtained;Whether S2, the file format for judging described program file are out format or hex format, obtain the first judging result;S31, when first judging result be when, judge whether the file format of described program file is out format, obtain the second judging result;S41, when second judging result be when, the file format of described program file is converted into hex format;S51, read hex format described program file row data, and by the row data broadcast transmission to CAN bus, the data content in the row data is sent to the multiple module progress burning by the CAN bus.The present invention program realizes under the premise of system is without lower electricity and does not need dismounting module, is online DSP module burning program, and can carry out burning program upgrading simultaneously for multiple DSP modules.

Description

A kind of method and device for multiple module burning programs
Technical field
The present invention relates to the software program burning upgrade technique fields of module, more particularly to a kind of is multiple module burning journeys The method and device of sequence.
Background technique
With the rapid development of computer and information technology, Digital Signal Processing (DSP, Digital Signal Processor) also day is new for technology for technology and on-site programmable gate array FPGA (Field Programmable Gate Array) The moon is different.Dsp chip and fpga chip provide powerful hardware foundation for modern digital signal processing, and user is according to application Function need to carry out software program and write, and successful software program module burning will be write in dsp chip or fpga chip In, to realize required function when chip powers on.Wherein, DSP is that letter is converted or extracted to a kind of executed by using mathematical skill Breath, carrys out the method for Coping with Reality signal, these signals are indicated by Serial No..Its advantages are mainly that equipment is flexible, accurate, anti- Interference performance is strong, remote transmission speed is fast and undistorted in transmission process.
Currently, the multi-purpose DSP such as Power quality management, photovoltaic power generation, battery test system realizes signal acquisition, rapidly The module device of Digital Signal Algorithm etc., these systems is numerous, and dsp chip is arranged on the control panel of each module device, into When row software burning upgrades, need to disassemble control panel from the module device of system, after the good software of emulator burning, It installs back again.However, carrying out modular program burning in this manner has at least following deficiency:
1) dismounting control panel burning program is complex, and the time cost of cost is high, and module is heavier, and disassembly process needs More people's cooperations, the human cost of cost are high;
2) emulator can only realize one DSP module of a burning, and live equipment is multi-module system, need to burn respectively Record;
3) existing burning mode is needed module integrally lower electricity dismounting, therefore for not allowing the power electronics of lower electricity to set Standby burning program upgrading is not applicable.
That is, existing burning program mode needs electricity under module device and dismounts control panel, so that burning Procedure took plenty of time cost and human cost, and uncomfortable be combined into does not allow the power electronic equipment of lower electricity to carry out burning program The technical issues of upgrading.
Summary of the invention
The application solves program in the prior art by providing a kind of method and device for multiple module burning programs Burning needs electricity under module device and dismounts control panel, so that burning program takes a significant amount of time cost and human cost, And uncomfortable the technical issues of being combined into the power electronic equipment progress burning program upgrading for not allowing lower electricity, it realizes and is not necessarily in system It is lower electricity and do not need dismounting module under the premise of, online be DSP module burning program, and can simultaneously for multiple DSP modules into The upgrading of stroke sequence replication.
On the one hand, the embodiment of the present application provides a kind of method for multiple module burning programs, includes the following steps:
S1, program file wait be burnt in multiple modules is obtained;
Whether S2, the file format for judging described program file are out format or hex format, obtain the first judging result;
S31, when first judging result be when, judge whether the file format of described program file is out format, Obtain the second judging result;
S41, when second judging result be when, the file format of described program file is converted into hex format;
S51, read hex format described program file row data, and it is the row data broadcast transmission is total to CAN Line carries out burning so that the data content in the row data is sent to the multiple module by the CAN bus.
Optionally, after the step S2, the method also includes:
S32, when first judging result be it is no when, output indicate described program file file format mistake prompt Information.
Optionally, after the step S31 and when second judging result is no, or after the step S41, The method also includes:
S42, erasing order is sent to each of the multiple module, so that each module executes the erasing life It enables, wipes original program;
Whether original program of each module described in S43, judgement wipes success, obtains third judging result;
S44, when the third judging result be when, execute the step S51.
Optionally, after the step S43, the method also includes:
S52, when the third judging result be it is no when, output representation module burning program failure prompt information.
Optionally, the step S51 specifically includes following sub-step:
S511, read hex format described program file row data, and it is the row data broadcast transmission is total to CAN Line, according to the burning address in the row data, the data content in the row data to be sent to by the CAN bus It is corresponding to burning module with the burning address in the multiple module;
S512, judge whether to receive the correct response frame to burning module feedback, obtain the 4th judging result;
S513a, when the 4th judging result be when, based on the row data of the broadcast transmission to CAN bus to institute It states and carries out burning program to burning module;
S513b, when the 4th judging result be it is no when, by point-to-point communication mode to it is described to burning module into Stroke sequence replication.
On the other hand, the embodiment of the present application also provides a kind of devices for multiple module burning programs, including:
Program file obtains module, for obtaining the program file wait be burnt in multiple modules;
First file format judgment module, for judging whether the file format of described program file is out format or hex Format obtains the first judging result;
Second file format judgment module, for judging described program file when first judging result, which is, is Whether file format is out format, obtains the second judging result;
File format changing module, for when second judging result be when, by the tray of described program file Formula is converted to hex format;
Program broadcast sending module, the row data of the described program file for reading hex format, and by the row data Broadcast transmission is to CAN bus, the data content in the row data is sent to the multiple module by the CAN bus Carry out burning.
Optionally, described device further includes:
File format miscue module, for obtaining the first judging result in the first file format judgment module, And first judging result be it is no when, output indicate described program file file format mistake prompt information.
Optionally, described device further includes:
Program erasing order sending module, for the second file format judgment module obtain the second judging result, And second judging result be it is no when or the file format changing module file format of described program file is converted to After hex format, erasing order is sent to each of the multiple module, so that each module executes the erasing life It enables, wipes original program;
Program wipes judgment module, for judging whether original program of each module wipes success, obtains the Three judging results;
Execution module, for reading hex by described program broadcast sending module when the third judging result, which is, is The row data of the described program file of format, and by the row data broadcast transmission to CAN bus, to pass through the CAN bus Data content in the row data is sent to the multiple module and carries out burning.
Optionally, described device further includes:
Burning program failure cue module, for obtaining third judging result and institute in described program erasing judgment module State third judging result be it is no when, output representation module burning program failure prompt information.
Optionally, described program broadcast sending module specifically includes:
Row reading data transmission unit, the row data of the described program file for reading hex format, and by the line number According to broadcast transmission to CAN bus, with by the CAN bus according to the burning address in the row data, by the row data In data content be sent in the multiple module it is corresponding to burning module with the burning address;
Response frame correction judgement unit receives the correct response to burning module feedback for judging whether Frame obtains the 4th judging result;
First burning unit, for when the 4th judging result be when, based on the broadcast transmission to CAN bus Row data carry out burning program to burning module to described;
Second burning unit is used for when the 4th judging result is no, by point-to-point communication mode to described Burning program is carried out to burning module.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Due in the embodiment of the present application, by obtaining the program file wait be burnt in multiple modules first, then sentencing Whether the file format of disconnected described program file is out format or hex format, when the judgment result is yes, then described in judgement Whether the file format of program file is out format, and when this document format is out format, by the text of described program file Part format is converted to hex format;Last read the row data of the described program file of hex format, and by the row data broadcasting It is sent to CAN bus, is carried out so that the data content in the row data is sent to the multiple module by the CAN bus Burning.Burning program mode needs electricity under module device and dismounts control panel effective solution in the prior art, so that Burning program takes a significant amount of time cost and human cost, and uncomfortable be combined into does not allow the power electronic equipment of lower electricity to carry out program The technical issues of burning upgrades realizes under the premise of system is without lower electricity and does not need dismounting module, is online DSP module Burning program, and the technical effect of burning program upgrading can be carried out for multiple DSP modules simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 be it is provided by the embodiments of the present application the first be the method flow diagram of multiple module burning programs;
Fig. 2 is system of burning program structural schematic diagram provided by the embodiments of the present application;
Fig. 3 A is the method flow diagram that second provided by the embodiments of the present application is multiple module burning programs;
Fig. 3 B is that provided by the embodiments of the present application the third is the method flow diagram of multiple module burning programs;
Fig. 4 A be it is provided by the embodiments of the present application the first be the apparatus structure block diagram of multiple module burning programs;
Fig. 4 B is the apparatus structure block diagram that second provided by the embodiments of the present application is multiple module burning programs.
Specific embodiment
The embodiment of the present application solves program in the prior art by providing a kind of method for multiple module burning programs Burning needs electricity under module device and dismounts control panel, so that burning program takes a significant amount of time cost and human cost, And uncomfortable the technical issues of being combined into the power electronic equipment progress burning program upgrading for not allowing lower electricity, it realizes and is not necessarily in system It is lower electricity and do not need dismounting module under the premise of, online be DSP module burning program, and can simultaneously for multiple DSP modules into The technical effect of stroke sequence replication upgrading.
The technical solution of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
The embodiment of the present application provides a kind of method for multiple module burning programs, includes the following steps:S1, obtain to The program file being burnt in multiple modules;Whether S2, the file format for judging described program file are out format or hex lattice Formula obtains the first judging result;S31, when first judging result be when, judge that the file format of described program file is No is out format, obtains the second judging result;S41, when second judging result be when, by the text of described program file Part format is converted to hex format;S51, read hex format described program file row data, and by the row data broadcasting It is sent to CAN bus, is carried out so that the data content in the row data is sent to the multiple module by the CAN bus Burning.
As it can be seen that in the embodiment of the present application, by will be total to CAN to the row data broadcast transmission in burning program file Line, and the data content in the row data is sent to by the multiple module by CAN bus and carries out burning.Effective solution Burning program needs electricity under module device and dismounts control panel in the prior art, when so that burning program spending a large amount of Between cost and human cost, and uncomfortable be combined into does not allow the technology of the power electronic equipment progress burning program upgrading of lower electricity to ask Topic realizes under the premise of system is without lower electricity and does not need dismounting module, is online DSP module burning program, and can The technical effect of burning program upgrading is carried out for multiple DSP modules simultaneously.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper It states technical solution to be described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the application The detailed description of technical solution, rather than the restriction to technical scheme, in the absence of conflict, the application are implemented Technical characteristic in example and embodiment can be combined with each other.
Embodiment one
Referring to FIG. 1, the embodiment of the present application provides a kind of method for multiple module burning programs, it is more for being applied to one In the device of a module burning program, it the described method comprises the following steps:
S1, program file wait be burnt in multiple modules is obtained;
Whether S2, the file format for judging described program file are out format or hex format, obtain the first judging result;
S31, when first judging result be when, judge whether the file format of described program file is out format, Obtain the second judging result;
S41, when second judging result be when, the file format of described program file is converted into hex format;
S51, read hex format described program file row data, and it is the row data broadcast transmission is total to CAN Line carries out burning so that the data content in the row data is sent to the multiple module by the CAN bus.
In the specific implementation process, programmer writes the program to burning on PC (Personal Computer) machine 10 File, referring to FIG. 2, PC machine 10 and the device 20 for multiple module burning programs communicate to connect, device 20 is total by CAN Line (Controller Area Network Bus) 30 is connect with multiple modules 40 to burning program.Device 20 is from PC machine 10 Obtain the program file wait be burnt in multiple modules 40, by the file format of above-mentioned steps S2 and S31 judgement after, by institute The file format for stating program file is converted to hex format, then, reads the row data of the described program file of hex format, and will The row data broadcast transmission is to CAN bus 30, to be sent the data content in the row data by the CAN bus 30 Burning is carried out to the multiple module 40.
Wherein, CAN belongs to the scope of fieldbus, it is the serial of one kind effectively support distributed AC servo system or real-time control Communication network.CAN controller works in various ways, and each node in network (can all be depended on according to bus access priority Message identifier) it is competed by the way of the bit-by-bit arbitration of lossless structure to bus transmission data, and CAN protocol has abolished station ground Location coding, and instead communication data is encoded, this can make different nodes while receive identical data, these are special Point so that CAN bus constitute each node of network between data communication strong real-time, and be easy constitute redundancy structure, improve The flexibility of the reliability and system of system.
Fig. 3 A is please referred to, in the present embodiment, supported recordable paper is that hex file (extends the text of entitled hex Part) and out file (file for extending entitled out), in order to when the recordable paper of acquisition is not above two format to Family is reminded, after the step S2, the method also includes:
S32, when first judging result be it is no when, output indicate described program file file format mistake prompt Information.
It then, in the specific implementation process, will be in module in order to before for each module burning program referring still to Fig. 3 A Original program data is wiped, so as to program successfully new to each module burning, after the step S31 and When second judging result is no, or after the step S41, the method also includes:
S42, erasing order is sent to each of the multiple module, so that each module executes the erasing life It enables, wipes original program;
Whether original program of each module described in S43, judgement wipes success, obtains third judging result;
S44, when the third judging result be when, execute the step S51.
In the specific implementation process, Fig. 3 B is please referred to, in order to ensure the device for multiple module burning programs and respectively Module can communicate, and after above-mentioned steps S41 and before above-mentioned steps S42, the method also includes steps:
S411, handshaking information is sent to each of multiple modules with point-to-point communication mode, and judges whether to hold Hand success;Specifically, " point-to-point communication mode " refers to:The device for multiple module burning programs and each module are a pair of One carry out information exchange;In addition, the transmission of any practical application information invariably accompanies some controls letter between communication apparatus The transmitting of breath, they work according to set communications protocol, and application message is transmitted to destination safe, reliable, efficiently, lead to Crossing Handshake Protocol makes two equipment before a communication, and mutual " understanding " just can be in communication with each other, therefore this handshake steps is later It is very necessary.
Further, described after above-mentioned steps S411 in order to guarantee the safety of burning program referring still to Fig. 3 B Method further includes step:
S412, when failure is shaken hands in judgement, output indicates the prompt information of failure of shaking hands, and stops the journey to respective modules Sequence replication operation;
S413, when judgement is shaken hands successfully, send verification information to each of the multiple module, and judge to receive Whether the module to the verification information is verified;Specifically, each of the multiple module receives and is based on the verifying It is that whether the devices of multiple module burning programs has a burning permission, and sends a feedback letter to described device described in Information Authentication Breath, described device are based on the feedback information and judge whether respective modules are verified.
After being verified, step S42 is executed, when verifying does not pass through, executes step:
S414, output indicate the prompt information of authentication failed, and stop operating to the burning program of respective modules.
In the specific implementation process, the verification information can be a string of passwords, verify the password just to burning module True property just allows to carry out subsequent burning process when determining that the password is correct, so that can guarantee will not be by nothing to burning module The illegal burning of the object of permission.
Further, in order to remind when program wipes failure user, after the step S43, the method Further include:
S52, when the third judging result is no, the prompt information of output representation module burning program failure and is stopped Only the burning program of corresponding module is operated.
In the specific implementation process, the row data content is the hex file content of standard, including burning address and data Content, referring still to Fig. 3 A, the step S51 specifically includes following sub-step:
S511, read hex format described program file row data, and it is the row data broadcast transmission is total to CAN Line, according to the burning address in the row data, the data content in the row data to be sent to by the CAN bus It is corresponding to burning module with the burning address in the multiple module;
S512, judge whether to receive the correct response frame to burning module feedback, obtain the 4th judging result;
S513a, when the 4th judging result be when, based on the row data of the broadcast transmission to CAN bus to institute It states and carries out burning program to burning module;
S513b, when the 4th judging result be it is no when, by point-to-point communication mode to it is described to burning module into Stroke sequence replication.
Specifically, including two layers of meaning in above-mentioned steps S512:1. judging whether to receive described to burning module base In the response frame of row data feedback;2. whether judging in the frame information of the response frame if receiving response frame comprising row data quilt The judging result being properly received to burning module.In above-mentioned steps S513a, described line number is based on to burning module when receiving According to the judging result being properly received comprising row data to burning module in the response frame of feedback and the frame information of the response frame When, it can then judge whether the described program file of hex format is sent completely, when being sent completely, be based on the broadcast transmission Row data to CAN bus carry out burning program to burning module to described;In addition, hex format described program file not When being sent completely, judges whether that burning can be continued there are also other modules, if burning can be continued there are also other modules, return to execution Step S511 terminates bum task if can continue burning without other modules.In above-mentioned steps S513b, when not receiving The response frame to burning module based on row data feedback receives in the frame information of response frame and the response frame and does not include Row data are by when the judging result that burning module is properly received, by point-to-point communication mode to not replying module or reply The module of error code carries out burning program.
In the specific implementation process, Fig. 3 B is please referred to, in order to ensure completing burning program to burning module, in step After S513a and S513b, the method also includes steps:
S514, after completing burning program, send end frame to respective modules, and receiving respective modules be based on it is described Terminate burning program task after the correct feedback frame (receive feedback frame and feedback frame is correct) of end frame, and output program is burnt Record successful prompt information, if do not receive feedback frame or receive feedback frame mistake when, output program burning failure Prompt information.
This method is realized based on CAN bus, is being multiple using the mode of broadcast and point-to-point burning cooperation When module burning program, settable module type and module No., after tested can 64 modules of burning simultaneously, and 64 modules and The recordable time of 1 module is similar, is more than 20 seconds;Certainly, in the specific implementation process, according to practical situations, together When burning program module number can be other numerical value, an only citing here, and module number not being carried out specific It limits.
To sum up, being online by implementing this method under the premise of system is without lower electricity and does not need dismounting module DSP module burning program, and can burning program upgrading, the effective solution prior art be carried out for multiple DSP modules simultaneously Middle burning program needs electricity under module device and dismounts control panel, so that burning program takes a significant amount of time cost and people Power cost, and uncomfortable the technical issues of being combined into the power electronic equipment progress burning program upgrading for not allowing lower electricity.
Embodiment two
Based on the same inventive concept, Fig. 4 A is please referred to, is multiple module burning journeys the embodiment of the present application also provides one kind The device of sequence, including:
Program file obtains module 41, for obtaining the program file wait be burnt in multiple modules;
First file format judgment module 42, for judge described program file file format whether be out format or Hex format obtains the first judging result;
Second file format judgment module 43, for judging described program file when first judging result, which is, is File format whether be out format, obtain the second judging result;
File format changing module 44, for when second judging result be when, by the file of described program file Format is converted to hex format;
Program broadcast sending module 45, the row data of the described program file for reading hex format, and by the line number According to broadcast transmission to CAN bus, the data content in the row data is sent to the multiple mould by the CAN bus Block carries out burning.
In the specific implementation process, Fig. 4 B is please referred to, described device further includes:
File format miscue module 46, for obtaining the first judgement knot in the first file format judgment module 42 Fruit, and first judging result be it is no when, output indicate described program file file format mistake prompt information.
In the specific implementation process, described device further includes:
Program erasing order sending module 47, for obtaining the second judgement knot in the second file format judgment module 43 When fruit and second judging result are no or the file format changing module 44 is by the file format of described program file After being converted to hex format, erasing order is sent to each of the multiple module, so that described in the execution of each module Erasing order wipes original program;
Program wipes judgment module 48, for judging whether original program of each module wipes success, obtains Third judging result;
Execution module 49, for being read by described program broadcast sending module 45 when the third judging result, which is, is The row data of the described program file of hex format are taken, and by the row data broadcast transmission to CAN bus, to pass through the CAN Data content in the row data is sent to the multiple module and carries out burning by bus.
In the specific implementation process, in order to ensure the device for multiple module burning programs can lead to each module News, described device further include:
Communication building block, for being converted to the file format of described program file in file format changing module 44 After hex format, and program erasing order sending module 47 to each of the multiple module send erasing order it Before, handshaking information is sent to each of multiple modules with point-to-point communication mode, and judge whether success of shaking hands.
Further, in order to guarantee the safety of burning program, described device further includes:
It shakes hands failure cue module, for when failure is shaken hands in communication building block judgement, output to indicate mistake of shaking hands The prompt information lost, and stop operating to the burning program of respective modules;
Authentication module, for the communication building block judgement shake hands successfully when, it is each into the multiple module A transmission verification information, and judge whether the module for receiving the verification information is verified;After being proved to be successful, pass through program Erasing order sending module 47 sends erasing order to each of the multiple module;In addition, described device further includes:It tests Card failure cue module, for when verifying does not pass through, output to indicate the prompt information of authentication failed, and stops to respective modules Burning program operation.
In the specific implementation process, referring still to Fig. 4 B, described device further includes:
Burning program fail cue module 410, for described program erasing judgment module 48 obtain third judging result, And the third judging result be it is no when, output representation module burning program failure prompt information.
In the specific implementation process, referring also to Fig. 4 B, described program broadcast sending module 45 is specifically included:
Row reading data transmission unit 451, the row data of the described program file for reading hex format, and will be described Row data broadcast transmission to CAN bus, with by the CAN bus according to the burning address in the row data, by the row Data content in data is sent in the multiple module corresponding to burning module with the burning address;
Response frame correction judgement unit 452, it is described to the correct of burning module feedback for judging whether to receive Response frame obtains the 4th judging result;
First burning unit 453, for it is total to CAN to be based on the broadcast transmission when the 4th judging result, which is, is The row data of line carry out burning program to burning module to described;
Second burning unit 454 is used for when the 4th judging result is no, by point-to-point communication mode to institute It states and carries out burning program to burning module.
In the specific implementation process, in order to ensure completing burning program to burning module, described device further includes:
Burning program success prompt unit, burns for completing program in the first burning unit 453 and the second burning unit 454 After record, end frame is sent to respective modules, and (receive based on the correct feedback frame of the end frame receiving respective modules To feedback frame and feedback frame it is correct) after terminate burning program task, and the successful prompt information of output program burning.
As described above, the above-mentioned device for multiple module burning programs for realizing it is above-mentioned be multiple module burnings The method of program, so, the course of work of the device and one or more embodiments of the above method are consistent, just not another herein One repeats.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of method for multiple module burning programs, which is characterized in that include the following steps:
S1, program file wait be burnt in multiple modules is obtained;
Whether S2, the file format for judging described program file are out format or hex format, obtain the first judging result;
S31, when first judging result be when, judge whether the file format of described program file is out format, obtain Second judging result;
S41, when second judging result be when, the file format of described program file is converted into hex format;
S51, read hex format described program file row data, and by the row data broadcast transmission to CAN bus, with The data content in the row data is sent to the multiple module by the CAN bus and carries out burning;
The step S51 specifically includes following sub-step:
S511, read hex format described program file row data, and by the row data broadcast transmission to CAN bus, with By the CAN bus according to the burning address in the row data, the data content in the row data is sent to described It is corresponding to burning module with the burning address in multiple modules;
S512, judge whether to receive the correct response frame to burning module feedback, obtain the 4th judging result;
S513a, when the 4th judging result be when, based on the row data of the broadcast transmission to CAN bus to it is described to Burning module carries out burning program;
S513b, when the 4th judging result be it is no when, by point-to-point communication mode to it is described to burning module carry out journey Sequence replication.
2. being as described in claim 1 the method for multiple module burning programs, which is characterized in that after the step S2, The method also includes:
S32, when first judging result be it is no when, output indicate described program file file format mistake prompt letter Breath.
3. being as described in claim 1 the method for multiple module burning programs, which is characterized in that after the step S31 And second judging result is when being no, or after the step S41, the method also includes:
S42, erasing order is sent to each of the multiple module, so that each module executes the erasing order, Wipe original program;
Whether original program of each module described in S43, judgement wipes success, obtains third judging result;
S44, when the third judging result be when, execute the step S51.
4. being as claimed in claim 3 the method for multiple module burning programs, which is characterized in that after the step S43, The method also includes:
S52, when the third judging result be it is no when, output representation module burning program failure prompt information.
5. a kind of device for multiple module burning programs, which is characterized in that including:
Program file obtains module, for obtaining the program file wait be burnt in multiple modules;
First file format judgment module, for judging whether the file format of described program file is out format or hex lattice Formula obtains the first judging result;
Second file format judgment module, for judging the file of described program file when first judging result, which is, is Whether format is out format, obtains the second judging result;
File format changing module, for when second judging result, which is, is, the file format of described program file to be turned It is changed to hex format;
Program broadcast sending module, the row data of the described program file for reading hex format, and by the row data broadcasting It is sent to CAN bus, is carried out so that the data content in the row data is sent to the multiple module by the CAN bus Burning;
Described program broadcast sending module specifically includes:
Row reading data transmission unit, the row data of the described program file for reading hex format, and the row data are wide Broadcast and be sent to CAN bus, with by the CAN bus according to the burning address in the row data, will be in the row data Data content is sent in the multiple module corresponding to burning module with the burning address;
Response frame correction judgement unit receives the correct response frame to burning module feedback for judging whether, Obtain the 4th judging result;
First burning unit, for when the 4th judging result be when, the line number based on the broadcast transmission to CAN bus Burning program is carried out to burning module according to described;
Second burning unit is used for when the 4th judging result is no, by point-to-point communication mode to described wait burn It records module and carries out burning program.
6. being as claimed in claim 5 the device of multiple module burning programs, which is characterized in that described device further includes:
File format miscue module, for obtaining the first judging result, and institute in the first file format judgment module State the first judging result be it is no when, output indicate described program file file format mistake prompt information.
7. being as claimed in claim 5 the device of multiple module burning programs, which is characterized in that described device further includes:
Program erasing order sending module, for obtaining the second judging result and institute in the second file format judgment module It states when the second judging result is no or the file format of described program file is converted to hex by the file format changing module After format, erasing order is sent to each of the multiple module, so that each module executes the erasing order, Wipe original program;
Program wipes judgment module, for judging whether original program of each module wipes success, obtains third and sentences Disconnected result;
Execution module, for reading hex format by described program broadcast sending module when the third judging result, which is, is Described program file row data, and by the row data broadcast transmission to CAN bus, with by the CAN bus by institute It states the data content in row data and is sent to the multiple module progress burning.
8. being as claimed in claim 7 the device of multiple module burning programs, which is characterized in that described device further includes:
Burning program fails cue module, for obtaining third judging result and described the in described program erasing judgment module When three judging results are no, the prompt information of output representation module burning program failure.
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 CN105700924A (en) 2016-06-22
CN105700924B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107885510B (en) * 2017-11-03 2021-04-09 黄骅市交大思诺科技有限公司 Burning tool and burning method capable of simultaneously burning double DSPs
CN109976767B (en) * 2017-12-27 2023-06-09 深圳市优必选科技有限公司 Software burning method 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

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

Also Published As

Publication number Publication date
CN105700924A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105700924B (en) A kind of method and device for multiple module burning programs
CN103414741B (en) A kind of method and system of remote upgrade PLC
CN103038776B (en) For storing the system and method for password recovery secret
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN107040777A (en) A kind of remote debugging method, set top box and server
CN104737150B (en) The system and method that disk mirroring file is accessed using the HTML5 KVM/vMEDIA clients run in Web-browser
CN106796633B (en) Equipment authentication method, device, electronic equipment and from equipment
CN102195930A (en) Security access method among equipment and communication equipment
CN107528829A (en) BMC chip, server end and its remote monitoring and administration method
CN108920653A (en) A kind of page generation method, device, server and storage medium
CN110287151A (en) Distributed memory system, method for writing data, device and storage medium
CN108665271A (en) Block chain data processing method, device, equipment and storage medium
CN108282375A (en) Computer interlocking Universal joint analogue system based on PLC series-parallel connection technologies and method
CN104184607B (en) The communication means that LKJ remote datas are loaded into
CN109981360A (en) Internet of things equipment website activating method, device, system and storage medium
CN105051692A (en) Automated failure handling through isolation
CN109286654A (en) Remote equipment debugging system and method based on serial ports
WO2018164107A1 (en) Management device, relay device, field wireless system, setting method, program, and recording medium
CN114338172B (en) Mobile network target range system and network flow attack simulation method
CN108449432A (en) Internet of Things Remote Device Control system and control method
CN102884515B (en) Serial ports re-orientation processes method, apparatus and system
CN109710479A (en) A kind of processing method and the first equipment, the second equipment
CN101551769B (en) Agglomeration method and device of configurable firmware
CN107273167B (en) Control mainboard, and device and method for burning codes into control mainboard
CN104486127A (en) Redundancy trusted server management method based on trusted management unit

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