CN102981950A - Transfer method of optical module firmware visualization - Google Patents
Transfer method of optical module firmware visualization Download PDFInfo
- Publication number
- CN102981950A CN102981950A CN2012104294113A CN201210429411A CN102981950A CN 102981950 A CN102981950 A CN 102981950A CN 2012104294113 A CN2012104294113 A CN 2012104294113A CN 201210429411 A CN201210429411 A CN 201210429411A CN 102981950 A CN102981950 A CN 102981950A
- Authority
- CN
- China
- Prior art keywords
- communication interface
- firmware
- information
- optical module
- address
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a transfer method of optical module firmware visualization, and belongs to the field of optical fiber communications. The transfer method includes the following steps: a configuration file including all communication interface information of the optical module is created; the configuration file is transferred to a communication interface information code file; concrete realization function of the communication interface information of the firmware is accomplished, and the communication interface information is compiled to an executable firmware. According to the transfer method of the optical module firmware visualization, the configuration file including all the communication interface information of the optical module is created before research and development of the firmware, and the configuration file is transferred to the communication interface information code file, and therefore a firmware researching and developing engineer and a firmware testing engineer can directly check a communication interface information code in the communication interface information code file; visual research, development and test of the optical module firmware is achieved; researching, developing and testing efficiency of the firmware is improved; and researching and developing period of the firmware is shortened greatly.
Description
Technical field
The present invention relates to fiber optic communication field, particularly a kind of optical module firmware visualization conversion method.
Background technology
Optical module is the device of realizing opto-electronic conversion, is comprised of optoelectronic device, functional circuit and optical interface.Optical module firmware (Firmware) is to be solidificated in the PROM of optical module inside or the executable program among EEPROM or the FLASH ROM, is responsible for coordinating and controlling the various devices of whole optical module inside, makes it according to predetermined function normal operation.In existing optical module firmware R﹠D process, optical module firmware is normally by a plurality of firmware engineering Shi Gongtong cooperation R ﹠ Ds, and everyone only is responsible for a part wherein.Owing to often need to intersect between the firmware engineering teacher to obtain the relevant firmware information that the other side is responsible for, and can't directly check cross one another firmware information in the existing optical module firmware R﹠D process, therefore in the whole process of firmware research and development, need just can finish through a large amount of communications the final research and development of whole firmware between the firmware engineering teacher, had a strong impact on regard to the speed that has caused the firmware research and development like this, and the quality of firmware also can't obtain effective guarantee.
Summary of the invention
The object of the invention is to overcome and existingly in the existing method link up the low deficiency of firmware efficiency of research and development that causes because of the optical module firmware research and development, a kind of optical module firmware visualization conversion method is provided, can realizes the visual research and development of optical module firmware by the method.
In order to realize the foregoing invention purpose, the invention provides following technical scheme:
A kind of optical module firmware visualization conversion method, it comprises step:
A, establishment comprise the configuration file of all communication interface information of optical module, and described communication interface information comprises: name of the information, and message address, information format, information is described;
B, configuration file is converted to communication interface message code file;
C, finish the programming of the specific implementation function of firmware communication interface information, and be compiled into executable firmware.
According to the embodiment of the invention, described step B specifically may further comprise the steps:
B1, read configuration file, the obtaining communication interface message;
The communication interface information that B2, parsing are obtained, and be converted into the communication interface message code;
B3, according to the communication interface message code of conversion, generate communication interface message code file.Described communication interface message code file is the file that comprises all communication interface message codes.
According to the embodiment of the invention, described step B2 specifically may further comprise the steps:
The address pattern of B2-1, judgement communication interface information if address pattern is block mode, then enters step B2-2, if address pattern is byte mode, then enters step B2-3, if address pattern is bit pattern, then enters step B2-4;
Whether B2-2, the address of judging communication interface information are complementary with the block address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information;
Whether B2-3, the address of judging communication interface information are complementary with the byte address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information;
Whether B2-4, the address of judging communication interface information are complementary with the bit address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information.
Compared with prior art, beneficial effect of the present invention: optical module firmware visualization conversion method of the present invention, before carrying out the firmware research and development, create first the configuration file of all communication interface information that include optical module, again this configuration file is converted to the communication interface message code, and generation communication interface message code file, firmware research and development slip-stick artist can be by communication interface message code Fileview to the communication interface message code, and code is visual.Firmware research and development slip-stick artist can understand and own relevant communication interface information fully clearly by checking this configuration file or communication interface message code file, and the specific implementation function take the communication interface message code as basic adding information, be compiled into again and can carry out firmware, namely realized the research and development of optical module firmware code visualization.Simultaneously, the firmware testing slip-stick artist understands firmware code information by directly checking this configuration file or communication interface message code file, has saved time for communications a large amount of and firmware research and development slip-stick artist, has realized visual testing, has improved the testing efficiency of firmware.The inventive method can realize the visual research and development of optical module firmware and visual testing, under the prerequisite that guarantees the firmware quality, has greatly shortened the firmware R﹠D cycle.
Description of drawings:
Fig. 1 is the inventive method FB(flow block).
Fig. 2 is the FB(flow block) of translation-profile.
Fig. 3 is for resolving the FB(flow block) of communication interface information.
Embodiment
The present invention is described in further detail below in conjunction with test example and embodiment.But this should be interpreted as that the scope of the above-mentioned theme of the present invention only limits to following embodiment, all technology that realizes based on content of the present invention all belong to scope of the present invention.
Optical module and system can realize communication, for example I by various communication interfaces
2C interface, SPI interface, UART interface, MDIO interface etc., in the present embodiment with I
2C interface is that example describes the inventive method in detail.
Optical module firmware visualization conversion method of the present invention is: created first all I that comprise optical module before writing firmware program
2C communication interface information (is I
2C information) configuration file, described I
2C information comprises: I
2The C name of the information, I
2The C message address, I
2The C information format, I
2C information description etc.Firmware research and development slip-stick artist can understand and own relevant communication interface information fully clearly by checking this configuration file.
Further, will contain I
2The configuration file of C communication interface information is converted to I
2C communication interface message code, and add based on this I
2The specific implementation function of C communication interface information has been saved writing the time of firmware code.The inventive method has realized the research and development of optical module firmware code visualization, has shortened the firmware R﹠D cycle.In like manner, can directly revise and contain I
2The configuration file of C communication interface information is converted to I with amended configuration file again
2C communication interface message code, and then realize revising firmware code, namely realized the function of dynamic-configuration (or adjustment) firmware demand, reached the purpose of the visual research and development of firmware.
With reference to figure 1, Fig. 2, Fig. 3, concrete, the inventive method may further comprise the steps:
A, according to fixed format establishment include I
2The configuration file of C communication interface information, for example, the I that in EXCEL table (or other configurable documents etc.), inserts successively in order
2The C communication interface (is I
2C information) information is: I
2The C name of the information, I
2C message address (this address represents that with 16 system numbers the address in the configuration file only is that 16 system numbers are according to the expression formula of certain format combination), I
2The C information format, I
2C information is described.For example shown in the following table:
Wherein the implication of Address A2.60-61 is: I
2C Address 0xA2, DIRECT Page, Offset0x60-0x61.
B, configuration file is converted to communication interface message code file, its step comprises:
B1, read configuration file, obtain I
2C communication interface information;
B2, parsing I
2C communication interface information, and be converted into I
2C communication interface message code, for example, I
2I in the C communication interface information
2The C message address is A2.60-61, and the address after the parsing is: I
2C address 0xA2, side-play amount 0x60-0x61, the I after the conversion
2C communication interface message code is: " RT_TEMP, I
2C Address0xA2, Offset 0x60-0x61,16-bit signed, Internally measured module temperature ", comprised the I after resolving
2All the elements of C communication interface information.
Resolving is specially:
B2-1, judgement I
2The address pattern of C communication interface information if address pattern is block mode, then enters step B2-2, if address pattern is byte mode, then enters step B2-3, if address pattern is bit pattern, then enters step B2-4;
B2-2, judgement I
2Whether the address of C communication interface information is complementary with the block address form (such as A2.60-61) of appointment, if coupling then be converted to I
2C communication interface message code, otherwise send error reporting information;
B2-3, judgement I
2Whether the address of C communication interface information is complementary with the byte address form (such as A2.70) of appointment, if coupling then be converted to I
2C communication interface message code, otherwise send error reporting information;
B2-4, judgement I
2Whether the address of C communication interface information is complementary with the bit address form (such as A2.70.6) of appointment, if coupling then be converted to I
2C communication interface message code, otherwise send error reporting information.
B3, according to the conversion after I
2C communication interface message code generates I automatically
2C communication interface message code file, described I
2C communication interface message code file including all I
2C communication interface message code, i.e. I in the configuration file
2C communication interface information and I
2I in the C communication interface message code file
2C communication interface message code shines upon mutually.
C, firmware engineering teacher are according to the I that changes
2C communication interface message code is finished firmware I
2The programming of the specific implementation function of C communication interface information is compiled into executable firmware at last.
After the optical module that compiling generates can be carried out firmware, need to be with among its PROM or EEPROM or FLASH ROM by corresponding programmable device programming light inlet inside modules, and then test the function whether this firmware can satisfy the demands by the firmware testing slip-stick artist.In test process, the firmware testing slip-stick artist can directly check configuration file and I
2I in the C communication interface message code file
2C communication interface message code has been realized visual testing, has saved time for communications a large amount of and firmware research and development slip-stick artist, has improved the testing efficiency of firmware.
The inventive method can realize visual research and development and visual testing, under the prerequisite that guarantees the firmware quality, has greatly shortened the firmware R﹠D cycle.
Claims (3)
1. optical module firmware visualization conversion method, the method may further comprise the steps:
A, establishment comprise the configuration file of all communication interface information of optical module, and described communication interface information comprises: name of the information, and message address, information format, information is described;
B, configuration file is converted to communication interface message code file;
C, finish the programming of firmware communication interface information realization of functions, and be compiled into executable firmware.
2. optical module firmware visualization conversion method according to claim 1, described step B may further comprise the steps:
B1, read configuration file, the obtaining communication interface message;
The communication interface information that B2, parsing are obtained, and be converted into the communication interface message code;
B3, according to the communication interface message code of conversion, generate communication interface message code file.
3. optical module firmware visualization conversion method according to claim 2, described step B2 may further comprise the steps:
The address pattern of B2-1, judgement communication interface information if address pattern is block mode, then enters step B2-2, if address pattern is byte mode, then enters step B2-3, if address pattern is bit pattern, then enters step B2-4;
Whether B2-2, the address of judging communication interface information are complementary with the block address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information;
Whether B2-3, the address of judging communication interface information are complementary with the byte address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information;
Whether B2-4, the address of judging communication interface information are complementary with the bit address form of appointment, if coupling then be converted to the communication interface message code, otherwise would send error reporting information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210429411.3A CN102981950B (en) | 2012-10-31 | 2012-10-31 | A kind of transfer method of optical module firmware visualization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210429411.3A CN102981950B (en) | 2012-10-31 | 2012-10-31 | A kind of transfer method of optical module firmware visualization |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102981950A true CN102981950A (en) | 2013-03-20 |
CN102981950B CN102981950B (en) | 2015-09-09 |
Family
ID=47856004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210429411.3A Active CN102981950B (en) | 2012-10-31 | 2012-10-31 | A kind of transfer method of optical module firmware visualization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102981950B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354686A (en) * | 2008-09-24 | 2009-01-28 | 北京中星微电子有限公司 | Method and apparatus for supporting different inductors of firmware |
CN102033762A (en) * | 2010-11-02 | 2011-04-27 | 浪潮电子信息产业股份有限公司 | Method for quickly setting firmware parameters by utilizing configuration file |
CN102479265A (en) * | 2010-11-25 | 2012-05-30 | 上海华虹集成电路有限责任公司 | Method for modifying wrong function of firmware of hard mask product |
-
2012
- 2012-10-31 CN CN201210429411.3A patent/CN102981950B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354686A (en) * | 2008-09-24 | 2009-01-28 | 北京中星微电子有限公司 | Method and apparatus for supporting different inductors of firmware |
CN102033762A (en) * | 2010-11-02 | 2011-04-27 | 浪潮电子信息产业股份有限公司 | Method for quickly setting firmware parameters by utilizing configuration file |
CN102479265A (en) * | 2010-11-25 | 2012-05-30 | 上海华虹集成电路有限责任公司 | Method for modifying wrong function of firmware of hard mask product |
Also Published As
Publication number | Publication date |
---|---|
CN102981950B (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102830981B (en) | A kind of implementation method for embedded systemic software development instrument | |
CN101667134B (en) | Method for constructing compiling system and compiling system constructing device | |
CN101996693B (en) | Configuration system for reactor protection system | |
CN101963915A (en) | Building method of compilation and system thereof | |
CN101308495A (en) | Office data checking and manufacture method | |
CN104731581B (en) | A kind of skeleton code amending method and device based on android system | |
CN102169513A (en) | Wiring design system and method | |
CN107291522A (en) | A kind of compiling optimization method and system towards custom rule file | |
CN102495552A (en) | Real-time simulation system oriented to space-borne electronic system | |
CN104991810B (en) | Method and processing system in automatic addition APK to Android system | |
CN103838588A (en) | Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface | |
CN102768504A (en) | Method for controlled intervention into the behaviour of a sub-module | |
CN106371868A (en) | Automatic test method, system and test device | |
CN102541562B (en) | The generation method of interlocking system PLC code | |
CN105302616A (en) | Software remote immediate updating and upgrading system and method | |
CN101557328B (en) | Method for generating substation detection message in automobile CAN-bus car body control system | |
CN102981950A (en) | Transfer method of optical module firmware visualization | |
CN113687814A (en) | Automation realization method of model framework and interface file based on AUTOSAR (automotive open system architecture) | |
CN107340995A (en) | A kind of traction control applied software development system | |
CN108153284A (en) | control program testing method and system | |
CN101609614A (en) | A kind of emulation platform of semi-matter simulating system reaches the method for goal systems being carried out online accent ginseng | |
CN106293797A (en) | A kind of method and system of online updating Single Chip Microcomputer (SCM) program | |
CN101685405B (en) | Emulation system and method for a no longer available microcontroller | |
CN105516158A (en) | Configurable protocol conversion state machine circuit structure and protocol configuration method | |
CN104158903A (en) | Method and system of encoding OAM (Operation Administration and Maintenance) protocol stack |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |