CN109683935A - Application program updating method, apparatus, frequency converter and storage medium - Google Patents

Application program updating method, apparatus, frequency converter and storage medium Download PDF

Info

Publication number
CN109683935A
CN109683935A CN201811589859.5A CN201811589859A CN109683935A CN 109683935 A CN109683935 A CN 109683935A CN 201811589859 A CN201811589859 A CN 201811589859A CN 109683935 A CN109683935 A CN 109683935A
Authority
CN
China
Prior art keywords
upgrade
dsp
application program
programming
upgrading
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
CN201811589859.5A
Other languages
Chinese (zh)
Other versions
CN109683935B (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 Invt Electric Co Ltd
Original Assignee
Shenzhen Invt 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 Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN201811589859.5A priority Critical patent/CN109683935B/en
Publication of CN109683935A publication Critical patent/CN109683935A/en
Application granted granted Critical
Publication of CN109683935B publication Critical patent/CN109683935B/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
    • G06F8/63Image based installation; Cloning; Build to order

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 application program updating method, apparatus, frequency converter and storage medium, method includes: the upgrade information for obtaining a default upgrade file;The upgrading mode used needed for being judged according to preset rules, the upgrading mode include the first and second upgrading modes;According to upgrading mode be the first upgrading mode, upgrade file is preset to upgrade to the application program in DSP according to upgrade information and the first programming rule programming;According to upgrading mode be second upgrading mode, judge whether to meet promotion condition according to upgrade information and default upgrade rule in the first preset time;And if meet promotion condition, according to the second programming rule programming preset upgrade file to upgrade to the application program in DSP.It can solve in the method for existing upgrading DSP application program that upgrading updates the problems such as difficult, update time is too long there are troublesome in poeration, and under special occasions by implementing this programme.

Description

Application program updating method, apparatus, frequency converter and storage medium
Technical field
The present invention relates to application program updating technical field more particularly to a kind of application program updating method, apparatus, frequency conversion Device and storage medium.
Background technique
Currently, at Integrated Development Environment (Code Composer Studio, CCS), the number letter of Yao Shixian frequency converter The application program updating of number processor (Digital Signal Processing, DSP), which updates, mainly passes through combined testing It is updated for tissue interface (Joint TestAction Group, JTAG) with DSP emulator.Although utilizing jtag interface Band DSP emulator upgrade applications are easily operated, and facilitate trace debug, but when product is transferred to production mass from publication Afterwards, it for site operation personnel, is not only grasped using jtag interface band this upgrade method of DSP emulator upgrade applications It is inconvenient to make, and versatility is not strong, also greatly increases the cost of upgrade applications.In addition, digital signal processor DSP is pacified When in the environment of complicated, closing, also it is difficult to achieve the purpose that online upgrading application program by emulator;Wherein, here Online upgrading refer to do not have to DSP is removed and can directly be upgraded to DSP application program from the control panel of frequency converter, Upgraded in offline, which refers to, to be welded on control panel again after DSP first burned application program.
Realize that the online upgrading of DSP application program can also be by the peripheral hardwares guidance side such as serial ports or CAN bus communication Formula is updated upgrading, although which can solve the problem of the DSP application program updating difficulty under special occasions, but It is that the upgrade method needs to configure the pin state of DSP to select Starting mode, while needing to operate under upper computer software real It is existing, in terms of the upgrade file and setting data communication for obtaining DSP application program on require to seek dsp system There is certain electromagnetism anti-interference ability in the presence of a harsh environment;It is required in addition, the upgrade method and DSP emulator burn program upgrading Longer time is expended, is made troubles the upgrading of DSP application program.
Summary of the invention
In view of the above problems, the embodiment of the invention provides a kind of application program updating method, apparatus, frequency converter and depositing Storage media can be convenient user's operation, can also save the upgrade cost of application program, highly shortened update time, mention High upgrading efficiency.
In a first aspect, the embodiment of the invention provides a kind of application program updating methods comprising:
The upgrade information of a default upgrade file is obtained, the upgrade information is for determining required upgrading in the DSP Application program;
The upgrading mode used needed for being judged according to preset rules, the upgrading mode include the first upgrading mode and second Upgrading mode;
If the required upgrading mode used is advised for the first upgrading mode according to the upgrade information and the first programming Upgrade file is preset described in programming then to upgrade to the application program in the DSP;
If the required upgrading mode used is believed in the first preset time according to the upgrading for the second upgrading mode Breath and default upgrade rule judge whether to meet promotion condition;And
If meeting promotion condition, upgrade file is preset according to the second programming rule programming to answering in the DSP Upgraded with program.
Second aspect, the embodiment of the invention also provides a kind of application program updating devices comprising:
First acquisition unit, for obtaining the upgrade information of a default upgrade file, the upgrade information is for determining DSP In required upgrading application program;
First reads judging unit, the upgrading mode for using needed for being judged according to preset rules, the upgrading mode Including the first upgrading mode and the second upgrading mode;
First programming unit, if for the required upgrading mode used for the first upgrading mode, according to the upgrading Upgrade file is preset described in information and the first programming rule programming to upgrade to the application program in the DSP;
First upgrading judging unit, if for the required upgrading mode used for the second upgrading mode, it is pre- first If judging whether to meet promotion condition according to the upgrade information and default upgrade rule in the time;And
Second programming unit, if presetting upgrade file according to the second programming rule programming for meeting promotion condition To upgrade to the application program in the DSP.
The third aspect, the embodiment of the invention also provides a kind of frequency converter, the frequency converter includes memory and processor, Computer program is stored on the memory, the processor realizes above-mentioned first aspect when executing the computer program Method.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Storage media is stored with computer program, and the computer program includes program instruction, and described program instruction, which is worked as, to be executed by processor When can realize above-mentioned first aspect method.
The embodiment of the invention provides a kind of application program updating method, apparatus, frequency converter and storage mediums.The present invention Embodiment can effectively solve the problem that in the method for existing upgrading DSP application program there are troublesome in poeration, especially under special occasions The problems such as upgrading more new application is difficult, and update time is too long and upgrade cost is higher.The embodiment of the present invention passes through pre- If rule judges that determination is using the first upgrading mode or the second upgrading mode, if then passing through using the first upgrading mode First programming rule programming presets upgrade file to upgrade to the application program in the DSP, if using the second upgrading Mode then judges the determining demand that whether there is upgrade applications in the first preset time by presetting upgrade rule again, The demand of upgrade applications if it exists then presets upgrade file to answering in the DSP according to the second programming rule programming Upgraded with program.Implement the embodiment of the present invention, carries out updating operation convenient for user and without relying on additional means can be real The purpose of existing online upgrading DSP application program, can also save the cost of upgrade applications, when highly shortened upgrading Between, upgrading efficiency is improved, while also solving the problems, such as that DSP application program updates difficulty under special occasions.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for application program updating method that first embodiment of the invention provides;
Fig. 2 is a kind of flow diagram of the step 103 for application program updating method that first embodiment of the invention provides;
The process signal that Fig. 3 is a kind of step 103d for application program updating method that first embodiment of the invention provides Figure;
Fig. 4 is a kind of flow diagram of the step 105 for application program updating method that first embodiment of the invention provides;
Fig. 5 is a kind of flow diagram for application program updating method that second embodiment of the invention provides;
Fig. 6 is a kind of flow diagram of the step 204 for application program updating method that second embodiment of the invention provides;
Fig. 7 is a kind of schematic block diagram for application program updating device that first embodiment of the invention provides;
Fig. 8 is a kind of the schematic of the first programming unit of application program updating device that first embodiment of the invention provides Block diagram;
Fig. 9 is a kind of the schematic of the second programming unit of application program updating device that first embodiment of the invention provides Block diagram;
Figure 10 is a kind of schematic block diagram for application program updating device that second embodiment of the invention provides;
Figure 11 is a kind of the second upgrading judging unit of application program updating device that second embodiment of the invention provides Schematic block diagram;And
Figure 12 is a kind of schematic block diagram of frequency converter provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, a kind of schematic flow of its application program updating method provided for first embodiment of the invention Figure.The application program updating method may operate in digital signal processor DSP or may operate in frequency converter etc etc. In equipment configured with DSP.Specifically, which is used to update the application journey of required upgrading in upgrading DSP Sequence.As shown in Figure 1, this method may include step S101 to S106.
S101, the upgrade information for obtaining a default upgrade file, the upgrade information is for determining required liter in the DSP The application program of grade.
Specifically, acquired upgrade information is stored in first memory, and the upgrade information is for determining the DSP In required upgrading application program.In one embodiment, the upgrade information include a default upgrade file filename and First mark.In one embodiment, which is applied in a frequency converter DSP, and the first memory can Think band electric erazable programmable read-write memory (the Electrically Erasable on the frequency converter master control borad Programmable read only memory, EEPROM), i.e., acquired upgrade information is stored in eeprom memory, Wherein, acquired upgrade information, which is stored in eeprom memory, is conducive to quickly read the upgrade information and convenient for erasing The upgrade information is changed, concrete restriction is not made to the first memory herein.In addition, the program in frequency converter DSP includes bottom Layer program and application program, wherein the underlying programs are the underlying programs for realizing the application program updating method, this is answered It is the program of required operation when frequency converter DSP works with program, which is specifically used for realizing the digital signal of the DSP Processing function, wherein the DSP underlying programs and application program are separately stored in the different zones of second memory Interior, in one embodiment, the second memory can be the flash storage in dsp chip, wherein the DSP underlying programs It is stored in the sector A~E of the flash storage, which is stored in the sector F~N of the flash storage, Wherein, the initial address of the DSP underlying programs is the entry address of the flash storage, in one embodiment, if frequency converter DSP is TMS320F2807xDSP, and the entry address of flash storage is 0x80000, then the starting point of the DSP underlying programs Location is 0x80000.In addition, the DSP of different model, since the entry address of its flash storage is different, the DSP underlying programs Initial address it is also different, concrete restriction is not made to the initial address of the DSP underlying programs herein.In addition, the bottom journey of the DSP Sequence and application program can be written and read access to the eeprom memory on the frequency converter master control borad, i.e., in this implementation In example, the DSP underlying programs and application program can be read out of eeprom memory when running the upgrade information and Erasable change upgrade information.
S102, the upgrading mode used needed for being judged according to preset rules, the upgrading mode include the first upgrading mode With the second upgrading mode.
Specifically, described to judge that the required upgrading mode used, the upgrading mode include first liter according to preset rules The step of grade mode and the second upgrading mode includes step A~B:
The step A: the second mark is read from second memory;And
The step B: according to the upgrading mode used needed for read second mark judgement, wherein second mark Will includes the first preset value and the second preset value, the corresponding first upgrading mode of first preset value, second preset value Corresponding second upgrading mode.
Specifically, second mark is located in the second memory, in one embodiment, such as in the present embodiment, The application program updating method is applied in a frequency converter DSP, and the second memory can be deposited for the Flash in dsp chip Reservoir, specifically, in one embodiment, if frequency converter DSP is TMS320F2807xDSP, distributing initial address is 0x81FFE Two word locations come store this second mark, wherein the DSP of different model, distribution be used to store this second mark rise Beginning address is also different, does not make concrete restriction to the initial address of the second memory and the second mark storage herein.Specifically Ground is in the present embodiment that second mark is read in 0x81FFE from the address of the flash storage in dsp chip, described Second mark includes the first preset value and the second preset value, the corresponding first upgrading mode of first preset value, and described second The corresponding second upgrading mode of preset value, wherein " 0 " can be used as the first preset value, " 1 " is used as the second preset value, that is, is worked as Program flash storage out of DSP piece, which is read, to be determined to read the using the first upgrading mode when the second mark is " 0 " Two marks determine not pre- to the first preset value and second of second mark herein using the second upgrading mode when being " 1 " If value makees concrete restriction, wherein the first upgrading mode is corresponding for the DSP application program that DSP underlying programs are crossed in never programming Upgrading mode, which is then the corresponding upgrading side of DSP application program that DSP underlying programs are crossed in programming Formula, in the present embodiment, i.e., described second mark pass through reading for judging whether DSP underlying programs are crossed in programming to the DSP Second mark, which may determine that, determines that the DSP application program upgrades mode accordingly.
If S103, the required upgrading mode used is the first upgrading modes, according to the upgrade information and first Upgrade file is preset described in programming rule programming to upgrade to the application program in the DSP.
Specifically, in one embodiment, if the second mark read from second memory is the first preset value, show The DSP is that programming for the first time loads the DSP underlying programs, that is, is demonstrated the need for using the first upgrading mode, therefore, it is necessary to according to first Programming rule programming presets upgrade file to upgrade to the application program in the DSP.Second mark is not made herein Concrete restriction.
In one embodiment, the upgrade information includes the filename and the first mark of default upgrade file;If described The required upgrading mode used is the first upgrading mode, according to the upgrade information and the first programming rule programming Default upgrade file includes the first programming upgrade method to carry out upgrading to the application program in the DSP.The first programming liter Grade method, as shown in Fig. 2, i.e. step S103 includes sub-step S103a to S103h.Wherein, S103a, in the second preset time Detect whether that there are movable memory equipments;If S103b, detecting movable memory equipment, carry in the second preset time Preset document system;S103c, it is set according to the preset document system of the filename and institute's carry reading removable Storage Standby interior default upgrade file corresponding with the filename;S103d, the default upgrade file is burnt by calling programming function It writes in second memory to upgrade to the application program in the DSP;S103e, programming result value of statistical indicant is generated; S103f, it is the programming result value of statistical indicant by first flag set and saves;S103g, it is by second flag set Second preset value simultaneously saves;And S103h, if it is determined that in the second preset time detection set there is no the removable Storage It is standby, then jump the application program executed in DSP.
Specifically, in one embodiment, which is applied in a frequency converter DSP, described removable Storing equipment includes the movable memory equipments such as USB flash disk, mobile hard disk, and the step S103a includes step C~G:
The step C: judge current time whether in the second preset time;
The step D: if current time in the second preset time, detects whether that there are movable memory equipments;And
The step E: the movable memory equipment if it exists then determines in the second preset time described in detection presence Movable memory equipment;
The step F: the movable memory equipment if it does not exist then determines to detect in the second preset time to be not present The movable memory equipment;
The step G: if not in the second preset time, the application program executed in DSP is jumped.
Specifically, second preset time can be 10 seconds, 20 seconds, 30 seconds, for example, if the second preset time is 10 Second, when the movable memory equipment equipment is not detected, dsp system starts self-clocking, and then is sentenced by count value Disconnected timing time judges timing time whether in 10 seconds, if 10 whether in the second preset time by count value There are the movable memory equipments for detection in second, then determine that there are the removable Storages to set for detection in the second preset time Step S103b is executed automatically while standby, i.e., automatic carry preset document system;If still fail to detect in 10 seconds it is described can Movable storage device then determines that the movable memory equipment is not present in detection in the second preset time;And if not 10 In second, then the application program executed in DSP is jumped automatically.In the present embodiment, whether timing time is judged by count value It, can be effectively save to carry out time control to the whole process for detecting the movable memory equipment in the second preset time Update time prevents from causing update time too long due to also persistently detection after it can't detect the movable memory equipment The problem of, and persistently carry out detection and will lead to the DSP and rest on waiting upgrade status always, and largely effect on the DSP just Normal working condition, therefore, if detection there is no the movable memory equipment or exceeds second in advance in the second preset time If the time, then it directly jumps and executes the DSP application program, terminate this upgrading task.Wherein, carry default file system The step of system, which is specifically as follows, registers the corresponding driving of the movable memory equipment and is loaded into the preset document system In, to allow the preset document system to know the presence of the movable memory equipment, and the preset document system can lead to It crosses and the file manipulation function interface in library is called to operate the movable memory equipment.
In one embodiment, the preset document system can be FatFS file system, and FatFS file system is one General FAT (File Allocation the Table)/exFAT file system module designed for small embedded systems.FatFS Writing for module follows ANSIC, and is kept completely separate completely with magnetic disc i/o layer.Therefore, its independent (not depending on) is in hardware frame Structure, it can be embedded in the microcontroller of low cost, such as in the microcontrollers such as AVR, 8051, PIC, ARM, Z80,68K, Without making any modification.Therefore, in one embodiment, the preset document system is FatFS file system, the step S103b is specially to create file path so that the FatFS is file system mounted into the file path created.Wherein, it hangs It when carrying the FatFS file system, needs to specify a FatFS variable, optionally, the static overall situation can be used in FatFS variable Variable.
In one embodiment, described that described move is read according to the preset document system of the filename and institute's carry Storing default upgrade file corresponding with the filename in equipment includes default upgrade file read method.The default upgrading text Part read method, as shown in figure 3, i.e. step S103c includes sub-step S103c1 to S103c2.Wherein, S103c1, according to Filename determines default liter corresponding with the filename from the multiple default files saved in the movable memory equipment Grade file;And S103c2, by the preset document system of institute's carry by identified default upgrade file according to circulation in batches Rule is read to read in third memory.
Specifically, in one embodiment, such as in the present embodiment, multiple default texts are preserved in the movable memory equipment Part, wherein multiple default file is the upgrade file of application program, and multiple upgrade file is the text of bin hex format Part first passes through the DSP application file that CCS Project compiling generates out format, and then again will in one embodiment in advance The DSP application file of the out format is converted into the file of hex format by hex2000 tool, then by the hex format File is stored into the movable memory equipment.Specifically, by be used to update upgrade the DSP application program program instruction lead to Cross the file for generating after CCS Project compiling link and there is modularization format, wherein there is the file of modularization format to be for this Out formatted file, the out formatted file cannot directly programming into flash storage, need to convert thereof into Flash storage The file of out format, i.e., is converted to the file of bin hex format by the data format file that device can identify, the present invention is real The conversion that example carries out file format using hex2000.exe tool is applied, the tool of the convert file formats is not made herein specific Limitation.
In one embodiment, the upgrade information includes the filename and the first mark of a default upgrade file, therefore, It can be corresponded in multiple default files by the filename of acquired default upgrade file and find the default upgrade file, And then again rule is read according to circulation by the FatFS file system of institute's carry in batches and be read out, wherein the filename can To be directly inputted by user and be stored in the first memory, can also by user multiple optional default files text The filename input of a default upgrade file is selected in part name, the reading rule in batches that recycles is that the default upgrade file is sharp Certain data volume is repeatedly read with for Do statement circulation, until the default upgrade file reading is finished.Specifically, it utilizes The n byte data that the preset document system of institute's carry reads the default upgrade file from the movable memory equipment is stored to institute It states in third memory;For Do statement is reused, wherein showing m bit byte number after the $ A byte if there is such as $ A byte According to the address value for second memory, corresponding read of the address value need to be stored in the third memory;This has been deposited in reading After address value, which is continued into reading and is stored in the third memory, wherein with every a Byte data is as 1 group;Above-mentioned read operation is repeated until reading from the default upgrade file of the movable memory equipment The number of characters arrived is less than n byte data, when the number of characters read is less than n byte, then it represents that this is preset upgrade file and is read It takes complete.In one embodiment, which can be the RAM memory in dsp chip, i.e., this is preset upgrade file It reads in the RAM memory kept in dsp chip.
In one embodiment, the step 103d is specifically included: programming function is called out of Flash API function library, then By the programming function of the calling by the default upgrade file from programming is used in temporary third memory to the second storage To upgrade to the application program in the DSP in device, wherein the third memory can be the RAM storage in dsp chip Device, the second memory can be the flash storage in dsp chip.
In one embodiment, two kinds of programmings are likely to occur after executing the step S103d as a result, a kind of is programming success, Another kind is that programming is failed, therefore, it is necessary to generate the corresponding value of statistical indicant of programming result, such as " 0 " can be used as programming " 3 " can be used as the unsuccessful corresponding value of statistical indicant of programming, wherein liter acquired in step S101 by the corresponding value of statistical indicant of success Whether to need the upgrading mark of upgrading DSP application program, which is inputted by user for the first mark in grade information, can be with Customized setting is carried out in advance according to user's practical application request, for example, the value of statistical indicant that first mark can be arranged in advance is " 1 " and " 0 " specifically can be by " 1 " as the corresponding value of statistical indicant of the first mark for needing to upgrade DSP application program, can Using by " 0 " as the corresponding value of statistical indicant of the first mark for not needing upgrading DSP application program, i.e., when the first acquired mark Then to demonstrate the need for upgrading DSP application program when " 1 ".Wherein, when generate the programming result value of statistical indicant after, need by this first Flag set is the programming result value of statistical indicant and saves, for example, burning if first mark is " 1 " when this presets upgrade file After being write as function, which is automatically " 0 " by DSP, shows the default upgrade file programming success, i.e. DSP application Program upgrades successfully, and when reading again first mark is " 0 ", does not need to upgrade the DSP application program, if with Family needs to upgrade DSP application program, it is only necessary to which it is " 1 " that first mark, which is inputted set,.If first mark is " 1 ", When this preset upgrade file programming it is unsuccessful after, which is automatically " 3 " by DSP, shows the default upgrade file Programming is unsuccessful, i.e., the DSP application program updating is unsuccessful, when reading again first mark is " 3 ", can prompt to use The family DSP application program updating is unsuccessful, can also directly programming default upgrade file it is interior to institute to the second memory It states application program in DSP to be upgraded again, be not particularly limited herein.Wherein, the first mark in the upgrade information can be more Secondary write-in, user can be modified according to their needs.
In one embodiment, when by default upgrade file programming to the corresponding position of DSP application program, needing should The corresponding set of second mark is the second preset value and saves, wherein before second mark is still stored in second flag set In storage location, and second mark is for judging whether the marks of DSP underlying programs is crossed in programming to the DSP, second mark Set write-in is primary, continues to have later, and user can not change second mark, therefore, can use second mark read Will is the first preset value or the second preset value to judge whether programming loaded underlying programs and application program to the DSP, if Never programming loaded underlying programs, then upgraded the application program in the DSP using the first upgrading mode;If programming loaded bottom Layer program, then upgrade the application program in the DSP using the second upgrading mode.
If S104, the required upgrading mode used is the second upgrading modes, in the first preset time according to Upgrade information and default upgrade rule judge whether to meet promotion condition.
Specifically, in one embodiment, if read second mark is the second preset value, show that the DSP is not Programming for the first time loads the DSP underlying programs, that is, demonstrate the need for using the second upgrading mode with to the application program in the DSP into Row upgrading, does not make concrete restriction to second mark herein, wherein needs before using the second upgrading mode default first Judge to determine whether the DSP currently needs to upgrade DSP application program according to default upgrade rule in time.Wherein, the default liter Grade rule includes that timing time is judged by count value whether in the first preset time, i.e., the first root in the first preset time According to the first mark in acquired upgrade information to determine whether there are the demand of upgrade applications, risen when determining to be not present When the demand of level application, then further according to whether there is debugging upgrade command, if it exists the demand of upgrade applications or There are upgrade commands by person, then meet promotion condition.Wherein, this entirely determine whether to upgrading DSP application program process it is equal It needs to complete in the first preset time of timing, directly jumping execution if having exceeded first preset time and not completing should also DSP application program.Wherein, which is the upgrading mark of the DSP application program, for example, can indicate to be not required to rise with " 0 " Grade, user " 1 " indicate to need to upgrade, i.e., then show not needing to rise in the first preset time when the first mark of reading is " 0 " Grade DSP application program;Then show to need to upgrade DSP application journey in the first preset time when the first mark of reading is " 1 " Sequence.In addition, first mark is inputted by user and is stored in first memory.First preset time can for 3 seconds, 5 seconds, 10 seconds, concrete restriction is not made to first preset time herein.
If S105, meeting promotion condition, upgrade file is preset to answering in the DSP according to the second programming rule programming Upgraded with program.
Specifically, in one embodiment, the upgrade information includes the filename and the first mark of default upgrade file; If described meet promotion condition, according to the second programming rule programming preset upgrade file with to the application program in the DSP into Row upgrading includes the second programming upgrade method.The second programming upgrade method, as shown in figure 4, i.e. step S105 includes sub-step S105a to S105h.Wherein, if S105a, meeting promotion condition, detect whether that there are removable Storages in the second preset time Equipment;If S105b, detecting movable memory equipment, carry preset document system in the second preset time;S105c, basis The preset document system of the filename and institute's carry reads corresponding with the filename in the movable memory equipment Default upgrade file;S105g, the DSP application program stored in second memory is wiped by calling erasing function;S105d, lead to Cross call programming function by the default upgrade file programming to the second memory with to the application program in the DSP into Row upgrading;S105e, programming result value of statistical indicant is generated;S105f, by first flag set be the programming result value of statistical indicant And it saves;And S105h, if it is determined that in the second preset time detection be not present the movable memory equipment, then jump and hold Application program in row DSP.
Wherein, the step S103a in step S105a to S105f and S105h and above-mentioned steps S103 embodiment is extremely S103f and step S103h are similar, and details are not described herein.The following detailed description of the step S105f in this step S105.
In one embodiment, which is applied in a frequency converter DSP, when the DSP never programming adds Underlying programs and application program were carried, then is not stored with the DSP on the second memory for storing DSP application program and answers With program, the default upgrade file programming of the DSP application program directly is used to store the second storage of DSP application program to this Application program in the DSP can be upgraded on device;When the DSP programming loaded underlying programs and using journey Sequence, then programming is stored with the DSP application program on the second memory for storing DSP application program, and therefore, it is necessary to will After the DSP application program is wiped out using erasing function, the default upgrade file programming of the corresponding DSP application program could be arrived This is used to store the second memory of DSP application program, to upgrade to the application program in the DSP.Wherein, the wiping Except function is called out of Flash API function library.
S106, if it is determined that be not required in first preset time or in the first preset time upgrading DSP application journey Sequence jumps the application program executed in DSP.
Specifically, the process for entirely determining whether to upgrading DSP application program is required to complete in the first preset time, It is directly jumped if having exceeded first preset time and not completing also and executes the DSP application program;If current time is pre- first If also directly jumping in the time it is determined that when determination does not need to upgrade DSP application program again and executing the DSP application program.
In the above-described embodiments, the upgrading mode that this programme uses needed for being determined by preset rules judgement, the upgrading side Formula includes that the first upgrading mode and the second upgrading mode if the required upgrading mode used is the first upgrading mode pass through the One programming rule programming presets upgrade file to upgrade to the application program in the DSP, if the upgrading side of required use Formula is the second upgrading mode, then judges to determine whether there is upgrade application by default upgrade rule in the first preset time The demand of program, the demand of upgrade applications, then preset upgrade file to institute according to the second programming rule programming if it exists The application program stated in DSP is upgraded.Implementing the embodiment of the present invention can effectively solve the problem that the side of existing upgrading DSP application program There are troublesome in poeration in method, especially upgrade more new application difficulty under special occasions, and update time is too long, Yi Jisheng The problems such as grade higher cost, carries out updating operation convenient for user and online upgrading DSP application journey can be realized without additional means Sequence can also save the cost of upgrade applications, highly shortened update time, improve upgrading efficiency, promote user Experience effect.
Referring to Fig. 5, a kind of schematic flow of its application program updating method provided for second embodiment of the invention Figure.As shown in figure 5, this method may include step S201 to S209.Wherein in step S201 to step S206 and above-described embodiment Step S101 it is similar to step S106, details are not described herein.The following detailed description of in the present embodiment increase step S207 To S209.
Step S207, it receives the upgrade information of a default upgrade file of user's input and is saved in first memory, The upgrade information includes the filename and the first mark of default upgrade file.
Specifically, in one embodiment, which is applied in a frequency converter DSP, which includes bottom Layer program and application program, wherein the underlying programs are the correspondence program of the application program updating method, the underlying programs with And application program can be written and read access to the eeprom memory on the frequency converter master control borad.In operation frequency converter When DSP application program, saved by the upgrade information and being written in EEPROM that external keyboard receives user's input, wherein specific Ground, the write-in save upgrade information can for the first mark be 1 and one default upgrade file filename, in the present embodiment In, which is eeprom memory.
Step S208, detect whether that there are reset instructions.Specifically, in one embodiment, in real-time detection frequency converter DSP Portion whether there is reset instruction, and reset instruction then executes reset instruction to the DSP if it exists, and reset instruction if it does not exist then should Frequency converter DSP is worked normally.
Step S209, reset instruction if it exists, to DSP software reset, wherein the software reset includes house dog It resets and programming jump resets.
Specifically, in one embodiment, described to be reset to watchdog reset.It executes after resetting, i.e., applies program from DSP It is jumped at program at the entry address 0x80000 of DSP underlying programs, and then executes the underlying programs in the DSP Application program is upgraded.
In addition, the upgrade information that upgrade file is preset in the acquisition one in step S201 specifically includes:
The upgrade information of the default upgrade file is obtained from the first memory.
In the above-described embodiments, this programme receives the upgrade information of a default upgrade file of user's input and is saved in the In one memory, the upgrade information includes the filename and the first mark of default upgrade file, and detects whether to exist multiple Bit instruction, reset instruction if it exists, to DSP software reset.This programme uses needed for also being determined by preset rules judgement Upgrading mode, which includes the first upgrading mode and the second upgrading mode, if the required upgrading mode used is the One upgrading mode, then by the default upgrade file of the first programming rule programming to upgrade to the application program in the DSP, If the required upgrading mode used is judged really in the first preset time by default upgrade rule for the second upgrading mode Surely it whether there is the demand of upgrade applications, if it exists the demand of upgrade applications, then according to the second programming rule programming Upgrade file is preset to upgrade to the application program in the DSP.Implementing the present invention can effectively solve the problem that existing upgrading DSP There are troublesome in poeration in the method for application program, when especially upgrading more new application difficulty under special occasions, and upgrading Between too long and upgrade cost it is higher the problems such as, carry out updating operation convenient for user and can be realized online without additional means Upgrade DSP application program, the cost of upgrade applications can also be saved, highly shortened update time, improve upgrading Efficiency promotes user experience effect.
In one embodiment, referring to Fig. 6, it is a kind of application program updating method that second embodiment of the invention provides Step 204 flow diagram, if as shown in fig. 6, the required upgrading mode used in the step 204 is described second Upgrading mode judges whether to meet promotion condition in the first preset time according to the upgrade information and default upgrade rule The step of specifically include following steps S204a-S204e.
S204a, judge current time whether in the first preset time.
Specifically, judge to determine the present timing time by count value whether in the first preset time, if current meter When the time in the first preset time, can be performed step S204b, if not existing, directly jump execute the DSP application program.Institute Stating the first preset time can be 3 seconds, 5 seconds, 10 seconds, not make concrete restriction to first preset time herein, and described first is pre- If the time can carry out customized setting according to practical application request by user.
If S204b, current time judge whether there is upgrade application in the first preset time, according to first mark The demand of program.
The demand of S204c, if it does not exist upgrade applications then judges the serial ports of the DSP with the presence or absence of upgrade command.
Specifically, in one embodiment, the upgrade command can be inputted by 485 communications, and be received by corresponding serial ports.
The demand of S204d, if it exists upgrade applications or there are upgrade command, then determine to meet promotion condition;If no There are upgrade command, returns to execute and described judge current time whether the first preset time the step of.
If S204e, not in the first preset time, the application program executed in DSP is jumped.
Specifically, the process for entirely determining whether to upgrading DSP application program is required to complete in the first preset time, If have exceeded first preset time also do not complete if directly jump execute the DSP application program, can effectively save upgrading when Between, it even has not determined whether to upgrade the DSP application program beyond the first preset time, then directly jumps and execute the DSP and answer With program, terminate this upgrading task, wait receive reset instruction next times, judge determine need to upgrade the DSP application program it It executes again afterwards and upgrades the DSP application program task.
Referring to Fig. 7, a kind of schematic frame of its application program updating device 100 provided for first embodiment of the invention Figure.As shown in fig. 7, the application program updating device 100 corresponds to application program updating method shown in FIG. 1.The application program Update device 100 includes the unit for executing above-mentioned application program updating method, which can be by It is configured in digital signal processor (DSP), or is configured at frequency converter etc etc. in the equipment configured with DSP.Specifically, should Application program updating device 100 can be configured for updating the application program for needing to upgrade in upgrading DSP.Referring to Fig. 7, should Application program updating device 100 includes the regular judging unit 102 of first acquisition unit 101, first, the first programming unit 103, the One upgrading judging unit 104, the second programming unit 105 and the first jump execution unit 106.
The first acquisition unit 101 is used to obtain the upgrade information of a default upgrade file, and the upgrade information is used for Determine the application program of required upgrading in the DSP.
Specifically, acquired upgrade information is stored in first memory, specifically, in one embodiment, the application Programme upgrade method is applied in a frequency converter DSP, and the first memory can be on the frequency converter master control borad Eeprom memory.
The upgrading mode that described first regular judging unit 102 uses needed for being used to be judged according to preset rules, the liter Grade mode includes the first upgrading mode and the second upgrading mode.
Specifically, the first regular judging unit 102 is used to read the second mark from second memory;And it is used for basis The upgrading mode used needed for read second mark judgement, wherein second mark includes the first preset value and the Two preset values, the corresponding first upgrading mode of first preset value, the corresponding second upgrading mode of second preset value.
If the first programming unit 103 upgrades mode for the required upgrading mode used for described first, according to institute It states and presets upgrade file described in upgrade information and the first programming rule programming to rise to the application program in the DSP Grade.
In one embodiment, as shown in figure 8, the first programming unit 103 includes: the first equipment detection unit 103a, first Carry unit 103b, the first reading unit 103c, the first programming subelement 103d, the first generation unit 103e, the first set list First 103f, the second set unit 103g and first, which are jumped, executes subelement 103h.Wherein the first equipment detection unit 103a is used In detecting whether that there are movable memory equipments in the second preset time;First carry unit 103b, if for pre- second If detecting movable memory equipment in the time, carry preset document system;First reading unit 103c, for according to the text Part name and the preset document system of institute's carry read default liter corresponding with the filename in the movable memory equipment Grade file;First programming subelement 103d, for by calling programming function to deposit the default upgrade file programming to second To upgrade to the application program in the DSP in reservoir;First generation unit 103e, for generating programming result mark Value;First set unit 103f, for being the programming result value of statistical indicant by first flag set and saving;Second set Unit 103g, for being the second preset value by second flag set and saving;And first jump execute subelement 103h, For the movable memory equipment to be not present if it is determined that detecting in the second preset time, then the application executed in DSP is jumped Program.
In one embodiment, when the first equipment detection unit 103a is specifically used for judging present timing by count value Between whether in the second preset time;If detecting whether that there are movable memory equipments in the second preset time;For The movable memory equipment if it exists then determines that there are the movable memory equipments for detection in the second preset time;With In the movable memory equipment if it does not exist, then determine that detection is set there is no the removable Storage in the second preset time It is standby;If being also used in the second preset time, not jump the application program executed in DSP.
In one embodiment, the first carry unit 103b is used for automatic carry preset document system, and being specifically used for will The corresponding driving of the movable memory equipment is registered and is loaded into the preset document system, to allow the default file system System knows the presence of the movable memory equipment, and the preset document system can be by calling the file in library to grasp The movable memory equipment is operated as function interface.Wherein, the movable memory equipment includes USB flash disk, mobile hard disk etc. Movable memory equipment, the preset document system can be FatFS file system.
In one embodiment, the first reading unit 103c further includes determination unit 103c1 and reading subunit 103c2.Wherein, the determination unit 103c1 is more for being saved from the movable memory equipment according to the filename Default upgrade file corresponding with the filename is determined in a default file;The reading subunit 103c2, for passing through Identified default upgrade file is read rule according to circulation in batches and reads third memory by the preset document system of carry It is interior.
In one embodiment, the first programming subelement 103d is specifically used for calling out of Flash API function library and burn Write function;And for the programming function by the calling by the default upgrade file out of third memory programming to second To upgrade to the application program in the DSP in memory.
If the first upgrading judging unit 104 upgrades mode for the required upgrading mode used for described second, Judge whether to meet promotion condition according to the upgrade information and default upgrade rule in first preset time.
If the second programming unit 105 is for meeting promotion condition, according to the default upgrading text of the second programming rule programming Part is to upgrade the application program in the DSP.
In one embodiment, as shown in figure 9, the second programming unit 105 includes: the second equipment detection unit 105a, second Carry unit 105b, the second reading unit 105c, the second programming subelement 105d, the second generation unit 105e, third set list First 103f, erasing unit 105g and second are jumped and are executed subelement 103h.Wherein the second equipment detection unit 105a, if for Meet promotion condition, detects whether that there are movable memory equipments in the second preset time;Second carry unit 105b, is used for If detecting movable memory equipment in the second preset time, carry preset document system;Second reading unit 105c, is used for According to the preset document system of the filename and institute's carry read in the movable memory equipment with the filename pair The default upgrade file answered;Unit 105g is wiped, for answering by calling erasing function to wipe the DSP stored in second memory Use program;Second programming subelement 105d, for by call programming function by the default upgrade file programming to this second To upgrade to the application program in the DSP in memory;Second generation unit 105e, for generating programming result mark Value;Third set unit 105f, for being the programming result value of statistical indicant by first flag set and saving;And second It jumps and executes subelement 105h, be used for if it is determined that the movable memory equipment is not present in detection in the second preset time, then Jump the application program executed in DSP.
In one embodiment, the erasing unit 105g is specifically used for calling erasing function out of Flash API function library; And for wiping the DSP application program stored in second memory by the erasing function of the calling.
First jump execution unit 106 is used for if it is determined that not in first preset time or when first is default It is interior to be not required to upgrading DSP application program, jump the application program executed in DSP.
It should be noted that it is apparent to those skilled in the art that, above-mentioned application program updating device 100 and each unit specific implementation process and effect, can be with reference to the corresponding description in preceding method embodiment, in order to describe It is convenienct and succinct, details are not described herein.
Referring to Fig. 10, it is a kind of the schematic of application program updating device 200 that second embodiment of the invention provides Block diagram.As shown in Figure 10, which corresponds to application program updating method shown in fig. 5.Wherein, originally A kind of application program updating device 200 that invention second embodiment provides is to increase information on the basis of the above embodiments to connect Unit 207, reset instruction detection unit 208 and reset unit 209 are received, i.e. described device 200 includes second acquisition unit 201, Second Rule judging unit 202, third programming unit 203, second upgrade judging unit 204, the 4th programming unit 205, Second jump execution unit 206, information receiving unit 207, reset instruction detection unit 208 and reset unit 209.Wherein, Second acquisition unit 201, Second Rule judging unit 202, third programming unit 203, second upgrade judging unit the 204, the 4th Programming unit 205 and the second jump execution unit 206 are sentenced with first acquisition unit 101, the first rule in above-described embodiment Disconnected unit 102, the first programming unit 103, first upgrading judging unit 104, the second programming unit 105 and first jump execution Unit 106 is similar, since its application process and corresponding function are similar with unit corresponding in above-described embodiment, herein no longer It repeats.
The information receiving unit 207 is used to receive the upgrade information of a default upgrade file of user's input and is saved in In first memory, the upgrade information includes the filename and the first mark of default upgrade file.
The reset instruction detection unit 208 is for detecting whether there are reset instructions.
The reset unit 209 is used for reset instruction if it exists, to DSP software reset, wherein the software reset It is resetted including watchdog reset and programming jump.
Wherein, the second acquisition unit 201 from the first memory for obtaining the default upgrade file Upgrade information.
In one embodiment, as shown in figure 11, the second upgrading judging unit 204 includes: time judging unit 204a, mark Judging unit 204b, command determination unit 204c, determine upgrade unit 204d and return unit 204e.
The time judging unit 204a, for judging current time whether in the first preset time.
Indicate judging unit 204b, if judging for current time in the first preset time according to first mark With the presence or absence of the demand of upgrade applications.
Demand of the command determination unit 204c for upgrade applications if it does not exist, then judge that the serial ports of the DSP is It is no that there are upgrade commands.
Determine upgrade unit 204d, for upgrade applications if it exists demand or there are upgrade commands, then meet liter Grade condition.
Return unit 204e, for upgrade command if it does not exist, whether return execution is described judges current time first The step of preset time.
Wherein, it if second jump execution unit 206 is also used to not in the first preset time, jumps and executes in DSP Application program.
It should be noted that it is apparent to those skilled in the art that, above-mentioned application program updating device 200 and each unit specific implementation process and effect, can be with reference to the corresponding description in preceding method embodiment, in order to describe It is convenienct and succinct, details are not described herein.
Above system can be implemented as a kind of form of computer program, which can be as shown in figure 12 It is run on frequency converter.
Figure 12 is please referred to, is a kind of schematic block diagram of frequency converter provided in an embodiment of the present invention.The frequency converter 600 packet Include 602, memory digital signal processor (Digital Signal Processor, DSP) connected by system bus 601 And communication interface 605, wherein memory may include non-volatile memory medium 603 and built-in storage 604.
The non-volatile memory medium 603 can storage program area 6031 and computer program 6032.The computer program 6032 include program instruction, which is performed, and dsp processor 602 may make to execute a kind of application program updating side Method, wherein the application program updating method specifically can be used for updating the application journey for upgrading required upgrading in the processor 602 Sequence.
The built-in storage 604 provides environment for the operation of the computer program 6032 in non-volatile memory medium 603, should When computer program 6032 is executed by processor 602, processor 602 may make to execute a kind of application program updating method.
The communication interface 605 with other equipment for being communicated.It will be understood by those skilled in the art that being shown in Figure 12 Structure, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to it to application scheme On frequency converter 600 restriction, specific frequency converter 600 may include than more or fewer components as shown in the figure or group Certain components are closed, or with different component layouts.
Wherein, the dsp processor 602 is for running computer program 6032 stored in memory, to realize such as The upper application program updating method.
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that can be completed by computer program.The computer program includes program instruction, and computer program can be stored in a storage In medium.The program instruction is executed by least one processor in the computer system, to realize the embodiment of the above method Process step.
Therefore, the present invention also provides a kind of computer readable storage mediums.The computer-readable recording medium storage has meter Calculation machine program, wherein computer program includes program instruction.The program instruction executes processor when being executed by processor as above The application program updating method.
The storage medium can be flush memory device (Flash Memory, Flash), USB flash disk, mobile hard disk, read-only storage The various storage mediums that can store program code such as device (Read-OnlyMemory, ROM), magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can specifically realize described function to each using distinct methods, but this realization is not answered Think beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed system and method can pass through it Its mode is realized.For example, system embodiment described above is only schematical.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment system can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a frequency converter (can be other to match It is equipped with the embedded device etc. of DSP) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of application program updating method is applied in DSP characterized by comprising
The upgrade information of a default upgrade file is obtained, the upgrade information is used to determine the application of required upgrading in the DSP Program;
The upgrading mode used needed for being judged according to preset rules, the upgrading mode include the first upgrading mode and the second upgrading Mode;
If the required upgrading mode used is burnt for the first upgrading mode according to the upgrade information and the first programming rule The default upgrade file is write to upgrade to the application program in the DSP;
If the required upgrading mode used for it is described second upgrading mode, in the first preset time according to the upgrade information with And default upgrade rule judges whether to meet promotion condition;And
If meeting promotion condition, upgrade file is preset according to the second programming rule programming to the application journey in the DSP Sequence is upgraded.
2. application program updating method according to claim 1, which is characterized in that one default upgrade file of the acquisition Upgrade information, before the upgrade information is for the step of determining the application program of required upgrading in the DSP, further includes:
It receives the upgrade information of a default upgrade file of user's input and is saved in first memory, the upgrade information packet Include the filename and the first mark of default upgrade file;
Detect whether that there are reset instructions;
Reset instruction if it exists, to DSP software reset, wherein the software reset includes watchdog reset and program Jump reset;And
The step of upgrade information for obtaining a default upgrade file, comprising:
The upgrade information of the default upgrade file is obtained from the first memory.
3. application program updating method according to claim 2, which is characterized in that if the upgrading mode of the required use For the second upgrading mode, judged whether completely in the first preset time according to the upgrade information and default upgrade rule Sufficient promotion condition, comprising:
Judge current time whether in the first preset time;
If in the first preset time, the need of upgrade applications are judged whether there is according to first mark for current time It asks;
The demand of upgrade applications if it does not exist then judges the serial ports of the DSP with the presence or absence of upgrade command;
The demand of upgrade applications or there are upgrade command if it exists, then determine to meet promotion condition;
Upgrade command if it does not exist, return execute it is described judge current time whether the step in the first preset time;And
If jumping the application program executed in the DSP not in the first preset time.
4. application program updating method according to claim 1, which is characterized in that it is described judged according to preset rules needed for The upgrading mode of use, the upgrading mode include the first upgrading mode and the second upgrading mode, comprising:
The second mark is read from second memory;And
According to the upgrading mode used needed for read second mark judgement, wherein second mark includes first default Value and the second preset value, first preset value correspond to described first and upgrade mode, and second preset value corresponds to described the Two upgrading modes.
5. application program updating method according to claim 1, which is characterized in that the upgrade information includes default upgrading The filename of file and the first mark;
If the required upgrading mode used is advised for the first upgrading mode according to the upgrade information and the first programming Upgrade file is preset described in programming then to upgrade to the application program in the DSP, comprising:
Detect whether that there are movable memory equipments in the second preset time;
If detecting movable memory equipment in the second preset time, carry preset document system;
According to the preset document system of the filename and institute's carry read in the movable memory equipment with the file The corresponding default upgrade file of name;
By call programming function by the default upgrade file programming to second memory to the application journey in the DSP Sequence is upgraded;
Generate programming result value of statistical indicant;
It is the programming result value of statistical indicant by first flag set and saves;And
It is the second preset value by second flag set and saves.
6. application program updating method according to claim 1, which is characterized in that the upgrade information includes default upgrading The filename of file and the first mark;
If described meet promotion condition, upgrade file is preset according to the second programming rule programming to answering in the DSP Upgraded with program, comprising:
If meeting promotion condition, detect whether that there are movable memory equipments in the second preset time;
If detecting movable memory equipment in the second preset time, carry preset document system;
According to the preset document system of the filename and institute's carry read in the movable memory equipment with the file The corresponding default upgrade file of name;
By calling erasing function to wipe the DSP application program stored in second memory;
By call programming function by the default upgrade file programming to the second memory to answering in the DSP Upgraded with program;
Generate programming result value of statistical indicant;And
It is the programming result value of statistical indicant by first flag set and saves.
7. application program updating method according to claim 5 or 6, which is characterized in that it is described according to the filename with And the preset document system of institute's carry reads default upgrade file corresponding with the filename in the movable memory equipment, Include:
It is determined and the filename from the multiple default files saved in the movable memory equipment according to the filename Corresponding default upgrade file;And
Identified default upgrade file rule is read according to circulation in batches by the preset document system of institute's carry to read In third memory.
8. a kind of application program updating device characterized by comprising
First acquisition unit, for obtaining the upgrade information of a default upgrade file, the upgrade information is for determining institute in DSP The application program that need to upgrade;
First reads judging unit, the upgrading mode for using needed for being judged according to preset rules, and the upgrading mode includes First upgrading mode and the second upgrading mode;
First programming unit, if for the required upgrading mode used for the first upgrading mode, according to the upgrade information And first preset upgrade file described in programming rule programming to upgrade to the application program in the DSP;
First upgrading judging unit, if for the required upgrading mode used for the second upgrading mode, when first is default It is interior to judge whether to meet promotion condition according to the upgrade information and default upgrade rule;And
Second programming unit, if presetting upgrade file according to the second programming rule programming for meeting promotion condition with right Application program in the DSP is upgraded.
9. a kind of frequency converter, which is characterized in that the frequency converter includes memory and processor, and meter is stored on the memory Calculation machine program, the processor is realized when executing the computer program applies journey as of any of claims 1-7 Sequence upgrade method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program can be realized when being executed by a processor such as application program liter of any of claims 1-7 Grade method.
CN201811589859.5A 2018-12-25 2018-12-25 Application program upgrading method and device, frequency converter and storage medium Active CN109683935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811589859.5A CN109683935B (en) 2018-12-25 2018-12-25 Application program upgrading method and device, frequency converter and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811589859.5A CN109683935B (en) 2018-12-25 2018-12-25 Application program upgrading method and device, frequency converter and storage medium

Publications (2)

Publication Number Publication Date
CN109683935A true CN109683935A (en) 2019-04-26
CN109683935B CN109683935B (en) 2022-10-11

Family

ID=66189382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811589859.5A Active CN109683935B (en) 2018-12-25 2018-12-25 Application program upgrading method and device, frequency converter and storage medium

Country Status (1)

Country Link
CN (1) CN109683935B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110879717A (en) * 2019-11-27 2020-03-13 四川虹美智能科技有限公司 EEPROM parameter programming device and method
CN112988209A (en) * 2021-03-31 2021-06-18 清华大学 Method and device for program online upgrade in rotor suspension control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458298A (en) * 2012-06-01 2013-12-18 北京四达时代软件技术股份有限公司 Method and system or upgrading set top box software
US8826261B1 (en) * 2010-02-25 2014-09-02 Bloom Energy Corporation Programming processors through CAN interface without changing the boot mode select pins
CN104881301A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Burning method and device for DSP (digital signal processing) chip program upgrading
CN105183523A (en) * 2015-09-29 2015-12-23 国网智能电网研究院 Method for remote upgrade of digital signal processor (DSP) program
CN108255508A (en) * 2018-01-18 2018-07-06 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system and embedded device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8826261B1 (en) * 2010-02-25 2014-09-02 Bloom Energy Corporation Programming processors through CAN interface without changing the boot mode select pins
CN103458298A (en) * 2012-06-01 2013-12-18 北京四达时代软件技术股份有限公司 Method and system or upgrading set top box software
CN104881301A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Burning method and device for DSP (digital signal processing) chip program upgrading
CN105183523A (en) * 2015-09-29 2015-12-23 国网智能电网研究院 Method for remote upgrade of digital signal processor (DSP) program
CN108255508A (en) * 2018-01-18 2018-07-06 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system and embedded device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110879717A (en) * 2019-11-27 2020-03-13 四川虹美智能科技有限公司 EEPROM parameter programming device and method
CN112988209A (en) * 2021-03-31 2021-06-18 清华大学 Method and device for program online upgrade in rotor suspension control system

Also Published As

Publication number Publication date
CN109683935B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US8443336B2 (en) System and method for applying model-based testing to train control systems
US9176490B2 (en) Control program generation device, control program generation program, and control program generation method
CN109408097A (en) A kind of firmware upgrade method, device, system and a kind of electronic equipment
CN109683935A (en) Application program updating method, apparatus, frequency converter and storage medium
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN104133667A (en) AI behavior realization method, AI behavior realization device and AI editor
CN110515641A (en) The update method of server firmware, apparatus and system
CN107861745A (en) A kind of application program online upgrading method, apparatus, equipment and storage medium
CN110096300A (en) A kind of fpga program file backup management system, operation method and upgrade method
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN107766602A (en) The amendment and emulation of the runs software of technological system
CN106843938A (en) FPGA and DSP programs are upgraded and on-line reorganization system and method
CN109614126A (en) A kind of online programme upgrade method of embedded system and device
CN106406955A (en) A method and a device for upgrades of a bootloader program in an RSU apparatus
CN107870775A (en) A kind of update method of processor and BootLoader program
CN109358865A (en) A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function
CN109710320A (en) A kind of starting guidance BootLoader method of two-stage drive
CN116541032B (en) Data burning method, device, equipment and computer storage medium
CN109933326A (en) Rewrite Compilation Method, device and the corresponding terminal of code
CN107902507B (en) Control software field debugging system and debugging method
CN107340995B (en) Traction control application software development system and optimization compiling method for platform-independent codes
CN108920168A (en) It supports multiple similar ECU while upgrading and having the Bootloader method that anti-program mismatches function
CN110377303A (en) Method and its equipment based on spare memory area mode upgrade procedure
CN105975322A (en) Device and method for program update and microcontroller
CN110297652A (en) A kind of method of FPGA remote upgrade

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant