[go: up one dir, main page]

CN1949687B - Method and apparatus for processing light module information in communication apparatus - Google Patents

Method and apparatus for processing light module information in communication apparatus Download PDF

Info

Publication number
CN1949687B
CN1949687B CN200610145840.2A CN200610145840A CN1949687B CN 1949687 B CN1949687 B CN 1949687B CN 200610145840 A CN200610145840 A CN 200610145840A CN 1949687 B CN1949687 B CN 1949687B
Authority
CN
China
Prior art keywords
module
information
optical
output
optical module
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.)
Expired - Fee Related
Application number
CN200610145840.2A
Other languages
Chinese (zh)
Other versions
CN1949687A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN200610145840.2A priority Critical patent/CN1949687B/en
Publication of CN1949687A publication Critical patent/CN1949687A/en
Application granted granted Critical
Publication of CN1949687B publication Critical patent/CN1949687B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Communication System (AREA)

Abstract

本发明公开了一种通信设备中光模块的信息处理方法,包括:在通信设备检测到有光模块插入时读取光模块中预先保存的信息,按照预设策略判断读取的信息与预先保存的光接口的信息是否匹配并输出判断结果。本发明还公开了一种通信设备中光模块的信息处理装置,包括:光模块信息查询模块;光接口信息保存模块;匹配判断模块,与光接口信息查询模块及光接口信息保存模块连接,用于获取光模块信息查询模块读取的信息以及光接口信息保存模块中预先保存的信息并按照预设策略判断是否匹配;输出模块,与匹配判断模块连接,用于输出判断结果信息。本发明能够提高操作和维护效率,便于故障定位,增强可用性。

Figure 200610145840

The invention discloses an information processing method of an optical module in a communication device. Whether the information of the optical interface matches and outputs the judgment result. The present invention also discloses an information processing device for an optical module in a communication device, comprising: an optical module information query module; an optical interface information storage module; a matching judgment module connected with the optical interface information query module and the optical interface information storage module, and using Obtaining the information read by the optical module information query module and the information pre-stored in the optical interface information storage module and judging whether it matches according to the preset strategy; the output module is connected with the matching judging module to output judging result information. The invention can improve operation and maintenance efficiency, facilitate fault location and enhance usability.

Figure 200610145840

Description

通信设备中光模块的信息处理方法及装置Information processing method and device of optical module in communication equipment

技术领域 technical field

本发明涉及通信设备的处理方法及装置,特别涉及一种通信设备中光模块的信息处理方法及装置,属于通信领域。  The invention relates to a processing method and device for communication equipment, in particular to an information processing method and device for an optical module in a communication device, belonging to the field of communication. the

背景技术 Background technique

光模块在光传输、网络、通信等通信领域是不可或缺的通信元件。光模块的种类很多,根据封装形式可分为SFP、GBIC、XFP、XENPAK;根据所支持的速率可分为100M、155M、622M、1.25G、10G等;根据发射激光的类型可分为单模光模块和多模光模块,还可以根据工作波长和传输距离等来进行分类。  Optical modules are indispensable communication components in optical transmission, network, communication and other communication fields. There are many types of optical modules, which can be divided into SFP, GBIC, XFP, and XENPAK according to the packaging form; can be divided into 100M, 155M, 622M, 1.25G, 10G, etc. according to the supported rate; can be divided into single-mode according to the type of laser emission Optical modules and multimode optical modules can also be classified according to operating wavelength and transmission distance. the

另一方面,网络设备对外提供的光接口类型也很丰富,根据对外提供的接口速率类型可分为百兆、千兆和万兆光接口。为了适应不断增长的客户需求和方便客户灵活使用,网络设备厂家经常会在一个网络设备上同时提供多种不同速率类型的光接口(比如:提供一定数量的百兆、千兆和万兆光接口)供客户选用。这些接口一般设计为可插拔形式,支持不同厂家生产的光模块。  On the other hand, the types of optical interfaces provided by network equipment are also very rich. According to the types of interface rates provided externally, they can be divided into 100M, 1000M and 10M optical interfaces. In order to meet the ever-increasing customer demand and facilitate flexible use by customers, network equipment manufacturers often provide multiple types of optical interfaces with different rates on one network equipment (for example: provide a certain number of 100M, 1000M and 10G ) for customers to choose. These interfaces are generally designed to be pluggable and support optical modules produced by different manufacturers. the

光模块速率信息一般是在出厂时已经写好,并保存在光模块内部的一片EEPROM中,主机通过与光模块互连的标准I2C串行总线来获取光模块类型、速率、厂家等相关数据信息。光模块内部EEPROM的AOH地址空间寄存器详细定义如表1所示。  The optical module rate information is generally written at the factory and stored in a piece of EEPROM inside the optical module. The host obtains the optical module type, rate, manufacturer and other related data information through the standard I2C serial bus interconnected with the optical module. . The detailed definition of the AOH address space register of the EEPROM inside the optical module is shown in Table 1. the

表1光模块内部EEPROM的AOH地址空间寄存器定义表  Table 1 AOH address space register definition table of EEPROM inside the optical module

Figure S061E5840220061123D000011
Figure S061E5840220061123D000011

Figure S061E5840220061123D000021
Figure S061E5840220061123D000021

不同速率的光接口需要和特定速率的光模块匹配使用,否则无法正常工作或在一定程度上影响设备的性能,但是对于一般的使用者,相同封装的光模块无论是从外观还是标签都很难区分光模块支持的速率类型。  Optical interfaces of different rates need to be matched with optical modules of specific rates, otherwise they will not work properly or affect the performance of the equipment to a certain extent. Distinguish the rate type supported by the optical module. the

现有技术中,为解决上述问题,通常是以命令行格式输入命令以查询光模块类型和速率,然后操作人员根据查询获得的光模块类型和速率,来判断插入的光模块是否与光接口类型相匹配。该方法的不足之处在于:  In the prior art, in order to solve the above problems, commands are usually entered in command line format to query the type and rate of the optical module, and then the operator judges whether the inserted optical module is compatible with the type of optical interface according to the type and rate of the optical module obtained from the query. match. The disadvantages of this method are:

1、操作效率不高。该方法需要人工输入命令以获取光模块信息,并需要人工判断光模块与光接口是否匹配,而未实现全程自动地识别和判断;  1. The operating efficiency is not high. This method requires manual input of commands to obtain optical module information, and manually judges whether the optical module matches the optical interface, but does not realize automatic identification and judgment throughout the process;

2、维护难度大。当用户或维护人员误插入了与光接口不匹配的光模块时,通信设备无法自动上报错误信息,从而给故障定位带来了不便,影响了可用性,降低了维护效率。  2. It is difficult to maintain. When users or maintenance personnel mistakenly insert an optical module that does not match the optical interface, the communication device cannot automatically report an error message, which brings inconvenience to fault location, affects availability, and reduces maintenance efficiency. the

发明内容 Contents of the invention

本发明的目的是为克服上述现有技术的缺陷,提供一种通信设备中光模块的信息处理方法及装置,能够自动识别光模块的信息并判断是否与光接口相匹配,从而能够提高操作和维护效率,便于故障定位,增强可用性。  The purpose of the present invention is to overcome the defects of the above-mentioned prior art, and provide an information processing method and device for an optical module in a communication device, which can automatically identify the information of the optical module and judge whether it matches the optical interface, thereby improving the operation and Maintenance efficiency, easy fault location, and enhanced availability. the

为实现上述发明目的,本发明提供了一种通信设备中光模块的信息处理方法,包括:在通信设备检测到有光模块插入时,读取光模块中预先保存的出厂信息,按照预设的策略判断所读取的出厂信息与光接口中预先保存的光接口的信息是否匹配,并输出判断结果。 In order to achieve the purpose of the above invention, the present invention provides an information processing method for an optical module in a communication device, which includes: when the communication device detects that an optical module is inserted, read the pre-saved factory information in the optical module, and follow the preset The policy judges whether the read factory information matches the pre-saved optical interface information in the optical interface, and outputs the judgment result.

在上述技术方案中,通过预先保存所要进行比对的信息,并在通信设备检测到有光模块插入时,读取光模块中预先保存的信息与光接口中保存的信息进行比对,判断是否匹配,并输出判断结果,从而能够在光模块插入光接口后自动地识别光模块的信息并判断是否与光接口匹配;并且全部识别、匹配、以及输出的操作均为自动实现,而非现有技术中的人工输入命令行查询光模块信息以及人工判断是否匹配,从而大大提高了操作效率;同时在光模块与光接口不匹配时能够自动输出不匹配的提示信息,从而能够迅速定位故障,大大提高了维护效率;通过按照预设的策略自动判断光模块与光接口是否匹配,还能够为光接口选择最适配的光模块,从而能够使通信设备的性能获得最大限度的利用,大大提高了通信设备的可用性。优选地,为判断光模块所支持的速率与光接口所支持的速率是否匹配,所述读取光模块中预先保存的出厂信息可具体包括:读取光模块中预先保存的速率信息;所述按照预设的策略判断所读取的出厂信息与光接口中预先保存的光接口的信息是否匹配可具体包括:判断所读取的速率信息与预先保存的速率信息是否匹配。优选地,为判断光模块的型号与光接口所支持的型号是否匹配,所述读取光模块中预先保存的出厂信息具体包括:读取光模块中预先保存的光模块的型号信息。所述按照预设的策略判断所读取的出厂信息与光接口中预先保存的光接口的信息是否匹配具体包括:判断所读取的光模块的型号信息与预先保存的型号信息是否匹配。优选地,为判断光模块的供应商与预设的供应商是否匹配,所述读取光模块中预先保存的出厂信息具体包括:读取光模块中预先保存的光模块的供应商信息;所述按照预设的策略判断所读取的出厂信息与光接口中预先保存的光接口的信息是否匹配具体包括:判断所读取的光模块的供应商信息与预先保存的供应商信息是否匹配。所述按照预设的策略判断所读取的出厂信息与光接口中预先保存的光接口的信息 是否匹配并输出判断结果也可具体包括:判断所读取的光模块的供应商信息与预先保存的供应商信息是否匹配,如果匹配则获取预先保存的该供应商对应的服务功能,然后输出匹配的提示信息以及对应的服务功能的提示信息,并开通对应的服务功能或调用相应的服务功能程序后结束;如果不匹配则输出不匹配的提示信息以及不匹配的原因的提示信息后结束。  In the above technical solution, by saving the information to be compared in advance, and when the communication device detects that an optical module is inserted, it reads the pre-stored information in the optical module and compares it with the information stored in the optical interface to determine whether Match and output the judgment result, so that after the optical module is inserted into the optical interface, it can automatically identify the information of the optical module and judge whether it matches the optical interface; and all the operations of identification, matching, and output are realized automatically, rather than existing In the technology, the manual input of the command line to query the information of the optical module and the manual judgment of whether it is matched have greatly improved the operation efficiency; at the same time, when the optical module does not match the optical interface, it can automatically output the prompt information of the mismatch, so that the fault can be quickly located, which greatly improves the operation efficiency. Improve maintenance efficiency; by automatically judging whether the optical module matches the optical interface according to the preset strategy, it is also possible to select the most suitable optical module for the optical interface, so that the performance of the communication equipment can be maximized, greatly improving Availability of communication equipment. Preferably, in order to judge whether the rate supported by the optical module matches the rate supported by the optical interface, the reading the pre-saved factory information in the optical module may specifically include: reading the pre-saved rate information in the optical module; Judging whether the read factory information matches the pre-saved optical interface information in the optical interface according to a preset policy may specifically include: judging whether the read rate information matches the pre-stored rate information. Preferably, in order to determine whether the model of the optical module matches the model supported by the optical interface, reading the factory information pre-stored in the optical module specifically includes: reading the model information of the optical module pre-stored in the optical module. The judging according to the preset strategy whether the read factory information matches the pre-saved optical interface information in the optical interface specifically includes: judging whether the read optical module model information matches the pre-saved model information. Preferably, in order to judge whether the supplier of the optical module matches the preset supplier, the reading of the pre-saved factory information in the optical module specifically includes: reading the supplier information of the pre-saved optical module in the optical module; The judging whether the read factory information matches the pre-stored information of the optical interface according to the preset strategy specifically includes: judging whether the read supplier information of the optical module matches the pre-stored supplier information. According to the preset strategy, judging whether the read factory information matches the pre-saved optical interface information in the optical interface and outputting the judgment result may also specifically include: judging the read supplier information of the optical module and the pre-saved information. Whether the supplier information matches, if it matches, obtain the service function corresponding to the supplier saved in advance, then output the matching prompt information and the prompt information of the corresponding service function, and open the corresponding service function or call the corresponding service function program If there is no match, output the prompt information of the mismatch and the prompt information of the cause of the mismatch and end. the

为实现发明目的,本发明还提供了一种通信设备中光模块的信息处理装置,包括:光模块信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的出厂信息;光接口信息保存模块,用于在光接口中预先保存光接口的信息;匹配判断模块,与所述光接口信息查询模块及光接口信息保存模块连接,用于获取光模块信息查询模块读取的光模块中预先保存的信息、以及光接口信息保存模块中预先保存的光接口的信息,并按照预先设定的策略判断是否匹配;输出模块,与匹配判断模块连接,用于向用户输出匹配判断的结果信息。在上述技术方案中,通过光模块信息查询模块在光模块插入光接口后获取光模块中预先保存的信息,匹配判断模块根据预设的策略判断光模块信息查询模块所获取的信息与光接口信息保存模块所保存的信息是否匹配,并通过输出模块输出匹配判断结果信息,从而能够在光模块插入光接口后自动识别光模块的信息并判断与光接口是否匹配,而非现有技术的人工输入命令识别光模块的信息以及人工判断是否匹配,因此大大提高了操作效率;同时,输出模块在光模块与光接口不匹配时能够自动输出不匹配的提示信息,从而能够迅速定位故障,大大提高了维护效率;并且,通过匹配判断模块按照预设的策略自动判断光模块与光接口是否匹配,还能够为光接口选择使用最适配的光模块,从而能够使通信设备的性能获得最大限度的利用,大大提高了通信设备的可用性。  To achieve the purpose of the invention, the present invention also provides an information processing device for an optical module in a communication device, including: an optical module information query module, used to establish a connection with the optical module when the communication device detects that an optical module is inserted, and read Take the factory information pre-saved in the optical module; the optical interface information preservation module is used to pre-save the information of the optical interface in the optical interface; the matching judgment module is connected with the optical interface information query module and the optical interface information preservation module, and uses Obtaining the pre-saved information in the optical module read by the optical module information query module and the pre-saved optical interface information in the optical interface information storage module, and judging whether it matches according to a preset strategy; the output module and the matching judgment The module connection is used to output the result information of the matching judgment to the user. In the above technical solution, the information pre-saved in the optical module is obtained by the optical module information query module after the optical module is inserted into the optical interface, and the matching judgment module judges the information obtained by the optical module information query module and the optical interface information according to the preset strategy Whether the information saved by the saving module matches, and output the matching judgment result information through the output module, so that after the optical module is inserted into the optical interface, the information of the optical module can be automatically identified and whether it matches the optical interface can be judged, instead of manual input in the prior art The command identifies the information of the optical module and manually judges whether it matches, so the operation efficiency is greatly improved; at the same time, the output module can automatically output the prompt information of the mismatch when the optical module does not match the optical interface, so that the fault can be quickly located, which greatly improves the operating efficiency. Maintenance efficiency; and, through the matching judgment module, it can automatically judge whether the optical module matches the optical interface according to the preset strategy, and can also select the most suitable optical module for the optical interface, so that the performance of the communication equipment can be maximized. , greatly improving the availability of communication equipment. the

优选地,为判断光模块所支持的速率与光接口所支持的速率是否匹配,所述光模块信息查询模块可包括速率信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的速率信息;所述光接口信息保存模块可包括速率信息保存模块,用于保存光接口所支持的速率信息;所述匹配判断模块包括速率匹配判断模块,与所述速率信息查询模块、速率信息保存模块、以及输出模块连接,用于获取速率信息查询模块读取的光模块中预先保存的速率信息、以及速率信息保存模块中预先保存的速率信息,按照预先设定的策略判断是否匹配,并向输出模块输出判断结果提示信息。  Preferably, in order to determine whether the rate supported by the optical module matches the rate supported by the optical interface, the optical module information query module may include a rate information query module for communicating with the optical module when the communication device detects that an optical module is inserted. Establish a connection and read the pre-saved rate information in the optical module; the optical interface information storage module may include a rate information storage module for storing the rate information supported by the optical interface; the matching judgment module includes a rate matching judgment module , connected to the rate information query module, the rate information storage module, and the output module, for obtaining the rate information pre-stored in the optical module read by the rate information query module and the rate information pre-stored in the rate information storage module, It judges whether it matches according to a preset strategy, and outputs prompt information of the judgment result to the output module. the

优选地,为判断光模块的型号与光接口所支持的型号是否匹配,所述光模块信息查询模块可包括型号信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的型号信息;所述光接口信息保存模块可包括型号信息保存模块,用于保存光接口所支持的型号信息;所述匹配判断模块可包括型号匹配判断模块,与所述型号信息查询模块、型号信息保存模块、以及输出模块连接,用于获取型号信息查询模块读取的光模块中预先保存的型号信息、以及型号信息保存模块中预先保存的型号信息,按照预先设定的策略判断是否匹配,并向输出模块输出判断结果提示信息。  Preferably, in order to determine whether the model of the optical module matches the model supported by the optical interface, the optical module information query module may include a model information query module for establishing a connection with the optical module when the communication device detects that an optical module is inserted , and read the pre-saved model information in the optical module; the optical interface information storage module may include a model information storage module for storing the model information supported by the optical interface; the matching judgment module may include a model matching judgment module, Connect with the model information query module, the model information storage module, and the output module, and be used to obtain the pre-saved model information in the optical module read by the model information query module and the pre-saved model information in the model information storage module, according to The preset strategy judges whether it matches, and outputs prompt information of the judgment result to the output module. the

优选地,为判断光模块的供应商与预设的供应商是否匹配,所述光模块信息查询模块可包括供应商信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的供应商信息;所述光接口信息保存模块可包括供应商信息保存模块,用于保存光接口所支持的供应商信息;所述匹配判断模块可包括第一供应商信息匹配判断模块,与所述供应商信息查询模块、供应商信息保存模块、以及输出模块连接,用于获取供应商信息查询模块读取的光模块中预先保存的供应商信息、以及供应商信息保存模块中预先保存的供应商信息,按照预先设定的策略判断是否匹配,并向输出模块输出判断结果提示信息;所述匹配判断模块也可包括第二供应商信息匹配判断模块,与所述供应商信息查询模块、供应商信息保存模块、以及输出模块连接,用于获取供应商信息查询模块读取的光模块中预先保存的供应商信息、以及供应商信息保存模块中预先保存的供应信息,按照预先设定的策略判断是否匹配,如果匹配则获取该供应商信息对应的服务功能信息,向输出模块输出匹配的提示 信息以及服务功能的提示信息,并开通对应的服务功能或调用相应的服务功能程序;如果不匹配则向输出模块输出不匹配的提示信息以及原因的提示信息。  Preferably, in order to determine whether the supplier of the optical module matches the preset supplier, the optical module information query module may include a supplier information query module, which is used to establish an optical module with the optical module when the communication device detects that an optical module is inserted. connected, and read the pre-saved supplier information in the optical module; the optical interface information storage module may include a supplier information storage module for storing the supplier information supported by the optical interface; the matching judgment module may include the first A supplier information matching judging module, connected with the supplier information query module, supplier information storage module, and output module, used to obtain the pre-saved supplier information in the optical module read by the supplier information query module, and The pre-saved supplier information in the supplier information storage module judges whether it matches according to a preset strategy, and outputs the judgment result prompt information to the output module; the matching judgment module may also include a second supplier information matching judgment module, Connect with the supplier information query module, the supplier information storage module, and the output module, for obtaining the supplier information pre-saved in the optical module read by the supplier information query module and the pre-saved supplier information in the supplier information storage module According to the pre-set strategy to judge whether it matches the supply information, if it matches, obtain the service function information corresponding to the supplier information, output the matching prompt information and service function prompt information to the output module, and open the corresponding service function or Call the corresponding service function program; if it does not match, output the prompt information of mismatch and the reason to the output module. the

优选地,所述输出模块可包括指示灯模块,与所述匹配判断模块连接,用于根据匹配判断模块发送的判断结果提示信息输出对应的预设的指示灯信号,例如通过指示灯的闪亮来显示异常或正常,或通过红色、黄色等不同颜色的指示灯亮的方式来显示异常或正常。所述输出模块可包括音频输出模块,与所述匹配判断模块连接,用于根据匹配判断模块发送的判断结果提示信息输出对应的预设的音频信号。所述输出模块也可包括命令行显示模块,与所述匹配判断模块连接,用于以命令行方式显示输出匹配判断模块发送的判断结果提示信息。所述输出模块也可包括图形界面显示模块,与所述匹配判断模块连接,用于以图形界面方式显示输出匹配判断模块发送的判断结果提示信息。  Preferably, the output module may include an indicator light module, which is connected to the matching judgment module, and is used to output a corresponding preset indicator signal according to the prompt information of the judgment result sent by the matching judgment module, for example, through the flashing of the indicator light To display abnormality or normality, or to display abnormality or normality by means of red, yellow and other different colored indicator lights. The output module may include an audio output module connected to the matching judging module, and configured to output a corresponding preset audio signal according to the judging result prompt information sent by the matching judging module. The output module may also include a command line display module connected to the matching judging module for displaying and outputting the judgment result prompt information sent by the matching judging module in a command line. The output module may also include a graphical interface display module connected to the matching judging module for displaying and outputting the judgment result prompt information sent by the matching judging module in a graphical interface. the

综上所述,本发明通过预先保存所要进行比对的信息,并在通信设备检测到有光模块插入时,读取光模块中预先保存的信息与光接口中保存的信息进行比对,判断是否匹配,并输出判断结果,在光模块与光接口不匹配时能够自动输出不匹配的提示信息,其全部识别、匹配、以及输出的操作均为自动实现,而非现有技术中的人工输入命令行查询光模块信息以及人工判断是否匹配,从而能够达到提高操作效率和维护效率、迅速定位故障、使通信设备的性能获得最大限度的利用、提高通信设备的可用性的有益技术效果。  In summary, the present invention saves the information to be compared in advance, and when the communication device detects that an optical module is inserted, reads the pre-saved information in the optical module and compares it with the information stored in the optical interface, and judges Whether it matches, and output the judgment result. When the optical module does not match the optical interface, it can automatically output the prompt information of the mismatch. All the operations of identification, matching, and output are realized automatically, rather than manual input in the prior art. The command line queries the optical module information and manually judges whether it matches, so as to achieve the beneficial technical effects of improving operation efficiency and maintenance efficiency, quickly locating faults, maximizing the performance of communication equipment, and improving the availability of communication equipment. the

附图说明 Description of drawings

图1为本发明通信设备中光模块的信息处理方法的实施例一的流程示意图;  Fig. 1 is a schematic flow chart of Embodiment 1 of an information processing method of an optical module in a communication device of the present invention;

图2为本发明通信设备中光模块的信息处理方法的实施例二的流程示意图;  Fig. 2 is a schematic flow diagram of Embodiment 2 of the information processing method of the optical module in the communication device of the present invention;

图3为本发明通信设备中光模块的信息处理方法的实施例三的流程示意图;  Fig. 3 is a schematic flow chart of Embodiment 3 of the information processing method of the optical module in the communication device of the present invention;

图4为本发明通信设备中光模块的信息处理方法的实施例四的流程示意图;  FIG. 4 is a schematic flow diagram of Embodiment 4 of the information processing method of the optical module in the communication device of the present invention;

图5为本发明通信设备中光模块的信息处理方法的实施例五的流程示意图;  5 is a schematic flow diagram of Embodiment 5 of the information processing method of the optical module in the communication device of the present invention;

图6为本发明通信设备中光模块的信息处理方法的实施例六的流程示意图;  6 is a schematic flow diagram of Embodiment 6 of the information processing method of the optical module in the communication device of the present invention;

图7为本发明通信设备中光模块的信息处理装置的实施例一的结构示意图。  FIG. 7 is a schematic structural diagram of Embodiment 1 of an information processing device for an optical module in a communication device according to the present invention. the

具体实施方式 Detailed ways

下面结合附图和实施例,对本发明的技术方案做进一步的详细描述。  The technical solutions of the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. the

本发明的基本构思为:针对现有技术中通过人工输入命令以获取光模块信息,并需要人工判断光模块与光接口是否匹配,而未实现全程自动地识别和判断,从而导致操作效率低和维护难度大的缺陷,提供一种方法及装置,通过预先保存所要进行比对的信息,并在通信设备检测到有光模块插入时,读取光模块中预先保存的信息与光接口中保存的信息进行比对,判断是否匹配,并输出判断结果,从而能够实现全程自动地识别光模块信息并判断是否与光接口匹配以及输出判断结果信息,进而能够达到提高操作效率和维护效率、迅速定位故障、使通信设备的性能获得最大限度的利用、提高通信设备的可用性的有益技术效果。  The basic idea of the present invention is: in the prior art, the information of the optical module is obtained by manually inputting commands, and it is necessary to manually judge whether the optical module matches the optical interface, but the automatic identification and judgment of the whole process is not realized, resulting in low operating efficiency and For defects that are difficult to maintain, a method and device are provided. By pre-saving the information to be compared, and when the communication device detects that an optical module is inserted, it reads the pre-saved information in the optical module and the information stored in the optical interface. Compare the information, judge whether it matches, and output the judgment result, so as to realize the automatic identification of the optical module information and judge whether it matches the optical interface and output the judgment result information, thereby improving the operation efficiency and maintenance efficiency, and quickly locating the fault , The beneficial technical effect of maximizing the utilization of the performance of the communication equipment and improving the usability of the communication equipment. the

基于上述发明构思,本发明提供了一种通信设备中光模块的信息处理方法,参见图1所示的本发明通信设备中光模块的信息处理方法的实施例一的流程示意图,首先在步骤a中,在通信设备检测到有光模块插入时,读取光模块中预先保存的信息;然后在步骤b中,按照预设的策略判断所读取的信息与预先保存的光接口的信息是否匹配;最后在步骤c中输出判断结果。  Based on the above inventive concept, the present invention provides an information processing method of an optical module in a communication device. Referring to the schematic flow chart of Embodiment 1 of the information processing method of an optical module in a communication device of the present invention shown in FIG. 1 , first in step a , when the communication device detects that an optical module is inserted, read the pre-saved information in the optical module; then in step b, judge whether the read information matches the pre-saved optical interface information according to the preset strategy ; Finally output the judgment result in step c. the

在上述实施例一中,通过预先保存所要进行比对的信息,并在通信设备检 测到有光模块插入时,读取光模块中预先保存的信息与光接口中保存的信息进行比对,判断是否匹配,并输出判断结果,从而能够在光模块插入光接口后自动地识别光模块的信息并判断是否与光接口匹配,而非现有技术中的人工输入命令行查询光模块信息以及人工判断是否匹配,因此大大提高了操作效率;同时在光模块与光接口不匹配时能够自动输出不匹配的提示信息,从而能够迅速定位故障,大大提高了维护效率;并且通过按照预设的策略自动判断光模块与光接口是否匹配,还能够为光接口选择使用最适配的光模块,从而能够使通信设备的性能获得最大限度的利用,大大提高了通信设备的可用性。  In the first embodiment above, by saving the information to be compared in advance, and when the communication device detects that an optical module is inserted, the information stored in advance in the optical module is read and compared with the information stored in the optical interface, Judging whether it matches, and outputting the judgment result, so that after the optical module is inserted into the optical interface, the information of the optical module can be automatically identified and whether it is matched with the optical interface, instead of manually inputting the command line to query the information of the optical module and manually inputting the command line in the prior art. Judging whether it matches, thus greatly improving the operation efficiency; at the same time, when the optical module does not match the optical interface, it can automatically output the prompt information of the mismatch, so that the fault can be quickly located and the maintenance efficiency is greatly improved; and by automatically following the preset strategy Judging whether the optical module matches the optical interface can also select the most suitable optical module for the optical interface, so that the performance of the communication equipment can be maximized and the availability of the communication equipment can be greatly improved. the

进一步地,在实际应用本发明所提供的技术方案时,可根据实际需要对所述预设的策略以及所要进行匹配的光模块与光接口的信息进行具体限定,下面结合具体应用场景对本发明技术方案作详细说明:  Furthermore, when the technical solution provided by the present invention is actually applied, the preset strategy and the information of the optical module and optical interface to be matched can be specifically limited according to actual needs. The technology of the present invention will be described below in combination with specific application scenarios The plan is explained in detail:

1、当需要根据光接口所支持的速率类型来选择速率类型相匹配的光模块时,可参照图2所示的实施例二的流程示意图,在步骤a1中,在通信设备检测到有光模块插入时,读取光模块中预先保存的速率信息;然后在步骤b1中,判断所读取的速率信息与预先保存的速率信息是否匹配;最后在步骤c中输出判断结果。  1. When it is necessary to select an optical module that matches the rate type according to the rate type supported by the optical interface, you can refer to the schematic flow chart of Embodiment 2 shown in Figure 2. In step a1, the communication device detects that there is an optical module When inserting, read the pre-saved rate information in the optical module; then in step b1, judge whether the read rate information matches the pre-saved rate information; finally output the judgment result in step c. the

此外,上述步骤a1中所述读取光模块中预先保存的速率信息可为读取光模块内部EEPROM的寄存器中保存的速率信息,例如,参见表1所示的光模块内部EEPROM的AOH地址空间寄存器定义表,在偏移地址为12字节的寄存器中保存有光模块的标称速率,因此所述读取光模块中预先保存的速率信息可为读取光模块内部EEPROM的AOH地址空间偏移地址为12字节的寄存器中保存的速率信息。  In addition, reading the pre-stored rate information in the optical module described in the above step a1 can read the rate information stored in the register of the internal EEPROM of the optical module, for example, refer to the AOH address space of the internal EEPROM of the optical module shown in Table 1 Register definition table, the nominal rate of the optical module is stored in the register with an offset address of 12 bytes, so the rate information pre-saved in the read optical module can be read AOH address space offset of the internal EEPROM of the optical module The shift address is the rate information saved in the 12-byte register. the

2、当需要根据光接口所支持的光模块的型号类型来选择型号相匹配的光模块时,可参照图3所示的实施例三的流程示意图,在步骤a2中,在通信设备检测到有光模块插入时,读取光模块中预先保存的光模块的型号信息;然后在步骤b2中,判断所读取的型号信息与预先保存的型号信息是否匹配;最后在步骤 c中输出判断结果。同样地,参照表1,上述步骤a2中读取光模块中预先保存的光模块的型号信息可为读取光模块内部EEPROM的寄存器中保存的型号信息。  2. When it is necessary to select a matching optical module according to the model type of the optical module supported by the optical interface, you can refer to the schematic flow chart of the third embodiment shown in Figure 3. In step a2, when the communication device detects that there is When the optical module is inserted, read the pre-saved model information of the optical module in the optical module; then in step b2, judge whether the read model information matches the pre-saved model information; finally output the judgment result in step c. Similarly, referring to Table 1, reading the pre-saved model information of the optical module in step a2 may be reading the model information saved in the register of the EEPROM inside the optical module. the

3、当需要根据预先制定的供应商信息来判断光模块的供应商是否匹配时,可参照图4所示的实施例四的流程示意图,在步骤a3中,在通信设备检测到有光模块插入时,读取光模块中预先保存的光模块的供应商信息;然后在步骤b3中,判断所读取的供应商信息与预先保存的供应商信息是否匹配;最后在步骤c中输出判断结果。同样地,参照表1,上述步骤a2中读取光模块中预先保存的光模块的供应商信息可为读取光模块内部EEPROM的寄存器中保存的供应商信息。  3. When it is necessary to judge whether the supplier of the optical module matches according to the pre-established supplier information, you can refer to the schematic flow chart of Embodiment 4 shown in Figure 4. In step a3, the communication device detects that an optical module is inserted , read the pre-saved supplier information of the optical module in the optical module; then in step b3, judge whether the read supplier information matches the pre-saved supplier information; finally output the judgment result in step c. Similarly, referring to Table 1, reading the pre-stored supplier information of the optical module in the above step a2 may be reading the supplier information stored in the register of the EEPROM inside the optical module. the

4、当需要根据预先指定的供应商信息判断光模块的供应商是否匹配,并且需要对不同的供应商提供不同的服务功能时,可参照图5所示的实施例五的流程示意图,在步骤a3中,在通信设备检测到有光模块插入时,读取光模块中预先保存的光模块的供应商信息;然后在步骤b3中,判断所读取的供应商信息与预先保存的供应商信息是否匹配;随后在步骤c11中根据判断结果是否匹配分别执行不同的操作,如果不匹配则执行步骤c15即输出不匹配的提示信息以及不匹配的原因(即供应商信息不匹配)的提示信息后结束,或者也可以通过软件实现设备将拒绝支持该光接口,直到用户或操作人员插入已获得认证的正确的光模块为止;如果匹配则执行步骤c12即获取预先保存的该供应商对应的服务功能,然后执行步骤c13即输出匹配的提示信息以及对应的服务功能的提示信息,然后执行步骤c14即开通对应的服务功能或调用相应的服务功能程序后结束。同样地,参照表1,上述步骤a3中读取光模块中预先保存的光模块的供应商信息可为读取光模块内部EEPROM的寄存器中保存的供应商信息。  4. When it is necessary to judge whether the supplier of the optical module matches according to the pre-specified supplier information, and it is necessary to provide different service functions to different suppliers, you can refer to the schematic flow chart of the fifth embodiment shown in Figure 5. In step In a3, when the communication device detects that an optical module is inserted, read the pre-saved supplier information of the optical module in the optical module; then in step b3, judge the read supplier information and the pre-stored supplier information Whether to match; Then in step c11, perform different operations respectively according to whether the judgment result matches, if it does not match, then perform step c15 to output the prompt information of mismatch and the reason of mismatch (i.e. supplier information does not match) after the prompt information end, or it can also be realized through software that the device will refuse to support the optical interface until the user or operator inserts the correct optical module that has been certified; if it matches, execute step c12 to obtain the pre-saved service function corresponding to the supplier , and then execute step c13 to output the matching prompt information and the prompt information of the corresponding service function, and then execute step c14 to activate the corresponding service function or call the corresponding service function program and end. Similarly, referring to Table 1, reading the pre-saved supplier information of the optical module in the above step a3 may be reading the supplier information stored in the register of the EEPROM inside the optical module. the

进一步地,在具体应用中,可根据实际需求选择输出判断结果的方式,例如,可参照图6所示的实施例六的流程示意图,首先在步骤a中,在通信设备检测到有光模块插入时,读取光模块中预先保存的信息;然后在步骤b中,按照预设的策略判断所读取的信息与预先保存的光接口的信息是否匹配;然后在 步骤c01中根据判断结果是否匹配分别执行不同的操作,如果匹配则执行步骤c02即输出匹配的提示信息后结束;如果不匹配则执行步骤c03即输出不匹配的提示信息以及不匹配的原因的提示信息后结束。  Furthermore, in a specific application, the way of outputting the judgment result can be selected according to actual needs. For example, referring to the schematic flow chart of Embodiment 6 shown in FIG. , read the pre-saved information in the optical module; then in step b, judge whether the read information matches the pre-saved optical interface information according to the preset strategy; then in step c01, whether it matches according to the judgment result Execute different operations respectively. If they match, execute step c02, that is, output matching prompt information, and end; if not, execute step c03, that is, output mismatch prompt information and the prompt information of the reason for mismatch, and end. the

在上述实施例中,预先保存的光接口的信息可为线性列表的方式,在匹配比对时采取逐条表项比对的方式;预先保存的光接口的信息也可采用索引表的方式,在匹配比对时采取快速哈希查找的方式。前一种方式适用于光接口中保存的信息项数较少的情况,后一种方式适用于光接口中保存的信息项数较多、需要提高查找效率的情况。  In the above embodiment, the pre-stored optical interface information may be in the form of a linear list, and the matching and comparison shall be performed one by one. A quick hash lookup is used for matching and comparison. The former method is applicable to the situation that the number of information items stored in the optical interface is small, and the latter method is applicable to the situation that the number of information items stored in the optical interface is large and the search efficiency needs to be improved. the

上述实施例二至实施例六进一步提供了本发明技术方案在不同的应用环境下的具体实施方式,本领域的普通技术人员应当理解,其可以根据具体应用环境,对上述具体实施方式进行灵活采用或组合,其均应在本发明技术方案所要求保护的范围之内。  The above-mentioned embodiment 2 to embodiment 6 further provide specific implementation modes of the technical solution of the present invention in different application environments. Those of ordinary skill in the art should understand that they can flexibly adopt the above-mentioned specific implementation modes according to specific application environments. Or a combination thereof, all of which should be within the scope of protection required by the technical solution of the present invention. the

基于上述发明构思,本发明还提供了一种通信设备中光模块的信息处理装置,参见图7所示的实施例一的结构示意图,该装置包括:光模块信息查询模块1,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的信息;光接口信息保存模块2,用于预先保存光接口的信息;匹配判断模块3,与光接口信息查询模块1及光接口信息保存模块2连接,用于获取光模块信息查询模块1读取的光模块中预先保存的信息、以及光接口信息保存模块2中预先保存的光接口的信息,并按照预先设定的策略判断是否匹配;输出模块4,与匹配判断模块3连接,用于向用户输出匹配判断的结果信息。  Based on the above inventive concept, the present invention also provides an information processing device for an optical module in a communication device. Referring to the schematic structural diagram of Embodiment 1 shown in FIG. 7 , the device includes: an optical module information query module 1 for When the device detects that an optical module is inserted, it establishes a connection with the optical module, and reads the pre-saved information in the optical module; the optical interface information storage module 2 is used to pre-save the information of the optical interface; the matching judgment module 3, and the optical interface information The query module 1 is connected to the optical interface information storage module 2, and is used to obtain the information pre-stored in the optical module read by the optical module information query module 1 and the information of the optical interface pre-stored in the optical interface information storage module 2, and according to The preset strategy judges whether to match; the output module 4 is connected with the matching judging module 3, and is used to output the result information of the matching judging to the user. the

在本实施例中,通过光模块信息查询模块1在光模块插入光接口后获取光模块中预先保存的信息,匹配判断模块3根据预设的策略判断光模块信息查询模块1所获取的信息与光接口信息保存模块2所保存的信息是否匹配,并通过输出模块4输出匹配判断结果信息,从而能够在光模块插入光接口后自动识别光模块的信息并判断与光接口是否匹配,而非现有技术的人工输入命令识别光 模块的信息以及人工判断是否匹配,因此大大提高了操作效率;同时,输出模块4在光模块与光接口不匹配时能够自动输出不匹配的提示信息,从而能够迅速定位故障,大大提高了维护效率;并且,通过匹配判断模块3按照预设的策略自动判断光模块与光接口是否匹配,还能够为光接口选择使用最适配的光模块,从而能够使通信设备的性能获得最大限度的利用,大大提高了通信设备的可用性。  In this embodiment, the optical module information query module 1 obtains the pre-saved information in the optical module after the optical module is inserted into the optical interface, and the matching judgment module 3 judges the information obtained by the optical module information query module 1 according to a preset strategy. Whether the information stored in the optical interface information storage module 2 matches, and output the matching judgment result information through the output module 4, so that after the optical module is inserted into the optical interface, the information of the optical module can be automatically identified and whether it is matched with the optical interface can be judged. Skilled manual input commands identify the information of the optical module and manually judge whether it matches, so the operating efficiency is greatly improved; at the same time, the output module 4 can automatically output mismatching prompt information when the optical module does not match the optical interface, so that it can quickly Locating the fault greatly improves the maintenance efficiency; and, through the matching judgment module 3, it automatically judges whether the optical module matches the optical interface according to the preset strategy, and can also select the most suitable optical module for the optical interface, so that the communication equipment can The performance can be utilized to the maximum extent, which greatly improves the availability of communication equipment. the

同样地,在实际应用本发明所提供的技术方案时,可根据实际需要对所述光模块信息查询模块1、光接口信息保存模块2、以及匹配判断模块3进行具体限定,下面结合具体应用场景对本发明技术方案作详细说明:  Similarly, when the technical solution provided by the present invention is actually applied, the optical module information query module 1, the optical interface information storage module 2, and the matching judgment module 3 can be specifically limited according to actual needs, and the following will be combined with specific application scenarios The technical scheme of the present invention is described in detail:

1、当需要根据光接口所支持的速率类型来选择速率类型相匹配的光模块时,光模块信息查询模块1可包括速率信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的速率信息;光接口信息保存模块2可包括速率信息保存模块,用于保存光接口所支持的速率信息;匹配判断模块3可包括速率匹配判断模块,与速率信息查询模块、速率信息保存模块、以及输出模块4连接,用于获取速率信息查询模块读取的光模块中预先保存的速率信息、以及速率信息保存模块中预先保存的速率信息,按照预先设定的策略判断是否匹配,并向输出模块4输出判断结果提示信息。  1. When it is necessary to select an optical module that matches the rate type according to the rate type supported by the optical interface, the optical module information query module 1 may include a rate information query module for communicating with the optical module when the communication device detects that an optical module is inserted. The module establishes a connection and reads the pre-saved rate information in the optical module; the optical interface information storage module 2 may include a rate information storage module for storing the rate information supported by the optical interface; the matching judgment module 3 may include a rate matching judgment module , connected with the rate information query module, the rate information storage module, and the output module 4, for obtaining the rate information pre-saved in the optical module read by the rate information query module and the rate information pre-stored in the rate information storage module, according to The preset strategy judges whether it matches, and outputs prompt information of the judgment result to the output module 4 . the

2、当需要根据光接口所支持的光模块的型号类型来选择型号相匹配的光模块时,光模块信息查询模块1可包括型号信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的型号信息;光接口信息保存模块2包括型号信息保存模块,用于保存光接口所支持的型号信息;匹配判断模块3包括型号匹配判断模块,与型号信息查询模块、型号信息保存模块、以及输出模块4连接,用于获取型号信息查询模块读取的光模块中预先保存的型号信息、以及型号信息保存模块中预先保存的型号信息,按照预先设定的策略判断是否匹配,并向输出模块4输出判断结果提示信息。  2. When it is necessary to select an optical module with a matching model according to the model type of the optical module supported by the optical interface, the optical module information query module 1 may include a model information query module, which is used when the communication device detects that an optical module is inserted Establish a connection with the optical module, and read the pre-saved model information in the optical module; the optical interface information storage module 2 includes a model information storage module, which is used to store the model information supported by the optical interface; the matching judgment module 3 includes a model matching judgment module , connected with the model information query module, the model information storage module, and the output module 4, used to obtain the pre-saved model information in the optical module read by the model information query module and the pre-saved model information in the model information storage module, according to The preset strategy judges whether it matches, and outputs prompt information of the judgment result to the output module 4 . the

3、当需要根据预先制定的供应商信息来判断光模块的供应商是否匹配时, 光模块信息查询模块1可包括供应商信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的供应商信息;光接口信息保存模块2可包括供应商信息保存模块,用于保存光接口所支持的供应商信息;匹配判断模块3可包括型号匹配判断模块,与所述供应商信息查询模块、供应商信息保存模块、以及输出模块4连接,用于获取供应商信息查询模块读取的光模块中预先保存的供应商信息、以及供应商信息保存模块中预先保存的供应商信息,按照预先设定的策略判断是否匹配,并向输出模块4输出判断结果提示信息。  3. When it is necessary to judge whether the supplier of the optical module matches according to the pre-established supplier information, the optical module information query module 1 may include a supplier information query module for communicating with the optical module when the communication device detects that an optical module is inserted. The module establishes a connection and reads the pre-saved supplier information in the optical module; the optical interface information storage module 2 may include a supplier information storage module for storing the supplier information supported by the optical interface; the matching judgment module 3 may include a model The matching judgment module is connected with the supplier information query module, the supplier information preservation module, and the output module 4, and is used to obtain the supplier information and the supplier information pre-saved in the optical module read by the supplier information query module The pre-saved supplier information in the saving module judges whether it matches according to the preset strategy, and outputs the prompt information of the judgment result to the output module 4 . the

4、当需要根据预先指定的供应商信息判断光模块的供应商是否匹配,并且需要对不同的供应商提供不同的服务功能时,光模块信息查询模块1可包括供应商信息查询模块,用于在通信设备检测到有光模块插入时与光模块建立连接,并读取光模块中预先保存的供应商信息;光接口信息保存模块2可包括供应商信息保存模块,用于保存光接口所支持的供应商信息以及与供应商信息一一对应的服务功能信息;匹配判断模块3可包括型号匹配判断模块,与所述供应商信息查询模块、供应商信息保存模块、以及输出模块4连接,用于获取供应商信息查询模块读取的光模块中预先保存的供应商信息、以及供应商信息保存模块中预先保存的供应信息,按照预先设定的策略判断是否匹配,如果匹配则获取该供应商信息对应的服务功能信息,并向输出模块4输出匹配的提示信息以及服务功能的提示信息;如果不匹配则向输出模块4输出不匹配的提示信息以及原因的提示信息。  4. When it is necessary to judge whether the supplier of the optical module matches according to the pre-specified supplier information, and it is necessary to provide different service functions for different suppliers, the optical module information query module 1 may include a supplier information query module for When the communication device detects that an optical module is inserted, it establishes a connection with the optical module, and reads the pre-saved supplier information in the optical module; the optical interface information storage module 2 may include a supplier information storage module, which is used to store the information supported by the optical interface. The supplier information and the service function information corresponding to the supplier information one by one; Matching judgment module 3 can comprise model matching judgment module, be connected with described supplier information query module, supplier information storage module and output module 4, use The supplier information pre-saved in the optical module read by the acquisition supplier information query module and the supply information pre-stored in the supplier information storage module are judged according to the preset strategy whether they match, and if they match, the supplier information is obtained Information corresponding to the service function information, and output matching prompt information and service function prompt information to the output module 4; if not matching, output mismatch prompt information and reason prompt information to the output module 4. the

此外,根据具体应用需求,输出模块4可采用不同的具体实施方式来输出判断结果信息,例如,输出模块4可包括指示灯模块,与所述匹配判断模块连接,用于根据匹配判断模块发送的判断结果提示信息输出对应的预设的指示灯信号,例如通过指示灯的闪亮来显示异常或正常,或通过红色、黄色等不同颜色的指示灯亮的方式来显示异常或正常。输出模块4也可包括音频输出模块,与匹配判断模块3连接,用于根据匹配判断模块3发送的判断结果提示信息输 出对应的预设的音频信号。该输出方式的优点在于方便快捷。输出模块4也可包括命令行显示模块,与匹配判断模块3连接,用于以命令行方式显示输出匹配判断模块3发送的判断结果提示信息。该输出方式的优点在于能够输出较多的信息从而对用户的操作起指导作用,同时成本较低。输出模块4也可包括图形界面显示模块,与匹配判断模块3连接,用于以图形界面方式显示输出匹配判断模块3发送的判断结果提示信息。该输出方式的优点在于界面友好,直观性强,并且能够输出丰富的信息。本领域的技术人员可以根据实际需求情况,灵活选用上述输出方式。  In addition, according to specific application requirements, the output module 4 can use different specific implementations to output judgment result information, for example, the output module 4 can include an indicator light module, connected with the matching judgment module, and used to The prompt information of the judgment result outputs the corresponding preset indicator signal, for example, the abnormality or normality is displayed by the blinking of the indicator light, or the abnormality or normality is displayed by the red, yellow and other colored indicator lights being on. Output module 4 also can comprise audio frequency output module, is connected with matching judging module 3, is used to output corresponding preset audio signal according to the judging result prompt information that matching judging module 3 sends. The advantage of this output method is that it is convenient and quick. The output module 4 may also include a command line display module connected to the matching judgment module 3 for displaying and outputting the prompt information of the judgment result sent by the matching judgment module 3 in a command line. The advantage of this output method is that it can output more information to guide the user's operation, and at the same time, the cost is low. The output module 4 may also include a graphical interface display module, which is connected to the matching judging module 3 for displaying and outputting the judgment result prompt information sent by the matching judging module 3 in a graphical interface. The advantage of this output method is that it has a friendly interface, strong intuition, and can output rich information. Those skilled in the art can flexibly select the above output modes according to actual needs. the

上述实施例进一步提供了本发明技术方案在不同的应用环境下的具体实施方式,本领域的普通技术人员应当理解,其可以根据具体应用环境,对上述具体实施方式进行灵活采用或组合,其均应在本发明技术方案所要求保护的范围之内。  The above-mentioned embodiments further provide specific implementations of the technical solutions of the present invention in different application environments. Those of ordinary skill in the art should understand that they can flexibly adopt or combine the above-mentioned specific implementations according to specific application environments. It should be within the scope of protection required by the technical solution of the present invention. the

以上实施例仅用以说明本发明的技术方案,而非对本发明作限制性理解。尽管参照上述较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:其依然可以对本发明的技术方案进行修改或者等同替换,而这种修改或者等同替换并不脱离本发明技术方案的精神和范围。  The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit understanding of the present invention. Although the present invention has been described in detail with reference to the above-mentioned preferred embodiments, those skilled in the art should understand that: it can still modify or replace the technical solution of the present invention, and such modification or replacement does not depart from the technology of the present invention. The spirit and scope of the programme. the

Claims (6)

1. the information processing method of a light module in communication equipment, it is characterized in that, comprise: when communication equipment has detected optical module insertion, read the information of dispatching from the factory of preserving in advance in optical module, whether the information of dispatching from the factory reading according to default strategy judgement mates with the information of the optical interface of preserving in advance in optical interface, and exports judged result;
The described information of dispatching from the factory of preserving in advance in optical module that reads specifically comprises: the supplier information that reads the optical module of preserving in advance in optical module;
Whether the described information of dispatching from the factory reading according to default strategy judgement mates with the information of the optical interface of preserving in advance in optical interface, and export judged result and specifically comprise: whether the supplier information of the optical module that judgement is read mates with the supplier information of preservation in advance, if coupling, obtains the service function corresponding to this supplier of preserving in advance, then the information of the information of output matching and corresponding service function, and finish after opening corresponding service function or calling corresponding service function program; If do not mated, finish after exporting the information of unmatched information and unmatched reason.
2. an information processor for light module in communication equipment, is characterized in that, comprising:
Optical module information enquiry module, connects with optical module while inserting for optical module detected at communication equipment, and reads in optical module the information of dispatching from the factory of preservation in advance;
Optical interface information is preserved module, for preserve in advance the information of optical interface at optical interface;
Matching judgment module, preserving module with described optical interface information inquiry module and optical interface information is connected, the information of preserving the optical interface of preserving in advance in module for obtaining information that optical module that optical module information enquiry module reads preserves in advance and optical interface information, and judge whether to mate according to predefined strategy;
Output module, is connected with matching judgment module, for the object information to the judgement of user's output matching;
Described optical module information enquiry module comprises supplier information enquiry module, connects, and read in optical module the supplier information of preservation in advance while inserting for optical module detected at communication equipment with optical module;
Described optical interface information is preserved module and is comprised that supplier information preserves module, for preserve supplier information that optical interface supports and with supplier information service function information one to one;
Described matching judgment module comprises the second supplier information matching judgment module, with described supplier information enquiry module, supplier information is preserved module, and output module connects, the supplier information of preserving in advance for obtaining optical module that supplier information enquiry module reads, and supplier information is preserved the information provision of preserving in advance in module, according to predefined strategy, judge whether coupling, if coupling, obtains service function information corresponding to this supplier information, to the information of output module output matching and the information of service function, and open corresponding service function or call corresponding service function program, if do not mated, to output module, export the information of unmatched information and reason.
3. device according to claim 2, is characterized in that: described output module comprises indicating lamp module, is connected, for default indicator light signal corresponding to judged result information output sending according to matching judgment module with described matching judgment module.
4. device according to claim 2, is characterized in that: described output module comprises audio frequency output module, is connected, for default audio signal corresponding to judged result information output sending according to matching judgment module with described matching judgment module.
5. device according to claim 2, is characterized in that: described output module comprises order line display module, is connected, for showing with command line mode the judged result information that output matching judge module sends with described matching judgment module.
6. device according to claim 2, is characterized in that: described output module comprises graphical interfaces display module, is connected, for the judged result information that shows that in graphical interfaces mode output matching judge module sends with described matching judgment module.
CN200610145840.2A 2006-11-20 2006-11-20 Method and apparatus for processing light module information in communication apparatus Expired - Fee Related CN1949687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610145840.2A CN1949687B (en) 2006-11-20 2006-11-20 Method and apparatus for processing light module information in communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610145840.2A CN1949687B (en) 2006-11-20 2006-11-20 Method and apparatus for processing light module information in communication apparatus

Publications (2)

Publication Number Publication Date
CN1949687A CN1949687A (en) 2007-04-18
CN1949687B true CN1949687B (en) 2014-04-09

Family

ID=38019083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610145840.2A Expired - Fee Related CN1949687B (en) 2006-11-20 2006-11-20 Method and apparatus for processing light module information in communication apparatus

Country Status (1)

Country Link
CN (1) CN1949687B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055521B (en) * 2009-11-11 2014-03-12 中兴通讯股份有限公司 Control method and control device for reading-writing optical module information, and optical module
US9172465B2 (en) 2012-01-19 2015-10-27 Huawei Technologies Co., Ltd. Optical device, and system and method for managing optical device
CN103217744B (en) * 2012-01-19 2016-03-30 华为技术有限公司 Optical device, for managing the system and method for optical device
CN103825649A (en) * 2012-11-16 2014-05-28 华为技术有限公司 Optical module information restoration method and apparatus
CN104601229B (en) * 2013-11-01 2019-02-19 中兴通讯股份有限公司 Optical mode block identifying method and device
CN105652392B (en) * 2014-11-20 2019-01-08 海思光电子有限公司 The pluggable optical module of tape light
CN105162730B (en) * 2015-09-22 2018-01-02 上海斐讯数据通信技术有限公司 The processing system and method for optical module information in a kind of interchanger
CN105530028B (en) * 2015-11-26 2019-04-05 杭州华为数字技术有限公司 A kind of equalizer configuration method and management module
CN108155997B (en) * 2018-01-04 2021-03-19 联想(北京)有限公司 Network card, information acquisition method, client and electronic equipment
CN110535674A (en) * 2018-05-25 2019-12-03 中兴通讯股份有限公司 Optical module threshold regulating method, device, equipment and the storage medium of the network equipment
CN114143632B (en) * 2021-11-30 2024-04-09 迈普通信技术股份有限公司 Port output state adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1550924A (en) * 2003-05-13 2004-12-01 施乐公司 Insertion verification of replaceable module of printing apparatus
WO2005069520A1 (en) * 2004-01-07 2005-07-28 Ericsson Ab Module for network interface card
CN1674547A (en) * 2005-02-20 2005-09-28 黄炜 Optical/electric interface module space multiplexing method and apparatus used for Ethernet SFP interface
CN1780204A (en) * 2004-11-19 2006-05-31 华为技术有限公司 Method for writing and reading recognition information in photocell module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1550924A (en) * 2003-05-13 2004-12-01 施乐公司 Insertion verification of replaceable module of printing apparatus
WO2005069520A1 (en) * 2004-01-07 2005-07-28 Ericsson Ab Module for network interface card
CN1780204A (en) * 2004-11-19 2006-05-31 华为技术有限公司 Method for writing and reading recognition information in photocell module
CN1674547A (en) * 2005-02-20 2005-09-28 黄炜 Optical/electric interface module space multiplexing method and apparatus used for Ethernet SFP interface

Also Published As

Publication number Publication date
CN1949687A (en) 2007-04-18

Similar Documents

Publication Publication Date Title
CN1949687B (en) Method and apparatus for processing light module information in communication apparatus
CN105162730B (en) The processing system and method for optical module information in a kind of interchanger
CN102571201B (en) Method, terminal and system for managing optical fiber networks
CN103490904B (en) Ethernet electrical interface rough set theory device, control method and device
CN108829609A (en) A kind of test method and system of blue tooth products
CN103248420B (en) Methods, systems and devices for detecting and identifying fiber connection
CN103516961B (en) Image processor and preparation method thereof and master card
CN101594183B (en) Detection device and detection method for working states of slot positions of machine cabinet
CN106850316B (en) Optical fiber terminating graphical management method and system
WO2016101466A1 (en) Intelligent odn marking system and device
CN105867295A (en) Communication method and upper computer
CN104182258B (en) A kind of POS terminal update device and its upgrade method
CN103414602A (en) Testing device and testing system for testing Dongle device
CN103217744B (en) Optical device, for managing the system and method for optical device
CN102590956B (en) Optical fiber connector managing device and method
US10107974B2 (en) Quartz plastic composite optical fiber assembly, recognition method and device
WO2025103003A1 (en) Firmware programming method, apparatus and system, mainboard, device, and storage medium
CN113507165A (en) A kind of distribution transformer intelligent terminal verification platform and using method
CN113765737B (en) Automatic test method and device for compatibility of network card and optical module, and electronic equipment
CN105915975B (en) The asynchronous control system and method for LED screen content are updated with mobile device
CN111856315B (en) Screen test tool and test method
CN120806882B (en) Multi-protocol self-adaptive intelligent assertion engine system and cross-platform verification method
CN103514511B (en) The method and device of the automatic back delivery operations daily record of Intelligent key
CN212624028U (en) Singlechip upgrading device based on multi-mode communication
WO2025104780A1 (en) Electric power-saving terminal connection management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140409