Photoelectric multiplexing port software self-switching method and system

By detecting the insertion status of the optical module, the mode and rate mode of the optoelectronic multiplexing port are automatically switched, which solves the problem of the optical optical multiplexing port being unable to switch intelligently in the existing technology, realizes the flexible switching of the optical module and the crystal head network cable, and improves the user experience.

CN120812423APending Publication Date: 2025-10-17深圳市宇泰科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510874589.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The existing technology cannot provide an intelligent automatic switching method for optical-electrical multiplexing ports, resulting in a poor user experience.

Method used

By detecting the insertion status of the optical module, the mode of the optical-electrical multiplexing port is automatically switched, and the rate mode is automatically negotiated to achieve flexible switching between the optical module and the crystal head network cable.

Benefits of technology

It realizes intelligent automatic switching of optical modules and crystal head network cables, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120812423A_ABST
    Figure CN120812423A_ABST
Patent Text Reader

Abstract

The invention provides a software self-switching method and system for a photoelectric multiplexing port, and the method comprises the steps: detecting whether an optical module is inserted into the photoelectric multiplexing port or not during use, if yes, setting the photoelectric multiplexing port to be in an optical port mode, and setting a rate mode to be in optical port auto-negotiation; if not, the photoelectric multiplexing port is set to be in an electric port mode, and the rate mode is set to be in electric port auto-negotiation; detecting whether the optical module works normally or not after setting the photoelectric multiplexing port to be in an optical port mode, and if not, acquiring a rate mode of the optical module and setting the rate mode to be consistent with the rate mode of the optical module; after the optical module is pulled out of the photoelectric multiplexing port, the photoelectric multiplexing port is set to be in an electric port mode, and a rate mode is set to be in an electric port auto-negotiation mode; detecting whether the optical module is inserted into the photoelectric multiplexing port again after the state of the photoelectric multiplexing port changes; therefore, when the optical module and the crystal head network cable are inserted into the photoelectric multiplexing port at the same time, the optical port mode is preferentially used for communication, communication rate auto-negotiation is automatically carried out, and the intelligent degree is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of network communication, and particularly relates to a kind of photoelectric multiplexing port software self-switching method and system. BACKGROUND

[0002] The conventional switch Combo port (photoelectric multiplexing port) is logically the electrical port and optical port of the switching chip multiplexed into one interface, and the two cannot work simultaneously. The user needs to decide to use the electrical port or the optical port according to the actual on-site application environment. By manually configuring the switch Combo port mode, the port can be used. When multiple uses or repeated switching of the Combo port, multiple configurations are required to some extent, which is not convenient to use and cannot be automatically switched according to the actual use requirements. SUMMARY

[0003] In view of the shortcomings of the prior art, the purpose of the present application is to provide a kind of photoelectric multiplexing port software self-switching method and system, to solve the problem that the optical port mode and the electrical port mode of the photoelectric multiplexing port cannot be automatically and intelligently switched due to the fact that the prior art cannot provide an effective photoelectric multiplexing port software self-switching method, and the user experience is poor.

[0004] In one aspect, the present application provides a kind of photoelectric multiplexing port software self-switching method, the method includes the following steps:

[0005] Detect whether there is a light module inserted into the photoelectric multiplexing port, if yes, set the photoelectric multiplexing port to optical port mode and set the speed mode to optical port self-negotiation, if not, set the photoelectric multiplexing port to electrical port mode and set the speed mode to electrical port self-negotiation;

[0006] After setting the photoelectric multiplexing port to the optical port mode, detect whether the light module is working normally, if not, obtain the speed mode of the light module and set the speed mode to be consistent with the speed mode of the light module;

[0007] After the light module is pulled out of the photoelectric multiplexing port, set the photoelectric multiplexing port to the electrical port mode, and set the speed mode to the electrical port self-negotiation;

[0008] After the state of the photoelectric multiplexing port changes, re-detect whether there is a light module inserted into the photoelectric multiplexing port;

[0009] The photoelectric multiplexing port includes an optical port and an electrical port, the optical port is used to insert the light module, and the electrical port is used to insert a crystal head network cable.

[0010] The state change of the photoelectric multiplexing port includes: the light module is inserted into or pulled out of the photoelectric multiplexing port, and the crystal head network cable is inserted into or pulled out of the photoelectric multiplexing port.

[0011] The method, wherein the detecting whether the optical module is inserted into the optical-electric multiplexing port comprises: detecting whether an SD signal input of the optical module is input into an optical port of the optical-electric multiplexing port, wherein the SD signal of the optical module is high level.

[0012] The obtaining the rate mode of the optical module comprises: obtaining the rate mode of the optical module from a register of the optical module.

[0013] The method, wherein the optical module is pulled out from the optical-electric multiplexing port, and the optical-electric multiplexing port is set to the optical port mode comprises:

[0014] The optical-electric multiplexing port is set to the optical port mode when the optical module is continuously detected to be pulled out from the optical-electric multiplexing port within a certain time.

[0015] The optical module is detected to be pulled out from the optical-electric multiplexing port by detecting the SD signal input state of the optical module.

[0016] The method, wherein the method further comprises: detecting whether the optical module has the optical signal input after the optical module is inserted into the optical-electric multiplexing port, and setting the optical-electric multiplexing port to the electric port mode and setting the rate mode to the electric port self-negotiation if the optical module does not have the optical signal input.

[0017] The method, wherein the detecting whether the optical module has the optical signal input after the optical module is inserted into the optical-electric multiplexing port comprises: detecting a LOS signal state of the optical module.

[0018] The LOS signal state of the optical module comprises: LOS signal generation and LOS signal non-generation; the LOS signal generation indicates that the optical module does not have the optical signal input, and the LOS signal non-generation indicates that the optical module has the optical signal input.

[0019] The method, wherein the method further comprises: detecting that the SD signal of the optical module is low level and the LOS signal is non-generated, and then issuing an optical attenuation too high alarm.

[0020] The method, wherein the method further comprises: the optical module and the crystal head network cable are inserted into the optical-electric multiplexing port at the same time, and the optical-electric multiplexing port is set to the optical port mode when the crystal head network cable is continuously detected to be pulled out from the optical-electric multiplexing port within a certain time.

[0021] In another aspect, the application further provides an optical-electric multiplexing port software self-switching system, the system comprising at least one processor; and,

[0022] a memory in communication with the at least one processor; wherein

[0023] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above-mentioned optical-electrical multiplexing port software self-switching method.

[0024] In another aspect, the present application also provides a non-volatile computer readable storage medium storing computer executable instructions, which, when executed by one or more processors, cause the one or more processors to perform the above-mentioned optical-electrical multiplexing port software self-switching method.

[0025] In another aspect, the present application also provides a computer program product comprising a computer program stored on a non-volatile computer readable storage medium, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the above-mentioned optical-electrical multiplexing port software self-switching method.

[0026] The present application has the beneficial effects that: when in use, it is detected whether an optical module is inserted into the optical-electrical multiplexing port, if yes, the optical-electrical multiplexing port is set to an optical port mode and the rate mode is set to optical port self-negotiation, if no, the optical-electrical multiplexing port is set to an electrical port mode and the rate mode is set to electrical port self-negotiation; after the optical-electrical multiplexing port is set to the optical port mode, it is detected whether the optical module works normally, if no, the rate mode of the optical module is obtained and the rate mode is set to be consistent with the rate mode of the optical module; after the optical module is pulled out of the optical-electrical multiplexing port, the optical-electrical multiplexing port is set to the electrical port mode and the rate mode is set to electrical port self-negotiation; after the state of the optical-electrical multiplexing port changes, it is re-detected whether an optical module is inserted into the optical-electrical multiplexing port; thereby, the optical port mode is used for communication preferentially when the optical module and the crystal head network cable are inserted into the optical-electrical multiplexing port at the same time, and the communication rate self-negotiation is automatically performed, so that the intelligent degree is improved, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0027] Figure 1 is an implementation flowchart of the optical-electrical multiplexing port software self-switching method provided by the embodiment one of the present application;

[0028] Figure 2 is a structural schematic diagram of the optical-electrical multiplexing port software self-switching system provided by the embodiment two of the present application. DETAILED DESCRIPTION

[0029] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application.

[0030] The specific implementation of the present application will be described in detail below with reference to specific embodiments:

[0031] Example One

[0032] Figure 1 The implementation process of the optical-electrical multiplexing port software self-switching method provided by the embodiment of the present application is shown, only the parts related to the embodiments of the present application are shown for the convenience of description, and the details are as follows:

[0033] In step S101, it is detected whether there is an optical module inserted into the optical-electrical multiplexing port, if yes, the optical-electrical multiplexing port is set to an optical port mode and the rate mode is set to optical port self-negotiation, if no, the optical-electrical multiplexing port is set to an electrical port mode and the rate mode is set to electrical port self-negotiation;

[0034] In the embodiment of the present application, detecting whether there is an optical module inserted into the optical-electrical multiplexing port includes: detecting whether there is an SD signal of the optical module input (optical signal quality detection) to the optical port of the optical-electrical multiplexing port, wherein the SD signal of the optical module is high level;

[0035] The method further includes: detecting whether there is an optical signal input to the optical module after the optical module is inserted into the optical-electrical multiplexing port, if no, the optical-electrical multiplexing port is set to an electrical port mode and the rate mode is set to electrical port self-negotiation.

[0036] Further, detecting whether there is an optical signal input to the optical module after the optical module is inserted into the optical-electrical multiplexing port includes: detecting the LOS signal state (optical signal detection) of the optical module;

[0037] The LOS signal state of the optical module includes: LOS signal generation and LOS signal non-generation; the LOS signal generation indicates that there is no optical signal input to the optical module, and the LOS signal non-generation indicates that there is an optical signal input to the optical module.

[0038] Preferably, the method further includes: detecting that the SD signal of the optical module is low level and the LOS signal is not generated, and then issuing an optical attenuation too high alarm reminder, wherein the optical attenuation too high alarm reminder includes: issuing an optical attenuation too high alarm reminder to a remote server or a mobile terminal.

[0039] The optical-electrical multiplexing port includes an optical port and an electrical port, the optical port is used for inserting an optical module, and the electrical port is used for inserting a crystal head network cable.

[0040] In step S102, after setting the optical-electrical multiplexing port to the optical port mode, it is detected whether the optical module works normally, if not, the rate mode of the optical module is acquired and the rate mode is set to be consistent with the rate mode of the optical module;

[0041] In the embodiment of the present application, the acquiring of the rate mode of the optical module comprises: acquiring the rate mode of the optical module from the register of the optical module; wherein the detection of whether the optical module works normally is determined by detecting whether the optical port is successfully linked.

[0042] In step S103, after the optical module is pulled out from the optical-electrical multiplexing port, the optical-electrical multiplexing port is set to the electrical port mode and the rate mode is set to the electrical port self-negotiation;

[0043] In the embodiment of the present application, the setting of the optical-electrical multiplexing port to the electrical port mode after the optical module is pulled out from the optical-electrical multiplexing port comprises: continuously detecting that the optical module is pulled out from the optical-electrical multiplexing port within a certain time, then setting the optical-electrical multiplexing port to the electrical port mode, so as to perform optical-electrical switching and avoid misjudgment; wherein whether the optical module is pulled out from the optical-electrical multiplexing port is determined by detecting the SD signal input state of the optical module.

[0044] In step S104, after the state of the optical-electrical multiplexing port changes, it is re-detected whether there is an optical module inserted into the optical-electrical multiplexing port;

[0045] In the embodiment of the present application, the re-detection is performed; further, the method further comprises: after the optical module and the crystal head network cable are simultaneously inserted into the optical-electrical multiplexing port, continuously detecting that the crystal head network cable is pulled out from the optical-electrical multiplexing port within a certain time, then setting the optical-electrical multiplexing port to the optical port mode; so as to perform electrical-optical switching and avoid misjudgment.

[0046] The change of the state of the optical-electrical multiplexing port comprises: the insertion or pulling out of the optical module into or from the optical-electrical multiplexing port, and the insertion or pulling out of the crystal head network cable into or from the optical-electrical multiplexing port.

[0047] In an embodiment of the present invention, when in use, it is detected whether there is an optical module inserted into the optoelectronic multiplexing port. If so, the optoelectronic multiplexing port is set to optical port mode and the rate mode is set to optical port auto-negotiation. If not, the optoelectronic multiplexing port is set to electrical port mode and the rate mode is set to electrical port auto-negotiation. After the optoelectronic multiplexing port is set to optical port mode, it is detected whether the optical module is working normally. If not, the rate mode of the optical module is obtained and the rate mode is set to be consistent with the rate mode of the optical module. After the optical module is unplugged from the optoelectronic multiplexing port, the optoelectronic multiplexing port is set to electrical port mode, and the rate mode is set to electrical port auto-negotiation. After the state of the optoelectronic multiplexing port changes, it is re-detected whether there is an optical module inserted into the optoelectronic multiplexing port. Thus, when the optical module and the crystal head network cable are simultaneously inserted into the optoelectronic multiplexing port, the optical port mode is given priority for communication, and the communication rate is automatically self-negotiated, thereby improving the degree of intelligence and thus improving the user experience.

[0048] Example Two

[0049] Figure 2 The second embodiment of the present invention provides a software self-switching system for optical-electrical multiplexing ports. Figure 2 As shown, the system 10 includes:

[0050] One or more processors 110 and memory 120, Figure 2 In the description, a processor 110 is used as an example. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 2 The bus connection is taken as an example.

[0051] The processor 110 is used to implement various control logics of the system 10. It can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor, or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.

[0052] The memory 120, as a non-volatile computer readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions corresponding to the photoelectric multiplexing port software self-switching method in the embodiments of the present application. The processor 110 executes the various functional applications and data processing of the system 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implements the photoelectric multiplexing port software self-switching method in the above method embodiments.

[0053] The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; the data storage area can store data created according to the use of the system 10, etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. In some embodiments, the memory 120 can optionally include a memory remotely arranged with respect to the processor 110, and these remote memories can be connected to the system 10 through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0054] One or more units are stored in the memory 120, and when executed by the one or more processors 110, the photoelectric multiplexing port software self-switching method in any of the above method embodiments is executed, for example, the method steps S101 to S104 in the above description Figure 1 are executed.

[0055] Example Three

[0056] Embodiment three of the present application provides a non-volatile computer readable storage medium, and the computer readable storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors, for example, the method steps S101 to S104 in the above description Figure 1 are executed.

[0057] By way of example, nonvolatile storage can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile storage can include random-access memory (RAM), which acts as external cache memory. By way of example, and not limitation, RAM can be provided in numerous forms such as synchronous RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). Combinations of the above can be used. The disclosed memory components of the operating environments described herein are intended to include one or more of these and / or any other suitable types of memory.

[0058] Example Four

[0059] Embodiment four of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-volatile computer readable storage medium, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the optoelectronic multiplexing port software self-switching method of the above method embodiments. For example, the method steps S101 to S104 in the above description are performed. Figure 1

[0060] The above-described embodiments are merely illustrative for the present application, and the units illustrated as separate parts can or can not be physically separate, and the parts illustrated as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.

[0061] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can exist in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and include a number of instructions to make a computer electronic device (which can be a personal computer, a server, or a network electronic device, etc.) execute the methods of the various embodiments or some parts of the embodiments.

[0062] ​What has been described herein in the specification and drawings includes examples of methods and systems that can provide optoelectronic multiplexed port software self-switching. Of course, not every conceivable combination of elements and / or method can be described for the purposes of describing various features of the present disclosure, but it can be recognized that many additional combinations and permutations of the disclosed features are possible. It is intended, therefore, to be bound only by the broadest functionality described and / or shown in the specification and drawings, and that the disclosure should be taken as showing and describing the embodiments by way of example only. It is further intended that the specification and figures be considered as presenting examples in all aspects, and that the disclosure should be taken as showing and describing the examples by way of example only. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims

1. A method for self-switching of optical / electrical multiplexing ports by software, characterized in that: The method comprises the following steps: Detecting whether an optical module is inserted into the optoelectronic multiplexing port, if yes, setting the optoelectronic multiplexing port to optical port mode and setting the rate mode to optical port auto-negotiation; if no, setting the optoelectronic multiplexing port to electrical port mode and setting the rate mode to electrical port auto-negotiation; After setting the optoelectronic multiplexing port to the optical port mode, detecting whether the optical module is working normally, if not, obtaining the rate mode of the optical module and setting the rate mode to be consistent with the rate mode of the optical module; After the optical module is unplugged from the optical / electrical multiplexing port, the optical / electrical multiplexing port is set to the electrical port mode, and the rate mode is set to the electrical port auto-negotiation mode; Re-detecting whether an optical module is inserted into the optical / electrical multiplexing port after the state of the optical / electrical multiplexing port changes; The optical-electrical multiplexing port includes an optical port and an electrical port. The optical port is used to plug in the optical module, and the electrical port is used to plug in the crystal head network cable. The state change of the optical-electrical multiplexing port includes: the optical module is inserted into or removed from the optical-electrical multiplexing port, and the crystal plug network cable is inserted into or removed from the optical-electrical multiplexing port.

2. The method according to claim 1, wherein The detecting whether an optical module is inserted into the optoelectronic multiplexing port comprises: detecting whether an optical port of the optoelectronic multiplexing port has an SD signal input of the optical module, wherein the SD signal of the optical module is at a high level; The acquiring the rate mode of the optical module includes: acquiring the rate mode of the optical module from a register of the optical module.

3. The method according to claim 1, wherein After the optical module is unplugged from the optical / electrical multiplexing port, setting the optical / electrical multiplexing port to the electrical port mode includes: If it is continuously detected within a certain period that the optical module is unplugged from the optical / electrical multiplexing port, the optical / electrical multiplexing port is set to the electrical port mode; Wherein, whether the optical module is unplugged from the optoelectronic multiplexing port is determined by detecting the SD signal input state of the optical module.

4. The method according to claim 1, wherein The method further includes: after the optical module is inserted into the optoelectronic multiplexing port, detecting whether the optical module has an optical signal input, and if not, setting the optoelectronic multiplexing port to an electrical port mode and setting the rate mode to electrical port auto-negotiation.

5. The method according to claim 4, wherein The detecting whether the optical module has an optical signal input after the optical module is inserted into the optoelectronic multiplexing port comprises: detecting a LOS signal state of the optical module; The LOS signal status of the optical module includes: LOS signal generation and LOS signal non-generation; the LOS signal generation indicates that the optical module has no optical signal input, and the LOS signal non-generation indicates that the optical module has the optical signal input.

6. The method according to claim 5, wherein The method further includes: issuing an optical attenuation excessive alarm when detecting that the SD signal of the optical module is at a low level and the LOS signal is not generated.

7. The method according to claim 1, wherein The method further includes: after the optical module and the crystal plug network cable are simultaneously inserted into the optical-electrical multiplexing port, if it is continuously detected within a certain period that the crystal plug network cable is unplugged from the optical-electrical multiplexing port, setting the optical-electrical multiplexing port to the optical port mode.

8. A software self-switching system for optical-electrical multiplexing ports, characterized in that: The system includes at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the optical / electrical multiplexing port software self-switching method according to any one of claims 1-7.

9. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors can execute the optical / electrical multiplexing port software self-switching method according to any one of claims 1-7.

10. A computer program product, characterized in that The computer program product includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the method for self-switching optical / electrical multiplexing ports according to any one of claims 1 to 7.