CN116319330A - A method and device for obtaining compatible brand information of optical modules - Google Patents
A method and device for obtaining compatible brand information of optical modules Download PDFInfo
- Publication number
- CN116319330A CN116319330A CN202310273964.2A CN202310273964A CN116319330A CN 116319330 A CN116319330 A CN 116319330A CN 202310273964 A CN202310273964 A CN 202310273964A CN 116319330 A CN116319330 A CN 116319330A
- Authority
- CN
- China
- Prior art keywords
- code file
- brand information
- information
- compatible
- compatible brand
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/25—Arrangements specific to fibre transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Optical Communication System (AREA)
Abstract
Description
技术领域technical field
本申请涉及光纤通信技术领域,尤其涉及一种获取光模块兼容品牌信息的方法及装置。The present application relates to the technical field of optical fiber communication, and in particular to a method and device for obtaining compatible brand information of optical modules.
背景技术Background technique
光以其拥有优良的传输性能在通讯行业中被广泛地使用,为了实现光信号与电信号之间进行相互转换,光模块应运而生。光模块一般与交换机连接,交换机分很多品牌,例如,思科、华为、惠普、中兴等。不同品牌的交换机在编码区域内容会有一些不同的定义,在使用不同品牌的交换机时,用户需要采购特定编码的光模块与对应的交换机兼容。Light is widely used in the communication industry due to its excellent transmission performance. In order to realize the mutual conversion between optical signals and electrical signals, optical modules emerge as the times require. Optical modules are generally connected to switches, and there are many brands of switches, such as Cisco, Huawei, HP, ZTE, etc. Different brands of switches have different definitions in the encoding area. When using switches of different brands, users need to purchase optical modules with specific codes that are compatible with the corresponding switches.
在网络部署中,需要使用大量的光模块。如果光模块的标识损伤、或者光模块进行过改码操作,可能会使用户无法准确了解光模块的兼容品牌信息。若用户不知道光模块的兼容品牌信息,则只能通过不断的在交换机上测试来确定光模块的兼容品牌信息,需要花费大量的时间,影响工作效率。In network deployment, a large number of optical modules need to be used. If the logo of the optical module is damaged or the code of the optical module has been changed, the user may not be able to accurately understand the compatible brand information of the optical module. If the user does not know the compatible brand information of the optical module, he can only determine the compatible brand information of the optical module through continuous testing on the switch, which takes a lot of time and affects work efficiency.
发明内容Contents of the invention
本申请提供了一种获取光模块兼容品牌信息的方法及装置,该方法通过根据码文件确定并控制终端设备输出兼容品牌信息,能够使用户更方便快捷的获取光模块的兼容品牌信息。The present application provides a method and device for obtaining compatible brand information of optical modules. The method enables users to obtain compatible brand information of optical modules more conveniently and quickly by determining and controlling terminal equipment to output compatible brand information according to code files.
为解决上述问题,第一方面,本申请实施例提供了一种获取光模块兼容品牌信息的方法,该方法包括:获取光模块的码文件;根据所述码文件确定所述光模块的兼容品牌信息,所述兼容品牌信息为所述光模块能够兼容的交换机的品牌信息;向终端设备发送第一信息,所述第一信息包括所述兼容品牌信息,并且所述第一信息用于指示终端设备输出所述兼容品牌信息。In order to solve the above problems, in the first aspect, the embodiment of the present application provides a method for obtaining compatible brand information of the optical module, the method includes: obtaining the code file of the optical module; determining the compatible brand of the optical module according to the code file Information, the compatible brand information is the brand information of the switch that the optical module is compatible with; send the first information to the terminal device, the first information includes the compatible brand information, and the first information is used to indicate the terminal The device outputs the compatible brand information.
结合第一方面,在第一方面的某些实现方式中,所述根据所述码文件确定所述光模块的兼容品牌信息,包括:根据预配置的多个码文件与多个兼容品牌信息的第一对应关系确定与所述码文件对应的所述兼容品牌信息。With reference to the first aspect, in some implementation manners of the first aspect, the determining the compatible brand information of the optical module according to the code file includes: The first correspondence determines the compatible brand information corresponding to the code file.
结合第一方面,在第一方面的某些实现方式中,所述根据所述码文件确定所述光模块的兼容品牌信息,包括:将所述码文件输入预训练的机器学习模型,得到所述机器学习模型输出的所述兼容品牌信息。With reference to the first aspect, in some implementation manners of the first aspect, the determining the compatible brand information of the optical module according to the code file includes: inputting the code file into a pre-trained machine learning model to obtain the The compatible brand information output by the machine learning model.
结合第一方面,在第一方面的某些实现方式中,所述根据预配置的多个码文件与多个兼容品牌信息的第一对应关系确定与所述码文件对应的所述兼容品牌信息,包括:读取所述码文件中保存的所述光模块的型号信息;确定所述第一对应关系中与所述型号信息对应的至少一个码文件和至少一个兼容品牌信息,所述至少一个码文件与所述至少一个兼容品牌信息一一对应;根据所述至少一个码文件和所述至少一个兼容品牌信息确定与所述码文件对应的所述兼容品牌信息。With reference to the first aspect, in some implementations of the first aspect, the determination of the compatible brand information corresponding to the code file according to the first correspondence between the pre-configured multiple code files and multiple compatible brand information , including: reading the model information of the optical module stored in the code file; determining at least one code file and at least one compatible brand information corresponding to the model information in the first correspondence, the at least one The code file is in one-to-one correspondence with the at least one compatible brand information; and the compatible brand information corresponding to the code file is determined according to the at least one code file and the at least one compatible brand information.
结合第一方面,在第一方面的某些实现方式中,在所述读取所述码文件中保存的所述光模块的型号信息之后,所述方法还包括:根据预配置的多个型号信息和多个特征区域的第二对应关系确定与所述型号信息对应的特征区域,所述特征区域为所述码文件中反映所述兼容品牌信息的数据的位置;所述根据所述至少一个码文件和所述至少一个兼容品牌信息确定与所述码文件对应的所述兼容品牌信息,包括:对比所述码文件和目标码文件在所述特征区域的数据,所述目标码文件为所述至少一个码文件中的任意一个;若所述码文件和所述目标码文件在所述特征区域的数据相同,则所述兼容品牌信息为所述至少一个兼容品牌信息中与所述目标码文件对应的兼容品牌信息。With reference to the first aspect, in some implementations of the first aspect, after reading the model information of the optical module stored in the code file, the method further includes: The second corresponding relationship between information and a plurality of feature areas determines the feature area corresponding to the model information, and the feature area is the position of the data reflecting the compatible brand information in the code file; according to the at least one The code file and the at least one compatible brand information determine the compatible brand information corresponding to the code file, including: comparing the data in the characteristic area of the code file and the target code file, the target code file is the Any one of the at least one code file; if the code file and the target code file have the same data in the characteristic area, then the compatible brand information is the same as the target code in the at least one compatible brand information Compatible brand information corresponding to the file.
根据本申请实施例提供的获取光模块兼容品牌信息的方法,在用户无法确定光模块的兼容品牌信息时,通过根据码文件确定光模块的兼容品牌信息,以及通过控制终端设备输出光模块的兼容品牌信息,能够使用户更方便快捷的获取光模块的兼容品牌,从而及时将光模块插入兼容的交换机端口,提高用户的工作效率。According to the method for obtaining the compatible brand information of the optical module provided by the embodiment of the present application, when the user cannot determine the compatible brand information of the optical module, the compatible brand information of the optical module is determined according to the code file, and the compatible brand information of the optical module is output by controlling the terminal equipment. Brand information can enable users to obtain compatible brands of optical modules more conveniently and quickly, so as to insert optical modules into compatible switch ports in time and improve user work efficiency.
第二方面,本申请还提供了一种获取光模块兼容品牌信息的装置,该装置包括:获取模块,用于获取光模块的码文件;处理模块,用于根据所述码文件确定所述光模块的兼容品牌信息,所述兼容品牌信息为所述光模块能够兼容的交换机的品牌信息;发送模块,用于向终端设备发送第一信息,所述第一信息包括所述兼容品牌信息,并且所述第一信息用于指示终端设备输出所述兼容品牌信息。In the second aspect, the present application also provides a device for obtaining compatible brand information of optical modules, the device includes: an obtaining module, used to obtain the code file of the optical module; a processing module, used to determine the optical module according to the code file The compatible brand information of the module, the compatible brand information is the brand information of the switch that the optical module is compatible with; the sending module is used to send the first information to the terminal device, the first information includes the compatible brand information, and The first information is used to instruct the terminal device to output the compatible brand information.
结合第二方面,在第二方面的某些实现方式中,所述处理模块具体用于:根据预配置的多个码文件与多个兼容品牌信息的第一对应关系确定与所述码文件对应的所述兼容品牌信息。With reference to the second aspect, in some implementations of the second aspect, the processing module is specifically configured to: determine the code file corresponding to the code file according to the first correspondence relationship between the pre-configured multiple code files and multiple compatible brand information. of the compatible branding information.
结合第二方面,在第二方面的某些实现方式中,所述处理模块具体用于:将所述码文件输入预训练的机器学习模型,得到所述机器学习模型输出的所述兼容品牌信息。With reference to the second aspect, in some implementations of the second aspect, the processing module is specifically configured to: input the code file into a pre-trained machine learning model, and obtain the compatible brand information output by the machine learning model .
结合第二方面,在第二方面的某些实现方式中,所述处理模块具体用于:读取所述码文件中保存的所述光模块的型号信息;确定所述第一对应关系中与所述型号信息对应的至少一个码文件和至少一个兼容品牌信息,所述至少一个码文件与所述至少一个兼容品牌信息一一对应;根据所述至少一个码文件和所述至少一个兼容品牌信息确定与所述码文件对应的所述兼容品牌信息。With reference to the second aspect, in some implementation manners of the second aspect, the processing module is specifically configured to: read the model information of the optical module stored in the code file; At least one code file and at least one compatible brand information corresponding to the model information, the at least one code file corresponds to the at least one compatible brand information; according to the at least one code file and the at least one compatible brand information The compatible brand information corresponding to the code file is determined.
结合第二方面,在第二方面的某些实现方式中,在所述读取所述码文件中保存的所述光模块的型号信息之后,所述处理模块还用于:根据预配置的多个型号信息和多个特征区域的第二对应关系确定与所述型号信息对应的特征区域,所述特征区域为所述码文件中反映兼容品牌信息的数据的位置;所述处理模块具体用于:对比所述码文件和目标码文件在所述特征区域的数据,所述目标码文件为所述至少一个码文件中的任意一个;若所述码文件和所述目标码文件在所述特征区域的数据相同,则所述兼容品牌信息为所述至少一个兼容品牌信息中与所述目标码文件对应的兼容品牌信息。With reference to the second aspect, in some implementation manners of the second aspect, after reading the model information of the optical module stored in the code file, the processing module is further configured to: The second corresponding relationship between a model information and a plurality of characteristic regions determines a characteristic region corresponding to the model information, and the characteristic region is the position of data reflecting compatible brand information in the code file; the processing module is specifically used to : comparing the data of the code file and the target code file in the feature area, the target code file is any one of the at least one code file; if the code file and the target code file are in the feature If the data of the regions are the same, the compatible brand information is the compatible brand information corresponding to the object code file in the at least one compatible brand information.
第三方面,本申请还提供了一种获取光模块兼容品牌信息的系统,该系统包括读取器、服务器和终端设备;所述读取器,用于读取所述光模块的码文件,并通过所述终端设备向所述服务器发送所述码文件;所述服务器,用于根据所述码文件确定所述光模块的兼容品牌信息,所述兼容品牌信息为所述光模块能够兼容的交换机的品牌信息,以及用于向所述终端设备发送第一信息,所述第一信息包括所述兼容品牌信息,并且所述第一信息用于指示所述终端设备输出所述兼容品牌信息;所述终端设备,用于输出所述兼容品牌信息。In the third aspect, the present application also provides a system for obtaining compatible brand information of an optical module, the system includes a reader, a server, and a terminal device; the reader is used to read the code file of the optical module, And send the code file to the server through the terminal device; the server is used to determine the compatible brand information of the optical module according to the code file, and the compatible brand information is the compatible brand information of the optical module. Brand information of the switch, and used to send first information to the terminal device, the first information includes the compatible brand information, and the first information is used to instruct the terminal device to output the compatible brand information; The terminal device is configured to output the compatible brand information.
第四方面,本申请还提供了一种获取光模块兼容品牌信息的装置,包括至少一个处理器,所述至少一个处理器用于与存储器耦合,读取并执行所述存储器中的指令,以实现前述第一方面中任一种可能设计中所提供的方法。In the fourth aspect, the present application also provides a device for obtaining compatible brand information of an optical module, including at least one processor, the at least one processor is used to be coupled with a memory, and read and execute instructions in the memory to realize The method provided in any possible design of the aforementioned first aspect.
可选地,该装置还包括该存储器。Optionally, the device further includes the memory.
第五方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行前述第一方面中任一种可能设计中所提供的方法。In the fifth aspect, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a computer, the computer executes the aforementioned first aspect. The methods provided in any of the possible designs.
第六方面,本申请实施例还提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行前述第一方面中任一种可能设计中所提供的方法。In the sixth aspect, the embodiment of the present application further provides a computer program product containing instructions, and when the computer program product is run on a computer, the computer is made to execute the method provided in any possible design of the aforementioned first aspect.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present application, those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1是光模块在存储区域A0h处的存储内容的示意图。FIG. 1 is a schematic diagram of storage content of an optical module in a storage area A0h.
图2是光模块在存储区域A2h处的存储内容的示意图。Fig. 2 is a schematic diagram of the storage content of the optical module in the storage area A2h.
图3是本申请实施例提供的获取光模块兼容品牌信息的系统的示意图。Fig. 3 is a schematic diagram of a system for acquiring compatible brand information of an optical module provided by an embodiment of the present application.
图4是本申请实施例提供的获取光模块兼容品牌信息的方法的示意性流程图。Fig. 4 is a schematic flow chart of a method for obtaining information on compatible brands of optical modules provided by an embodiment of the present application.
图5是本申请实施例提供的获取光模块兼容品牌信息的方法的具体过程的示意性流程图。Fig. 5 is a schematic flow chart of a specific process of a method for acquiring compatible brand information of an optical module provided by an embodiment of the present application.
图6是本申请实施例提供的获取光模块兼容品牌信息的装置的示意性框图。Fig. 6 is a schematic block diagram of an apparatus for acquiring compatible brand information of an optical module provided by an embodiment of the present application.
图7是本申请实施例提供的获取光模块兼容品牌信息的设备的结构性框图。Fig. 7 is a structural block diagram of a device for acquiring compatible brand information of an optical module provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solution in this application will be described below with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of this application, not all of them.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
本文中术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。The term "comprising" herein indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features, integers, steps, operations, elements, components and/or combinations thereof existence or addition. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“至少一个”是指一个或者多个,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of said features. In the description of the present application, "at least one" means one or more, and "multiple" means two or more, unless otherwise specifically defined.
光模块作为光纤通信中的重要组成部分,是实现光信号传输过程中光电转换和电光转换功能的光电子器件。光模块的存储区域根据多源协议(multiSource agreement,MSA)规范存储光模块标识、供应商、数字诊断监控功能(digital diagnostic monitoring,DDM)的实时监控量等数据。例如,如图1中所示的接口类型、传输距离、供应商名称、校验码(Checksum)算法等数据,如图2中所示的温度、电压、偏置电流、发射功率和接收功率等监控量的告警阈值、外部校准常数等。As an important part of optical fiber communication, the optical module is an optoelectronic device that realizes the functions of photoelectric conversion and electro-optical conversion in the process of optical signal transmission. The storage area of the optical module stores data such as the identification of the optical module, the supplier, and the real-time monitoring amount of the digital diagnostic monitoring (DDM) function according to the specification of the multi-source agreement (MSA). For example, data such as interface type, transmission distance, supplier name, and checksum algorithm as shown in Figure 1, temperature, voltage, bias current, transmit power, and receive power, etc., as shown in Figure 2 Alarm thresholds for monitored quantities, external calibration constants, etc.
交换机上连接光模块实现光信号与电信号之间的相互转换。现在市面上有很多品牌的交换机。不同品牌的交换机因硬件或速率不同的原因,对插在交换机上的光模块的兼容性有要求。如果光模块的编码没有符合交换机要求,光模块可能会无法工作或者产生设备告警。比如思科交换机,会在光模块的存储区域做Checksum算法验证,如果使用的光模块不符合思科编码规律,交换机缺省会把端口关闭阻止光模块正常工作。The optical module is connected to the switch to realize mutual conversion between the optical signal and the electrical signal. There are many brands of switches on the market today. Switches of different brands have different requirements for the compatibility of optical modules inserted into the switch due to different hardware or speed. If the code of the optical module does not meet the requirements of the switch, the optical module may fail to work or generate a device alarm. For example, a Cisco switch will perform Checksum algorithm verification in the storage area of the optical module. If the optical module used does not conform to the Cisco coding rules, the switch will disable the port by default to prevent the optical module from working normally.
基于此,用户一般会针对交换机的品牌和型号采购特定编码的光模块。但在使用时,用户可能会接触到很多光模块。此时,如果光模块的标识损伤,或者光模块被重新写入码文件,可能会使用户无法了解光模块的兼容品牌信息,影响用户的工作效率。例如,影响用户部署网络环境的效率。Based on this, users generally purchase optical modules with specific codes for the brand and model of the switch. But in use, users may come into contact with many optical modules. At this time, if the logo of the optical module is damaged, or if the optical module is rewritten into the code file, the user may not be able to understand the compatible brand information of the optical module, which will affect the user's work efficiency. For example, it affects the efficiency of the user's deployment of the network environment.
有鉴于此,本申请实施例提供了一种获取光模块兼容品牌信息的方法,获取光模块兼容品牌信息的装置通过根据码文件确定光模块的兼容品牌信息,并控制终端设备输出兼容品牌信息,能够使用户更方便快捷的获取光模块的兼容品牌信息,从而及时将光模块插入与之兼容的交换机端口,提高工作效率。In view of this, the embodiment of the present application provides a method for obtaining the compatible brand information of the optical module. The device for obtaining the compatible brand information of the optical module determines the compatible brand information of the optical module according to the code file, and controls the terminal equipment to output the compatible brand information. It can enable users to obtain the compatible brand information of the optical module more conveniently and quickly, so as to insert the optical module into the compatible switch port in time and improve work efficiency.
本申请实施例提供的获取光模块兼容品牌信息的方法可以应用于如图3所示的获取光模块兼容品牌信息的系统300中。如图3所示,该系统300可以包括读取器310、终端设备320和服务器330。The method for acquiring compatible brand information of an optical module provided in the embodiment of the present application may be applied to a
其中,读取器310与终端设备320通讯连接,终端设备320和服务器330通讯连接。示例性的,可以通过以太网、无线保真(wireless fidelity,WiFi)、蓝牙、数据线等方式实现通信连接。Wherein, the reader 310 is connected in communication with the
读取器310用于读取光模块的码文件,以及通过终端设备320向服务器330发送光模块的码文件。服务器330用于根据码文件确定光模块的兼容品牌信息,以及用于控制终端设备320输出光模块的兼容品牌信息。兼容品牌信息为光模块能够兼容的交换机的品牌信息。示例性的,服务器330可以为云端服务器等。The reader 310 is used to read the code file of the optical module, and send the code file of the optical module to the
终端设备320用于输出光模块的兼容品牌信息。示例性的,终端设备320可以为手机、平板电脑、智能手表、笔记本电脑、计算机等设备。The
本申请对终端设备320输出兼容品牌信息的方式不做限定。例如,终端设备320可以通过显示装置输出光模块的兼容品牌信息。再例如,终端设备320可以通过扬声器输出光模块的兼容品牌信息,使用户能够获取光模块的兼容品牌信息。This application does not limit the manner in which the
根据本申请实施例提供的获取光模块兼容品牌信息的系统,在用户无法确定光模块的兼容品牌信息时,通过服务器330根据读取器310读取的光模块的码文件确定光模块的兼容品牌信息,以及通过服务器330控制终端设备320输出兼容品牌信息,能够使用户获取光模块的兼容品牌信息,从而及时将光模块插入兼容的交换机的端口,提升用户的工作效率。According to the system for obtaining the compatible brand information of the optical module provided in the embodiment of the present application, when the user cannot determine the compatible brand information of the optical module, the
以下结合图4阐述本申请实施例提供的获取光模块兼容品牌信息的方法400。该方法400可以由获取光模块兼容品牌信息的装置执行。获取光模块兼容品牌信息的装置可以为前文所述的服务器330。如图4所示,该方法400可以包括步骤410、步骤420和步骤430。A
步骤410,获取光模块的码文件。Step 410, acquire the code file of the optical module.
示例性的,读取器可以通过集成电路总线(inter-integrated circuit,IIC)接口在光模块的存储器中读取光模块的码文件。读取器可以通过终端设备向获取光模块兼容品牌信息的装置发送光模块的码文件。示例性的,读取器可以为前文所述的读取器310,终端设备可以为前文所述的终端设备320。Exemplarily, the reader may read the code file of the optical module in the memory of the optical module through an integrated circuit bus (inter-integrated circuit, IIC) interface. The reader can send the code file of the optical module to the device that obtains the compatible brand information of the optical module through the terminal device. Exemplarily, the reader may be the aforementioned reader 310, and the terminal device may be the aforementioned
步骤420,根据码文件确定光模块的兼容品牌信息。Step 420, determine the compatible brand information of the optical module according to the code file.
具体地,在接收来自于读取器的光模块的码文件之后,装置根据码文件确定光模块的兼容品牌信息。本申请对根据码文件确定兼容品牌信息的方式不做限定。Specifically, after receiving the code file of the optical module from the reader, the device determines the compatible brand information of the optical module according to the code file. This application does not limit the manner of determining the compatible brand information according to the code file.
示例性的,步骤420的一种实现方式可以为:根据预训练的机器学习模型确定光模块的兼容品牌信息。Exemplarily, an implementation manner of step 420 may be: determining compatible brand information of the optical module according to a pre-trained machine learning model.
具体地,收集市面上常见的光模块的码文件和与光模块对应的兼容品牌信息,构建样本数据库。其中,样本可以为光模块的码文件和码文件对应的兼容品牌信息。将样本数据库分为训练数据集和测试数据集,通过训练数据集中的样本(将码文件作为输入变量,将对应的兼容品牌信息作为输出变量)训练机器学习模型。通过测试集中的样本验证训练后的机器学习模型的准确性,达到要求的机器学习模型(准确性大于预设阈值)即为预训练的机器学习模型。将获取的码文件输入预训练的机器学习模型,该机器学习模型的输出即为光模块的兼容品牌信息。Specifically, the code files of common optical modules on the market and the compatible brand information corresponding to the optical modules are collected to build a sample database. Wherein, the sample may be a code file of the optical module and compatible brand information corresponding to the code file. The sample database is divided into a training data set and a test data set, and the machine learning model is trained through the samples in the training data set (using code files as input variables and corresponding compatible brand information as output variables). The accuracy of the trained machine learning model is verified through the samples in the test set, and the machine learning model that meets the requirements (accuracy greater than the preset threshold) is the pre-trained machine learning model. Input the obtained code file into the pre-trained machine learning model, and the output of the machine learning model is the compatible brand information of the optical module.
示例性的,步骤420的另一种实现方式可以为:根据预配置的多个码文件和多个兼容品牌信息的第一对应关系确定与获取的码文件对应的兼容品牌信息。Exemplarily, another implementation manner of step 420 may be: determine the compatible brand information corresponding to the acquired code file according to the preconfigured first correspondence between multiple code files and multiple compatible brand information.
具体地,收集市面上常见的光模块的码文件和与光模块对应的兼容品牌信息,建立并存储多个码文件和多个兼容品牌信息之间的第一对应关系。例如,第一对应关系可以如表1所示。Specifically, code files of common optical modules on the market and compatible brand information corresponding to the optical modules are collected, and a first correspondence between multiple code files and multiple compatible brand information is established and stored. For example, the first corresponding relationship may be as shown in Table 1.
表1Table 1
示例性的,根据第一对应关系确定与获取的码文件对应的兼容品牌信息的实现方式可以为:对比码文件的数据与目标码文件的数据,若获取的码文件的数据与目标码文件的数据相同,则光模块的兼容品牌信息为预配置的多个兼容品牌信息中与目标码文件对应的兼容品牌信息。其中,目标码文件为预配置的多个码文件中的任意一个。Exemplarily, the implementation manner of determining the compatible brand information corresponding to the acquired code file according to the first correspondence relationship may be: comparing the data of the code file with the data of the target code file, if the data of the acquired code file is consistent with the data of the target code file If the data are the same, the compatible brand information of the optical module is the compatible brand information corresponding to the object code file among the pre-configured multiple compatible brand information. Wherein, the object code file is any one of multiple pre-configured code files.
例如,服务器在获取码文件之后,可以将表1中的多个码文件中的任意一个作为目标码文件。即目标码文件可以为表1中所示的码文件1、码文件2、码文件3、……、码文件n中的其中一个。然后对比码文件中的数据与目标码文件中的数据,若获取的码文件中的数据与目标码文件中的数据相同,则兼容品牌信息为表1中多个兼容品牌信息中与目标码文件对应的兼容品牌信息。比如,若获取的码文件的数据与表1中的码文件1的数据相同,则光模块的兼容品牌信息为表1中的码文件1对应的兼容品牌信息。即获取的码文件的兼容品牌信息为A品牌。For example, after the server acquires the code file, any one of the multiple code files in Table 1 can be used as the object code file. That is, the target code file may be one of code file 1, code file 2, code file 3, . . . , code file n shown in Table 1. Then compare the data in the code file and the data in the target code file, if the data in the obtained code file is the same as the data in the target code file, then the compatible brand information is the same as the target code file in the multiple compatible brand information in Table 1 Corresponding compatible brand information. For example, if the acquired data of the code file is the same as the data of code file 1 in Table 1, then the compatible brand information of the optical module is the compatible brand information corresponding to the code file 1 in Table 1. That is, the compatible brand information of the obtained code file is brand A.
步骤430,向终端设备发送第一信息。Step 430: Send the first information to the terminal device.
其中,第一信息包括兼容品牌信息,并且第一信息用于指示终端设备输出兼容品牌信息。Wherein, the first information includes compatible brand information, and the first information is used to instruct the terminal device to output the compatible brand information.
可选地,终端设备可以包括显示装置,获取光模块兼容品牌信息的装置可以控制显示装置显示兼容品牌信息,使用户获取光模块的兼容品牌信息。Optionally, the terminal device may include a display device, and the device for obtaining the compatible brand information of the optical module may control the display device to display the compatible brand information, so that the user obtains the compatible brand information of the optical module.
可选地,终端设备可以包括扬声器,获取光模块兼容品牌信息的装置可以控制扬声器语音播报兼容品牌信息,使用户获取光模块的兼容品牌。Optionally, the terminal device may include a speaker, and the device for obtaining the compatible brand information of the optical module may control the speaker to voice broadcast the compatible brand information, so that the user can obtain the compatible brand of the optical module.
根据本申请实施例提供的获取光模块兼容品牌信息的方法400,在用户无法确定光模块的兼容品牌信息时,通过根据码文件确定光模块的兼容品牌信息,以及向终端设备发送第一信息使终端设备输出兼容品牌信息,能够使用户更方便快捷的获取光模块的兼容品牌,从而及时将光模块插入兼容的交换机端口,提高用户的工作效率。According to the
在一些实施例中,为了提高获取光模块兼容品牌信息的效率,如图5所示,根据第一对应关系确定与获取的码文件对应的兼容品牌信息这一步骤的实现方式还可以为:步骤510至步骤530。In some embodiments, in order to improve the efficiency of obtaining the compatible brand information of the optical module, as shown in Figure 5, the implementation of the step of determining the compatible brand information corresponding to the obtained code file according to the first correspondence can also be: Step 510 to step 530.
步骤510,读取码文件中保存的光模块的型号信息。Step 510, read the model information of the optical module saved in the code file.
具体地,不同型号(part number,PN)的光模块可能对应不同的码文件和不同的兼容品牌信息。示例性的,光模块的型号信息可以包括下述中的其中一项:小型可插拔(smallform-factor pluggable,SFP)、SFP+、SFP28、万兆小型可插拔(10-gigabit small form-factor pluggable,XFP)、四通道小型可热插拔(quad small form-factor Pluggable,QSFP)、QSFP+、QSFP28、双密度四通道小型可插拔(quad small form-factor pluggable-double density,QSFP-DD)、可热插拔的高密并行(120Gb/s extended-capability form-factor pluggable module,CXP)。Specifically, optical modules of different models (part number, PN) may correspond to different code files and different compatible brand information. Exemplarily, the model information of the optical module may include one of the following: small form-factor pluggable (SFP), SFP+, SFP28, 10-gigabit small form-factor pluggable, XFP), quad small form-factor Pluggable (QSFP), QSFP+, QSFP28, quad small form-factor pluggable-double density, QSFP-DD , Hot-swappable high-density parallel (120Gb/s extended-capability form-factor pluggable module, CXP).
步骤520,确定第一对应关系中与型号信息对应的至少一个码文件和至少一个兼容品牌信息。Step 520, determine at least one code file and at least one compatible brand information corresponding to the model information in the first correspondence.
其中,至少一个码文件和至少一个兼容品牌信息一一对应,至少一个码文件可以为预配置的多个码文件中的一个或者多个码文件,至少一个兼容品牌信息可以为预配置的多个兼容品牌信息中的一个或者多个兼容品牌信息。Wherein, at least one code file is in one-to-one correspondence with at least one compatible brand information, at least one code file can be one or more code files in a plurality of pre-configured code files, and at least one compatible brand information can be a plurality of pre-configured One or more compatible brand information in compatible brand information.
示例性的,第一对应关系中还可以包括多个型号信息和多个码文件之间的对应关系,例如,第一对应关系可以如表2所示。Exemplarily, the first correspondence may also include correspondences between a plurality of model information and a plurality of code files, for example, the first correspondence may be as shown in Table 2.
表2Table 2
例如,若型号信息为SFP,则根据表2可以确定至少一个码文件包括码文件1、码文件2和码文件5,至少一个兼容品牌信息包括A品牌、B品牌和E品牌。For example, if the model information is SFP, it can be determined according to Table 2 that at least one code file includes code file 1, code file 2 and
步骤530,根据至少一个码文件和至少一个兼容品牌信息确定与码文件对应的兼容品牌信息。Step 530: Determine compatible brand information corresponding to the code file according to at least one code file and at least one compatible brand information.
示例性的,步骤530的实现方式可以为:对比码文件的数据和目标码文件的数据,若获取的码文件的数据与目标码文件的数据相同,则光模块的兼容品牌信息为目标码文件对应的兼容品牌信息。其中,目标码文件为上文所述的至少一个码文件中的其中一个。Exemplarily, the implementation of step 530 can be: compare the data of the code file and the data of the target code file, if the data of the obtained code file is the same as the data of the target code file, then the compatible brand information of the optical module is the target code file Corresponding compatible brand information. Wherein, the object code file is one of the at least one code file mentioned above.
例如,读取码文件中保存的型号信息之后,可以将预配置的多个码文件中与型号信息对应的至少一个码文件中的任意一个作为目标码文件。例如,若型号信息为QSFP28,则目标码文件为表2中所示的码文件3、码文件4、码文件6中的任意一个。然后对比获取的码文件中的数据与目标码文件中的数据,若获取的码文件中的数据与目标码文件中的数据相同,则光模块的兼容品牌信息为目标码文件对应的兼容品牌信息。例如,若获取的码文件的数据与表2中的码文件5的数据相同,则光模块的兼容品牌信息为E品牌。For example, after reading the model information stored in the code file, any one of at least one code file corresponding to the model information among the pre-configured multiple code files may be used as the target code file. For example, if the model information is QSFP28, then the target code file is any one of code file 3, code file 4, and code file 6 shown in Table 2. Then compare the data in the obtained code file with the data in the target code file, if the data in the obtained code file is the same as the data in the target code file, then the compatible brand information of the optical module is the compatible brand information corresponding to the target code file . For example, if the acquired data of the code file is the same as the data of the
在本实施例中,首先确定第一对应关系中与型号信息对应的至少一个码文件和至少一个兼容品牌信息,然后根据至少一个码文件和至少一个兼容品牌信息确定与获取的码文件对应的兼容品牌信息,能够缩小确定获取的码文件与第一对应关系中对应码文件的范围,进而缩短装置确定码文件与预配置的多个码文件中对应的码文件的时间,使装置能够更快速的确定光模块的兼容品牌信息。In this embodiment, first determine at least one code file and at least one compatible brand information corresponding to the model information in the first correspondence, and then determine the compatible code file corresponding to the acquired code file according to the at least one code file and at least one compatible brand information. Brand information can narrow down the scope of determining the corresponding code file in the obtained code file and the first corresponding relationship, thereby shortening the time for the device to determine the code file and the code file corresponding to the pre-configured multiple code files, so that the device can more quickly Determine the compatible brand information of the optical transceiver.
进一步地,在一些实施例中,为了进一步提高获取光模块兼容品牌信息的效率,在步骤510之后,获取光模块兼容品牌信息的方法400还可以包括根据预配置的多个型号信息和多个特征区域的第二对应关系确定与型号信息对应的特征区域。此时,步骤530的实现方式可以为:对比码文件和目标码文件在特征区域的数据,若获取的码文件和目标码文件在特征区域的数据相同,则兼容品牌信息为至少一个兼容品牌信息中与目标码文件对应的兼容品牌信息。Further, in some embodiments, in order to further improve the efficiency of obtaining the compatible brand information of the optical module, after step 510, the
其中,特征区域为获取的码文件中反映兼容品牌信息的数据的位置。示例性的,将码文件中随着时间、温度、工作情况等变量变化而改变的数据的位置确定为变化区域,将光模块存储区域中除了变化区域以外的区域确定为不变化区域。对比市面上常见的已知兼容品牌信息的同一型号的光模块的码文件中不变化区域的数据,可以将不同的数据对应的位置作为该型号光模块的特征区域。Wherein, the feature area is the position of the data reflecting the compatible brand information in the acquired code file. Exemplarily, the location of data in the code file that changes with changes in time, temperature, and working conditions is determined as a changed area, and the area in the storage area of the optical module other than the changed area is determined as a non-changed area. Comparing the data of the unchanged area in the code file of the same type of optical module with known compatible brand information on the market, the positions corresponding to different data can be used as the characteristic area of the optical module of this type.
例如,码文件为384字节码文件,若同一型号不同兼容品牌的光模块的码文件中128字节至256字节之间的数据不一致,则可以将128字节至256字节作为该型号光模块的码文件的特征区域。For example, the code file is a 384-byte code file. If the data between 128 bytes and 256 bytes in the code files of optical modules of the same model and different compatible brands is inconsistent, you can use 128 bytes to 256 bytes as the code file of the model. The characteristic area of the code file of the optical module.
例如,第二对应关系可以如表3所示。For example, the second corresponding relationship may be as shown in Table 3.
表3table 3
例如,若获取的光模块码文件的型号信息为SFP,则根据表3可以确定码文件的特征区域为128字节至256字节,根据表2可以确定目标码文件为表2中所示的码文件1、码文件2、码文件5中的任意一个。然后对比码文件和目标码文件在128字节至256字节之间的数据,若获取的码文件与表2中所示的码文件1在128字节至256字节之间的数据相同,则根据表2可以确定光模块的兼容品牌信息为A品牌。For example, if the model information of the obtained optical module code file is SFP, then according to Table 3, it can be determined that the characteristic area of the code file is 128 bytes to 256 bytes, and according to Table 2, it can be determined that the target code file is as shown in Table 2 Any one of code file 1, code file 2, and
在本实施例中,首先确定第一对应关系中与型号信息对应的至少一个码文件和至少一个兼容品牌信息,以及确定第二对应关系中与型号信息对应的码文件的特征区域之后,然后根据对比获取的码文件与目标码文件在特征区域的数据确定光模块的兼容品牌信息,能够进一步缩短装置确定码文件与预配置的多个码文件中对应的码文件的时间,使装置能够更快速准确的确定光模块的兼容品牌信息。In this embodiment, first determine at least one code file and at least one compatible brand information corresponding to the model information in the first correspondence, and after determining the feature area of the code file corresponding to the model information in the second correspondence, then according to Comparing the acquired code file and the data in the target code file in the characteristic area to determine the compatible brand information of the optical module can further shorten the time for the device to determine the code file and the code file corresponding to the pre-configured multiple code files, so that the device can be more quickly Accurately determine the compatible brand information of the optical module.
为了实现上述实施例,本申请还提供一种获取光模块兼容品牌信息的装置600。如图6所示,该装置可以包括获取模块610、处理模块620和发送模块630。In order to implement the foregoing embodiments, the present application further provides an apparatus 600 for acquiring information about compatible brands of optical modules. As shown in FIG. 6 , the apparatus may include an acquiring module 610 , a processing module 620 and a sending module 630 .
其中,获取模块610用于获取光模块的码文件。处理模块620用于根据码文件确定光模块的兼容品牌信息,兼容品牌信息为光模块能够兼容的交换机的品牌信息。发送模块630用于向终端设备发送第一信息,第一信息包括兼容品牌信息,并且第一信息用于指示终端设备输出兼容品牌信息。Wherein, the acquiring module 610 is configured to acquire the code file of the optical module. The processing module 620 is configured to determine the compatible brand information of the optical module according to the code file, and the compatible brand information is the brand information of the switches compatible with the optical module. The sending module 630 is configured to send first information to the terminal device, the first information includes compatible brand information, and the first information is used to instruct the terminal device to output the compatible brand information.
可选地,处理模块620具体用于:根据预配置的多个码文件与多个兼容品牌信息的第一对应关系确定与获取的码文件对应的兼容品牌信息。Optionally, the processing module 620 is specifically configured to: determine the compatible brand information corresponding to the acquired code file according to the preconfigured first correspondence relationship between multiple code files and multiple compatible brand information.
可选地,处理模块620具体用于:将码文件输入预训练的机器学习模型,得到机器学习模型输出的兼容品牌信息。Optionally, the processing module 620 is specifically configured to: input the code file into the pre-trained machine learning model, and obtain compatible brand information output by the machine learning model.
可选地,处理模块620具体用于:读取码文件中保存的光模块的型号信息;确定第一对应关系中与型号信息对应的至少一个码文件和至少一个兼容品牌信息,至少一个码文件与至少一个兼容品牌信息一一对应;根据至少一个码文件和至少一个兼容品牌信息确定与获取的码文件对应的兼容品牌信息。Optionally, the processing module 620 is specifically configured to: read the model information of the optical module stored in the code file; determine at least one code file and at least one compatible brand information corresponding to the model information in the first correspondence, and at least one code file One-to-one correspondence with at least one piece of compatible brand information; determining the compatible brand information corresponding to the acquired code file according to at least one code file and at least one piece of compatible brand information.
可选地,在读取码文件中保存的光模块的型号信息之后,处理模块620还用于:根据预配置的多个型号信息和多个特征区域的第二对应关系确定与型号信息对应的特征区域,特征区域为获取的码文件中反映兼容品牌信息的数据的位置。处理模块620具体用于:对比码文件和目标码文件在特征区域的数据,目标码文件为至少一个码文件中的任意一个;若获取的码文件和目标码文件在特征区域的数据相同,则兼容品牌信息为至少一个兼容品牌信息中与目标码文件对应的兼容品牌信息。Optionally, after reading the model information of the optical module stored in the code file, the processing module 620 is further configured to: determine the model information corresponding to the The feature area, where the feature area is the position of the data reflecting the compatible brand information in the obtained code file. The processing module 620 is specifically used to: compare the data of the code file and the target code file in the feature area, and the target code file is any one of at least one code file; if the acquired code file and the target code file have the same data in the feature area, then The compatible brand information is the compatible brand information corresponding to the object code file in at least one compatible brand information.
示例性的,装置600中的“模块”可以通过硬件实现,也可以通过软件实现,还可以通过硬件执行相应的软件实现。比如,获取模块610可以由图7所示的装置700中的通信接口730或者处理器710实现。处理模块620可以由图7所示的装置700中的通信处理器710实现。发送模块630可以由图7所示的装置700中的通信接口730或者处理器710实现。Exemplarily, the "modules" in the apparatus 600 may be realized by hardware or by software, and may also be realized by executing corresponding software by hardware. For example, the acquiring module 610 may be implemented by the
本申请实施例还提供了一种获取光模块兼容品牌信息的装置700。如图7所示,该装置700包括:处理器710、存储器720和通信接口730。其中,存储器720中存储有指令,处理器710用于执行存储器720中的指令,当该指令被执行时,该处理器710用于执行上述方法实施例提供的方法,处理器710还用于控制通信接口730与外界进行通信。The embodiment of the present application also provides an
应理解,本申请实施例中,该处理器可以为中央处理单元(central processingunit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor may be a central processing unit (central processing unit, CPU), and the processor may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits ( Application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
还应理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的随机存取存储器(random accessmemory,RAM)可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of random access memory (RAM) are available such as static random access memory (static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (RAM), Access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机程序,当其在计算机上运行时,使得该计算机执行上述方法实施例提供的方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes a computer program, and when it is run on a computer, it causes the computer to execute the method provided by the above-mentioned method embodiment.
本申请还提供了一种芯片系统,包括处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片系统的设备执行上述方法实施例提供的方法。The present application also provides a system-on-a-chip, including a processor, configured to invoke and run a computer program from a memory, so that a device installed with the system-on-a-chip executes the method provided by the above method embodiment.
本申请实施例还提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行上述方法实施例提供的方法。The embodiment of the present application also provides a computer program product containing instructions, and when the computer program product is run on a computer, the computer is made to execute the method provided by the above method embodiment.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310273964.2A CN116319330A (en) | 2023-03-17 | 2023-03-17 | A method and device for obtaining compatible brand information of optical modules |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310273964.2A CN116319330A (en) | 2023-03-17 | 2023-03-17 | A method and device for obtaining compatible brand information of optical modules |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116319330A true CN116319330A (en) | 2023-06-23 |
Family
ID=86802810
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310273964.2A Pending CN116319330A (en) | 2023-03-17 | 2023-03-17 | A method and device for obtaining compatible brand information of optical modules |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116319330A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120331458A1 (en) * | 2011-06-25 | 2012-12-27 | Kline Eric V | Comparing system engram with product engram to determine compatibility of product with system |
| CN106936653A (en) * | 2015-12-30 | 2017-07-07 | 华为数字技术(苏州)有限公司 | A kind of recognition methods of optical mode block type and device |
| CN114116545A (en) * | 2021-10-15 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Optical module identification regulation structure, method and storage medium |
| CN114900243A (en) * | 2022-04-28 | 2022-08-12 | 深圳市飞速创新技术股份有限公司 | Method and device for modifying compatible code of optical module |
| CN115065965A (en) * | 2022-03-30 | 2022-09-16 | 捷德(中国)科技有限公司 | Information display method, information storage device, user identification card and equipment |
| CN115460161A (en) * | 2022-08-05 | 2022-12-09 | 深圳市飞速创新技术股份有限公司 | Optical module code changing method, device, equipment and storage medium |
-
2023
- 2023-03-17 CN CN202310273964.2A patent/CN116319330A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120331458A1 (en) * | 2011-06-25 | 2012-12-27 | Kline Eric V | Comparing system engram with product engram to determine compatibility of product with system |
| CN106936653A (en) * | 2015-12-30 | 2017-07-07 | 华为数字技术(苏州)有限公司 | A kind of recognition methods of optical mode block type and device |
| CN114116545A (en) * | 2021-10-15 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Optical module identification regulation structure, method and storage medium |
| CN115065965A (en) * | 2022-03-30 | 2022-09-16 | 捷德(中国)科技有限公司 | Information display method, information storage device, user identification card and equipment |
| CN114900243A (en) * | 2022-04-28 | 2022-08-12 | 深圳市飞速创新技术股份有限公司 | Method and device for modifying compatible code of optical module |
| CN115460161A (en) * | 2022-08-05 | 2022-12-09 | 深圳市飞速创新技术股份有限公司 | Optical module code changing method, device, equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114638869B (en) | Depth image acquisition method and device, depth system, terminal and storage medium | |
| CN106936653B (en) | Method and device for identifying optical module type | |
| US20180232427A1 (en) | Data structure endian conversion system | |
| US11740997B2 (en) | Method and apparatus for debugging a device | |
| CN112214402B (en) | Method, device and storage medium for selecting a code verification algorithm | |
| CN112654999B (en) | Method and device for determining labeling information | |
| CN105227845B (en) | Calibration method and system for laser focusing device of mobile terminal | |
| CN115390847A (en) | Log processing method and device, computer readable storage medium and terminal | |
| CN105241580A (en) | Temperature calibration method and terminal | |
| CN110192178B (en) | Method, device, micro control unit and terminal equipment for program patching | |
| CN117992416A (en) | Software detection method, device, chip and computer readable storage medium | |
| CN107547128A (en) | The method and device of optical module light power calibration | |
| US10740218B2 (en) | Method and device for determining usage log | |
| CN116319330A (en) | A method and device for obtaining compatible brand information of optical modules | |
| WO2016145879A1 (en) | Transmission power detection method and device, computer storage medium | |
| CN111046933A (en) | Image classification method and device, storage medium and electronic equipment | |
| CN108415827B (en) | Application automation processing method, device, client and system | |
| CN111307195A (en) | Universal sensor calibration method, device, equipment and computer readable storage medium | |
| CN112771937A (en) | Power backoff method, terminal equipment and storage medium | |
| CN111351669B (en) | Fault diagnosis method and device, storage medium and vehicle | |
| CN115023910B (en) | Serial command protocol packaging line transmission protocol | |
| CN110795646A (en) | Request processing method and device, electronic equipment and computer-readable storage medium | |
| US12068789B2 (en) | Calibration method, apparatus and device for coherent optical module, and computer readable storage medium | |
| CN112069267A (en) | Data processing method and device | |
| CN113177155A (en) | Public opinion information tracing method and device of online network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |