Method for transmitting multi-protocol data based on single medium and data transmission system

By utilizing different fiber cores and wavelength combinations in a single-medium optical fiber transmission channel, multi-protocol data transmission can be achieved, solving the problem of high cost for long-distance transmission and improving the stability and reliability of data transmission.

CN121151484APending Publication Date: 2025-12-16BEIJING HOLLYSYS AUTOMATION & DRIVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511399327.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-28
Publication Date
2025-12-16

AI Technical Summary

Technical Problem

In long-distance transmission scenarios, existing technologies increase the number of optical fibers to transmit multiple protocol data, resulting in high data transmission costs and transmission equipment maintenance costs.

Method used

It adopts a single-medium bidirectional transmission channel to transmit multiple protocol data through optical fiber, and realizes the transmission of multi-protocol data by utilizing different optical fiber cores and combinations of different wavelengths within the same optical fiber core.

Benefits of technology

It reduces data transmission costs and transmission equipment maintenance costs in long-distance, multi-protocol data transmission scenarios, while improving the stability and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121151484A_ABST
    Figure CN121151484A_ABST
Patent Text Reader

Abstract

The invention relates to the field of industrial control, and provides a method for transmitting multi-protocol data based on a single medium and a data transmission system. The method comprises the following steps: a first device determines a first target transmission module and a second target transmission module based on a first communication protocol type corresponding to first to-be-sent electric signal data, the first target transmission module being a first transmission module in a first physical interface, and the second transmission module being a second transmission module in a second physical interface; the second target transmission module is a second transmission module in the second physical interface, and the communication protocols supported by the first and second target transmission modules are the same; and converting the first to-be-sent electric signal data into first to-be-sent optical signal data, and transmitting the first to-be-sent optical signal data to a second target transmission module at a first sending wavelength through the first target transmission module. According to the invention, transmission of multiple protocol data in a single medium can be realized, so that the data transmission cost and the transmission equipment maintenance cost in a long-distance transmission multi-protocol data scene are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial control, and in particular to a method and data transmission system for transmitting multi-protocol data based on a single medium. Background Technology

[0002] In the field of industrial control, in long-distance transmission scenarios (such as data transmission distances greater than 100 meters), fiber optic transmission is usually required for data transmission.

[0003] Most current fiber optic transmission methods use a single medium (such as a single optical fiber) to transmit data of a single protocol. However, when it is necessary to transmit data of two or more protocols, the transmission medium is often increased (such as increasing the number of optical fibers) to meet the transmission requirements of multiple protocols. For example, when two protocols need to be transmitted, two optical fibers are used to transmit the two protocols respectively. This results in higher data transmission costs and higher maintenance costs for transmission equipment.

[0004] Based on the above, there is an urgent need for a method to transmit multiple protocol data using a single medium, in order to reduce the data transmission cost and transmission equipment maintenance cost in long-distance transmission scenarios involving multiple protocol data. Summary of the Invention

[0005] In view of this, embodiments of this application provide a method for transmitting multi-protocol data based on a single medium, in order to solve the problems of high data transmission costs and transmission equipment maintenance costs in long-distance multi-protocol data transmission scenarios in the prior art.

[0006] A first aspect of this application provides a method for transmitting multi-protocol data based on a single medium, applied to a data transmission system. The data transmission system includes at least a first device and a second device. The first device includes a first physical interface, which includes at least two first transmission modules, each supporting the same or different communication protocols. The second device includes a second physical interface, which includes at least two second transmission modules, each supporting the same or different communication protocols. The first physical interface and the second physical interface are connected via a single-medium bidirectional transmission channel. The method includes the following steps: First equipment: Generate the first electrical signal data to be transmitted; Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, a first target transmission module and a second target transmission module are determined. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol. The first electrical signal data to be transmitted is converted into the first optical signal data to be transmitted, and the first optical signal data to be transmitted is transmitted to the second target transmission module through the first target transmission module at the first transmission wavelength.

[0007] A second aspect of this application provides a data transmission system, which includes at least a first device and a second device. The first device includes a first physical interface, which includes at least two first transmission modules, each of which supports the same or different communication protocols. The second device includes a second physical interface, which includes at least two second transmission modules, each of which supports the same or different communication protocols. The first physical interface and the second physical interface are connected via a single-medium bidirectional transmission channel. The first device is configured as follows: Generate the first electrical signal data to be transmitted; Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, a first target transmission module and a second target transmission module are determined. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol. The first electrical signal data to be transmitted is converted into the first optical signal data to be transmitted, and the first optical signal data to be transmitted is transmitted to the second target transmission module through the first target transmission module at the first transmission wavelength.

[0008] Compared with the prior art, the beneficial effects of the embodiments of this application include at least the following: the first physical interface of the first device in the data transmission system includes at least two first transmission modules, each supporting the same or different communication protocols; the second physical interface of the second device includes at least two second transmission modules, each supporting the same or different communication protocols; the first physical interface and the second physical interface are connected through a single-medium bidirectional transmission channel. During data transmission, the flexible combination and cooperation between the first transmission modules in the first physical interface and the second transmission modules in the second physical interface enables the transmission of multiple protocol data in a single medium, thereby reducing data transmission costs and transmission equipment maintenance costs in long-distance multi-protocol data transmission scenarios. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This is a schematic diagram of the structure of the first data transmission system provided in the embodiments of this application; Figure 2 This is a flowchart illustrating a method for transmitting multi-protocol data based on a single medium, according to an embodiment of this application. Figure 3 This is a schematic diagram of the structure of the second data transmission system provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the third data transmission system provided in the embodiments of this application; Figure 5 This is a schematic diagram of a private data encapsulation structure provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0011] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0012] The following describes in detail, with reference to the accompanying drawings, a method and data transmission system for transmitting multi-protocol data based on a single medium according to embodiments of this application.

[0013] Figure 1 This is a schematic diagram of the structure of the first data transmission system provided in this application embodiment. Please refer to... Figure 1 The data transmission system (which may be an industrial control system such as a wind turbine control system) includes at least a first device 101 and a second device 102. The first device 101 includes a first physical interface 1011, which includes at least two first transmission modules (including first transmission module 1, ..., first transmission module n, where n is an integer ≥ 2). Each first transmission module supports the same or different communication protocols (the communication protocols supported by first transmission module 1, ..., first transmission module n may be the same or different). The second device 102 includes a second physical interface 1021, which includes at least two second transmission modules (including second transmission module 1, ..., second transmission module n). Each second transmission module supports the same or different communication protocols (the communication protocols supported by second transmission module 1, ..., second transmission module n may be the same or different). The first physical interface 1011 and the second physical interface 1021 are connected through a single-medium bidirectional transmission channel.

[0014] The aforementioned single-medium bidirectional transmission channel typically refers to optical fiber, specifically dual-core single-mode / multimode fiber or multi-core single-mode / multimode fiber. Optical fiber is a physical medium made of glass or plastic used for transmitting optical signals. Dual-core single-mode fiber refers to fiber with two independent fiber cores inside, each allowing only one optical signal mode (fundamental mode) to be transmitted within the core. Dual-core multimode fiber refers to fiber with two independent fiber cores inside, each allowing multiple optical signal modes to be transmitted within the core. Multi-core single-mode fiber refers to fiber with two or more independent fiber cores inside, each allowing only one optical signal mode (fundamental mode) to be transmitted within the core. Multi-core multimode fiber refers to fiber with two or more independent fiber cores inside, each allowing multiple optical signal modes to be transmitted within the core.

[0015] The aforementioned first physical interface 1011 and second physical interface 1021 can specifically be fiber optic ports, that is, physical connectors (fiber optic interfaces) for optical fibers. The types of fiber optic interfaces mainly include four types: LC (Lucent Connector, small square connector), SC (Subscriber Connector / Standard Connector, large square connector), ST (Straight Tip, round bayonet connector), and FC (Ferrule Connector, threaded locking connector).

[0016] The first device 101 and the second device 102 mentioned above can specifically be terminal devices, industrial controllers (such as programmable logic controllers with fiber optic interfaces), industrial servers (such as edge computing servers), industrial sensors / actuators (such as fiber optic temperature sensors, intelligent valve positioners with fiber optic interfaces), etc.

[0017] The communication protocols supported by each first transmission module in the first physical interface 1011 and each second transmission module in the second physical interface 1021 include, but are not limited to, Ethernet protocol and RS-485 protocol (hereinafter referred to as "485 protocol").

[0018] The number and type of devices in the data transmission system of this application embodiment can be adjusted according to the actual application scenario, and no specific limitations are imposed in this application embodiment.

[0019] Figure 2 This is a schematic flowchart illustrating a method for transmitting multi-protocol data based on a single medium, according to an embodiment of this application. Please refer to... Figure 2 This method can be applied to, for example Figure 1 The data transmission system shown includes a first device 101 and a second device 102.

[0020] The following detailed description uses the application of this method to the first device 101 as an example. The method for transmitting multi-protocol data based on a single medium provided in this application includes the following steps: Step S201: Generate the first electrical signal data to be transmitted.

[0021] The first electrical signal data to be transmitted refers to various types of information carried by changes in electrical quantities such as voltage, current, and frequency. For example, in an industrial scenario, the first data to be transmitted can be sensor monitoring data (such as temperature, pressure, flow rate, etc. collected by industrial sensors), controller instruction data (such as instructions issued by controllers such as PLCs (Programmable Logic Controllers) and DCSs (Distributed Control Systems) to drive actuators (such as motors, valves, etc.) to complete specified actions), execution feedback data (such as "current speed" fed back from a motor driver to a PLC), system management data (such as fault diagnosis data, remote operation and maintenance data, etc.), etc.

[0022] Step S202: Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, determine the first target transmission module and the second target transmission module. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol.

[0023] The first communication protocol type can be Ethernet protocol, RS-485 protocol (which can be simply referred to as "485 protocol"), etc. For example, if the first electrical signal data to be transmitted is electrical signal data generated based on the Ethernet protocol, then the first communication protocol type corresponding to the first electrical signal data to be transmitted is the Ethernet protocol.

[0024] As an example, please refer to Figure 1 Assuming that the first communication protocol type corresponding to the first electrical signal data to be transmitted is Ethernet protocol, and the communication protocol supported by the first transmission module 1 in the first physical interface 1011 of the first device 101 is Ethernet protocol, then the first transmission module 1 can be identified as the first target transmission module; the communication protocol supported by the second transmission module 1 in the second physical interface 1021 of the second device 102 is Ethernet protocol, then the second transmission module 1 can be identified as the second target transmission module.

[0025] Step S203: Convert the first electrical signal data to be transmitted into the first optical signal data to be transmitted, and transmit the first optical signal data to the second target transmission module through the first target transmission module at the first transmission wavelength.

[0026] The technical solution provided in this application embodiment includes a first physical interface of a first device in a data transmission system comprising at least two first transmission modules, each supporting the same or different communication protocols. A second physical interface of a second device comprises at least two second transmission modules, each supporting the same or different communication protocols. The first and second physical interfaces are connected via a single-medium bidirectional transmission channel. During data transmission, the flexible combination and cooperation between the first transmission modules in the first physical interface and the second transmission modules in the second physical interface enables the transmission of multiple protocol data over a single medium, thereby reducing data transmission costs and transmission equipment maintenance costs in long-distance multi-protocol data transmission scenarios.

[0027] Figure 3 This is a schematic diagram of the structure of a second data transmission system provided in an embodiment of this application. Please refer to... Figure 3 , Figure 3 The data transmission system shown is Figure 1 The data transmission systems shown have basically the same structure, with the differences being: Figure 3 The data transmission system shown includes a single-medium bidirectional transmission channel comprising at least two bidirectional transmission channels. One bidirectional transmission channel connects a first transmission module in a first physical interface and a second transmission module in a second physical interface. The first and second transmission modules connected to the same bidirectional transmission channel support the same communication protocol. For example, the single-medium bidirectional transmission channel includes bidirectional transmission channels 1, ..., and n, where n is an integer ≥ 2. The first transmission module 1 and the second transmission module 1 are connected via bidirectional transmission channel 1, and the first transmission module n and the second transmission module n are connected via bidirectional transmission channel n. The first transmission module 1 and the second transmission module 1 support the same communication protocol, and the first transmission module n and the second transmission module n support the same communication protocol. The first transmission module 1 and the first transmission module n may support the same or different communication protocols.

[0028] In some embodiments, the single-medium bidirectional transmission channel is a dual-core single-mode / multimode optical fiber, including optical fiber core 1 and optical fiber core 2. Optical fiber core 1 can serve as bidirectional transmission channel 1 for connecting the first transmission module 1 in the first physical interface 1011 and the second transmission module 1 in the second physical interface 1021. Optical fiber core 2 can serve as bidirectional transmission channel 2 for connecting the first transmission module 2 in the first physical interface 1011 and the second transmission module 2 in the second physical interface 1021.

[0029] In other embodiments, the single-medium bidirectional transmission channel is a multi-core optical fiber, including fiber core 1, ..., fiber core n. Fiber core 1 can serve as bidirectional transmission channel 1 for connecting the first transmission module 1 in the first physical interface 1011 and the second transmission module 1 in the second physical interface 1021; ...; fiber core n can serve as bidirectional transmission channel n for connecting the first transmission module n in the first physical interface 1011 and the second transmission module n in the second physical interface 1021.

[0030] In practical applications, based on business needs and data transmission requirements, the first transmission module in the first physical interface and the second transmission module in the second physical interface can be flexibly combined and coordinated to achieve the transmission of multiple protocol data in a single medium, thereby reducing data transmission costs and transmission equipment maintenance costs in long-distance multi-protocol data transmission scenarios.

[0031] In some embodiments, the above method further includes: The first target transmission module receives the first light emission signal data to be received from the second target transmission module in response to the first light emission signal data to be transmitted at a first receiving wavelength, wherein the first transmission wavelength is different from the first receiving wavelength; and converts the first light emission signal data to be received into the first electrical signal data to be received.

[0032] As an example, please refer to Figure 3 If the first target transmission module is the first transmission module 1 in the first physical interface 1011, and the second target transmission module is the second transmission module 1 in the second physical interface 1021, the first device 101 can first convert the first electrical signal data to be transmitted into the first optical signal data to be transmitted, and then transmit the first optical signal data to be transmitted to the second transmission module 1 in the second physical interface 1021 of the second device 102 at a first transmission wavelength through the first transmission module 1 in the first physical interface 1011. Next, the second transmission module 1 in the second physical interface 1021 responds to the first optical signal data to be transmitted and feeds back the first light-emitting signal data to be received to the first transmission module 1 in the first physical interface 1011. The first transmission module 1 receives the first light-emitting signal data to be received at a first receiving wavelength. The first transmission wavelength used by the first transmission module 1 when transmitting the first optical signal data to be transmitted is different from the first receiving wavelength used when receiving the first light-emitting signal data to be received.

[0033] Using different wavelengths to receive / transmit data in the same bidirectional transmission channel (i.e., a single fiber core) can form a "virtual isolation channel" with no signal superposition between different wavelengths, thus avoiding interference between channels and improving the stability and reliability of data transmission. Secondly, the transmission requirements of service data with different distances and priorities can be adapted according to the wavelength characteristics within the same fiber core, which effectively solves the capacity problem of parallel transmission of multiple service data and saves the cost of laying multiple optical fibers.

[0034] In some embodiments, the above method further includes: Generate the second electrical signal data to be transmitted; Based on the second communication protocol type corresponding to the second electrical signal data to be transmitted, a third target transmission module and a fourth target transmission module are determined; wherein, the third target transmission module is one of the first transmission modules in the first physical interface, the fourth target transmission module is one of the second transmission modules in the second physical interface, the third target transmission module and the fourth target transmission module support the same communication protocol, and the first target transmission module and the third target transmission module support different communication protocols. The second electrical signal data to be transmitted is converted into a second optical signal data to be transmitted, and the second optical signal data to be transmitted is transmitted to the fourth target transmission module through the third target transmission module at a second transmission wavelength, wherein the second transmission wavelength is different from the first transmission wavelength.

[0035] The second electrical signal data to be transmitted and the first electrical signal data to be transmitted generally refer to data using different protocols. For example, the first electrical signal data to be transmitted may be Ethernet protocol data, while the second electrical signal data to be transmitted may be RS-485 protocol data; or, for another example, the first electrical signal data to be transmitted may be RS-485 protocol data, while the second electrical signal data to be transmitted may be Ethernet protocol data.

[0036] As an example, please refer to Figure 3 Assuming the second electrical signal data to be transmitted is 485 protocol data, then the second communication protocol type corresponding to the second electrical signal data is the 485 protocol. If the communication protocol supported by the first transmission module n in the first physical interface 1011 of the first device 101 is the 485 protocol, and the communication protocol supported by the second transmission module n in the second physical interface 1021 of the second device 102 is the 485 protocol, then the first transmission module n can be identified as the third target transmission module, and the second transmission module n can be identified as the fourth target transmission module.

[0037] The first device 101 can first convert the second electrical signal data to be transmitted into the second optical signal data to be transmitted, and then transmit the second optical signal data to the second transmission module n in the second physical interface 1021 of the second device 102 at the second transmission wavelength through the first transmission module n in the first physical interface 1011. The second transmission wavelength used to transmit the second electrical signal data is different from the first transmission wavelength used to transmit the first electrical signal data.

[0038] In some embodiments, the above method further includes: The third target transmission module receives the second light-emitting signal data to be received from the fourth target transmission module at the second receiving wavelength in response to the second light-emitting signal data to be transmitted, wherein the second transmitting wavelength is different from the second receiving wavelength; and converts the second light-emitting signal data to be received into the second electrical signal data to be received.

[0039] Please see Figure 3 For ease of understanding, continuing with the above example, the first transmission module n in the first physical interface 1011 of the first device 101 receives the second emission signal data to be received by the second transmission module n in the second physical interface 1021 of the second device 102 in response to the second emission signal data to be transmitted. The second transmission wavelength used by the first transmission module n when transmitting the second emission signal data is different from the second reception wavelength used when receiving the second emission signal data.

[0040] On the one hand, using different bidirectional transmission channels and different transmission wavelengths for data transmission based on different protocols can effectively reduce transmission chaos between different protocol data, thereby improving the reliability of data transmission.

[0041] On the other hand, different bidirectional transmission channels (i.e., different fiber cores) are used to transmit different protocol data. The different bidirectional transmission channels are independent of each other and form physically isolated channels, which can completely avoid signal crosstalk between channels. The data transmission is highly secure and reliable. Moreover, the failure of a single bidirectional transmission channel will not affect other bidirectional transmission channels, which can improve the system's fault tolerance.

[0042] The technical solution provided in this application combines "different optical fiber cores" and "different transmit and receive wavelengths within the same optical fiber core" to form a completely physically isolated channel between different optical fiber cores, and different virtual isolation channels are formed within the same optical fiber core by different wavelengths. This can achieve dual expansion of the single-medium bidirectional transmission channel, maximize bandwidth utilization, and at the same time, provide dual protection for the stability and reliability of data transmission. This is beneficial for improving operation and maintenance efficiency and reducing the operation and maintenance costs of transmission equipment.

[0043] Figure 4 This is a schematic diagram of the structure of the third data transmission system provided in this application embodiment. Please refer to... Figure 4 The first device 101 further includes at least two first transmitting / receiving modules (including first transmitting / receiving module 1, ..., first transmitting / receiving module n, where n is an integer ≥ 2) and a first photoelectric conversion module 1012. Each first transmitting / receiving module is connected to the first photoelectric conversion module 1012 through different private data transmission channels. The first photoelectric conversion module 1012 is connected to the first physical interface 1011. Different first transmitting / receiving modules are used to receive / transmit different protocol data. For example, first transmitting / receiving module 1 can be used to receive / transmit Ethernet protocol data, and first transmitting / receiving module n can be used to receive / transmit RS-485 protocol data. The second device 102 further includes at least two second transmitting / receiving modules (including second transmitting / receiving module 1, ..., second transmitting / receiving module n, where n is an integer ≥ 2) and a second photoelectric conversion module 1022. Each second transmitting / receiving module is connected to the second photoelectric conversion module 1022 through different private data transmission channels. The second photoelectric conversion module 1022 is connected to the second physical interface 1021. Different second transmitting / receiving modules are used to receive / transmit different protocol data. For example, the second transmit / receive module 1 can be used to receive / transmit Ethernet protocol data, and the second transmit / receive module n can be used to receive / transmit 485 protocol data.

[0044] The first photoelectric conversion module 1012 and the second photoelectric conversion module 1022 are functional modules used for mutual conversion between optical signals and electrical signals.

[0045] The first and second sending / receiving modules are software functional modules used for sending and receiving protocol data.

[0046] In some implementations, generating the first electrical signal data to be transmitted includes: The first transmitting / receiving module acquires the target electrical signal, assembles the target electrical signal based on a private data encapsulation structure to generate the first electrical signal data to be transmitted, and transmits the first electrical signal data to the first photoelectric conversion module through a private data transmission channel.

[0047] The target electrical signal can be a sensor monitoring signal, a controller command, an actuator feedback signal, a fault signal, etc.

[0048] In some implementations, a private data transmission channel and a public data transmission channel can be configured according to the confidentiality requirements of the data to be transmitted. The private data transmission channel is used to transmit data with high confidentiality requirements, while the public data transmission channel is used to transmit data with lower confidentiality requirements.

[0049] In practical applications, the choice between using a private or public data transmission channel depends on business needs or the confidentiality requirements of the data provider / requester. For example, if the data provider / requester has high confidentiality requirements, they can choose to use a private data transmission channel to receive / send data. If their confidentiality requirements are lower, they can choose to use a public data transmission channel.

[0050] As an example, a private data transmission channel can be a transmission channel that carries a provider / demand identifier and is compatible with the communication protocol supported by the data to be transmitted. For example, if the communication protocol supported by the data to be transmitted is Ethernet, and the data provider identifier is Company A, then the private data transmission channel can be an Ethernet transmission channel carrying the "Company A" identifier.

[0051] Figure 5 This is a schematic diagram of a private data encapsulation structure provided in an embodiment of this application. Please refer to [link / reference]. Figure 5 This private data encapsulation structure includes a message header, data length, data, and checksum information. The message header includes a first identification information and a second identification information. The first identification information is typically the identifier of the data provider / demand party (such as a company identifier or enterprise identifier). The second identification information is typically a communication protocol identifier, used to characterize the communication protocol used to transmit the target electrical signal. The checksum information can be a CRC checksum.

[0052] As an example, please refer to Figure 4 and Figure 5 The first transmitting / receiving module 1 of the first device 101 acquires the target electrical signal and determines the first identification information, second identification information, data length, and other information corresponding to the target electrical signal. If the security transmission level of the target electrical signal is determined to be low based on the first identification information, a public data transmission channel can be used to transmit the target electrical signal. If the security transmission level of the target electrical signal is determined to be high based on the first identification information, a private data transmission channel needs to be used for transmission. Specifically, the first transmitting / receiving module 1 can first proceed as follows: Figure 5 The private data encapsulation structure shown assembles the target electrical signal to generate a first electrical signal data to be transmitted; then the first electrical signal data to be transmitted is transmitted to the first photoelectric conversion module 1012 through the private data transmission channel.

[0053] By using the above methods, you can choose to use private or public data transmission channels for data transmission based on the confidentiality requirements of the data to be transmitted or business needs, thereby improving the security of data transmission and meeting the data transmission needs of different users.

[0054] Understandably, the process of the second device 102 transmitting multi-protocol data to the first device 102 is similar to the process of the first device 101 transmitting multi-protocol data to the second device 102, and will not be described in detail here.

[0055] In some implementations, transmitting the first optical signal data to be transmitted to the second target transmission module via the first target transmission module at a first transmission wavelength includes: Determine the channel status of the bidirectional transmission channel between the first target transmission module and the second target transmission module; If the channel status is abnormal, a fifth target transmission module will be selected from the other first transmission modules in the first physical interface besides the first target transmission module. If the communication protocol supported by the fifth target transmission module is different from the communication protocol supported by the first target transmission module, then the communication protocol originally supported by the fifth target transmission module will be switched to the communication protocol supported by the first target transmission module. After establishing the connection between the fifth target transmission module and the second target transmission module, the first optical signal data to be transmitted is transmitted to the second target transmission module through the fifth target transmission module at the first transmission wavelength.

[0056] Channel status includes abnormal and normal states. An abnormal state indicates that the bidirectional transmission channel has experienced a fault and is in a faulty state; a normal state indicates that the bidirectional transmission channel is in normal operation. The types of faults in the bidirectional transmission channel mainly include: physical layer faults (such as fiber breakage / breakage, excessive fiber loss, abnormal fiber dispersion, fiber interface / connector faults, etc.), link layer faults (such as link configuration errors, link authentication / negotiation failures, etc.), and environmental and external interference faults (such as electromagnetic interference, adverse environmental conditions, etc.).

[0057] As an example, please refer to Figure 4 The first communication protocol type corresponding to the first electrical signal data to be transmitted is Ethernet protocol. The communication protocol supported by the first transmission module 1 in the first physical interface 1011 of the first device 101 is Ethernet protocol. Therefore, the first transmission module 1 can be identified as the first target transmission module. The communication protocol supported by the second transmission module 1 in the second physical interface 1021 of the second device 102 is Ethernet protocol. Therefore, the second transmission module 1 can be identified as the second target transmission module.

[0058] Next, the channel status of the bidirectional transmission channel 1 between the first target transmission module and the second target transmission module is determined. If the channel status of the bidirectional transmission channel 1 is abnormal, and after investigation it is found that the first target transmission module is in a faulty state while the second target transmission module is in a normal operating state, then a fifth target transmission module can be reselected from the other first transmission modules in the first physical interface 1011 besides the first target transmission module (first transmission module 1). For example, the reselected fifth target transmission module is the first transmission module n (supporting the 485 protocol). The first transmission module n supports a different communication protocol than the first transmission module 1, so the original communication protocol (485 protocol) supported by the fifth target transmission module (first transmission module n) is switched to the communication protocol (Ethernet protocol) supported by the first target transmission module (first transmission module 1). Then, the connection between the fifth target transmission module (first transmission module n) and the second target transmission module (second transmission module 1) is established (i.e., a bidirectional transmission channel is established between them), and then the first optical signal data to be transmitted is transmitted to the second transmission module 1 through the first transmission module n at the first transmission wavelength.

[0059] In this way, when the channel status of a certain bidirectional transmission channel is in an abnormal state, the combination relationship between the first transmission module in the first physical interface and the second transmission module in the second physical interface can be flexibly adjusted, and the communication protocol supported by the newly selected fifth target transmission module can be switched, which can ensure the efficiency and reliability of data transmission.

[0060] In some implementations, after determining the channel status of the bidirectional transmission channel between the first target transmission module and the second target transmission module, the method further includes: If the channel status is abnormal, a fifth target transmission module will be reselected from the other first transmission modules in the first physical interface except for the first target transmission module, and a sixth target transmission module will be reselected from the other second transmission modules in the second physical interface except for the second target transmission module. If the communication protocols supported by the fifth and sixth target transmission modules are different from those supported by the first target transmission module, then the original communication protocols supported by the fifth and sixth target transmission modules will be switched to those supported by the first target transmission module. After establishing the connection between the fifth target transmission module and the sixth target transmission module, the first optical signal data to be transmitted is transmitted to the sixth target transmission module through the fifth target transmission module at the first transmission wavelength.

[0061] For ease of understanding, please continue using the above example. Figure 4If the channel status of bidirectional transmission channel 1 is abnormal, and after investigation it is found that both the first target transmission module and the second target transmission module are faulty, then a fifth target transmission module is reselected from the other first transmission modules in the first physical interface (excluding the first target transmission module), and a sixth target transmission module is reselected from the other second transmission modules in the second physical interface (excluding the second target transmission module). For example, the reselected fifth target transmission module is the first transmission module n (supporting the RS485 communication protocol), and the sixth target transmission module is the second transmission module n (supporting the RS485 communication protocol).

[0062] The communication protocols supported by the first transmission module n, the second transmission module n, and the first transmission module 1 are all different. Therefore, the communication protocol (485 protocol) originally supported by the fifth target transmission module (first transmission module n) and the sixth target transmission module (second transmission module n) is first switched to the communication protocol (Ethernet protocol) supported by the first target transmission module (first transmission module 1). Next, the connection between the fifth target transmission module (first transmission module n) and the sixth target transmission module (second transmission module n) is established (i.e., a bidirectional transmission channel is established between them). Then, the first optical signal data to be transmitted is transmitted to the second transmission module n through the first transmission module n at the first transmission wavelength.

[0063] In this way, when the channel status of a certain bidirectional transmission channel is in an abnormal state, the combination relationship between the first transmission module in the first physical interface and the second transmission module in the second physical interface can be flexibly adjusted, and the communication protocol supported by the newly selected fifth and sixth target transmission modules can be switched, which can ensure the efficiency and reliability of data transmission.

[0064] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0065] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0066] This application embodiment also provides a data transmission system, which includes at least a first device and a second device; The first device includes a first physical interface, and the first physical interface includes at least two first transmission modules, each of which supports the same or different communication protocols. The second device includes a second physical interface, which includes at least two second transmission modules, each of which supports the same or different communication protocols. The first physical interface and the second physical interface are connected via a single-medium bidirectional transmission channel. The first device is configured as follows: Generate the first electrical signal data to be transmitted; Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, a first target transmission module and a second target transmission module are determined. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol. The first electrical signal data to be transmitted is converted into the first optical signal data to be transmitted, and the first optical signal data to be transmitted is transmitted to the second target transmission module through the first target transmission module at the first transmission wavelength.

[0067] The first physical interface of the first device in the data transmission system provided in this application includes at least two first transmission modules, each supporting the same or different communication protocols. The second physical interface of the second device includes at least two second transmission modules, each supporting the same or different communication protocols. The first and second physical interfaces are connected via a single-medium bidirectional transmission channel. During data transmission, the flexible combination and cooperation between the first transmission modules in the first physical interface and the second transmission modules in the second physical interface enables the transmission of multiple protocol data in a single medium, thereby reducing data transmission costs and transmission equipment maintenance costs in long-distance multi-protocol data transmission scenarios.

[0068] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0069] Figure 6 This is a schematic diagram of the electronic device 600 provided in an embodiment of this application. Figure 6 As shown, the electronic device 600 of this embodiment includes a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and executable on the processor 601. When the processor 601 executes the computer program 603, it implements the steps in the various method embodiments described above. Alternatively, when the processor 601 executes the computer program 603, it implements the functions of each module / unit in the various device embodiments described above.

[0070] Electronic device 600 can be a desktop computer, laptop, handheld computer, cloud server, or other electronic device. Electronic device 600 may include, but is not limited to, a processor 601 and a memory 602. Those skilled in the art will understand that... Figure 6This is merely an example of electronic device 600 and does not constitute a limitation on electronic device 600. It may include more or fewer components than shown, or different components.

[0071] The processor 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0072] The memory 602 can be an internal storage unit of the electronic device 600, such as a hard disk or RAM of the electronic device 600. The memory 602 can also be an external storage device of the electronic device 600, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the electronic device 600. The memory 602 can also include both internal and external storage units of the electronic device 600. The memory 602 is used to store computer programs and other programs and data required by the electronic device.

[0073] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0074] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program may include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium may include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in a computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, a computer-readable medium does not include electrical carrier signals and electrical signals.

[0075] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for transmitting multi-protocol data based on a single medium, characterized in that, The data transmission system is applied to a data transmission system, which includes at least a first device and a second device. The first device includes a first physical interface, which includes at least two first transmission modules, each of which supports the same or different communication protocols. The second device includes a second physical interface, which includes at least two second transmission modules, each of which supports the same or different communication protocols. The first physical interface and the second physical interface are connected through a single-medium bidirectional transmission channel. The method includes the following steps: First equipment: Generate the first electrical signal data to be transmitted; Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, a first target transmission module and a second target transmission module are determined. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol. The first electrical signal data to be transmitted is converted into the first optical signal data to be transmitted, and the first optical signal data to be transmitted is transmitted to the second target transmission module through the first target transmission module at the first transmission wavelength.

2. The method according to claim 1, characterized in that, The single-medium bidirectional transmission channel includes at least two bidirectional transmission channels. A first transmission module and a second transmission module are connected through a bidirectional transmission channel, and the first transmission module and the second transmission module connected to the same bidirectional transmission channel support the same communication protocol.

3. The method according to claim 1, characterized in that, The method further includes: The first target transmission module receives the first light emission signal data fed back by the second target transmission module in response to the first light signal data to be transmitted at a first receiving wavelength, wherein the first transmission wavelength is different from the first receiving wavelength. The first light-emitting signal data to be received is converted into the first electrical signal data to be received.

4. The method according to claim 1, characterized in that, The method further includes: Generate the second electrical signal data to be transmitted; Based on the second communication protocol type corresponding to the second electrical signal data to be transmitted, a third target transmission module and a fourth target transmission module are determined; wherein, the third target transmission module is one of the first transmission modules in the first physical interface, the fourth target transmission module is one of the second transmission modules in the second physical interface, the third target transmission module and the fourth target transmission module support the same communication protocol, and the first target transmission module and the third target transmission module support different communication protocols; The second electrical signal data to be transmitted is converted into a second optical signal data to be transmitted, and the second optical signal data to be transmitted is transmitted to the fourth target transmission module through the third target transmission module at a second transmission wavelength, wherein the second transmission wavelength is different from the first transmission wavelength.

5. The method according to claim 4, characterized in that, The method further includes: The third target transmission module receives the second light emission signal data fed back by the fourth target transmission module in response to the second light signal data to be transmitted at the second receiving wavelength, wherein the second transmission wavelength is different from the second receiving wavelength; The second light-emitting signal data to be received is converted into the second electrical signal data to be received.

6. The method according to claim 1, characterized in that, The first device further includes at least two first transmitting / receiving modules and a first photoelectric conversion module, and each of the first transmitting / receiving modules and the first photoelectric conversion module is connected through different private data transmission channels; The first photoelectric conversion module is connected to the first physical interface; Generate the first electrical signal data to be transmitted, including: The first transmitting / receiving module acquires the target electrical signal, assembles the target electrical signal based on a private data encapsulation structure to generate a first electrical signal data to be transmitted, and transmits the first electrical signal data to the first photoelectric conversion module through the private data transmission channel.

7. The method according to claim 1, characterized in that, Transmitting the first optical signal data to be transmitted to the second target transmission module via the first target transmission module at a first transmission wavelength includes: Determine the channel status of the bidirectional transmission channel between the first target transmission module and the second target transmission module; If the channel status is abnormal, a fifth target transmission module is selected from the other first transmission modules in the first physical interface besides the first target transmission module. If the communication protocol supported by the fifth target transmission module is different from the communication protocol supported by the first target transmission module, then the communication protocol originally supported by the fifth target transmission module will be switched to the communication protocol supported by the first target transmission module. After establishing the connection between the fifth target transmission module and the second target transmission module, the first optical signal data to be transmitted is transmitted to the second target transmission module through the fifth target transmission module at a first transmission wavelength.

8. The method according to claim 7, characterized in that, After determining the channel status of the bidirectional transmission channel between the first target transmission module and the second target transmission module, the method further includes: If the channel status is abnormal, a fifth target transmission module is selected from the first transmission modules other than the first target transmission module in the first physical interface, and a sixth target transmission module is selected from the second transmission modules other than the second target transmission module in the second physical interface. If the communication protocols supported by the fifth and sixth target transmission modules are different from those supported by the first target transmission module, then the original communication protocols supported by the fifth and sixth target transmission modules will be switched to the communication protocols supported by the first target transmission module. After establishing the connection between the fifth target transmission module and the sixth target transmission module, the first optical signal data to be transmitted is transmitted to the sixth target transmission module through the fifth target transmission module at the first transmission wavelength.

9. A data transmission system, characterized in that, The data transmission system includes at least a first device and a second device; The first device includes a first physical interface, and the first physical interface includes at least two first transmission modules, each of which supports the same or different communication protocols. The second device includes a second physical interface, which includes at least two second transmission modules, each of which supports the same or different communication protocols. The first physical interface and the second physical interface are connected via a single-medium bidirectional transmission channel; The first device is configured as follows: Generate the first electrical signal data to be transmitted; Based on the first communication protocol type corresponding to the first electrical signal data to be transmitted, a first target transmission module and a second target transmission module are determined. The first target transmission module is one of the first transmission modules in the first physical interface, and the second target transmission module is one of the second transmission modules in the second physical interface. The first target transmission module and the second target transmission module support the same communication protocol. The first electrical signal data to be transmitted is converted into the first optical signal data to be transmitted, and the first optical signal data to be transmitted is transmitted to the second target transmission module through the first target transmission module at the first transmission wavelength.

10. The data transmission system according to claim 9, characterized in that, The single-medium bidirectional transmission channel includes at least two bidirectional transmission channels. A first transmission module and a second transmission module are connected through a bidirectional transmission channel, and the first transmission module and the second transmission module connected to the same bidirectional transmission channel support the same communication protocol.