CN102055521A - Control method and control device for reading-writing optical module information, and optical module - Google Patents

Control method and control device for reading-writing optical module information, and optical module Download PDF

Info

Publication number
CN102055521A
CN102055521A CN2009102108683A CN200910210868A CN102055521A CN 102055521 A CN102055521 A CN 102055521A CN 2009102108683 A CN2009102108683 A CN 2009102108683A CN 200910210868 A CN200910210868 A CN 200910210868A CN 102055521 A CN102055521 A CN 102055521A
Authority
CN
China
Prior art keywords
optical module
module information
memory address
read
address field
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
CN2009102108683A
Other languages
Chinese (zh)
Other versions
CN102055521B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910210868.3A priority Critical patent/CN102055521B/en
Publication of CN102055521A publication Critical patent/CN102055521A/en
Application granted granted Critical
Publication of CN102055521B publication Critical patent/CN102055521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses a control method and a control device for reading-writing optical module information, and an optical module. The method comprises the steps that: in at least two pieces of target optical module information requiring the read-write of the optical module, the control device determines a first piece of target optical module information and a second piece of target optical module information both meeting the preset conditions, wherein an initial address of a first memory address field with the first piece of target optical module information stored therein is positioned before an end address of a second memory address field with the second piece of target optical module information stored therein; starting I2C (Inter-Integrated Circuit) bus communication; controlling the optical module to read and write all the optical module information stored between the initial address of the first memory address field and the end address of the second memory address field, and closing the I2C bus communication. The technical proposal of the invention settles the problem in the prior art that, the efficiency of reading and writing the optical module information is reduced owing to the fact that frequent opening and closing of the I2C bus communication requires the consumption of more resources.

Description

The control method of read-write optical module information and device, optical module
Technical field
The present invention relates to communication technical field, the particularly a kind of control method of reading and writing optical module information and device, optical module.
Background technology
In a communication equipment, optical module mainly is responsible for the light signal that receives is carried out light/electricity conversion, send to the processing of carrying out the signal of telecommunication as the equipment of Optical Fiber Interface Board and so on then, and the signal of telecommunication that Optical Fiber Interface Board is finished dealing with is carried out the conversion of electricity/light, send with the form of light signal.Optical module information such as received optical power, transmitting optical power, laser temperature and bias current value at work have important effect to the monitoring and the maintenance of optical module, above-mentioned information is stored in the electricallyerasable ROM (EEROM) (EEPROM of optical module inside usually, Electrical Erasable Programmable Read Only Memory) in, in addition, information such as the date of manufacture of optical module, producer's sequence number also may be stored among the EEPROM of optical module inside, and the above-mentioned information of storing in the EEPROM of optical module inside all is called optical module information.
External equipment can use optical module because of special integrated circuit (I2C, Inter-Integrated Circuit) bus communication protocol comes optical module information is carried out read/write (read-write) operation, wherein external equipment need store the corresponding relation of optical module message identification and memory address field in the optical module, this corresponding relation can but be not limited to as shown in the table:
The optical module message identification The memory address field
Received optical power information 0x01~0x02
Transmitting optical power information 0x03~0x04
Laser temperature information 0x05~0x10
The bias current value information 0x11~0x13
Optical module date of manufacture information 0x14~0x16
The optical module sequence number information 0x17~0x18
As seen from the above table, the first address that stores the memory address field of received optical power information is 0x01, the address, end is 0x02, and length is 2 bytes, and the first address that stores the memory address field of transmitting optical power information is the 0x03 byte, the address, end is 0x04, length is 2 bytes, and the first address that stores the memory address field of laser temperature information is the 0x05 byte, and last address is 0x10, length is 4 bytes, and the like.
External equipment can carry out read-write operation to different optical module information simultaneously, for example external equipment need read laser temperature information and bias current value information from optical module, these two kinds of optical module information are called the target light module information, other optical module information then is non-target light module information, as shown in Figure 1, for reading the method flow schematic diagram of optical module information in the prior art, its detailed process is as follows:
Step 11, the I2C bus communication between external device start and the optical module;
Step 12, if the disposable maximum length that reads of optical module is 4 bytes, then external equipment is based on the I2C bus communication protocol, sends the first address 0x05 of laser temperature information and length 4 bytes by the I2C bus to optical module;
Step 13, optical module read the content of the 0x05~0x08 byte among the EEPROM, send to external equipment then;
After step 14, external equipment receive the content of 0x05~0x08 byte, send first address 0x09 to optical module, and length 2 bytes;
Step 15, optical module read the content of the 0x09~0x10 byte among the EEPROM, send to external equipment then;
Step 16, external equipment are determined to have read laser temperature information, and are closed the I2C bus communication after receiving the content of 0x09~0x10 byte that optical module sends;
Step 17, the I2C bus communication between external device start and the optical module;
Step 18, external equipment is to the first address 0x11 of optical module transmission bias current value information, and length 3 bytes;
Step 19, optical module read the content of the 0x11~0x13 byte among the EEPROM, send to external equipment then;
Step 110, external equipment are determined to have read the bias current value information, and are closed the I2C bus communication after receiving the content of 0x11~0x13 byte that optical module sends.
If external equipment need write the optical module information of two types of received optical power information and transmitting optical power information in optical module, these two kinds of optical module information are called the target light module information, other optical module information then is non-target light module information, as shown in Figure 2, for writing the method flow schematic diagram of optical module information in the prior art, its detailed process is as follows:
Step 21, the I2C bus communication between external device start and the optical module;
Step 22, external equipment send address 0x01 based on the I2C bus communication protocol to optical module, and the information that need write the 0x01 byte;
After step 23, optical module are written to the 0x01 byte with the information that receives, the notice external equipment;
Step 24, after external equipment received notice, with address 0x02, and the information that need write the 0x02 byte sent to external equipment;
After step 25, optical module are written to the 0x02 byte with the information that receives, the notice external equipment;
After step 26, external equipment receive the notice of optical module, determine to have finished writing of received optical power information, and close the I2C bus communication;
Step 27, the I2C bus communication between external device start and the optical module;
Step 28, external equipment sends address 0x03 to optical module, and the information that need write the 0x03 byte;
After step 29, optical module are written to the 0x03 byte with the information that receives, the notice external equipment;
Step 210, after external equipment received notice, with memory address 0x04, and the information that need write the 0x04 byte sent to external equipment;
After step 211, optical module are written to the 0x04 byte with the information that receives, the notice external equipment;
After step 212, external equipment receive the notice of optical module, determine to have finished writing of transmitting optical power information, and close the I2C bus communication.
By above-mentioned processing procedure as can be known, when at least two target light module informations of external equipment read-write, at each target light module information, all need to start, close one time the I2C bus communication, need expend more resource and start, close the I2C bus communication, this has just reduced the efficient of read-write optical module information.
Summary of the invention
The embodiment of the invention provides a kind of control method of reading and writing optical module information and device, optical module, in order to solving the frequent starting that exists in the prior art, to close the I2C bus communication and need expend more resource, thereby reduced the problem of the efficient of read-write optical module information.
Embodiment of the invention technical scheme is as follows:
A kind of control method of reading and writing optical module information, the method comprising the steps of: the control device of read-write optical module information is at least two target light module informations of light requirement module read-write, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in described optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information; Startup is because of special integrated circuit I2C bus communication; Based on the I2C bus communication protocol, control all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and carry out read-write operation; Close the I2C bus communication.
A kind of control device of reading and writing optical module information, comprise: determining unit, be used at least two target light module informations in the read-write of light requirement module, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in described optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information; The agreement start unit is used for after determining unit is determined the first target light module information and the second target light module information, starts because of special integrated circuit I2C bus communication; Control unit is used for the bus communication protocol based on I2C, controls all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and carries out read-write operation; The agreement closing unit is used for closing the I2C bus communication after control unit is controlled described optical module and finished read-write operation.
A kind of optical module comprises: first receiving element is used to receive the first address that the control device of read-write optical module information sends; Reading unit is used to read the optical module information that first address that first receiving element receives is stored, and after second receiving element receives first Indication message, continues to read the optical module information of next byte; Transmitting element, the optical module information that is used for reading unit is read sends to described control device; Second receiving element is used to receive first Indication message and second Indication message that described control device sends; Determining unit is used for after second receiving element receives second Indication message, confirms to finish the read operation to optical module information.
A kind of optical module comprises: first receiving element, the optical module information that is used for receiving first address that the control device of read-write optical module information sends and need writes at described first address; Writing unit, the optical module information that is used for first receiving element is received is written to described first address, and receives and need after the optical module information that next byte writes the optical module information that receives be written in next byte at second receiving element; Transmitting element is used for after writing unit writes optical module information, sends to described control device and writes success message; Second receiving element is used to receive the optical module information that described control device sends need write in next byte.
In the embodiment of the invention technical scheme, the control device of read-write optical module information is at least two target light module informations of light requirement module read-write, determine to satisfy the first pre-conditioned target light module information and the second target light module information, the first address that wherein stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information, start the I2C bus communication then, based on the I2C bus communication protocol, control all optical module information of being stored between the last address of this optical module to the first address of the first memory address field and the second memory address field and carry out read-write operation, and close the I2C bus communication, therefore in the embodiment of the invention, start, close the I2C bus communication one time, optical module is read and write two target light module informations at least, and no longer be that target light module information of every read-write just starts, close the I2C bus communication one time, this has just saved more resource, thereby has improved the efficient of read-write optical module information effectively.
Description of drawings
Fig. 1 is in the prior art, reads the method flow schematic diagram of optical module information;
Fig. 2 is in the prior art, writes the method flow schematic diagram of optical module information;
Fig. 3 is in the embodiment of the invention, the schematic flow sheet of the control method of read-write optical module information;
Fig. 4 is in the embodiment of the invention, the control device structural representation of read-write optical module information;
Fig. 5 is in the embodiment of the invention, the optical module structural representation;
Fig. 6 is in the embodiment of the invention, the optical module structural representation.
Embodiment
At length set forth to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach below in conjunction with each accompanying drawing.
As shown in Figure 3, in the embodiment of the invention, the control method flow chart of read-write optical module information, its concrete processing procedure is as follows:
Step 31, the control device of read-write optical module information is at least two target light module informations of light requirement module read-write, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in above-mentioned optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information, in the embodiment of the invention, the control device of read-write optical module information can but be not limited to the external equipment of mentioning in the prior art;
If above-mentioned read-write operation is a read operation, be that above-mentioned control device control optical module reads optical module information, then above-mentionedly pre-conditionedly be: between the last address of the first address of the first memory address field of above-mentioned optical module and the second memory address field, the length of the memory address field that non-target light module information is shared is not more than defined threshold.
When the first target light module information and the second target light module information satisfy above-mentionedly when pre-conditioned, the position relation between the first memory address field and the second memory address field comprises following two kinds of situations:
First kind of situation: the first memory address field is adjacent with the second memory address field, and promptly the last address of the first memory address field is the first address of the second memory address field;
Second kind of situation: store other target light module informations between the first memory address field and the second memory address field, promptly the last address of the first memory address field is positioned at before the first address of the second memory address field.
If above-mentioned control device light requirement module reads the optical module information A, optical module information B and optical module information C, optical module information A then, optical module information B and optical module information C are the target light module information, the memory address field that stores the optical module information A is memory address field A, the memory address field that stores optical module information B is memory address field B, the memory address field that stores optical module information C is memory address field C, and store non-target light module information D between memory address field A and the memory address field B, store non-target light module information E between memory address field B and the memory address field C, the memory address field that stores the optical module information D is memory address field D, and the memory address field that stores optical module information E is memory address field E.
Be directed to above-mentioned first kind of situation, if the length of memory address field D is less than defined threshold, and the length of memory address field E is less than defined threshold, and then the first target light module information can be the optical module information A, and this moment, the second target light module information was optical module information B; The first target light module information also can be optical module information B, and this moment, the second target light module information was optical module information C.
Be directed to above-mentioned second kind of situation, if the length sum of the length of memory address field D and memory address field E is less than defined threshold, then the first target light module information is the optical module information A, and the second target light module information is optical module information C.
If above-mentioned read-write operation is write operation, be that above-mentioned control device control optical module writes optical module information, then above-mentionedly pre-conditionedly be: the optical module information of being stored between the last address of the first address of the first memory address field of above-mentioned optical module and the second memory address field is the target light module information.
Step 32 starts the I2C bus communication;
Step 33 based on the I2C bus communication protocol, is controlled all optical module information of being stored between the last address of above-mentioned optical module to the first address of the first memory address field and the second memory address field and is carried out read-write operation;
Step 34 is closed the I2C bus communication.
Wherein controlling all optical module information of being stored between the last address of optical module to the first address of the first memory address field and the second memory address field carries out read-write operation and can handle according to existing method, can also handle according to the method that the embodiment of the invention proposes, all optical module information of being stored between the last address of the control optical module that the embodiment of the invention is proposed to the first address of the first memory address field and second memory address field method of carrying out read-write operation is elaborated below.
If above-mentioned read-write operation is a read operation, be that above-mentioned control device control optical module reads optical module information, then above-mentioned control device is controlled all optical module information of being stored between the last address of this optical module to the first address of the first memory address field and the second memory address field, and to carry out the step of read operation specific as follows:
Above-mentioned control device at first sends to optical module with the first address of the first memory address field, the pilot light module reads the optical module information that the first address of the first memory address field is stored, and the optical module information that reads sent to above-mentioned control device: repeat following processing then, finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field until confirming this optical module: receive the optical module information that optical module sends, and after receiving optical module information, send first Indication message to this optical module, above-mentioned first Indication message is used to indicate this optical module to continue to read the optical module information of next byte, and the optical module information that reads is sent to above-mentioned control device.
If above-mentioned control device confirms this optical module and finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field, then send and be used to indicate this optical module to stop to read second Indication message of optical module information to this optical module.
Because in the prior art, if control device light requirement module reads the optical module information of 0x01~0x08 byte, the each maximum length that reads of optical module is 4 bytes, then control device at first sends first address 0x01 and length 4 bytes to optical module, after after the optical module information that is stored in 0x01~0x05 byte that receives the optical module transmission, continuation sends first address 0x05 and length 4 bytes to optical module, after the optical module information that is stored in 0x05~0x08 byte that receives the optical module transmission, the affirmation optical module has been finished read operation, and promptly control device is twice to the number of times that optical module sends first address.And in the embodiment of the invention technique scheme, control device only need send first address one time to optical module, then after the optical module information that at every turn receives the optical module transmission, just send first Indication message to optical module, the pilot light module continues to read the optical module information of next byte, has read all optical module information until optical module, so control device only need send a first address and gets final product, this has just saved resource effectively, has further improved the efficient that reads optical module information.
If above-mentioned read-write operation is write operation, be that above-mentioned control device control optical module writes optical module information, then above-mentioned control device is controlled all optical module information of being stored between the last address of this optical module to the first address of the first memory address field and the second memory address field, and to carry out the step of read operation specific as follows:
Above-mentioned control device sends to this optical module with the first address of the first memory address field and the optical module information that need write in the first address of the first memory address field, indicate this optical module that the optical module information that receives is written in the first address of the first memory address field, and after writing successfully, write success message: repeat following processing to above-mentioned control device transmission, finished the write operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field until confirming this optical module: receive the success message that writes that optical module sends, and receive write success message after, send the optical module information that need write in next byte to this optical module, indicate this optical module that the optical module information that receives is written in next byte, and the back write success message to above-mentioned control device transmission writing successfully.
Because in the prior art, if control device light requirement module writes the optical module information of 0x01~0x01 byte, optical module can only write 1 byte content at every turn, the control device optical module information that at first sends first address 0x01 and need write at 0x01 then to optical module, then after receiving the notice of optical module, the optical module information that continue to send first address 0x02 and need write at 0x02, after receiving the notice of optical module, the affirmation optical module has been finished write operation, and promptly control device is twice to the number of times that optical module sends first address.And in the embodiment of the invention technique scheme, control device only need send first address one time to optical module, then after the notice that at every turn receives optical module, just send the optical module information that need write in next byte to optical module, write all optical module information until optical module, therefore control device only need send a first address and get final product, and this has just saved resource effectively, has further improved the efficient that reads optical module information.
In the embodiment of the invention, optical module can but be not limited to the little encapsulation of 10Gbit/s hot-swappable (XFP, 10Gigabit Small Form Factor Pluggable) optical module.
By above-mentioned processing procedure as can be known, in the embodiment of the invention technical scheme, the control device of read-write optical module information is at least two target light module informations of light requirement module read-write, determine to satisfy the first pre-conditioned target light module information and the second target light module information, the first address that wherein stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information, start the I2C bus communication then, based on the I2C bus communication protocol, control all optical module information of being stored between the last address of this optical module to the first address of the first memory address field and the second memory address field and carry out read-write operation, and close the I2C bus communication, therefore in the embodiment of the invention, start, close the I2C bus communication one time, optical module reads two target light module informations at least, and no longer be whenever to read a target light module information just to start, close the I2C bus communication one time, this has just saved more resource, thereby has improved the efficient of read-write optical module information effectively.
As shown in Figure 4, the structural representation of the control device of the read-write optical module information that provides for the embodiment of the invention comprises determining unit 41, agreement start unit 42, control unit 43 and agreement closing unit 44, wherein:
Determining unit 41, be used at least two target light module informations in the read-write of light requirement module, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in above-mentioned optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information;
Agreement start unit 42 is used for after determining unit 41 is determined the first target light module information and the second target light module information, starts the I2C bus communication;
Control unit 43 is used for the bus communication protocol based on I2C, controls all optical module information of being stored between the last address of above-mentioned optical module to the first address of the first memory address field and the second memory address field and carries out read-write operation;
Agreement closing unit 44 is used for closing the I2C bus communication after the above-mentioned optical module of control unit 43 controls is finished read-write operation.
Preferably, when above-mentioned control device is controlled above-mentioned optical module and is read optical module information, above-mentionedly pre-conditionedly be: between the last address of the first address of the first memory address field of optical module and the second memory address field, the length of the memory address field that non-target light module information is shared is not more than defined threshold;
Preferably, when above-mentioned control device is controlled above-mentioned optical module and write optical module information, above-mentionedly pre-conditionedly be: the optical module information of being stored between the last address of the first address of the first memory address field of optical module and the second memory address field is the target light module information.
Preferably, when above-mentioned control device is controlled above-mentioned optical module and is read optical module information, control unit 43 comprises that specifically first sends subelement, the first reception subelement, first judgment sub-unit and the second transmission subelement, wherein first send subelement, be used for the first address of the first memory address field is sent to above-mentioned optical module, the optical module information that the first address of indicating above-mentioned optical module to read the first memory address field is stored, and the optical module information that reads sent to above-mentioned control device; First receives subelement, is used to receive the optical module information that above-mentioned optical module sends; First judgment sub-unit, be used for first receive subelement and receive optical module information after, judge that above-mentioned optical module finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field; Second sends subelement, be used in the judged result of first judgment sub-unit for not the time, send first Indication message to optical module, first Indication message is used to indicate above-mentioned optical module to continue to read the optical module information of next byte, and the optical module information that reads is sent to above-mentioned control device.
More preferably, control unit 43 comprises that also the 3rd sends subelement, is used in the judged result of first judgment sub-unit being used to indicate above-mentioned optical module to stop to read second Indication message of optical module information to above-mentioned optical module transmission when being.
More preferably, when above-mentioned control device control optical module writes optical module information, control unit 43 comprises that specifically the 4th sends subelement, second receives subelement, second judgment sub-unit and the 5th sends subelement, wherein the 4th send subelement, be used for the first address of the first memory address field and the optical module information that need write at the first address of the first memory address field are sent to above-mentioned optical module, indicate above-mentioned optical module that the optical module information that receives is written in the first address of the first memory address field, and write success message to above-mentioned control device transmission after writing successfully: second receives subelement, is used to receive the success message that writes of above-mentioned optical module transmission; Second judgment sub-unit is used to judge that above-mentioned optical module finished the write operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field; The 5th sends subelement, be used in the judged result of second judgment sub-unit for not the time, send the optical module information that need write in next byte to above-mentioned optical module, indicate above-mentioned optical module that the optical module information that receives is written in next byte, and the back write success message to above-mentioned control device transmission writing successfully.
As shown in Figure 5, the optical module structural representation for the embodiment of the invention proposes comprises first receiving element 51, reading unit 52, transmitting element 53, second receiving element 54 and determining unit 55, wherein:
First receiving element 51 is used to receive the first address that the control device of read-write optical module information sends;
Reading unit 52 is used to read the optical module information that first address that first receiving element 51 receives is stored, and after second receiving element 54 receives first Indication message, continues to read the optical module information of next byte;
Transmitting element 53, the optical module information that is used for reading unit 52 is read sends to above-mentioned control device;
Second receiving element 54 is used to receive first Indication message and second Indication message that above-mentioned control device sends;
Determining unit 55 is used for after second receiving element 54 receives second Indication message, confirms to finish the read operation to optical module information.
As shown in Figure 6, the optical module structural representation for the embodiment of the invention proposes comprises first receiving element 61, writing unit 62, transmitting element 63 and second receiving element 64, wherein:
First receiving element 61, the optical module information that is used for receiving first address that the control device of read-write optical module information sends and need writes at above-mentioned first address;
Writing unit 62, be used for the optical module information that first receiving element 61 receives is written to above-mentioned first address, and receive and after the optical module information that next byte writes, the optical module information that receives to be written in next byte at second receiving element 64;
Transmitting element 63 is used for after writing unit 62 writes optical module information, sends to above-mentioned control device and writes success message;
Second receiving element 64 is used to receive the optical module information that above-mentioned control device sends need write in next byte.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (13)

1. a control method of reading and writing optical module information is characterized in that, comprising:
The control device of read-write optical module information is at least two target light module informations of light requirement module read-write, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in described optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information;
Startup is because of special integrated circuit I2C bus communication;
Based on the I2C bus communication protocol, control all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and carry out read-write operation;
Close the I2C bus communication.
2. the control method of read-write optical module information as claimed in claim 1 is characterized in that, when described control device is controlled described optical module and read optical module information, describedly pre-conditionedly is:
Between the last address of the first address of the first memory address field of described optical module and the second memory address field, the length of the memory address field that non-target light module information is shared is not more than defined threshold;
When described control device is controlled described optical module and write optical module information, describedly pre-conditionedly be:
The optical module information of being stored between the last address of the first address of the first memory address field of described optical module and the second memory address field is the target light module information.
3. the control method of read-write optical module information as claimed in claim 1, it is characterized in that, when described control device is controlled described optical module and is read optical module information, described control device is controlled all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and is carried out read operation, specifically comprises:
Described control device sends to described optical module with the first address of the first memory address field, the optical module information that the first address of indicating described optical module to read the first memory address field is stored, and the optical module information that reads sent to described control device;
Repeat following processing, until confirming that described optical module finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field:
Receive the optical module information that optical module sends, and after receiving optical module information, send first Indication message to described optical module, described first Indication message is used to indicate described optical module to continue to read the optical module information of next byte, and the optical module information that reads is sent to described control device.
4. the control method of read-write optical module information as claimed in claim 3, it is characterized in that, after described control device confirms that described optical module has been finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field, send to described optical module and to be used to indicate described optical module to stop to read second Indication message of optical module information.
5. the control method of read-write optical module information as claimed in claim 1, it is characterized in that, when described control device is controlled described optical module and is write optical module information, described control device is controlled all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and is carried out write operation, specifically comprises:
Described control device sends to described optical module with the first address of the first memory address field and the optical module information that need write in the first address of the first memory address field, indicate described optical module that the optical module information that receives is written in the first address of the first memory address field, and the back write success message to described control device transmission writing successfully;
Repeat following processing, until confirming that described optical module finished the write operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field:
Receive the success message that writes of optical module transmission, and receive write success message after, send the optical module information that need write in next byte to described optical module, indicate described optical module that the optical module information that receives is written in next byte, and the back write success message to described control device transmission writing successfully.
6. as the control method of the described read-write optical module of 1~5 arbitrary claim information, it is characterized in that described optical module is the hot-swappable XFP optical module of the little encapsulation of 10Gbit/s.
7. a control device of reading and writing optical module information is characterized in that, comprising:
Determining unit, be used at least two target light module informations in the read-write of light requirement module, determine to satisfy the first pre-conditioned target light module information and the second target light module information, wherein in described optical module, the first address that stores the first memory address field of the first target light module information is positioned at before the last address of the second memory address field that stores the second target light module information;
The agreement start unit is used for after determining unit is determined the first target light module information and the second target light module information, starts because of special integrated circuit I2C bus communication;
Control unit is used for the bus communication protocol based on I2C, controls all optical module information of being stored between the last address of described optical module to the first address of the first memory address field and the second memory address field and carries out read-write operation;
The agreement closing unit is used for closing the I2C bus communication after control unit is controlled described optical module and finished read-write operation.
8. the control device of read-write optical module information as claimed in claim 7 is characterized in that, when described control device is controlled described optical module and read optical module information, describedly pre-conditionedly is:
Between the last address of the first address of the first memory address field of described optical module and the second memory address field, the length of the memory address field that non-target light module information is shared is not more than defined threshold;
When described control device is controlled described optical module and write optical module information, describedly pre-conditionedly be:
The optical module information of being stored between the last address of the first address of the first memory address field of described optical module and the second memory address field is the target light module information.
9. the control device of read-write optical module information as claimed in claim 7 is characterized in that, when described control device was controlled described optical module and read optical module information, described control unit specifically comprised:
First sends subelement, be used for the first address of the first memory address field is sent to described optical module, the optical module information that the first address of indicating described optical module to read the first memory address field is stored, and the optical module information that reads sent to described control device;
First receives subelement, is used to receive the optical module information that described optical module sends;
First judgment sub-unit, be used for first receive subelement and receive optical module information after, judge that described optical module finished the read operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field;
Second sends subelement, be used in the judged result of first judgment sub-unit for not the time, send first Indication message to optical module, described first Indication message is used to indicate described optical module to continue to read the optical module information of next byte, and the optical module information that reads is sent to described control device.
10. the control device of read-write optical module information as claimed in claim 9 is characterized in that described control unit also comprises;
The 3rd sends subelement, is used in the judged result of first judgment sub-unit being used to indicate described optical module to stop to read second Indication message of optical module information to described optical module transmission when being.
11. the control device of read-write optical module information as claimed in claim 7 is characterized in that, when described control device control optical module write optical module information, described control unit specifically comprised:
The 4th sends subelement, be used for the first address of the first memory address field and the optical module information that need write at the first address of the first memory address field are sent to described optical module, indicate described optical module that the optical module information that receives is written in the first address of the first memory address field, and the back writes success message to described control device transmission writing successfully:
Second receives subelement, is used to receive the success message that writes of described optical module transmission;
Second judgment sub-unit is used to judge that described optical module finished the write operation of all optical module information of being stored between the last address to the first address of the first memory address field and the second memory address field;
The 5th sends subelement, be used in the judged result of second judgment sub-unit for not the time, send the optical module information that need write in next byte to described optical module, indicate described optical module that the optical module information that receives is written in next byte, and the back write success message to described control device transmission writing successfully.
12. an optical module is characterized in that, comprising:
First receiving element is used to receive the first address that the control device of read-write optical module information sends;
Reading unit is used to read the optical module information that first address that first receiving element receives is stored, and after second receiving element receives first Indication message, continues to read the optical module information of next byte;
Transmitting element, the optical module information that is used for reading unit is read sends to described control device;
Second receiving element is used to receive first Indication message and second Indication message that described control device sends;
Determining unit is used for after second receiving element receives second Indication message, confirms to finish the read operation to optical module information.
13. an optical module is characterized in that, comprising:
First receiving element, the optical module information that is used for receiving first address that the control device of read-write optical module information sends and need writes at described first address;
Writing unit, the optical module information that is used for first receiving element is received is written to described first address, and receives and need after the optical module information that next byte writes the optical module information that receives be written in next byte at second receiving element;
Transmitting element is used for after writing unit writes optical module information, sends to described control device and writes success message;
Second receiving element is used to receive the optical module information that described control device sends need write in next byte.
CN200910210868.3A 2009-11-11 2009-11-11 Control method and control device for reading-writing optical module information, and optical module Active CN102055521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910210868.3A CN102055521B (en) 2009-11-11 2009-11-11 Control method and control device for reading-writing optical module information, and optical module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910210868.3A CN102055521B (en) 2009-11-11 2009-11-11 Control method and control device for reading-writing optical module information, and optical module

Publications (2)

Publication Number Publication Date
CN102055521A true CN102055521A (en) 2011-05-11
CN102055521B CN102055521B (en) 2014-03-12

Family

ID=43959496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910210868.3A Active CN102055521B (en) 2009-11-11 2009-11-11 Control method and control device for reading-writing optical module information, and optical module

Country Status (1)

Country Link
CN (1) CN102055521B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699526A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Method and device for reading optical module information by utilizing software
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN109743105A (en) * 2019-01-08 2019-05-10 郑州云海信息技术有限公司 Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
CN110998509A (en) * 2018-07-16 2020-04-10 华为技术有限公司 Method, equipment and system for acquiring optical module link negotiation information
CN111953412A (en) * 2020-08-07 2020-11-17 苏州浪潮智能科技有限公司 Method and device for realizing optical information synchronization of optical module switch
CN112463662A (en) * 2020-12-16 2021-03-09 福州创实讯联信息技术有限公司 Method and terminal for controlling I2C equipment by user mode
CN112865861A (en) * 2020-12-31 2021-05-28 深圳市吉光通科技有限公司 Optical network fault processing device, optical module and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949687A (en) * 2006-11-20 2007-04-18 杭州华为三康技术有限公司 Method and apparatus for processing light module information in communication apparatus
US20080022363A1 (en) * 2006-07-06 2008-01-24 Mike Le Flexible hardware password protection and access control
CN101149722A (en) * 2007-10-22 2008-03-26 中兴通讯股份有限公司 Method for executing CPU access to XFP optical module

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080022363A1 (en) * 2006-07-06 2008-01-24 Mike Le Flexible hardware password protection and access control
CN1949687A (en) * 2006-11-20 2007-04-18 杭州华为三康技术有限公司 Method and apparatus for processing light module information in communication apparatus
CN101149722A (en) * 2007-10-22 2008-03-26 中兴通讯股份有限公司 Method for executing CPU access to XFP optical module

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699526A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Method and device for reading optical module information by utilizing software
WO2015081686A1 (en) * 2013-12-06 2015-06-11 中兴通讯股份有限公司 Method and apparatus for reading optical module information using software
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN106126362B (en) * 2016-06-17 2019-01-04 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN110998509A (en) * 2018-07-16 2020-04-10 华为技术有限公司 Method, equipment and system for acquiring optical module link negotiation information
US11256635B2 (en) 2018-07-16 2022-02-22 Huawei Technolgoies Co., Ltd. Optical module link negotiation information obtaining method, device, and system
CN109743105A (en) * 2019-01-08 2019-05-10 郑州云海信息技术有限公司 Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
CN111953412A (en) * 2020-08-07 2020-11-17 苏州浪潮智能科技有限公司 Method and device for realizing optical information synchronization of optical module switch
CN112463662A (en) * 2020-12-16 2021-03-09 福州创实讯联信息技术有限公司 Method and terminal for controlling I2C equipment by user mode
CN112463662B (en) * 2020-12-16 2024-04-05 福州创实讯联信息技术有限公司 Method and terminal for user mode control of I2C equipment
CN112865861A (en) * 2020-12-31 2021-05-28 深圳市吉光通科技有限公司 Optical network fault processing device, optical module and method

Also Published As

Publication number Publication date
CN102055521B (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN102055521B (en) Control method and control device for reading-writing optical module information, and optical module
CN100366029C (en) Communication controller, host-side controller, communication equipment, communication system and method
CN104135424B (en) A kind of application message method for pushing, server, terminal and system
CN101231610A (en) Apparatus and method for monitoring SATA hardpan
CN108806673A (en) A kind of smart machine control method, device and smart machine
CN107809633A (en) The method and device of TV automatic aging
CN103678912A (en) Monitor data importing method and device
CN101305585A (en) Near field communication host controller interface
CN103412836A (en) Hot plug processing method, device and system
CN103546638B (en) A kind of flash memory cards fall card restoration methods and mobile terminal thereof
CN202434811U (en) Intelligent socket and intelligent control system
CN115052312A (en) Wireless communication method, device, equipment and storage medium of heat pump equipment
CN102402447A (en) Equipment booting method and equipment
CN101146145B (en) Automatic testing system and method for power on and power off of transmission device
CN211123671U (en) L oRa technology-based pneumatic hammer wireless automatic control system
CN103237043A (en) Distributed data collecting system based on multiple data sources
CN112860703A (en) Data processing method and device, energy information gateway and energy internet system
CN113704053B (en) Cabinet asset management device and control method thereof
CN101105974A (en) Non-volatile memory device and control method thereof
CN106300653A (en) Power distribution automation main station system remote measure and communication introduction method
CN111030862B (en) Equipment off-line management system based on acquisition terminal
CN211554943U (en) Multi-functional data collection station of wisdom mill
CN201408429Y (en) Card reader capable of displaying working state of card
CN101702195A (en) Timing sequence control method and card reader
CN102799393A (en) Method and device for working condition management on dual-interface smart card chip

Legal Events

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