Optical communication method, device, equipment, medium and product

By adopting an all-optical link transmission mechanism in industrial control systems and utilizing photoelectric conversion and clock synchronization technology, high-speed data transmission between the host and slave devices is achieved, solving the problem of low communication rate in existing technologies and achieving a higher communication rate.

CN120675633APending Publication Date: 2025-09-19CHINA RAILWAY CONSTR HEAVY IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510617745.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In the prior art, the communication rate of industrial control systems is low, mainly because the buffer isolation technology introduces signal delay, and the dynamic auxiliary circuit unit cannot follow the rapid jump of the bus level in real time during high-speed communication of multiple modules.

Method used

This method uses an all-optical link transmission mechanism, optical-to-electrical conversion, and clock synchronization technology to achieve high-speed data transmission between the master and slave devices. This method includes receiving the optical signal sent by the master, performing optical-to-electrical conversion, performing clock correction to synchronize frequency and phase, and decoding to recover the original signal.

Benefits of technology

By avoiding the parasitic capacitance effect in the electrical connection, optical signal transmission is not affected by the increase in the number of slaves, and the communication rate is no longer limited by traditional electrical isolation technology, thereby improving the communication rate and solving the problem of low communication rate in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675633A_ABST
    Figure CN120675633A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an optical communication method, device and equipment, a medium and a product, and relates to the technical field of communication. The method comprises the following steps: receiving a plurality of optical signals sent by a host; performing photoelectric conversion on the plurality of optical signals to obtain a plurality of electric signals; performing clock correction on the plurality of electric signals to obtain a plurality of correction signals; and decoding the plurality of correction signals to obtain a plurality of original signals. According to the method, an all-optical link transmission mechanism is adopted, so that the problem of low communication rate caused by stray capacitance of a traditional electrical backplane bus is solved. According to the method, high-speed data transmission between the host and the slave is realized through photoelectric conversion and clock synchronization technologies. Due to the fact that the stray capacitance effect in electrical connection is avoided through optical communication, optical signal transmission is not affected by increase of the number of the slave machines, the communication rate is not limited by the traditional electrical isolation technology any more, the communication rate is improved, and the problem that in the prior art, the communication rate is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an optical communication method, device, equipment, medium and product. Background Art

[0002] In industrial control systems, host and slave devices exchange commands and data via a bus, with the host responsible for management and the slaves executing operations. As the bus length expands and the number of connected modules increases, parasitic capacitance accumulates, causing signal response delays and limiting communication rates. Reducing parasitic capacitance has become a pressing issue.

[0003] In existing technologies, line parasitic capacitance is primarily reduced through buffer isolation technology or dynamic auxiliary circuit units. Buffer isolation technology isolates the parasitic capacitance of the master and slave devices through signal buffering, preventing the capacitance stacking effect. Dynamic auxiliary circuit units rapidly charge through a low-impedance pull-up path during bus signal conversion, or discharge to ground through a controllable current source, suppressing the increase in line parasitic capacitance and ensuring sharp signal edges, thereby maintaining high-speed communication.

[0004] However, existing technologies suffer from low communication speeds. While buffer isolation avoids the capacitor stacking effect, the buffer itself introduces additional signal delay. Dynamic auxiliary circuit units, while improving signal edge quality, are unable to keep up with the rapid transitions in bus levels during high-speed multi-module communication, resulting in slower rising and falling signal edges, which in turn reduces communication speeds. Summary of the Invention

[0005] The embodiments of the present application provide an optical communication method, apparatus, device, medium and product to solve the problem of low communication rate in the prior art.

[0006] In a first aspect, an embodiment of the present application provides an optical communication method, applied to a slave device of an optical communication system, wherein the optical communication system also includes a master device, the method comprising:

[0007] Receiving a plurality of optical signals sent by the host; wherein the plurality of optical signals are obtained by the host converting a plurality of original signals, and the plurality of original signals include a plurality of first clock signals;

[0008] Performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals;

[0009] Performing clock correction on the plurality of electrical signals to obtain a plurality of correction signals; wherein the clock correction is used to make the frequencies and phases of the plurality of second clock signals consistent with the frequencies and phases of the plurality of first clock signals;

[0010] The multiple correction signals are decoded to obtain the multiple original signals.

[0011] In one possible design, performing clock correction on the multiple electrical signals to obtain multiple correction signals includes:

[0012] Calculating a plurality of clock delay signals based on the plurality of first clock signals and the plurality of second clock signals; wherein the plurality of clock delay signals are used to represent deviations between frequencies of the plurality of second clock signals and frequencies of the plurality of first clock signals, and deviations between phases of the plurality of second clock signals and phases of the plurality of first clock signals;

[0013] The plurality of second clock signals are adjusted according to the plurality of clock delay signals to obtain the plurality of correction signals.

[0014] In one possible design, decoding the multiple correction signals to obtain the multiple original signals includes:

[0015] Performing digital signal decoding on the multiple correction signals to obtain multiple line coded signals;

[0016] Line decoding is performed on the multiple line-coded signals to obtain the multiple original signals.

[0017] In one possible design, line decoding the multiple line-coded signals to obtain the multiple original signals includes:

[0018] performing line decoding on the plurality of line-coded signals to obtain a plurality of line-decoded signals;

[0019] The multiple line-decoded signals are filtered to obtain the multiple original signals.

[0020] In one possible design, performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals includes:

[0021] Performing photoelectric conversion on the multiple optical signals to obtain multiple analog electrical signals;

[0022] Performing analog-to-digital conversion on the multiple analog electrical signals to obtain the multiple electrical signals; wherein the multiple electrical signals are digital signals.

[0023] In one possible design, after decoding the multiple corrected signals to obtain the multiple original signals, the method further includes:

[0024] Verifying the multiple original signals according to a preset verification rule to obtain a verification integrity;

[0025] When the verification integrity is lower than a preset threshold, a retransmission instruction is sent to the host, so that the host retransmits the multiple original signals.

[0026] In a second aspect, an embodiment of the present application provides an optical communication device, which is applied to a slave of an optical communication system, wherein the optical communication system also includes a master, and the device includes:

[0027] A receiving module, configured to receive a plurality of optical signals sent by the host; wherein the plurality of optical signals are obtained by the host converting a plurality of original signals, the plurality of original signals including a plurality of first clock signals;

[0028] an optoelectronic conversion module, configured to perform optoelectronic conversion on the plurality of optical signals to obtain a plurality of electrical signals; wherein the plurality of electrical signals include a plurality of second clock signals;

[0029] a clock correction module, configured to perform clock correction on the plurality of electrical signals to obtain a plurality of correction signals; wherein the clock correction is configured to make the frequencies and phases of the plurality of second clock signals consistent with the frequencies and phases of the plurality of first clock signals;

[0030] The decoding module is used to decode the multiple correction signals to obtain the multiple original signals.

[0031] In one possible design, the clock correction module includes:

[0032] a first calculation unit, configured to calculate a plurality of clock delay signals based on the plurality of first clock signals and the plurality of second clock signals; wherein the plurality of clock delay signals are used to represent deviations between frequencies of the plurality of second clock signals and frequencies of the plurality of first clock signals, and deviations between phases of the plurality of second clock signals and phases of the plurality of first clock signals;

[0033] An adjusting unit is configured to adjust the plurality of second clock signals according to the plurality of clock delay signals to obtain the plurality of correction signals.

[0034] In one possible design, the decoding module includes:

[0035] a first decoding unit, configured to perform digital signal decoding on the plurality of correction signals to obtain a plurality of line coded signals;

[0036] The second decoding unit is configured to perform line decoding on the plurality of line-coded signals to obtain the plurality of original signals.

[0037] In one possible design, the second decoding unit includes:

[0038] a line decoding component, configured to perform line decoding on the plurality of line coded signals to obtain a plurality of line decoded signals;

[0039] The filtering component is used to filter the multiple line decoded signals to obtain the multiple original signals.

[0040] In one possible design, the photoelectric conversion module includes:

[0041] a photoelectric conversion unit, configured to perform photoelectric conversion on the plurality of optical signals to obtain a plurality of analog electrical signals;

[0042] The analog-to-digital conversion unit is used to perform analog-to-digital conversion on the multiple analog electrical signals to obtain the multiple electrical signals; wherein the multiple electrical signals are digital signals.

[0043] In one possible design, the optical communication device further includes:

[0044] A verification module, configured to verify the plurality of original signals according to a preset verification rule to obtain a verification integrity;

[0045] The retransmission module is configured to send a retransmission instruction to the host when the verification integrity is lower than a preset threshold, so that the host retransmits the multiple original signals.

[0046] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0047] The memory stores computer-executable instructions;

[0048] When the processor executes the computer-executable instructions stored in the memory, it is used to implement the optical communication method as described in any one of the first aspects.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the optical communication method as described in any one of the first aspects.

[0050] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, is used to implement the optical communication method as described in any one of the first aspects.

[0051] The present application provides an optical communication method, apparatus, device, medium, and product, the method comprising: receiving multiple optical signals transmitted by a host; wherein the multiple optical signals are obtained by the host converting multiple original signals, the multiple original signals including multiple first clock signals; performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals; performing clock correction on the multiple electrical signals to obtain multiple correction signals; wherein the clock correction is used to align the frequency and phase of the multiple second clock signals with the frequency and phase of the multiple first clock signals; and decoding the multiple correction signals to obtain the multiple original signals. The optical communication method of the present application solves the problem of low communication rate caused by parasitic capacitance in traditional electrical backplane buses by adopting an all-optical link transmission mechanism. The method achieves high-speed data transmission between the host and slaves through photoelectric conversion and clock synchronization technology. Because optical communication avoids the parasitic capacitance effect in electrical connections and optical signal transmission is not affected by the increase in the number of slaves, the communication rate is no longer limited by traditional electrical isolation technology, thereby improving the communication rate and solving the problem of low communication rate in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] Figure 1 A schematic diagram of an application scenario of the optical communication method provided in an embodiment of the present application;

[0054] Figure 2 Schematic diagram of the optical communication method provided in the embodiment of the present application Figure 1 ;

[0055] Figure 3 Schematic diagram of the optical communication method provided in the embodiment of the present application Figure 2 ;

[0056] Figure 4 A schematic diagram of the structure of an optical communication device provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0058] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0060] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.

[0061] It should be noted that the term "at the time" in the embodiments of the present application can refer to the instant a certain event occurs or a period of time after the event occurs, and the embodiments of the present application do not specifically limit this. Furthermore, the optical communication method, apparatus, device, medium, and product provided in the embodiments of the present application are merely examples, and an optical communication method, apparatus, device, medium, and product may include more or less content.

[0062] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0063] Optical communication: It is a communication technology that uses light waves as an information carrier for data transmission. The optical signal is transmitted through optical fiber or free space. The transmitting end converts the electrical signal into an optical signal, and the receiving end restores the optical signal to an electrical signal.

[0064] The master device is the dominant device in a communication or control system, responsible for sending commands to other devices, coordinating tasks, or allocating resources. It holds the core control of the system, initiating communications, managing data transfers, and controlling the coordinated operation of slave devices.

[0065] A slave device is a device in a communication or control system that is directed and managed by a master. It receives commands or data from the master, executes the corresponding operations, and reports the results back to the master. Slaves typically do not make independent decisions, but rather work in conjunction with the master to complete system tasks.

[0066] Line decoding is the process of converting a specifically coded signal transmitted on a communication line back to its original data. The transmitter encodes the signal to adapt to the line's characteristics. The receiver then identifies the encoding rules, adjusts the signal waveform, and removes transmission interference to recover the original data. This technology effectively improves signal immunity and ensures accurate signal transmission.

[0067] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.

[0068] The technical solution of the present invention is described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below with reference to the accompanying drawings.

[0069] To clearly understand the technical solution of this application, we first introduce the solution of the prior art in detail. In industrial control systems, the host and slave devices exchange instructions and data through a bus, where the host is responsible for management and the slave devices execute operations. As the bus is extended and the number of connected modules increases, line parasitic capacitance accumulates, resulting in signal response delays, which in turn limits the communication rate. How to reduce line parasitic capacitance has become an urgent problem to be solved.

[0070] In the prior art, the line parasitic capacitance is mainly reduced through buffer isolation technology or dynamic auxiliary circuit units. Buffer isolation technology isolates the parasitic capacitance of the host and the slave from each other through a signal buffer to avoid the capacitance stacking effect; the dynamic auxiliary circuit unit is quickly charged through a low-impedance pull-up path during bus signal conversion, suppressing the increase in line parasitic capacitance, thereby maintaining high-speed communication. However, although buffer isolation avoids the capacitance stacking effect, the buffer itself will introduce additional signal delays; although the dynamic auxiliary circuit unit can improve the signal edge quality, it cannot follow the rapid jump of the bus level in real time during multi-module high-speed communication, resulting in a slowdown of the rising and falling edges of the signal, thereby reducing the communication rate. Therefore, the prior art has the problem of low communication rate.

[0071] Therefore, in order to solve the problem of low communication speed in existing technologies, the research found that in order to solve this problem, it is possible to develop a new communication mechanism based on the collaboration of multiple physical fields such as light waves or sound waves, and take advantage of their high-frequency characteristics and parallel transmission advantages to build a communication system and improve the communication speed: ① Terminal equipment that can identify environmental characteristics can be developed, and optical communication can be used preferentially in open spaces. When encountering obstacles, it can seamlessly switch to sound wave transmission, and ensure communication continuity through dual physical layers. ② Signals can be modulated onto light waves and sound waves and transmitted simultaneously. The receiving end reconstructs the information through a signal fusion algorithm. The light wave carries the main data stream, and the sound wave transmits the verification information, which not only increases the speed but also enhances the anti-interference ability. ③ An adaptive coding allocation algorithm can be developed on the sending end. According to the differences in the channel characteristics of light waves and sound waves, the data packets can be intelligently split and different encoding methods can be used to improve the communication speed.

[0072] Specifically:

[0073] It is possible to develop an intelligent lightwave-based communication system that leverages the high bandwidth and low interference characteristics of lightwaves, achieving efficient data transmission through adaptive channel management and dynamic coding strategies. The transmitter intelligently allocates and encodes data streams based on real-time channel conditions to optimize transmission efficiency. The receiver, through signal processing techniques, fuses and reconstructs transmitted signals, ensuring data integrity and interference resistance, thereby improving overall communication speed.

[0074] An optical communication method, device, equipment, medium and product of the embodiment of the present application solves the problem of low communication rate caused by parasitic capacitance of traditional electrical backplane bus by adopting an all-optical link transmission mechanism. The method realizes high-speed data transmission between host and slave through photoelectric conversion and clock synchronization technology. Because optical communication avoids the parasitic capacitance effect in electrical connection, and optical signal transmission is not affected by the increase in the number of slaves, the communication rate is no longer limited by traditional electrical isolation technology, thereby improving the communication rate and solving the problem of low communication rate in the prior art.

[0075] Based on the above creative findings, the technical solution of the present application is proposed.

[0076] The following describes the application scenarios of the optical communication method provided by the embodiments of the present invention. Figure 1 Schematic diagram of an application scenario of the optical communication method provided in the embodiment of the present application. Figure 1 As shown, the application scenario includes a host 101 and multiple slaves 102. The host 101 first determines the target slave 1021 to which signal transmission is required from the multiple slaves 102, then converts multiple original signals into multiple optical signals, and sends the multiple optical signals to the target slave 1021. After receiving the multiple optical signals, the target slave 1021 converts the multiple optical signals into multiple original signals.

[0077] The embodiments of the present invention are described below with reference to the accompanying drawings.

[0078] Figure 2 Schematic diagram of the optical communication method provided in the embodiment of the present application Figure 1 .like Figure 2 As shown, in this embodiment, the execution subject of the embodiment of the present invention is the slave. The optical communication method provided by this embodiment includes the following steps:

[0079] S201. Receive multiple optical signals sent by a host; wherein the multiple optical signals are obtained by the host converting multiple original signals, and the multiple original signals include multiple first clock signals.

[0080] Specifically, the slave's optical receiver module receives multiple optical signals sent by the master. It captures the modulated optical signals emitted by the master through optical fibers or waveguides and converts them into electrical signals. This step establishes a physical layer optical communication link between the master and slave, ensuring complete signal transmission, thereby avoiding the parasitic capacitance effects of the electrical bus and providing high-fidelity signal input for subsequent clock synchronization and decoding.

[0081] S202 . Perform photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals.

[0082] Specifically, the optoelectronic conversion of multiple optical signals can be achieved through the optoelectronic converter of the slave machine. After the received optical signals are separated by wavelength or timing, they are converted into corresponding electrical signals respectively. This step is used to provide processable electrical signals for subsequent clock correction and decoding.

[0083] S203. Perform clock correction on the multiple electrical signals to obtain multiple correction signals; wherein the clock correction is used to make the frequencies and phases of the multiple second clock signals consistent with the frequencies and phases of the multiple first clock signals.

[0084] Specifically, clock correction of multiple electrical signals can be achieved through a phase-locked loop (PLL) or clock data recovery circuit. By comparing the phase and frequency differences between the second clock signal and the first clock signal, the clock timing can be dynamically adjusted. This eliminates clock jitter and offset introduced during the photoelectric conversion and transmission process, ensuring strict synchronization of the slave-side signal with the original master-side clock, ensuring the accuracy of subsequent data decoding and system timing consistency.

[0085] S204: Decode the multiple correction signals to obtain multiple original signals.

[0086] Specifically, a digital signal processor can decode multiple correction signals, or a demodulation algorithm that matches the host's encoding method can be used to restore the synchronized electrical signal to the original signal. This step is used to restore the original signal sent by the host, completing the end-to-end signal transmission chain of the optical communication system and ensuring the accurate interpretation and execution of the control instructions in the original signal.

[0087] This embodiment provides an optical communication method, which includes: receiving multiple optical signals sent by a host; wherein the multiple optical signals are obtained by the host converting multiple original signals, and the multiple original signals include multiple first clock signals; performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals; performing clock correction on the multiple electrical signals to obtain multiple correction signals; wherein the clock correction is used to make the frequency and phase of the multiple second clock signals consistent with the frequency and phase of the multiple first clock signals; and decoding the multiple correction signals to obtain multiple original signals. An optical communication method achieves the following technical effects: by adopting an all-optical link transmission mechanism, it solves the problem of low communication rate caused by parasitic capacitance of traditional electrical backplane buses. The method realizes high-speed data transmission between the host and slaves through photoelectric conversion and clock synchronization technology. Because optical communication avoids the parasitic capacitance effect in electrical connections and optical signal transmission is not affected by the increase in the number of slaves, the communication rate is no longer limited by traditional electrical isolation technology, thereby improving the communication rate and solving the problem of low communication rate in the existing technology.

[0088] In one possible design, S203, performing clock correction on the multiple electrical signals to obtain multiple correction signals, includes:

[0089] S2031. Calculate multiple clock delay signals based on multiple first clock signals and multiple second clock signals; wherein the multiple clock delay signals are used to represent the deviation between the frequencies of the multiple second clock signals and the frequencies of the multiple first clock signals, and the deviation between the phases of the multiple second clock signals and the phases of the multiple first clock signals.

[0090] Specifically, multiple clock delay signals can be calculated using a digital time converter or phase-frequency detector. By quantifying and comparing the edge time and period differences between the receiving end's second clock and the reference first clock, a digital error signal representing the frequency and phase deviation is generated. This step provides a quantitative basis for adjusting clock synchronization. By accurately measuring the timing deviations in the optical-to-electrical conversion and transmission links, it drives the subsequent phase-locked loop or delay-locked loop for dynamic compensation, ensuring high-precision clock synchronization in industrial control systems with multiple slaves.

[0091] S2032. Adjust the multiple second clock signals according to the multiple clock delay signals to obtain multiple correction signals.

[0092] Specifically, multiple secondary clock signals can be adjusted using voltage-controlled oscillators or digitally controlled delay lines. By converting the clock delay signal into a control voltage or digital code value, the phase and frequency of the secondary clock signal can be dynamically adjusted. This step eliminates clock deviations accumulated during transmission, ensuring strict synchronization between the slave-side signal and the master-side clock, thereby ensuring timing consistency and data reliability in multi-node communication within the industrial control system.

[0093] The technical effect of this solution in this embodiment is: by calculating the delay deviation between the first clock signal and the second clock signal and dynamically adjusting the second clock signal accordingly, accurate synchronization of the clock frequency and phase between the transmitting end and the receiving end is achieved, thereby ensuring the timing accuracy of high-speed data transmission, especially in high-speed data transmission, effectively reducing signal distortion and bit error rate caused by clock deviation.

[0094] In one possible design, S204, decoding the multiple correction signals to obtain multiple original signals, includes:

[0095] S2041. Perform digital signal decoding on multiple correction signals to obtain multiple line coded signals.

[0096] Specifically, a dedicated decoder can decode multiple correction signals. Using digital signal processing algorithms corresponding to the host encoding method, such as clock recovery, equalization, or decision feedback, the synchronized correction signals are converted into line-coded signals. This step eliminates noise and distortion during transmission, restores the original line coding format, and provides standardized digital signal input for subsequent line decoding.

[0097] S2042: Perform line decoding on the multiple line-coded signals to obtain multiple original signals.

[0098] Specifically, a protocol decoder or programmable logic device can be used to decode multiple line-coded signals and convert them back into the original data signals according to a pre-set communication protocol specification, such as Manchester code. This step is used to restore the original control instructions and data information originally sent by the host, completing the complete parsing from physical layer signals to application layer data.

[0099] The technical effect of this solution in this embodiment is that this two-stage decoding structure effectively separates clock information from data content, ensuring the correct parsing of line coding formats such as Manchester while reducing bit error rates through layered processing. Compared to traditional single-stage decoding solutions, this method demonstrates stronger anti-interference capabilities in high-speed communication scenarios and provides accurate data for subsequent signal processing. This layered decoding mechanism improves system communication stability in complex electromagnetic environments.

[0100] In one possible design, S2042 performs line decoding on the multiple line-coded signals to obtain multiple original signals, including:

[0101] S20421. Perform line decoding on the multiple line-coded signals to obtain multiple line-decoded signals.

[0102] Specifically, a protocol decoder can decode multiple line-coded signals, identifying specific coding patterns within them and converting them into corresponding parallel data signals. This step strips away redundant information from the line coding, restoring the valid data frame structure and providing a clean digital signal for subsequent filtering.

[0103] S20422. Filter the multiple line-decoded signals to obtain multiple original signals.

[0104] Specifically, multiple line-decoded signals can be filtered using digital or analog filtering circuits, removing high-frequency noise and signal jitter while retaining the valid baseband signal. This step eliminates residual inter-symbol interference and transmission noise from the line decoding process, restoring the original signal waveform originally sent by the host.

[0105] The technical effect of this solution in this embodiment is that after completing line decoding, the decoded signal is further filtered to effectively remove high-frequency noise and intersymbol interference, making the signal waveform more regular. This cascaded processing structure of decoding and filtering can simultaneously solve the distortion introduced by transcoding and the noise interference during transmission, thereby improving the transmission accuracy of the entire communication system.

[0106] In one possible design, S202, performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals, includes:

[0107] S2021. Perform photoelectric conversion on the multiple optical signals to obtain multiple analog electrical signals.

[0108] Specifically, a photodetector array combined with a transimpedance amplifier can achieve photoelectric conversion of multiple optical signals, converting received optical signals of different wavelengths or channels into corresponding analog current and voltage signals. This step is used to achieve the initial conversion of optical signals to electrical signals, providing a high-quality analog signal foundation for subsequent analog-to-digital conversion, ensuring the fidelity and reliability of signal transmission in optical communication systems.

[0109] S2022. Perform analog-to-digital conversion on the multiple analog electrical signals to obtain multiple electrical signals; wherein the multiple electrical signals are digital signals.

[0110] Specifically, a multi-channel analog-to-digital converter can be used to convert multiple analog electrical signals into digital signals, using time-division multiplexing or parallel sampling techniques to convert the analog signals of each channel into digital signals. This step is used to digitize the analog signals after optical-to-electrical conversion, eliminating the noise accumulation problem in analog transmission and providing high-precision digital signal input for subsequent clock correction and decoding.

[0111] The technical effect of this embodiment is that it uses a two-stage conversion architecture to first convert the optical signal into an analog electrical signal to preserve the original waveform characteristics, and then generates a high-quality digital signal through analog-to-digital conversion. This digitization process avoids the noise accumulation problem that occurs in analog signal transmission. Compared to direct digitization solutions, this solution can better suppress ambient light interference and circuit noise while maintaining the high-frequency components of the signal.

[0112] Figure 3 Schematic diagram of the optical communication method provided in the embodiment of the present application Figure 2 In this embodiment, Figure 2 Based on the provided embodiments, the optical communication method is further explained. The optical communication method includes:

[0113] S301. Receive multiple optical signals sent by a host; wherein the multiple optical signals are obtained by the host converting multiple original signals, and the multiple original signals include multiple first clock signals.

[0114] S302 . Perform photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals.

[0115] S303. Perform clock correction on the multiple electrical signals to obtain multiple correction signals; wherein the clock correction is used to make the frequencies and phases of the multiple second clock signals consistent with the frequencies and phases of the multiple first clock signals.

[0116] S304: Decode the multiple correction signals to obtain multiple original signals.

[0117] S301-S304 are similar to S201-S204 and will not be described in detail in this embodiment.

[0118] S305: Verify the multiple original signals according to a preset verification rule to obtain verification integrity.

[0119] Specifically, a cyclic redundancy check (CRC) module or a hash check algorithm can be used to verify multiple original signals. By calculating the checksum of the received data and comparing it with a preset checksum, the data integrity can be quantified. This step verifies the transmission reliability of the optical communication link, detects possible bit errors or data loss during the optical-to-electrical conversion and transmission process, and provides a basis for the system to make retransmission decisions.

[0120] S306. When the verification integrity is lower than a preset threshold, a retransmission instruction is sent to the host, so that the host retransmits multiple original signals.

[0121] Specifically, the slave's error detection and retransmission control module enables retransmission of multiple original signals. Upon detecting a CRC check failure or an excessive bit error rate, this module sends a signal or a specific retransmission request protocol frame to the master via the reverse optical communication link. This step establishes a reliable data retransmission mechanism, ensuring the accurate transmission of critical instructions in industrial control systems by automatically requesting the retransmission of damaged data packets, thereby preventing system misoperation or control failures caused by transmission errors.

[0122] The technical effect of this solution in this embodiment is that after signal decoding, the integrity of the recovered original data is verified using preset verification rules, and a retransmission mechanism is automatically triggered when data errors are detected. This error control technology effectively solves the problem of data loss caused by environmental interference or device noise in optical communications. Compared with traditional open-loop transmission solutions, it can ensure data accuracy and integrity in unreliable channels.

[0123] The present application also provides an optical communication system, which includes a host and a slave.

[0124] The master is responsible for converting multiple original signals, including the first clock signal, into optical signals and sending them to the slaves. The master is responsible for modulating and encoding the original signals to meet the transmission requirements of optical communications, ensuring that the signals can be efficiently and accurately transmitted to the slaves across the optical communication link.

[0125] The slave receives the optical signals sent by the master and converts them into electrical signals. The slave then performs clock correction on the electrical signals to ensure their frequency and phase are consistent with the original signals. The corrected signals are then decoded to restore the original signals, enabling efficient optical communication transmission and data recovery.

[0126] Figure 4 This is a schematic diagram of the structure of the optical communication device provided in the embodiment of the present application. Figure 4 As shown, the optical communication device includes:

[0127] The receiving module 401 is used to receive multiple optical signals sent by the host; wherein the multiple optical signals are obtained by the host converting multiple original signals, and the multiple original signals include multiple first clock signals.

[0128] The photoelectric conversion module 402 is configured to perform photoelectric conversion on a plurality of optical signals to obtain a plurality of electrical signals; wherein the plurality of electrical signals include a plurality of second clock signals.

[0129] The clock correction module 403 is used to perform clock correction on multiple electrical signals to obtain multiple correction signals; wherein the clock correction is used to make the frequency and phase of the multiple second clock signals consistent with the frequency and phase of the multiple first clock signals.

[0130] The decoding module 404 is configured to decode the multiple corrected signals to obtain multiple original signals.

[0131] In one possible design, clock correction module 403 includes:

[0132] A first calculation unit is used to calculate multiple clock delay signals based on multiple first clock signals and multiple second clock signals; wherein the multiple clock delay signals are used to represent the deviation between the frequency of the multiple second clock signals and the frequency of the multiple first clock signals, and the deviation between the phase of the multiple second clock signals and the phase of the multiple first clock signals.

[0133] The adjusting unit is used to adjust the multiple second clock signals according to the multiple clock delay signals to obtain multiple correction signals.

[0134] In one possible design, decoding module 404 includes:

[0135] The first decoding unit is used to perform digital signal decoding on the multiple correction signals to obtain multiple line coded signals.

[0136] The second decoding unit is configured to perform line decoding on the plurality of line-coded signals to obtain a plurality of original signals.

[0137] In one possible design, the second decoding unit includes:

[0138] The line decoding component is used to perform line decoding on a plurality of line coded signals to obtain a plurality of line decoded signals.

[0139] The filtering component is used to filter the multiple line decoded signals to obtain multiple original signals.

[0140] In one possible design, the photoelectric conversion module 402 includes:

[0141] The photoelectric conversion unit is used to perform photoelectric conversion on multiple optical signals to obtain multiple analog electrical signals.

[0142] The analog-to-digital conversion unit is used to perform analog-to-digital conversion on multiple analog electrical signals to obtain multiple electrical signals; wherein the multiple electrical signals are digital signals.

[0143] In one possible design, the optical communication device further includes:

[0144] The verification module is used to verify multiple original signals according to preset verification rules to obtain verification integrity.

[0145] The retransmission module is used to send a retransmission instruction to the host when the verification integrity is lower than a preset threshold, so that the host retransmits multiple original signals.

[0146] The optical communication device provided in this embodiment can perform Figure 2 and Figure 3 The technical solution of an optical communication method embodiment shown in FIG. Figure 2 and Figure 3 The embodiment of the optical communication method shown is similar and will not be described in detail here.

[0147] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.

[0148] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502 , so that the at least one processor 501 executes the above-mentioned optical communication method.

[0149] The specific implementation process of the processor 501 can be found in the above-mentioned embodiment of the optical communication method. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0150] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the optical communication method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0151] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.

[0152] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0153] The present application also provides a computer program product, including a computer program, which implements the above-mentioned optical communication method when executed by a processor.

[0154] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned optical communication method is implemented.

[0155] The readable storage medium may be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0156] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0157] The division of units is merely a logical functional division; actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, any direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units, either through an interface, electrical, mechanical, or other means.

[0158] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0159] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0160] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the optical communication method of each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0161] Those skilled in the art will appreciate that all or part of the steps in implementing the aforementioned optical communication method embodiments can be accomplished by hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps in the aforementioned optical communication method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0162] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.

Claims

1. An optical communication method, characterized in that: A slave device applied to an optical communication system, wherein the optical communication system further includes a master device, wherein the method includes: Receiving a plurality of optical signals sent by the host; wherein the plurality of optical signals are obtained by the host converting a plurality of original signals, and the plurality of original signals include a plurality of first clock signals; Performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals; wherein the multiple electrical signals include multiple second clock signals; Performing clock correction on the plurality of electrical signals to obtain a plurality of correction signals; wherein the clock correction is used to make the frequencies and phases of the plurality of second clock signals consistent with the frequencies and phases of the plurality of first clock signals; The multiple correction signals are decoded to obtain the multiple original signals.

2. The optical communication method according to claim 1, wherein: The performing clock correction on the multiple electrical signals to obtain multiple correction signals includes: Calculating a plurality of clock delay signals based on the plurality of first clock signals and the plurality of second clock signals; wherein the plurality of clock delay signals are used to represent deviations between frequencies of the plurality of second clock signals and frequencies of the plurality of first clock signals, and deviations between phases of the plurality of second clock signals and phases of the plurality of first clock signals; The plurality of second clock signals are adjusted according to the plurality of clock delay signals to obtain the plurality of correction signals.

3. The optical communication method according to claim 1, wherein: The decoding of the plurality of correction signals to obtain the plurality of original signals comprises: Performing digital signal decoding on the multiple correction signals to obtain multiple line coded signals; Line decoding is performed on the multiple line-coded signals to obtain the multiple original signals.

4. The optical communication method according to claim 3, wherein: The performing line decoding on the plurality of line-coded signals to obtain the plurality of original signals includes: performing line decoding on the plurality of line-coded signals to obtain a plurality of line-decoded signals; The multiple line-decoded signals are filtered to obtain the multiple original signals.

5. The optical communication method according to claim 1, wherein: The performing photoelectric conversion on the multiple optical signals to obtain multiple electrical signals includes: Performing photoelectric conversion on the multiple optical signals to obtain multiple analog electrical signals; Performing analog-to-digital conversion on the multiple analog electrical signals to obtain the multiple electrical signals; wherein the multiple electrical signals are digital signals.

6. The optical communication method according to claim 1, wherein: After decoding the multiple correction signals to obtain the multiple original signals, the method further includes: Verifying the multiple original signals according to a preset verification rule to obtain a verification integrity; When the verification integrity is lower than a preset threshold, a retransmission instruction is sent to the host, so that the host retransmits the multiple original signals.

7. An optical communication device, characterized in that: A slave device applied to an optical communication system, wherein the optical communication system further includes a master device, and the device includes: A receiving module, configured to receive a plurality of optical signals sent by the host; wherein the plurality of optical signals are obtained by the host converting a plurality of original signals, the plurality of original signals including a plurality of first clock signals; an optoelectronic conversion module, configured to perform optoelectronic conversion on the plurality of optical signals to obtain a plurality of electrical signals; wherein the plurality of electrical signals include a plurality of second clock signals; a clock correction module, configured to perform clock correction on the plurality of electrical signals to obtain a plurality of correction signals; wherein the clock correction is configured to make the frequencies and phases of the plurality of second clock signals consistent with the frequencies and phases of the plurality of first clock signals; The decoding module is used to decode the multiple correction signals to obtain the multiple original signals.

8. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; When the processor executes the computer-executable instructions stored in the memory, it is used to implement the optical communication method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the optical communication method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program is configured to implement the optical communication method according to any one of claims 1 to 6.