CN110442356A - The upgrade method and device of DSP firmware - Google Patents

The upgrade method and device of DSP firmware Download PDF

Info

Publication number
CN110442356A
CN110442356A CN201910724553.4A CN201910724553A CN110442356A CN 110442356 A CN110442356 A CN 110442356A CN 201910724553 A CN201910724553 A CN 201910724553A CN 110442356 A CN110442356 A CN 110442356A
Authority
CN
China
Prior art keywords
mcu
data block
dsp
eeprom
dsp firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910724553.4A
Other languages
Chinese (zh)
Inventor
张文林
黄首甲
冯永飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Mentech Optical and Magnetic Co Ltd
Original Assignee
Dongguan Mentech Optical and Magnetic 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 Dongguan Mentech Optical and Magnetic Co Ltd filed Critical Dongguan Mentech Optical and Magnetic Co Ltd
Priority to CN201910724553.4A priority Critical patent/CN110442356A/en
Publication of CN110442356A publication Critical patent/CN110442356A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

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 present invention provides the upgrade methods and device of a kind of DSP firmware, comprising: DSP firmware data is divided into multiple data blocks;DSP firmware upgrade password is sent to MCU, so that whether MCU verifying DSP firmware upgrade password is correct;After PAM4 optical module enters firmware upgrade mode, obtained multiple data blocks will be divided and be successively sent to MCU, so that MCU wipes the data in EEPROM, and multiple data blocks is sequentially written in the corresponding position of EEPROM, complete the upgrading of DSP firmware.In the present invention, host computer sends instruction and data block and the mode of data block write-in EEPROM can be realized to the online upgrading of DSP firmware again to MCU, MCU, can be to avoid because tearing influence of the shell to optical module performance open, convenient for optical module production, maintenance and after sale, saved cost.

Description

The upgrade method and device of DSP firmware
Technical field
The present invention relates to the technical fields of PAM4 optical module, more particularly, to the upgrade method and device of a kind of DSP firmware.
Background technique
Currently, DSP technology is widely used in PAM4 optical module, because the firmware of DSP is too big, the flash of MCU stores empty Between it is limited, therefore need that an external EEPROM is added in PAM4 optical module, for storing the firmware of DSP, and consolidating for DSP Part upgrading is all using cd-rom recorder or professional programmable device burning at present.
Cd-rom recorder or professional programmable device are expensive and not easy to operate, also, for assembled optical module, such as Fruit will carry out the firmware upgrade of DSP, need to dismantle on shell, so that cd-rom recorder can touch the SPI pin of external EEPROM, But also the connection of DSP He outside EEPROM are disconnected, such operation is not only complicated, but also is easy to influence the original property of module Can, if operation is lack of standardization, or even optical module can be destroyed.
To sum up, the upgrade method of DSP firmware is realized by cd-rom recorder or professional editor device, it is expensive and will affect optical mode The performance of block.
Summary of the invention
The purpose of the present invention is to provide the upgrade method and device of a kind of DSP firmware, existing pass through burning to alleviate Device or professional editor device realize the upgrade method of DSP firmware, expensive, and the technical issues of influence optical module performance.
A kind of upgrade method of DSP firmware provided by the invention is applied to host computer, the host computer and PAM4 optical module MCU connection, the MCU connect with DSP, EEPROM respectively, and the DSP is connect with the EEPROM, which comprises
DSP firmware data is divided into multiple data blocks;
DSP firmware upgrade password is sent to the MCU, so that whether just the MCU verifies the DSP firmware upgrade password Really, wherein when the MCU verifying DSP firmware upgrade password is correct, into firmware upgrade mode;
After the PAM4 optical module enters firmware upgrade mode, obtained the multiple data block will be divided and successively sent To the MCU, so that the MCU wipes the data in the EEPROM, and the multiple data block is sequentially written in described The corresponding position of EEPROM completes the upgrading of the DSP firmware.
Further, flag bit is carried in each data block in the multiple data block, wherein the flag bit is used In indicate its corresponding to data block serial number.
Further, it obtained the multiple data block will be divided successively is sent to the MCU and include:
A data block is sent every time to the MCU, so that pair of the EEPROM is written in current data block by the MCU Answer position.
Further, after the corresponding position of the EEPROM is written in current data block by the MCU, the method is also Include:
The current data block that the EEPROM is written is verified, and after verification passes through, subsequent data chunk is sent To the MCU.
Further, carrying out verification to the current data block that the EEPROM is written includes:
Obtain the data of check bit in the MCU, wherein pair of the EEPROM is written in current data block by the MCU After answering position, read the current data block in the EEPROM, and by the current data block of reading with it is described upper The data block that machine is sent compares, and the data about check results are written in the check bit according to comparing result;
Determine whether the current data block that the EEPROM is written is correct, completes the school according to the data of the check bit It tests.
Further, the host computer is host computer corresponding with the DSP firmware upgrade of the PAM4 optical module.
The present invention also provides a kind of update devices of DSP firmware, are applied to host computer, the host computer and PAM4 optical mode The MCU connection of block, the MCU are connect with DSP, EEPROM respectively, and the DSP is connect with the EEPROM, and described device includes:
Division module, for DSP firmware data to be divided into multiple data blocks;
First sending module, for sending DSP firmware upgrade password to the MCU, so that the MCU verifies the DSP Whether firmware upgrade password is correct, wherein when the MCU verifying DSP firmware upgrade password is correct, into firmware upgrade Mode;
Second sending module, for will divide described in obtaining after the PAM4 optical module enters firmware upgrade mode Multiple data blocks are successively sent to the MCU, so that the MCU wipes the data in the EEPROM, and by the multiple number It is sequentially written in the corresponding position of the EEPROM according to block, completes the upgrading of the DSP firmware.
Further, flag bit is carried in each data block in the multiple data block, wherein the flag bit is used In indicate its corresponding to data block serial number.
Further, second sending module is also used to:
A data block is sent every time to the MCU, so that pair of the EEPROM is written in current data block by the MCU Answer position.
Further, described device further include:
Correction verification module, for being verified to the current data block that the EEPROM is written, and after verification passes through, will under One data block is sent to the MCU.
In embodiments of the present invention, the upgrade method of the DSP firmware is applied to host computer, host computer and PAM4 optical module MCU connection, MCU are connect with DSP, EEPROM respectively, this method comprises: DSP firmware data is first divided into multiple data blocks;So DSP firmware upgrade password is sent to MCU afterwards, so that whether MCU verifying DSP firmware upgrade password is correct, when MCU verifying DSP is solid When part upgrade cipher is correct, into firmware upgrade mode;Finally, will be divided after PAM4 optical module enters firmware upgrade mode Obtained multiple data blocks are successively sent to MCU, so that the data in MCU erasing EEPROM, and multiple data blocks are successively write Enter the corresponding position of EEPROM, completes the upgrading of DSP firmware.As can be seen from the above description, in embodiments of the present invention, host computer It sends instruction and data block and the mode of data block write-in EEPROM can be realized to the online upgrading of DSP firmware again to MCU, MCU, Convenient for the production of optical module, maintenance and after sale, cost can be saved, has been alleviated to avoid because tearing influence of the shell to optical module performance open The existing upgrade method that DSP firmware is realized by cd-rom recorder or professional editor device, it is expensive, and influence optical module performance The technical issues of.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the upgrade method of DSP firmware provided in an embodiment of the present invention;
Fig. 2 is the hardware structural diagram of DSP firmware upgrade provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram that the current data block provided in an embodiment of the present invention to write-in EEPROM is verified;
Fig. 4 is a kind of schematic diagram of the update device of DSP firmware provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
For the upgrading convenient for understanding the present embodiment, first to a kind of DSP firmware disclosed in the embodiment of the present invention Method describes in detail.
Embodiment one:
According to embodiments of the present invention, a kind of embodiment of the upgrade method of DSP firmware is provided, it should be noted that In The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also, It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts The step of out or describing.
Fig. 1 is a kind of flow chart of the upgrade method of DSP firmware according to an embodiment of the present invention, and this method is applied to upper Machine 11, with reference to Fig. 2, host computer 11 is connect with the MCU12 of PAM4 optical module, and MCU12 is connect with DSP13, EEPROM14 respectively, DSP13 is connect with EEPROM14, and this method comprises the following steps:
DSP firmware data is divided into multiple data blocks by step S102;
It in embodiments of the present invention, include DSP firmware data in host computer 11, when carrying out the upgrading of DSP firmware, on DSP firmware data is first divided into multiple data blocks by position machine 11, and the length of each data block can be customized.
The division for carrying out above-mentioned data block can facilitate host computer 11 to send data, carry out the upgrading of subsequent DSP firmware.
Step S104 sends DSP firmware upgrade password to MCU, so that whether MCU verifying DSP firmware upgrade password is correct, Wherein, when MCU verifying DSP firmware upgrade password is correct, into firmware upgrade mode;
After the completion of data block divides, host computer 11 sends DSP firmware upgrade password to MCU12.When realization, host computer 11 is logical The I2C pin for crossing optical module golden finger sends DSP firmware upgrade password to MCU12, when MCU12 receives above-mentioned DSP firmware liter After grade password, whether verifying DSP firmware upgrade password is correct.
After MCU12 verifying DSP firmware upgrade password is correct, optical module enters firmware upgrade mode, i.e. MCU12 control DSP13 discharges spi bus, while MCU12 obtains spi bus control, with reference to shown in Fig. 2.When MCU12 verifies DSP firmware liter After grade password mistake, optical module does not enter firmware upgrade mode, i.e. DSP13 still obtains the control of spi bus.
Step S106 will divide obtained multiple data blocks and successively send out after PAM4 optical module enters firmware upgrade mode It send to MCU, so that MCU wipes the data in EEPROM, and multiple data blocks is sequentially written in the corresponding position of EEPROM, completes The upgrading of DSP firmware.
After PAM4 optical module enters firmware upgrade mode, host computer 11 can be drawn by the I2C of optical module golden finger Foot is successively sent to MCU12 for obtained multiple data blocks are divided, so that the data in MCU12 erasing EEPROM14, and will be more A data block is sequentially written in the corresponding position of EEPROM14, completes the upgrading of DSP firmware.
In embodiments of the present invention, the upgrade method of the DSP firmware is applied to host computer 11, host computer 11 and PAM4 optical mode The MCU12 connection of block, MCU12 is connect with DSP13, EEPROM14 respectively, this method comprises: being first divided into DSP firmware data Multiple data blocks;Then, DSP firmware upgrade password is sent to MCU12, so that whether just MCU12 verifying DSP firmware upgrade password Really, when MCU12 verifying DSP firmware upgrade password is correct, into firmware upgrade mode;Finally, entering in PAM4 optical module solid After part upgrade mode, obtained multiple data blocks will be divided and be successively sent to MCU12, so that in MCU12 erasing EEPROM14 Data, and multiple data blocks are sequentially written in the corresponding position of EEPROM14, complete the upgrading of DSP firmware.Pass through foregoing description It is found that in embodiments of the present invention, host computer 11 sends instruction and data block and data block is written again to MCU12, MCU12 The mode of EEPROM14 can be realized the online upgrading of DSP firmware, can be convenient for avoid because tearing influence of the shell to optical module performance open The production of optical module, maintenance and after sale, have saved cost, alleviate and existing realize DSP by cd-rom recorder or professional editor device The upgrade method of firmware, it is expensive, and the technical issues of influence optical module performance.
Above content carried out brief introduction to the upgrade method of DSP firmware of the invention, below to being directed to Particular content describes in detail.
In an alternate embodiment of the present invention where, flag bit is carried in each data block in multiple data blocks, In, flag bit is used to indicate the serial number of the data block corresponding to it.
After host computer 11 divides data block, when sending data block, a flag bit can be sent simultaneously, which is used for Indicate the serial number of the data block corresponding to it.For example, the transmission of host computer 11 is first data block, then just using flag bit table Show that the data block is first data block;What host computer 11 was sent is the last one data block, then just indicating this with flag bit Data block is the last one data block.In this way, host computer 11 just can determine whether all data blocks send according to flag bit It completes.
In an alternate embodiment of the present invention where, will divide obtained multiple data blocks and be successively sent to MCU includes such as Lower step:
A data block is sent every time to MCU, so that the corresponding position of EEPROM is written in current data block by MCU.
In an alternate embodiment of the present invention where, after MCU is by the corresponding position of current data block write-in EEPROM, This method further include:
The current data block of write-in EEPROM is verified, and after verification passes through, subsequent data chunk is sent to MCU。
If verification does not pass through, firmware upgrade mode is exited.
In an alternate embodiment of the present invention where, with reference to Fig. 3, verification packet is carried out to the current data block of write-in EEPROM Include following steps:
Step S301 obtains the data of check bit in MCU, wherein the correspondence position of EEPROM is written in current data block by MCU It postpones, reads the current data block in EEPROM, and the data block that the current data block of reading and host computer are sent is carried out pair Than the data about check results are written in check bit according to comparing result;
Specifically, if current data block and the data that host computer 11 is sent are just the same, MCU12 is being verified after comparison Data of the position write-in about check results.
Step S302 determines whether the current data block of write-in EEPROM is correct, completes verification according to the data of check bit.
Specifically, host computer 11 determines check results by the data of above-mentioned check bit in acquisition MCU12.
It is described in detail below with a specific example to the upgrade method of DSP firmware of the invention:
After MCU12 determines that DSP firmware upgrade password is correct, PAM4 optical module enters firmware upgrade mode.Then, upper Machine 11 sends first data block to MCU12 by the I2C pin of optical module golden finger.When MCU12 receives first data block Afterwards, start to wipe all data of external EEPROM14, and the content of first data block is written to external EEPROM14's Corresponding position, while MCU12 verifies the data block of write-in.
When host computer 11 reads the success of a upper Data block check, host computer 11 passes through the I2C of optical module golden finger Pin sends subsequent data chunk data.After MCU12 receives data block data, the content of data block is written to outside The corresponding position of EEPROM14, and the data of write-in are verified.Step operation is repeated, until all data blocks have been sent At.
After external EEPROM14 is written in all data blocks, MCU12 discharges spi bus, and controls DSP13 and regain Spi bus control.
So far, PAM4 optical module completes the online upgrading of DSP firmware.
In an alternative embodiment of this hair, host computer is corresponding upper with the DSP firmware upgrade of PAM4 optical module Machine.
It is, host computer used in DSP firmware upgrade, is that one of independent exploitation is corresponding with PAM4 optical module Host computer is not that any one host computer is ok.
The upgrade method of DSP firmware provided by the invention, it may not be necessary to optical module shell be dismantled, do not need to use burning Device is recorded, host computer sends instruction and data by the I2C pin of optical module golden finger and passes through control outside again to MCU, MCU The spi bus of EEPROM writes data into external EEPROM, completes the DSP firmware of online upgrading PAM4 optical module.It can keep away Exempt from because tearing shell open damaging caused by optical module and destroy, convenient for the production of optical module, maintenance and after sale.
Embodiment two:
The embodiment of the invention also provides a kind of update device of DSP firmware, the update device of the DSP firmware is applied to upper Position machine 11, host computer 11 connect with the MCU12 of PAM4 optical module, and MCU12 is connect with DSP13, EEPROM14 respectively, DSP13 and EEPROM14 connection is mainly used for executing the upgrade method of DSP firmware provided by above content of the embodiment of the present invention, right below The update device of DSP firmware provided in an embodiment of the present invention does specific introduction.
Fig. 4 is a kind of schematic diagram of the update device of DSP firmware according to an embodiment of the present invention, as shown in figure 4, the DSP The update device of firmware specifically includes that division module 10, the first sending module 20 and the second sending module 30, in which:
Division module, for DSP firmware data to be divided into multiple data blocks;
First sending module, for sending DSP firmware upgrade password to MCU12, so that MCU12 verifies DSP firmware upgrade Whether password is correct, wherein when MCU12 verifying DSP firmware upgrade password is correct, into firmware upgrade mode;
Second sending module, multiple data for after PAM4 optical module enters firmware upgrade mode, division to be obtained Block is successively sent to MCU12, so that the data in MCU12 erasing EEPROM14, and multiple data blocks are sequentially written in The corresponding position of EEPROM14 completes the upgrading of DSP firmware.
In embodiments of the present invention, the update device of the DSP firmware is applied to host computer 11, host computer 11 and PAM4 optical mode The MCU12 connection of block, MCU12 are connect with DSP13, EEPROM14 respectively, which includes: first to be divided into DSP firmware data Multiple data blocks;Then, DSP firmware upgrade password is sent to MCU12, so that whether just MCU12 verifying DSP firmware upgrade password Really, when MCU12 verifying DSP firmware upgrade password is correct, into firmware upgrade mode;Finally, entering in PAM4 optical module solid After part upgrade mode, obtained multiple data blocks will be divided and be successively sent to MCU12, so that in MCU12 erasing EEPROM14 Data, and multiple data blocks are sequentially written in the corresponding position of EEPROM14, complete the upgrading of DSP firmware.Pass through foregoing description It is found that in embodiments of the present invention, host computer 11 sends instruction and data block and data block is written again to MCU12, MCU12 The mode of EEPROM14 can be realized the online upgrading of DSP firmware, can be convenient for avoid because tearing influence of the shell to optical module performance open The production of optical module, maintenance and after sale, have saved cost, alleviate and existing realize DSP by cd-rom recorder or professional editor device The upgrade method of firmware, it is expensive, and the technical issues of influence optical module performance.
Optionally, flag bit is carried in each data block in multiple data blocks, wherein flag bit is for indicating its institute The serial number of corresponding data block.
Optionally, the second sending module is also used to:
A data block is sent every time to MCU12, so that the correspondence position of EEPROM14 is written in current data block by MCU12 It sets.
Optionally, the device further include:
Correction verification module is verified for the current data block to write-in EEPROM14, and after verification passes through, will be next Data block is sent to MCU12.
Optionally, correction verification module is also used to:
Obtain the data of check bit in MCU12, wherein the corresponding position of EEPROM14 is written in current data block by MCU12 Afterwards, the current data block in EEPROM14 is read, and the data block that the current data block of reading and host computer 11 are sent carries out The data about check results are written in check bit according to comparing result in comparison;
Determine whether the current data block of write-in EEPROM14 is correct, completes verification according to the data of check bit.
Optionally, host computer is host computer corresponding with the DSP firmware upgrade of PAM4 optical module.
Particular content in the embodiment two can be with reference to the description in above-described embodiment one, and details are not described herein.
The computer program product of the upgrade method of DSP firmware and device provided by the embodiment of the present invention, including storage The computer readable storage medium of program code, the instruction that said program code includes can be used for executing previous methods embodiment Described in method, specific implementation can be found in embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution 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 computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of upgrade method of DSP firmware, which is characterized in that be applied to host computer, the host computer and PAM4 optical module MCU connection, the MCU are connect with DSP, EEPROM respectively, and the DSP is connect with the EEPROM, which comprises
DSP firmware data is divided into multiple data blocks;
DSP firmware upgrade password is sent to the MCU, so that whether the MCU verifying DSP firmware upgrade password is correct, Wherein, when the MCU verifying DSP firmware upgrade password is correct, into firmware upgrade mode;
After the PAM4 optical module enters firmware upgrade mode, obtained the multiple data block will be divided and be successively sent to institute MCU is stated, so that the MCU wipes the data in the EEPROM, and the multiple data block is sequentially written in the EEPROM Corresponding position, complete the upgrading of the DSP firmware.
2. the upgrade method of DSP firmware according to claim 1, which is characterized in that each of the multiple data block Flag bit is carried in data block, wherein the flag bit is used to indicate the serial number of the data block corresponding to it.
3. the upgrade method of DSP firmware according to claim 1, which is characterized in that the multiple number for obtaining division The MCU is successively sent to according to block includes:
A data block is sent every time to the MCU, so that the correspondence position of the EEPROM is written in current data block by the MCU It sets.
4. the upgrade method of DSP firmware according to claim 3, which is characterized in that write current data block in the MCU After the corresponding position for entering the EEPROM, the method also includes:
The current data block that the EEPROM is written is verified, and after verification passes through, subsequent data chunk is sent to institute State MCU.
5. the upgrade method of DSP firmware according to claim 4, which is characterized in that EEPROM's described to write-in is current Data block carries out verification
Obtain the data of check bit in the MCU, wherein the correspondence position of the EEPROM is written in current data block by the MCU It postpones, reads the current data block in the EEPROM, and the current data block of reading and the host computer are sent out The data block sent compares, and the data about check results are written in the check bit according to comparing result;
Determine whether the current data block that the EEPROM is written is correct, completes the verification according to the data of the check bit.
6. the upgrade method of DSP firmware according to claim 1, which is characterized in that the host computer be and the PAM4 The corresponding host computer of DSP firmware upgrade of optical module.
7. a kind of update device of DSP firmware, which is characterized in that be applied to host computer, the host computer and PAM4 optical module MCU connection, the MCU are connect with DSP, EEPROM respectively, and the DSP is connect with the EEPROM, and described device includes:
Division module, for DSP firmware data to be divided into multiple data blocks;
First sending module, for sending DSP firmware upgrade password to the MCU, so that the MCU verifies the DSP firmware Whether upgrade cipher is correct, wherein when the MCU verifying DSP firmware upgrade password is correct, into firmware upgrade mould Formula;
Second sending module, for after the PAM4 optical module enters firmware upgrade mode, will divide obtain it is the multiple Data block is successively sent to the MCU, so that the MCU wipes the data in the EEPROM, and by the multiple data block It is sequentially written in the corresponding position of the EEPROM, completes the upgrading of the DSP firmware.
8. the update device of DSP firmware according to claim 7, which is characterized in that each of the multiple data block Flag bit is carried in data block, wherein the flag bit is used to indicate the serial number of the data block corresponding to it.
9. the update device of DSP firmware according to claim 7, which is characterized in that second sending module is also used to:
A data block is sent every time to the MCU, so that the correspondence position of the EEPROM is written in current data block by the MCU It sets.
10. the update device of DSP firmware according to claim 9, which is characterized in that described device further include:
Correction verification module, for being verified to the current data block that the EEPROM is written, and after verification passes through, by next number The MCU is sent to according to block.
CN201910724553.4A 2019-08-06 2019-08-06 The upgrade method and device of DSP firmware Pending CN110442356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910724553.4A CN110442356A (en) 2019-08-06 2019-08-06 The upgrade method and device of DSP firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910724553.4A CN110442356A (en) 2019-08-06 2019-08-06 The upgrade method and device of DSP firmware

Publications (1)

Publication Number Publication Date
CN110442356A true CN110442356A (en) 2019-11-12

Family

ID=68433647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910724553.4A Pending CN110442356A (en) 2019-08-06 2019-08-06 The upgrade method and device of DSP firmware

Country Status (1)

Country Link
CN (1) CN110442356A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104143A (en) * 2019-12-26 2020-05-05 北谷电子有限公司上海分公司 Firmware upgrading method and upgrading device
CN111240715A (en) * 2019-12-31 2020-06-05 兰剑智能科技股份有限公司 Device upgrading method and device, electronic device and computer readable medium
CN112835607A (en) * 2021-03-20 2021-05-25 南京物联传感技术有限公司 System and method for on-line burning of embedded sub-equipment functional firmware
CN116055317A (en) * 2021-10-28 2023-05-02 青岛海信宽带多媒体技术有限公司 Method for preventing online upgrade errors and optical module
CN116166301A (en) * 2022-12-08 2023-05-26 武汉莱创德技术有限公司 System and method for upgrading DSP firmware

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN104579719A (en) * 2013-10-10 2015-04-29 中兴通讯股份有限公司 A method and system for updating firmware, upper computer and optical module
CN106775880A (en) * 2016-12-22 2017-05-31 海信(山东)空调有限公司 The programming device and method of a kind of EEPROM data
CN106874032A (en) * 2017-01-04 2017-06-20 青岛海信宽带多媒体技术有限公司 Method, device and optical module that optical module firmware is upgraded
CN108845811A (en) * 2018-05-30 2018-11-20 武汉高仕达电气有限公司 A kind of CAN bus based double-nuclear DSP firmware upgrade method and system
CN109739783A (en) * 2019-01-15 2019-05-10 泰瑞创通讯(成都)有限公司 Read and/or write simultaneously the device of more optical module EEPROM

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579719A (en) * 2013-10-10 2015-04-29 中兴通讯股份有限公司 A method and system for updating firmware, upper computer and optical module
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN106775880A (en) * 2016-12-22 2017-05-31 海信(山东)空调有限公司 The programming device and method of a kind of EEPROM data
CN106874032A (en) * 2017-01-04 2017-06-20 青岛海信宽带多媒体技术有限公司 Method, device and optical module that optical module firmware is upgraded
CN108845811A (en) * 2018-05-30 2018-11-20 武汉高仕达电气有限公司 A kind of CAN bus based double-nuclear DSP firmware upgrade method and system
CN109739783A (en) * 2019-01-15 2019-05-10 泰瑞创通讯(成都)有限公司 Read and/or write simultaneously the device of more optical module EEPROM

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨银堂 等: "《DSP应用开发从实践到提高》", 北京:中国电力出版社, pages: 94 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104143A (en) * 2019-12-26 2020-05-05 北谷电子有限公司上海分公司 Firmware upgrading method and upgrading device
CN111104143B (en) * 2019-12-26 2021-08-31 北谷电子有限公司上海分公司 Firmware upgrading method and upgrading device
CN111240715A (en) * 2019-12-31 2020-06-05 兰剑智能科技股份有限公司 Device upgrading method and device, electronic device and computer readable medium
CN112835607A (en) * 2021-03-20 2021-05-25 南京物联传感技术有限公司 System and method for on-line burning of embedded sub-equipment functional firmware
CN116055317A (en) * 2021-10-28 2023-05-02 青岛海信宽带多媒体技术有限公司 Method for preventing online upgrade errors and optical module
CN116166301A (en) * 2022-12-08 2023-05-26 武汉莱创德技术有限公司 System and method for upgrading DSP firmware

Similar Documents

Publication Publication Date Title
CN110442356A (en) The upgrade method and device of DSP firmware
CN103309709B (en) A kind of firmware upgrade method, device and communication equipment
CN104407878B (en) C6000 digital signal processor online upgrading methods
CN103268201B (en) A kind of date storage method, memory storage and read method
US20130326278A1 (en) Server and method of manipulation in relation to server serial ports
EP2076056A1 (en) Management method for intelligent terminal system and intelligent terminal
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN104679672A (en) Data storage device and flash memory control method
CN106201640A (en) A kind of method and device of BootLoader program of upgrading
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN106649024A (en) Method and device for real-time monitoring of application performance
CN102662688B (en) A kind of Nor flash update method and device
CN105589699A (en) Serial number information update method, device and terminal
CN107844305A (en) The method for upgrading software and embedded device of embedded device
CN110750447A (en) Software testing method and related equipment
CN109408088A (en) CPLD upgrade method, device, system and computer readable storage medium
CN105892932A (en) Method and device for managing disk data
CN103955416A (en) Hard disk management method, device and system
CN107452427B (en) Method and system for testing data integrity of storage equipment
CN109670296A (en) A kind of method and apparatus removing iOS backup password
CN111210863B (en) Method, device and equipment for testing embedded memory and computer storage medium
CN108874432B (en) Wireless firmware upgrade system
JP3395163B2 (en) Apparatus and method for automatically verifying communication software
CN105589710A (en) Remote upgrading method and system
CN108521443B (en) The upgrade method and system and terminal and computer readable storage medium of a kind of application

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112