A wavelength recording method and an optical module identification method
By converting the data before and after the decimal point of the wavelength value in the optical module into hexadecimal and stored in different regions, combining the preset offset and adjustment coefficient, the problem of inaccurate recording of wavelength value in traditional optical modules is solved, and higher accuracy and recognition are achieved.
Patent Information
- Application Number
- CN202010311564.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-20
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2040-04-20
AI Technical Summary
Traditional optical modules can only discard the fractional part when storing wavelength values, resulting in inaccurate recording of wavelength values and inaccurate recording of wavelength values of optical modules processed by optical signals.
After converting the data before the decimal point in the wavelength value to be stored in the decimal form, the area stored in the optical module divided by the protocol is converted into the hexadecimal form, the data after the decimal point is converted into the hexadecimal form, and the area not divided by the protocol is stored, and the preset offset and adjustment coefficient are used for conversion.
Improves the recording accuracy of wavelength values, ensuring that the optical module can accurately store and identify the wavelength values of the optical signal.
Smart Images

Figure CN113541782B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to network communication technology, and more particularly to a wavelength recording method and an optical module identification method. Background Art
[0002] With the rapid development of optical module packaging types, optical module packaging is gradually moving towards miniaturization. Traditional optical modules with miniaturized packaging need to follow traditional standard protocols.
[0003] Optical modules follow traditional standard protocols, requiring the wavelength of the optical signal processed by the module to be converted into a hexadecimal encoding according to the traditional standard protocol and stored in the module's memory area. However, in the decimal system, regardless of the length unit used, the wavelength of light may not be an integer. For example, even in nanometers (nm), the wavelength of light may be 1596.34nm. In this case, due to limited storage space for wavelengths in the optical module's memory area, to convert the wavelength value to a hexadecimal format that meets storage requirements, the decimal portion of the decimal representation is discarded. Only the integer portion of the decimal representation is converted to the corresponding hexadecimal format and stored. For example, if the wavelength of light is 1596.34nm, the four digits before the decimal point, i.e., 1596, are converted to the hexadecimal number 063C for storage, while the two digits after the decimal point, i.e., 34, are discarded.
[0004] It can be seen from this that using this storage method, only the approximate value of the wavelength value can be stored in the optical module storage area, and the wavelength value of the optical signal processed by the optical module cannot be accurately recorded, resulting in low accuracy in recording the wavelength value of the optical signal processed by the optical module. Summary of the Invention
[0005] The present application provides a wavelength recording method and an optical module identification method, which improves the accuracy of recording wavelength.
[0006] A wavelength recording method, applied to an optical module, comprising:
[0007] Obtain a wavelength value to be stored in decimal format, where the wavelength value to be stored is the wavelength value of the optical signal transmitted by the optical module;
[0008] Converting the data before the decimal point of the wavelength value to be stored in decimal form into hexadecimal form and storing the data in a first area of the optical module, where the first area is an area of the optical module used by the protocol to store the wavelength value to be stored in integer form;
[0009] The data after the decimal point in the wavelength value to be stored represented in decimal format is converted into hexadecimal format and then stored in the second area of the optical module, where the second area is an area of the optical module that is not used by the protocol.
[0010] A wavelength recording method, applied to an optical module, comprising:
[0011] Obtain a wavelength value to be stored in decimal format, where the wavelength value to be stored is the wavelength value of the optical signal transmitted by the optical module;
[0012] Converting the wavelength value to be stored in decimal form into a first numerical value in decimal form using a preset offset and an adjustment coefficient, wherein the first numerical value has more integer digits than the integer digits of the wavelength value to be stored;
[0013] After the first value is converted into hexadecimal form, it is stored in a first area of the optical module. The first area is an area of the optical module used by the protocol to store the wavelength value to be stored in integer form.
[0014] A method for identifying an optical module, applied to a host computer, includes:
[0015] Reading first data in a first area and second data in a second area in the optical module, where the first data is hexadecimal data converted from data before a decimal point in the wavelength value to be stored, and the second data is hexadecimal data converted from data after a decimal point in the wavelength value to be stored;
[0016] Converting the first data into data before the decimal point of the wavelength value to be stored in decimal form;
[0017] Converting the second data into data after the decimal point of the wavelength value to be stored in decimal form;
[0018] Combining the data before the decimal point in the wavelength value to be stored and the data after the decimal point in the wavelength value to be stored into the wavelength value to be stored;
[0019] If the wavelength value to be stored is within the wavelength value range preset by the host computer, the optical module is controlled to emit light.
[0020] A method for identifying an optical module, applied to a host computer, includes:
[0021] Reading a third value in the first area of the optical module, where the third value is the first value in hexadecimal format;
[0022] converting the third value to the first value in decimal form;
[0023] Converting the first numerical value in decimal form into a wavelength value to be stored in decimal form using a preset offset and an adjustment coefficient;
[0024] If the wavelength value to be stored is within the wavelength value range preset by the host computer, the optical module is controlled to emit light.
[0025] Beneficial effect: The present application provides a wavelength recording method, which is applied to an optical module. The recording method includes obtaining a decimal representation of a wavelength value to be stored, which is the wavelength value of the optical signal emitted by the optical module. After converting the data before the decimal point in the decimal representation of the wavelength value to be stored into hexadecimal form, it is stored in a first area in the optical module. The first area is an area in the optical module that is used by the protocol to store the wavelength value to be stored in integer form. After converting the data after the decimal point in the decimal representation of the wavelength value to be stored into hexadecimal form, it is stored in a second area in the optical module. The second area is an area in the optical module that is not used by the protocol. In the present application, after converting the data after the decimal point in the decimal representation of the wavelength value to be stored into hexadecimal form, it is stored in an area in the optical module that is not used, thereby improving the accuracy of the recorded wavelength. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0027] Figure 1 Schematic diagram of the connection relationship of optical communication terminals;
[0028] Figure 2 Schematic diagram of the optical network unit structure;
[0029] Figure 3 A flowchart of a wavelength recording method provided in an embodiment of the present application;
[0030] Figure 4 A flowchart of another wavelength recording method provided in an embodiment of the present application;
[0031] Figure 5 A flowchart of a method for identifying an optical module provided in an embodiment of the present application;
[0032] Figure 6 This is a flowchart of another optical module identification method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0034] One of the core aspects of fiber-optic communications is the conversion between optical and electrical signals. Fiber-optic communications uses optical signals, carrying information, to transmit through information transmission equipment such as optical fibers and optical waveguides. Leveraging the passive transmission properties of light within optical fibers and optical waveguides, this technology enables low-cost, low-loss information transmission. Computers and other information processing devices, on the other hand, use electrical signals. Establishing an information connection between optical fibers and optical waveguides requires conversion between electrical and optical signals.
[0035] In the field of fiber-optic communications, optical modules implement the aforementioned conversion between optical and electrical signals. This conversion is the core function of optical modules. Optical modules use gold fingers on their internal circuit boards to achieve electrical connections with external host computers. Key electrical connections include power supply, I2C signals, data signals, and grounding. This electrical connection method, achieved using gold fingers, has become the mainstream connection method in the optical module industry, and the definition of the gold finger pins has formed a variety of industry protocols and specifications.
[0036] Figure 1 Figure 1 is a schematic diagram of the connection relationship of optical communication terminals. Figure 1 As shown, the connection of the optical communication terminal mainly includes the mutual connection between the optical network terminal 100, the optical module 200, the optical fiber 101 and the network cable 103;
[0037] One end of the optical fiber 101 is connected to the remote server, and one end of the network cable 103 is connected to the local information processing device. The connection between the local information processing device and the remote server is completed by the connection between the optical fiber 101 and the network cable 103; and the connection between the optical fiber 101 and the network cable 103 is completed by the optical network terminal 100 with the optical module 200.
[0038] The optical port of the optical module 200 is connected to the optical fiber 101, establishing a bidirectional optical signal connection with the optical fiber 101; the electrical port of the optical module 200 is connected to the optical network terminal 100, establishing a bidirectional electrical signal connection with the optical network terminal 100; the mutual conversion between optical signals and electrical signals is realized within the optical module, thereby establishing an information connection between the optical fiber and the optical network terminal; specifically, the optical signal from the optical fiber is converted into an electrical signal by the optical module and then input into the optical network terminal 100, and the electrical signal from the optical network terminal 100 is converted into an optical signal by the optical module and input into the optical fiber.
[0039] The optical network terminal has an optical module interface 102 for accessing the optical module 200 and establishing a bidirectional electrical signal connection with the optical module 200; the optical network terminal has a network cable interface 104 for accessing the network cable 103 and establishing a bidirectional electrical signal connection with the network cable 103; a connection is established between the optical module 200 and the network cable 103 through the optical network terminal 100. Specifically, the optical network terminal transmits the signal from the optical module to the network cable, and transmits the signal from the network cable to the optical module. The optical network terminal acts as the host computer of the optical module to monitor the operation of the optical module.
[0040] At this point, a two-way signal transmission channel is established between the remote server and the local information processing device through optical fibers, optical modules, optical network terminals and network cables.
[0041] Common information processing equipment includes routers, switches, and electronic computers. The optical network terminal is the host computer of the optical module, providing data signals to the optical module and receiving data signals from the optical module. Common optical module host computers also include optical line terminals.
[0042] Figure 2 Figure 1 is a schematic diagram of the optical network terminal structure. Figure 2 As shown, the optical network terminal 100 has a circuit board 105, and a cage 106 is set on the surface of the circuit board 105; an electrical connector is set inside the cage 106 for connecting to the electrical port of the optical module such as the gold finger; a heat sink 107 is set on the cage 106, and the heat sink 107 has protrusions such as fins to increase the heat dissipation area.
[0043] The optical module 200 is inserted into the optical network terminal 100 . Specifically, the electrical port of the optical module 200 is inserted into the electrical connector inside the cage 106 , and the optical port of the optical module 200 is connected to the optical fiber 101 .
[0044] The cage 106 is located on the circuit board, enclosing the electrical connector on the circuit board in the cage, so that the electrical connector is provided inside the cage; the optical module 200 is inserted into the cage, and the cage fixes the optical module 200. The heat generated by the optical module is transferred to the cage 106 and then diffused through the heat sink 107 on the cage.
[0045] The following describes in detail a method for recording wavelengths using the optical module 200 .
[0046] Figure 3 This is a flow chart of a wavelength recording method provided in an embodiment of the present application. Figure 3 As shown, the wavelength recording method provided by this application is applied to optical modules, and the specific recording method is as follows:
[0047] S100: Obtain a wavelength value to be stored in decimal format, where the wavelength value to be stored is the wavelength value of the optical signal transmitted by the optical module.
[0048] Table 1 shows the definition of wavelength in traditional standard protocols.
[0049]
[0050] The optical module has storage areas, including those designated for use by the protocol and those not designated for use by the protocol. Table 1 shows the definition of wavelengths in traditional standard protocols. As shown in Table 1, 56-59 / 60-61 / 63 are designated for use by the protocol, while 62 is designated for use by the protocol. Within the designated areas, there are areas for storing integer wavelength values to be stored, such as 60-61 in Table 1.
[0051] Since the area used to store wavelength values in the area divided by the protocol can only store integer wavelength values, it is necessary to convert the data before the decimal point and the data after the decimal point in the decimal wavelength value to be stored separately and store them in different locations. The specific process is as follows:
[0052] S200: Converting the data before the decimal point in the wavelength value to be stored in decimal form into hexadecimal form, and storing the data in a first area of the optical module, where the first area is an area of the optical module used by the protocol to store the wavelength value to be stored in integer form.
[0053] The data before the decimal point in the wavelength value to be stored represented in decimal format is converted into first data, and the first data in hexadecimal format is stored in a first area of the optical module. The first area is shown as 60-61 in Table 1, and the first data is the hexadecimal data after the data before the decimal point in the wavelength value to be stored is converted.
[0054] S300: Convert the data after the decimal point in the wavelength value to be stored in decimal format into hexadecimal format, and store the data in a second area of the optical module, where the second area is an area of the optical module that is not used by the protocol.
[0055] Because the number of digits after the decimal point is uncertain, if all digits after the decimal point are converted into the second data, the second area may not be able to fully store all the digits after the decimal point converted into the second data in hexadecimal format due to the limited storage space of the second area. In order to store as many digits after the decimal point as possible in the second area, in this application, first, the storage space length of the second area is determined; second, based on the storage space length, the number of digits N to be subsequently converted from the decimal representation of the wavelength value to be stored is determined; finally, the N digits after the decimal point are converted into hexadecimal format and stored in the second area of the optical module.
[0056] The data after the decimal point in the wavelength value to be stored represented in decimal format is converted into second data, and the second data in hexadecimal format is stored in a second area of the optical module, where the second data is the hexadecimal data after the decimal point in the wavelength value to be stored. The second area is 62 shown in Table 1.
[0057] For example, when the optical module stores 1596.34 nm, the optical module first reads 1596.34 nm, then converts 1596 into the first hexadecimal data 063C, converts 34 into the second hexadecimal data 22, and finally stores 063C in 60-61 in Table 1 and 22 in 62 in Table 1.
[0058] In addition to the wavelength recording method described above, this application also provides another wavelength recording method, which is described below.
[0059] Figure 4 This is a flow chart of another wavelength recording method provided in an embodiment of the present application. Figure 4 It can be seen that the wavelength recording method provided by this application is applied to optical modules, and the specific process is as follows:
[0060] S001: Obtain a wavelength value to be stored in decimal format, where the wavelength value to be stored is the wavelength value of the optical signal transmitted by the optical module.
[0061] S002: Converting the wavelength value to be stored in decimal form into a first numerical value in decimal form using a preset offset and an adjustment coefficient, wherein the first numerical value has more integer digits than the wavelength value to be stored.
[0062] The relationship between the offset and the adjustment coefficient is as follows:
[0063] Wavelength=A+value / B;
[0064] Wherein, Wavelength is the wavelength value to be stored expressed in decimal, value is the first value, A is the preset offset, and B is the adjustment coefficient.
[0065] When A is 0 and B is 20, the relationship between the offset, the adjustment coefficient, and the wavelength value to be stored is Wavelength=value / 20.
[0066] When A is 1200 and B is 100, the relationship between the offset, the adjustment coefficient, and the wavelength value to be stored is: Wavelength = 1200 + value / 100.
[0067] S003: After converting the first value into hexadecimal format, the first value is stored in a first area of the optical module. The first area is an area of the optical module used by the protocol to store integer-format wavelength values to be stored.
[0068] After converting the first value into hexadecimal form, the first value is stored in the first area of the optical module. Specifically,
[0069] Determine whether there is data after the decimal point of the first value.
[0070] If there is no data after the decimal point of the first value, the first value is converted into a hexadecimal format and stored in the first area of the optical module.
[0071] For example, when the optical module stores 1596.34 nm, it first reads 1596.34 nm, Wavelength = 1200 + value / 100 nm. At this point, the decimal value to be stored is Wavelength = 1596.34, and the first value is value = 39634. Because there is no data after the decimal point in the first value, the first value is directly converted to hexadecimal form as 9AD2, and finally 9AD2 is stored in 60-61 shown in Table 1.
[0072] If the first value has data after the decimal point, convert the first value to the second value according to the rounding method, and the second value is a decimal integer value. Convert the second value to hexadecimal form.
[0073] For example, when the optical module stores 1596.34 nm, it first reads 1596.34 nm and uses Wavelength = value / 20 nm. The decimal value to be stored is Wavelength = 1596.34, and the first value = 31926.8. Because the first value has data after the decimal point, it is rounded off to convert the first value to the second value of 31927. This second value is then converted to hexadecimal form as 7CB7, and finally stored at 60-61 in Table 1.
[0074] The wavelength recording method provided in this application is applied to an optical module. A host computer reads the data stored in the optical module and determines whether the optical module is the one required by the host computer based on the data. The following describes the optical module identification method in detail.
[0075] Figure 5 This is a flow chart of a method for identifying an optical module provided in an embodiment of the present application. Figure 5 As shown, the optical module identification method provided in this application is applied to the host computer, and the specific process is as follows:
[0076] T100: Read the first data in the first area and the second data in the second area of the optical module. The first data is the hexadecimal data converted from the data before the decimal point in the wavelength value to be stored. The second data is the hexadecimal data converted from the data after the decimal point in the wavelength value to be stored.
[0077] The host computer reads the first data in the first area and the second data in the second area of the optical module through the golden finger.
[0078] T200: converting the first data and the second data into data before the decimal point of the wavelength value to be stored in decimal form and data after the decimal point of the wavelength value to be stored in decimal form, respectively.
[0079] T300: Combine the data before the decimal point in the wavelength value to be stored and the data after the decimal point in the wavelength value to be stored into the wavelength value to be stored.
[0080] T400: Determine whether the wavelength value to be stored is within the wavelength value range preset by the host computer.
[0081] T500: If the wavelength value to be stored is within the wavelength value range preset by the host computer, the optical module is controlled to emit light.
[0082] T600: If the wavelength value to be stored is not within the wavelength value range preset by the host computer, the control optical module will not emit light.
[0083] Figure 6 This is a flow chart of another optical module identification method provided in an embodiment of the present application. Figure 6 As shown, an optical module identification method provided in an embodiment of the present application is applied to a host computer, and the specific process is as follows:
[0084] T001: Read the third value in the first area of the optical module. The third value is the first value in hexadecimal format.
[0085] The host computer reads the third value in the first area of the optical module through the golden finger.
[0086] T002: Convert the third value to the first value in decimal form.
[0087] T003: Convert the first numerical value in decimal form into a wavelength value to be stored in decimal form using a preset offset and an adjustment coefficient.
[0088] T004: Determine whether the wavelength value to be stored is within the wavelength value range preset by the host computer.
[0089] T005: If the wavelength value to be stored is within the wavelength value range preset by the host computer, the optical module is controlled to emit light.
[0090] T006: If the wavelength value to be stored is not within the wavelength value range preset by the host computer, the control optical module will not emit light.
[0091] In this application, the host computer reads the data stored in the optical module, and uses the traditional standard protocol to convert the data stored in the optical module into a decimal wavelength value to be stored by storing the wavelength value to be stored in the optical module, and determines whether the wavelength value to be stored is within the wavelength value range preset by the host computer. If so, the optical module is controlled to emit light; if not, the optical module is controlled not to emit light.
[0092] The present application provides a wavelength recording method, which is applied to an optical module. The recording method includes obtaining a wavelength value to be stored in decimal representation, where the wavelength value to be stored is the wavelength value of the optical signal emitted by the optical module. After converting the data before the decimal point in the wavelength value to be stored in decimal representation into hexadecimal form, the data is stored in a first area in the optical module. The first area is an area in the optical module that is used by the protocol to store the wavelength value to be stored in integer form. After converting the data after the decimal point in the wavelength value to be stored in decimal representation into hexadecimal form, the data is stored in a second area in the optical module. The second area is an area in the optical module that is not used by the protocol. In the present application, after converting the data after the decimal point in the wavelength value to be stored in decimal representation into hexadecimal form, the data is stored in an area in the optical module that is not used by the protocol, thereby improving the accuracy of the recorded wavelength.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A wavelength recording method, characterized in that: Applied to an optical module, the recording method includes: Obtaining a wavelength value to be stored in decimal representation, where the wavelength value to be stored is a wavelength value of an optical signal emitted by the optical module; Converting the wavelength value to be stored in decimal form into a first numerical value in decimal form using a preset offset and an adjustment coefficient, wherein the first numerical value has more integer digits than the integer digits of the wavelength value to be stored; The relationship between the preset offset and the adjustment coefficient is as follows: Wavelength=A+value / B; Wherein, Wavelength is the wavelength value to be stored expressed in decimal, value is the first value, A is the preset offset, and B is the adjustment coefficient; After the first value is converted into hexadecimal form, it is stored in a first area of the optical module, where the first area is an area of the optical module used by protocol to store wavelength values to be stored in integer form.
2. The recording method according to claim 1, wherein Converting the first value into hexadecimal form includes: If the first value has data after the decimal point, convert the first value into a second value according to a rounding method, where the second value is an integer value in decimal form; Convert the second value to hexadecimal form.
3. The recording method according to claim 1, wherein Converting the first value into hexadecimal form includes: If there is no data after the decimal point of the first value, the first value is converted into hexadecimal form.
4. A method for identifying an optical module, characterized in that: Applied to the host computer, the discrimination method includes: Reading a third value in the first area of the optical module, where the third value is the first value in hexadecimal format; converting the third value to the first value in decimal form; Converting the first numerical value in decimal form into a wavelength value to be stored in decimal form using a preset offset and an adjustment coefficient; The relationship between the preset offset and the adjustment coefficient is as follows: Wavelength=A+value / B; Wherein, Wavelength is the wavelength value to be stored expressed in decimal, value is the first value, A is the preset offset, and B is the adjustment coefficient; If the wavelength value to be stored is within the wavelength value range preset by the host computer, the optical module is controlled to emit light.
Citation Information
Patent Citations
Operating wavelength control system and method for optical transceiver
CN103001703A
Data storage method and device and data query method and device
CN104657481A