CN106407107B - Software debugging auxiliary method of general optical module - Google Patents
Software debugging auxiliary method of general optical module Download PDFInfo
- Publication number
- CN106407107B CN106407107B CN201610776290.8A CN201610776290A CN106407107B CN 106407107 B CN106407107 B CN 106407107B CN 201610776290 A CN201610776290 A CN 201610776290A CN 106407107 B CN106407107 B CN 106407107B
- Authority
- CN
- China
- Prior art keywords
- optical module
- port
- multiplexing
- controller
- ports
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the communication field, in particular to a software debugging auxiliary method of a general optical module, which combines a port multiplexing circuit and comprises the following steps: (1) confirming that the communication between the optical module and the upper computer is normal; (2) starting a multiplexing function of the upper computer, reversing the state of the control port and selecting a programming function state; (3) connecting two multiplexing ports SDA and SCL on a bottom plate interface to code programming equipment; (4) programming codes, and resetting a control port to an initial state, namely an IIC communication function state; (5) connecting the SDA and SCL on the bottom plate interface to the communication interface of the upper computer; (6) and the upper computer detects the state of the control port and resets the relevant state of the software interface. The invention has convenient operation, realizes the debugging of the controller codes on the premise of not disassembling a complete module, and reduces the workload and the working efficiency of debugging.
Description
Technical Field
The invention relates to the technical field of optical fiber communication, in particular to a software debugging auxiliary method of a universal optical module.
Background
Nowadays, the optical fiber communication industry is rapidly developed, and various industries related to optical fiber communication have huge development markets, and an optical module has a great amount of demands as an essential photoelectric conversion component in optical fiber communication.
In the product development stage of the optical module, various debugging and testing links are inevitably faced, the optical module after being assembled has considerable inconvenience in software debugging, especially in debugging and programming of controller codes, and software debugging and programming can be performed only by disassembling the shell of the optical module, adding a programming interface and the like, which is very unfavorable for saving cost and improving working efficiency.
Disclosure of Invention
The invention aims to solve the problems in the prior art, and provides a software debugging auxiliary method for a universal optical module.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: a software debugging auxiliary method of a general optical module is combined with a port multiplexing circuit, and is characterized in that the port multiplexing circuit comprises a channel selection circuit and a bottom plate interface, the channel selection circuit is connected with two control ports of a controller in the optical module, the bottom plate interface is connected with two communication ports of the controller through the channel selection circuit, the states of the two control ports of the controller are opposite, a multiplexing function is selected through the state of the control ports, and the initial state of the control ports is an IIC communication function state, and the auxiliary method comprises the following steps: (1) before programming and debugging software of a controller of the optical module, confirming that the optical module is normally communicated with an upper computer; (2) starting a multiplexing function of the upper computer, sending a configuration command to the optical module by the upper computer at the moment, reversing the states of two corresponding control ports of the controller, and selecting a programming function state; (3) connecting two multiplexing ports SDA and SCL on a bottom plate interface to code programming equipment; (4) programming codes through code programming equipment, resetting the optical module, and resetting a corresponding control port of a controller on the optical module to an initial state, namely an IIC communication function state after the resetting is finished; (5) connecting the SDA and SCL on the bottom plate interface to the communication interface of the upper computer; (6) after the work is finished, the upper computer detects the states of the two control ports and resets the relevant states of the software interface so as to facilitate observation of workers.
Preferably: the two control ports of the controller are common IO ports which are idle on the controller chip, the multiplexing function is selected according to high and low levels, one of the two selected IO ports controls the on-off of the IIC communication function, the other one controls the on-off of the programming function, and the states of the two IO ports are one high and one low.
Preferably: the channel selection circuit is realized by adopting an analog switch chip, and when a control port of the controller enables a corresponding CTRL port on the analog switch chip to be set, the corresponding IN and OUT on the analog switch chip are conducted, so that port multiplexing is realized.
Preferably: the multiplexing port in the step (3) is a port for communicating with an upper computer, namely an SDA port and an SCL port, and the multiplexing port is led out from a socket of the bottom plate interface.
The invention has the beneficial effects that: the debugging auxiliary method disclosed by the invention combines two aspects of hardware and software, the problem of software debugging is solved in a mode of multiplexing the functions of the universal interface on the optical module, the multiplexing of the port is realized by using the analog switch chip and the bottom plate interface in the hardware structure, the multiplexing option is provided on the software through the upper computer, the operation of a worker is facilitated, the debugging of the controller software code is realized on the premise of not disassembling the complete module, the debugging workload is reduced, and the debugging working efficiency is improved.
Drawings
FIG. 1 is a port multiplexing circuit of the present invention;
FIG. 2 is a schematic flow chart of the present invention.
Detailed Description
The specific working principle of the present invention will be described in further detail with reference to the accompanying drawings and preferred embodiments.
The software debugging auxiliary method for a general optical module according to the present invention is described with reference to fig. 1 and fig. 2, in which a port multiplexing circuit is combined, the port multiplexing circuit includes a channel selection circuit and a backplane interface, the channel selection circuit is connected to two control ports of a controller in the optical module, the backplane interface is connected to two communication ports of the controller through the channel selection circuit, states of the two control ports of the controller are opposite, a multiplexing function is selected through a state of the control port, and an initial state of the control port is an IIC communication function state, and the auxiliary method includes the following steps: (1) before programming and debugging software of a controller of the optical module, confirming that the optical module is normally communicated with an upper computer; (2) starting a multiplexing function of the upper computer, sending a configuration command to the optical module by the upper computer at the moment, reversing the states of two corresponding control ports of the controller, and selecting a programming function state; (3) connecting two multiplexing ports SDA and SCL on a bottom plate interface to code programming equipment; (4) programming codes through code programming equipment, resetting the optical module, and resetting a corresponding control port of a controller on the optical module to an initial state, namely an IIC communication function state after the resetting is finished; (5) connecting the SDA and SCL on the bottom plate interface to the communication interface of the upper computer; (6) after the work is finished, the upper computer detects the states of the two control ports and resets the relevant states of the software interface so as to facilitate observation of workers.
Example (b): as shown in fig. 1, a port multiplexing circuit according to the present invention is provided, in this embodiment, a controller U1 of an optical module is a type C8051F336, in the controller U1, C2D and C2CK are ports for programming, P1.0 and P1.1 are control ports, and SDA and SCL are IIC communication ports; on the backplane interface CON, SDA, SCL are multiplexed ports on the backplane, between which the analog switch chip U2 is switched on to connect the controller U1. The C2D port is connected to the IN3 port of the analog switch chip U2, and the C2CK port is connected to the IN2 port of the analog switch chip U2; the SDA multiplexing ports on the backplane interface CON are connected to the OUT3 and OUT4 ports of the analog switch chip U2, and the SCL multiplexing ports are connected to the OUT1 and OUT2 ports of the analog switch chip U2; the control port P1.0 is connected to the ports CTRL1 and CTRL4 of the analog switch chip U2, the control port P1.1 is connected to the ports CTRL2 and CTRL3 of the analog switch chip U2, the SDA communication port on the controller is connected to the port IN4 of the analog switch chip U2, and the SCL communication port on the controller is connected to the port IN1 of the analog switch chip U2. When CTRL1 is high, conduction is between the corresponding IN1 and OUT1, while CTRL4 is high, conduction is between the corresponding IN4 and OUT 4; when CTRL2 is high, conduction is between the corresponding IN2 and OUT2, while CTRL3 is high, conduction is between the corresponding IN3 and OUT 3.
The working principle is as follows: when controller software programming debugging needs to be carried out on the optical module, firstly, the optical module is confirmed to be normally communicated with an upper computer; starting a multiplexing function of the upper computer, sending a configuration command to the optical module by the upper computer at the moment, inverting the states of the control ports P1.0 and P1.1, selecting a programming function state when P1.0 is at a low level and P1.1 is at a high level; connecting two multiplexing ports SDA and SCL on a bottom plate interface to code programming equipment; programming codes through code programming equipment, resetting an optical module, and after resetting is completed, resetting control ports P1.0 and P1.1 to an initial state, namely an IIC communication function state, wherein P1.0 is at a high level and P1.1 is at a low level; connecting the SDA and SCL on the bottom plate interface to the communication interface of the upper computer; after the work is finished, the upper computer detects the states of the two control ports P1.0 and P1.1 and resets the relevant states of the software interface so as to facilitate observation of workers.
The debugging auxiliary method disclosed by the invention combines two aspects of hardware and software, the problem of software debugging is solved in a mode of multiplexing the functions of the universal interface on the optical module, the multiplexing of the port is realized by using the analog switch chip and the bottom plate interface in the hardware structure, the multiplexing option is provided on the software through the upper computer, the operation of a worker is facilitated, the debugging of the controller software code is realized on the premise of not disassembling the complete module, the debugging workload is reduced, and the debugging working efficiency is improved.
Claims (4)
1. A software debugging auxiliary method of a general optical module is combined with a port multiplexing circuit, and is characterized in that: the port multiplexing circuit comprises a channel selection circuit and a bottom plate interface, the channel selection circuit is connected with two control ports of a controller in the optical module, the bottom plate interface is connected with two communication ports of the controller through the channel selection circuit, the states of the two control ports of the controller are opposite, a multiplexing function is selected through the state of the control ports, and the initial state of the control ports is an IIC communication function state;
the auxiliary method comprises the following steps:
(1) before programming and debugging software of a controller of the optical module, confirming that the optical module is normally communicated with an upper computer;
(2) starting a multiplexing function of the upper computer, sending a configuration command to the optical module by the upper computer at the moment, reversing the states of two corresponding control ports of the controller, and selecting a programming function state;
(3) connecting two multiplexing ports SDA and SCL on a bottom plate interface to code programming equipment; (4) programming codes through code programming equipment, resetting the optical module, and resetting a corresponding control port of a controller on the optical module to an initial state, namely an IIC communication function state after the resetting is finished;
(5) connecting the SDA and SCL on the bottom plate interface to the communication interface of the upper computer; (6) after the work is finished, the upper computer detects the states of the two control ports and resets the relevant states of the software interface so as to facilitate observation of workers.
2. The software debugging assistance method for a generic optical module according to claim 1, wherein: the two control ports of the controller are common IO ports which are idle on the controller chip, the multiplexing function is selected according to high and low levels, one of the two selected IO ports controls the on-off of the IIC communication function, the other one controls the on-off of the programming function, and the states of the two IO ports are one high and one low.
3. The software debugging assistance method for a generic optical module according to claim 1, wherein: the channel selection circuit is realized by adopting an analog switch chip, and when a control port of the controller enables a corresponding CTRL port on the analog switch chip to be set, the corresponding IN and OUT on the analog switch chip are conducted, so that port multiplexing is realized.
4. The software debugging assistance method for a generic optical module according to claim 1, wherein: the multiplexing port in the step (3) is a port for communicating with an upper computer, namely an SDA port and an SCL port, and the multiplexing port is led out from a socket of the bottom plate interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610776290.8A CN106407107B (en) | 2016-08-31 | 2016-08-31 | Software debugging auxiliary method of general optical module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610776290.8A CN106407107B (en) | 2016-08-31 | 2016-08-31 | Software debugging auxiliary method of general optical module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106407107A CN106407107A (en) | 2017-02-15 |
CN106407107B true CN106407107B (en) | 2020-12-15 |
Family
ID=58003040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610776290.8A Active CN106407107B (en) | 2016-08-31 | 2016-08-31 | Software debugging auxiliary method of general optical module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106407107B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259085A (en) * | 2017-12-30 | 2018-07-06 | 武汉凌科通光电科技有限公司 | Opto-electronic device non-defective unit detection method and system |
CN111045930A (en) * | 2019-11-18 | 2020-04-21 | 武汉光谷信息光电子创新中心有限公司 | Method and system for downloading and debugging optical module code |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070237527A1 (en) * | 2006-03-31 | 2007-10-11 | Sanjay Dabral | Optical debug mechanism |
US9069929B2 (en) * | 2011-10-31 | 2015-06-30 | Iii Holdings 2, Llc | Arbitrating usage of serial port in node card of scalable and modular servers |
CN102323902B (en) * | 2011-07-25 | 2013-03-13 | 中国华录集团有限公司 | Debugging system with analog audio output device |
CN202404575U (en) * | 2011-12-29 | 2012-08-29 | 北京东土科技股份有限公司 | Multiplexing system for console serial port and debug serial port |
CN202444492U (en) * | 2012-03-07 | 2012-09-19 | 成都新易盛通信技术股份有限公司 | GBIC (Giga Bitrate Interface Converter) optical module circuit |
CN102750252B (en) * | 2012-05-29 | 2016-06-29 | 惠州Tcl移动通信有限公司 | USB/UART interface multiplexing circuit and use the electronic equipment of this circuit |
CN202798726U (en) * | 2012-07-27 | 2013-03-13 | 青岛海信宽带多媒体技术有限公司 | CFP optical module tester |
CN202856735U (en) * | 2012-09-25 | 2013-04-03 | 青岛海信宽带多媒体技术有限公司 | Sfp optical network unit debugging system |
CN102868439B (en) * | 2012-09-26 | 2015-07-01 | 索尔思光电(成都)有限公司 | Control system for realizing multiplexing of pin of OLT (optical line terminal) optical module |
CN203278835U (en) * | 2013-06-20 | 2013-11-06 | 青岛海信宽带多媒体技术有限公司 | Optical module calibration system |
CN103812695A (en) * | 2014-01-26 | 2014-05-21 | 青岛海信宽带多媒体技术有限公司 | Software debugging method and device for SFP (small form pluggable) ONU (optical network unit) |
CN104182315B (en) * | 2014-08-29 | 2017-11-07 | 青岛海信电器股份有限公司 | A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function |
CN105630678B (en) * | 2015-12-22 | 2018-10-02 | 国网天津市电力公司 | A kind of the reliability detector and its detection method of intelligent electric energy meter software |
-
2016
- 2016-08-31 CN CN201610776290.8A patent/CN106407107B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106407107A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105445644A (en) | Multi-type chip test plate, test system and test machine bench | |
CN106407107B (en) | Software debugging auxiliary method of general optical module | |
CN102541787A (en) | Serial switching using system and method | |
CN105022375A (en) | Flexible formula configuration method for engine assembly line | |
CN110989551A (en) | Test system based on VxWorks system general interface board | |
CN101008842A (en) | Device for integrating manual pulse generator with bus type machine tools control panel | |
CN109358570A (en) | Support the controller and its communicating control method of a variety of bus driver communications protocol | |
CN101794267A (en) | USB (Universal Serial Bus) switching device and realizing method thereof | |
CN102402203A (en) | System and method for controlling numerical control machine | |
CN210442789U (en) | Touch display device and system | |
CN102904788A (en) | Fieldbus adapter and method of using fieldbus adapter | |
CN102984846A (en) | Lighting control system and lighting devices and centering controller | |
CN202013501U (en) | Integrated numerical control system | |
CN104460482B (en) | CPLD-based double-computer thermal-switching controller | |
CN204221445U (en) | Work piece holder frock in a kind of many connecting levers process | |
CN104416107A (en) | Modularized control method for die-forging hydraulic press | |
CN211087371U (en) | Sorting machine control system based on wireless WI-FI technology | |
CN112506732A (en) | Debugging platform | |
CN207723523U (en) | A kind of drilling machine | |
CN202383479U (en) | Control system for numerical control machine tool | |
CN101859291B (en) | Multi-singlechip cooperative working method and system | |
CN202472346U (en) | Bus PLC (Programmable Logic Controller) with multi-communication protocol | |
CN110908275B (en) | Multi-circuit control method based on single communication interface | |
CN104109938A (en) | Textile device and control circuit board thereof | |
CN213637740U (en) | Equipment debugging device based on bluetooth communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |