Communication system and communication apparatus

By adopting the pass-through forwarding technology of electrical port connection and data frame management identification in the industrial optical bus system, the problem of optical path loss limiting the number of optical terminals is solved, the data interaction efficiency and network efficiency are improved, and the system application scenarios are expanded.

WO2024188011A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/076573
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2024-02-07
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

The optical path loss in the existing industrial optical bus system results in a limited number of optical terminals, which cannot meet the needs of high bandwidth and low latency, limiting the application scenarios of industrial control networks.

Method used

Electrical port connections are used to connect optical terminals in series, and pass-through forwarding is achieved through the management identification and instruction information of data frames, which improves data interaction efficiency and network efficiency, and expands the number of optical terminal connections.

Benefits of technology

It effectively solves the problem of limited number of optical terminals caused by optical path loss, improves the efficiency of interactive data between optical heads and optical terminals, reduces network latency, and expands the application scenarios of the optical bus system to a large number of nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076573_19092024_PF_FP_ABST
    Figure CN2024076573_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a communication system and a communication apparatus. In the communication system, each optical terminal comprises at least one electrical port used for being connected to another optical terminal; when a first optical terminal and at least one second optical terminal are connected in series by means of the electrical ports, the first optical terminal can send data of the second optical terminal to the at least one second optical terminal by means of the electrical ports, and the second optical terminal can also receive data frames from the first optical terminal by means of the electrical ports to obtain the data of the second optical terminal issued by an optical head end. Since the problem of optical signal attenuation caused by using an optical port connection mode is not present when using an electrical port connection mode, the problem of a limitation of the number of optical terminals due to optical path loss can be solved, facilitating the expansion of the number of connectable optical terminals in the communication system, and facilitating the expansion of the communication system to be applied to application scenarios involving massive numbers of nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Communication system and communication device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 14, 2023, with application number 202310284651.7 and invention name “A communication system and a communication device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of communications, and in particular to a communication system and a communication device. Background Art

[0003] Fieldbus technology is a technology used for data communication and interaction between control equipment and field equipment in industrial sites. In response to the increasing demand for network bandwidth and high requirements for latency and jitter in current field-level industrial control networks, researchers have proposed industrial optical bus (IOB) technology based on optical communication. Industrial optical bus technology is a bus technology implemented in industrial networks based on optical communication. Generally, the optical bus network structure uses a passive optical distribution network (ODN) for networking, and by combining the multi-level optical distribution network and multi-terminal access capabilities of the optical distribution network, the control device can control multiple field devices. Specifically, the control device is connected to or integrated with the optical head end, and the optical head end is connected to multiple optical terminals through the optical distribution network. Each optical terminal is connected to the field device or integrated into the field device, thereby realizing the control and management of each field device by the control device.

[0004] However, the optical splitting function of the optical splitter is not only limited in the optical path, but also causes optical path loss, resulting in a limit on the number of optical terminals that can be connected to the optical head end, which in turn limits the application scenarios of the optical bus system.

[0005] Summary of the Invention

[0006] The present application provides a communication system and a communication device for increasing the number of connectable optical terminals in an optical bus system and expanding the application scenarios of the optical bus system.

[0007] In a first aspect, the present application provides a communication system, which includes an optical head end, a first optical terminal, and n second optical terminals managed by the first optical terminal. The first optical terminal is connected to the optical head end through an optical port, the n second optical terminals are connected in series through an electrical port, and the first optical terminal is connected to the n second optical terminals in series through the electrical port, where n is an integer greater than 0. Specifically, the optical head end is used to send a data frame to the first optical terminal, the data frame including data of at least one second optical terminal among the n second optical terminals; the first optical terminal is used to obtain the data frame through the optical port and send the data frame to the second optical terminal connected to the first optical terminal through the electrical port; each second optical terminal among the at least one second optical terminal is used to receive the data frame from the first optical terminal or from the second optical terminal of the previous level through the electrical port, obtain the data of the second optical terminal in the data frame, and send the data frame to the second optical terminal of the next level connected to the second optical terminal.

[0008] In the communication system provided by the present application, an optical terminal includes at least one electrical port for connecting to another optical terminal. When a first optical terminal is connected in series with at least one second optical terminal via the electrical port, the first optical terminal can send data from the second optical terminal to the at least one second optical terminal via the electrical port, and the second optical terminal can also receive data frames from the first optical terminal via the electrical port to obtain data from the second optical terminal sent by the optical head end. Because the use of electrical port connection eliminates the optical signal attenuation problem caused by the use of optical port connection, it can solve the problem of limited number of optical terminals caused by optical path loss, which is conducive to expanding the number of connectable optical terminals in the communication system, and further facilitates the expansion of the application of the communication system to application scenarios with massive nodes.

[0009] In one possible implementation, a data frame includes a data processing field for a first optical terminal and a data processing field for each of n second optical terminals. The first optical terminal is further configured to perform data exchange based on the data processing field corresponding to the first optical terminal in the data frame; and each of the n second optical terminals is specifically configured to perform data exchange based on the data processing field corresponding to the second optical terminal in the received data frame.

[0010] In this embodiment, since optical terminals exchange data within their respective data processing fields, rather than parsing the data processing fields corresponding to other optical terminals or the entire data frame, each optical terminal can quickly write or read data from a data frame. This improves the efficiency of data exchange between the optical head end and the optical terminal, and further improves the efficiency of data exchange between the control device and the field device. This improves the efficiency of data exchange between the optical head end and the optical terminal, and further improves the efficiency of data exchange between the control device and the field device.

[0011] In a possible embodiment, the second optical terminal is further used to transparently transmit the data frame after data interaction to the first optical terminal through at least one second optical terminal; the first optical terminal is further used to send the data frame after data interaction to the optical head end through the optical port.

[0012] For example, if the second optical terminal is an end node, the second optical terminal will loop back and transparently transmit the data frames after data exchange to the first optical terminal, so that the first optical terminal can report the data frames after data exchange to the optical head end. Therefore, it is beneficial to quickly transmit the data frames after data exchange to the first optical terminal and then to the optical head end.

[0013] In one possible implementation, the frame header of the data frame includes the management identifier of each second optical terminal. The first optical terminal is specifically configured to send the data frame to the second optical terminal using a cut-through forwarding method based on the management identifier of the second optical terminal connected to the first optical terminal; and each of the n second optical terminals is specifically configured to send the data frame to the next-level second optical terminal using a cut-through forwarding method based on the management identifier of the next-level second optical terminal connected to the second optical terminal.

[0014] In this embodiment, since the frame header of the data frame contains the management identifier of each second optical terminal, the first optical terminal can determine the next hop for forwarding when receiving the frame header, that is, the data frames are forwarded between each optical terminal using a direct forwarding method, which is beneficial to improving the data frame forwarding efficiency and thus helping to reduce network latency.

[0015] In a possible implementation manner, the frame header of the data frame further includes a management identifier of the first optical terminal.

[0016] In this embodiment, the data frame header may also include a management identifier of the first optical terminal. This is used to distinguish different first optical terminals when there are multiple first optical terminals in the communication system. For example, the optical headend uses the management identifier of the first optical terminal in the frame header to distinguish which first optical terminal the data frame originates from. This helps the optical headend accurately distinguish data frames from different first optical terminals, thereby improving the processing efficiency of the optical headend and the communication efficiency of the communication system.

[0017] In a possible implementation manner, the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal to send the data frame to a second optical terminal connected to the first optical terminal.

[0018] In this embodiment, the frame header may carry an instruction to instruct the first optical terminal to forward the data frame to the next optical terminal in the series. When the first optical terminal and conventional optical terminals exist in the communication system, this facilitates the optical head end to distinguish between data frames from the first optical terminal (i.e., the data frames provided in this application) and data frames from the conventional optical terminal (i.e., the conventional data frames).

[0019] In one possible implementation, the data field of the data frame includes a management identifier of each second optical terminal. The management identifier of each second optical terminal in the data field is used to indicate a position of a data processing field corresponding to each second optical terminal in the data field. Each second optical terminal among the n second optical terminals is specifically configured to determine a position of the data processing field corresponding to the second optical terminal in the data field based on the management identifier of the second optical terminal in the data field.

[0020] In this embodiment, it is proposed that the second optical terminal can use the management identifier of the second optical terminal in the data domain to locate the data processing field of the second optical terminal, which is beneficial to the efficiency of the second optical terminal in performing data interaction, and further beneficial to improving the efficiency of data interaction between the second optical terminal and the optical head end.

[0021] In one possible implementation, the data field of the data frame further includes a management identifier of the first optical terminal. The management identifier of the first optical terminal in the data field is used to indicate a position of a data processing field corresponding to the first optical terminal in the data field. The first optical terminal is specifically configured to determine a position of the data processing field corresponding to the first optical terminal in the data field based on the management identifier of the first optical terminal in the data field.

[0022] In this embodiment, it is proposed that the first optical terminal can use the management identifier of the first optical terminal in the data domain to locate the data processing field of the first optical terminal, which is beneficial to the efficiency of the first optical terminal in performing data interaction, and further beneficial to improving the efficiency of data interaction between the first optical terminal and the optical head end.

[0023] In a possible embodiment, the data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

[0024] In one possible implementation, the data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field. The second optical terminal is specifically configured to write data in the data processing field where the data processing type is read processing based on the second indication information; and / or the second optical terminal is specifically configured to read data in the data processing field where the data processing type is write processing based on the second indication information.

[0025] In one possible embodiment, the first optical terminal is further used to obtain information of n second optical terminals, and register the first optical terminal and n second optical terminals at the optical head end based on the information of the first optical terminal and the information of the n second optical terminals; the optical head end is further used to determine the management identifier of the first optical terminal and the management identifier of each second optical terminal in the n second optical terminals based on the information of the first optical terminal and the information of the n second optical terminals obtained from the first optical terminal.

[0026] In this embodiment, the first optical terminal is proposed to act as an agent to collect information of each second optical terminal and register it at the optical head end. Compared with the solution of separately registering each optical terminal connected to the optical head end in traditional technology, it is beneficial to improve the registration efficiency of each second optical terminal in the communication system, reduce the signaling overhead consumed during registration, and save bandwidth resources.

[0027] In a possible embodiment, the optical head end is also used to send the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals to the first optical terminal; the first optical terminal is also used to broadcast the management identifiers of the n second optical terminals to the n second optical terminals.

[0028] In this embodiment, the optical head end distributes the management identifier of the second optical terminal to multiple second optical terminals through the first optical terminal. Compared with the traditional technology, the optical head end distributes the management identifier to each optical terminal separately, which is beneficial to saving signaling overhead.

[0029] In one possible implementation, the information of each second optical terminal includes bandwidth information of each second optical terminal and a physical address of each second optical terminal. The physical address of the second optical terminal is used to uniquely identify a second optical terminal. For example, the physical address of the second optical terminal may be the media access control (MAC) address of the second optical terminal, or the serial number (SN) information of the second optical terminal, or other information that can uniquely identify the second optical terminal, which is not limited here. The bandwidth information of the second optical terminal is used to indicate the upper bandwidth limit for data exchanged between the second optical terminal and the field device corresponding to the second optical terminal.

[0030] Optionally, the information about each second optical terminal also includes electrical port information of the second optical terminal, where the electrical port information of the second optical terminal is used to indicate the activation status of an electrical port used by the second optical terminal to connect to another second optical terminal. For example, the electrical port number and electrical port level value of the electrical port may be included. The electrical port level value may indicate whether the electrical port is connected to another optical terminal, that is, whether the electrical port is in an unused state.

[0031] In one possible embodiment, the optical head end is also used to generate a management table, which includes information about the first optical terminal, information about each second optical terminal, a management identifier of the first optical terminal, a management identifier of each second optical terminal, and third indication information, where the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal.

[0032] In this embodiment, the optical head end can generate a management table, which includes third indication information indicating that the second optical terminal is managed by the first optical terminal, which is beneficial for the optical head end to maintain and manage each second optical terminal connected to the first optical terminal through the electrical port, and further beneficial for the optical head end to improve the efficiency of generating data frames.

[0033] In one possible embodiment, the communication system also includes a control device and a field device, the control device is connected to the optical head end, the first optical terminal is connected to at least one field device, and each second optical terminal is connected to at least one field device; the optical head end is also used to obtain data of at least one second optical terminal from the control device, and generate data frames based on the data of at least one second optical terminal and the management table; the first optical terminal is also used to exchange data with at least one field device connected to the first optical terminal; the second optical terminal is also used to exchange data with at least one field device connected to the second optical terminal.

[0034] In one possible embodiment, the optical head end is connected to the optical port of the first optical terminal through a splitting network, and the communication system also includes a third optical terminal. The optical head end is connected to the optical port of the third optical terminal through the splitting network, and the third optical terminal is connected to at least one field device.

[0035] In a second aspect, the present application provides an optical head end, which is applied to a communication system. The communication system includes an optical head end, a first optical terminal, and n second optical terminals managed by the first optical terminal. The first optical terminal is connected to the optical head end through an optical port, the n second optical terminals are connected in series through an electrical port, and the first optical terminal is connected to the n second optical terminals in series through the electrical port, where n is an integer greater than 0. Specifically, the optical head end includes a transceiver module and a processing module. The transceiver module is used to obtain data from at least one of the n second optical terminals; the processing module is used to generate a data frame based on the data of at least one of the n second optical terminals, and the data frame includes data from at least one of the n second optical terminals; in addition, the transceiver module is also used to send data frames to the first optical terminal.

[0036] In the present application, the optical head end can send data of the second optical terminal to at least one second optical terminal managed by the first optical terminal through the first optical terminal, which is conducive to improving communication efficiency.

[0037] In one possible embodiment, the data frame includes a data processing field of the first optical terminal and a data processing field of each second optical terminal among n second optical terminals; the transceiver module is also used to receive the data frame after data interaction is performed from the first optical terminal, and at least one data processing field in the data frame after data interaction performs data interaction with the optical terminal corresponding to the data processing field, and the optical terminal corresponding to the data processing field includes the first optical terminal and / or the second optical terminal.

[0038] In a possible implementation manner, the frame header of the data frame includes the management identifier of each second optical terminal.

[0039] In a possible implementation manner, the frame header of the data frame further includes a management identifier of the first optical terminal.

[0040] In a possible implementation manner, the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal to send the data frame to a second optical terminal connected to the first optical terminal.

[0041] In a possible implementation, the data field of the data frame includes a management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate the position of a data processing field corresponding to each second optical terminal in the data field.

[0042] In a possible implementation, the data field of the data frame further includes a management identifier of the first optical terminal. The management identifier of the first optical terminal in the data field is used to indicate the position of the data processing field corresponding to the first optical terminal in the data field.

[0043] In a possible embodiment, the data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

[0044] In a possible implementation, the data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field.

[0045] In one possible embodiment, the transceiver module is further used to obtain information of the first optical terminal and information of n second optical terminals from the first optical terminal; the processing module is further used to determine the management identifier of the first optical terminal and the management identifier of each second optical terminal in the n second optical terminals based on the information of the first optical terminal and the information of the n second optical terminals; the transceiver module is further used to send the management identifier of the first optical terminal and the management identifier of each second optical terminal in the n second optical terminals to the first optical terminal.

[0046] In a possible implementation manner, the information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal, and electrical port information of the second optical terminal.

[0047] In one possible embodiment, the processing module is also used to generate a management table, which includes information about the first optical terminal, information about each second optical terminal, a management identifier of the first optical terminal, a management identifier of each second optical terminal, and third indication information, where the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal.

[0048] In one possible embodiment, the communication system also includes a control device and a field device, the control device is connected to the optical head end, the first optical terminal is connected to at least one field device, and each second optical terminal is connected to at least one field device; a transceiver module is specifically used to obtain data of at least one second optical terminal from the control device; and a processing module is specifically used to generate a data frame based on the data of at least one second optical terminal and a management table.

[0049] It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods in the first aspect above. Please refer to the specific implementation methods and beneficial effects of the first aspect for details, and no further details will be given here.

[0050] In a third aspect, the present application provides a first optical terminal, which is applied to a communication system. The communication system includes an optical headend, a first optical terminal, and n second optical terminals managed by the first optical terminal, wherein the first optical terminal is connected to the optical headend via an optical port, the n second optical terminals are connected in series via an electrical port, and the first optical terminal is connected to the n second optical terminals in series via the electrical port, where n is an integer greater than 0. A transceiver module is configured to obtain a data frame from the optical headend via the optical port, the data frame including data from at least one of the n second optical terminals; and the transceiver module is further configured to send the data frame to the second optical terminal connected to the first optical terminal via the electrical port.

[0051] In the present application, in addition to an optical port, the first optical terminal also includes at least one electrical port for connecting to another optical terminal. When the first optical terminal is connected in series with at least one second optical terminal via the electrical port, the first optical terminal can obtain data frames via the optical port and send data from the second optical terminal to the at least one second optical terminal via the electrical port. Because the optical signal attenuation problem caused by the optical port connection is avoided by the electrical port connection method, the problem of limited number of optical terminals due to optical path loss can be solved, which is conducive to expanding the number of connectable optical terminals in the communication system and further facilitating the expansion of the application of the communication system to application scenarios with massive nodes.

[0052] In one possible embodiment, the data frame includes a data processing field of the first optical terminal and a data processing field of each of the n second optical terminals; the first optical terminal also includes a processing module; the processing module is used to perform data interaction based on the data processing field corresponding to the first optical terminal in the data frame; the transceiver module is specifically used to send the data frame after data interaction to the second optical terminal connected to the first optical terminal through the electrical port.

[0053] In a possible implementation, the transceiver module is further configured to: receive data frames after data interaction from the second optical terminal through the electrical port; and send data frames after data interaction to the optical head end through the optical port.

[0054] In a possible implementation, the frame header of the data frame includes the management identifier of each second optical terminal; the transceiver module is specifically configured to forward the data frame to the second optical terminal in a direct forwarding manner based on the management identifier of the second optical terminal connected to the first optical terminal.

[0055] In a possible implementation manner, the frame header of the data frame further includes a management identifier of the first optical terminal.

[0056] In a possible implementation manner, the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal to send the data frame to a second optical terminal connected to the first optical terminal.

[0057] In a possible implementation, the data field of the data frame includes a management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate the position of a data processing field corresponding to each second optical terminal in the data field.

[0058] In one possible embodiment, the data field of the data frame also includes a management identifier of the first optical terminal, and the management identifier of the first optical terminal in the data field is used to indicate the position of the data processing field corresponding to the first optical terminal in the data field; the processing module is specifically used to determine the position of the data processing field corresponding to the first optical terminal in the data field based on the management identifier of the first optical terminal in the data field.

[0059] In a possible embodiment, the data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

[0060] In a possible implementation, the data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field.

[0061] In one possible embodiment, the transceiver module is also used to obtain information of n second optical terminals; the processing module is also used to register the first optical terminal and n second optical terminals at the optical head end based on the information of the first optical terminal and the information of the n second optical terminals; the transceiver module is also used to receive the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals from the optical head end; and, broadcast the management identifiers of the n second optical terminals to the n second optical terminals.

[0062] In a possible implementation manner, the information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal, and electrical port information of the second optical terminal.

[0063] It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods in the first aspect above. Please refer to the specific implementation methods and beneficial effects of the first aspect for details, and no further details will be given here.

[0064] In a fourth aspect, the present application provides a second optical terminal, which is used in a communication system. The communication system includes an optical headend, a first optical terminal, and n second optical terminals managed by the first optical terminal, wherein the first optical terminal is connected to the optical headend via an optical port, the n second optical terminals are connected in series via an electrical port, and the first optical terminal is connected to the n second optical terminals in series via the electrical port, where n is an integer greater than 0. A transceiver module is configured to receive data frames from the first optical terminal or from a second optical terminal at a higher level via the electrical port; a processing module is configured to obtain data from the second optical terminal in the data frame; and the transceiver module is further configured to send data frames to a second optical terminal at a lower level connected to the second optical terminal.

[0065] In the present application, the second optical terminal includes at least one electrical port for connecting to another optical terminal. When the first optical terminal and at least one second optical terminal are connected in series via the electrical port, the second optical terminal can also receive data frames from the first optical terminal via the electrical port and obtain data from the second optical terminal sent by the optical head end. Because the use of electrical port connection eliminates the optical signal attenuation problem caused by the use of optical port connection, it can solve the problem of the limited number of optical terminals caused by optical path loss, which is conducive to expanding the number of connectable optical terminals in the communication system, and further facilitating the expansion of the application of the communication system to application scenarios with massive nodes.

[0066] In one possible embodiment, the data frame includes a data processing field of the first optical terminal and a data processing field of each of the n second optical terminals; the processing module is specifically used to perform data interaction based on the data processing field corresponding to the second optical terminal in the received data frame; and the transceiver module is specifically used to send the data frame after data interaction to the next-level second optical terminal connected to the second optical terminal.

[0067] In a possible implementation manner, the transceiver module is further configured to transparently transmit the data frame after data interaction to the first optical terminal through at least one second optical terminal.

[0068] In one possible implementation, the frame header of the data frame includes the management identifier of each second optical terminal; the transceiver module is specifically used to forward the data frame to the next-level second optical terminal in a direct forwarding manner based on the management identifier of the next-level second optical terminal connected to the second optical terminal.

[0069] In a possible implementation manner, the frame header of the data frame further includes a management identifier of the first optical terminal.

[0070] In a possible implementation manner, the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal to send the data frame to a second optical terminal connected to the first optical terminal.

[0071] In one possible embodiment, the data field of the data frame includes the management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate the position of the data processing field corresponding to each second optical terminal in the data field; the processing module is specifically used to determine the position of the data processing field corresponding to the second optical terminal in the data field based on the management identifier of the second optical terminal in the data field.

[0072] In a possible implementation, the data field of the data frame further includes a management identifier of the first optical terminal. The management identifier of the first optical terminal in the data field is used to indicate the position of the data processing field corresponding to the first optical terminal in the data field.

[0073] In a possible embodiment, the data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

[0074] In one possible embodiment, the data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field; the processing module is specifically used to write data in the data processing field where the data processing type is read processing based on the second indication information; and / or, the processing module is specifically used to read data in the data processing field where the data processing type is write processing based on the second indication information.

[0075] In a possible implementation, the transceiver module is further configured to obtain a management identifier of the second optical terminal, where the management identifier of the second optical terminal is determined by the optical head end based on information of the n second optical terminals.

[0076] In a possible implementation manner, the information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal, and electrical port information of the second optical terminal.

[0077] It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods in the first aspect above. Please refer to the specific implementation methods and beneficial effects of the first aspect for details, and no further details will be given here.

[0078] In a fifth aspect, the present application provides an optical module, which includes a processor and a transceiver; the transceiver is used to receive optical signals and send optical signals; the processor is used to implement part or all of the functions of any optical head end in the second aspect above.

[0079] In a sixth aspect, the present application provides an optical module comprising a processor and a transceiver; the transceiver is used to receive optical signals and send optical signals; the processor is used to implement part or all of the functions of any one of the first optical terminals in the third aspect above; or, implement part or all of the functions of any one of the second optical terminals in the fourth aspect above.

[0080] In the seventh aspect, the present application provides a chip comprising at least one logic circuit and an input / output interface; the input / output interface is used to input and output electrical signals; and the logic circuit is used to implement part or all of the functions of the optical head end in the second aspect above.

[0081] In an eighth aspect, the present application provides a chip comprising at least one logic circuit and an input / output interface; the input / output interface is used to input and output electrical signals; the logic circuit is used to implement part or all of the functions of the first optical terminal in the third aspect above, or to implement part or all of the functions of the second optical terminal in the fourth aspect above.

[0082] In a ninth aspect, the present application provides a control device, which integrates an optical head end and can implement part or all of the functions of any optical head end in the second aspect.

[0083] In a tenth aspect, the present application provides a field device that integrates an optical terminal. The field device can implement part or all of the functions of any first optical terminal in the third aspect above; or implement part or all of the functions of any second optical terminal in the fourth aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] FIG1A is a network architecture diagram of a communication system in conventional technology;

[0085] FIG1B is an example diagram of a network architecture of a communication system in conventional technology;

[0086] FIG1C is another example diagram of a network architecture of a communication system in conventional technology;

[0087] FIG2A is a network architecture diagram of the communication system provided by this application;

[0088] FIG2B is another network architecture diagram of the communication system provided by this application;

[0089] FIG3A is an example diagram of a network architecture of a communication system provided by the present application;

[0090] FIG3B is another example diagram of the network architecture of the communication system provided by the present application;

[0091] FIG4A is an example diagram of data interaction between optical terminals provided in the present application;

[0092] FIG4B is an example diagram of a data frame provided by the present application;

[0093] FIG4C is another example diagram of a data frame provided by the present application;

[0094] FIG5 is a schematic diagram of an embodiment of a communication device provided by the present application;

[0095] FIG6 is a schematic diagram of another embodiment of a communication device provided by the present application;

[0096] FIG7 is a schematic diagram of another embodiment of a communication device provided by the present application;

[0097] FIG8 is a schematic diagram of another embodiment of a communication device provided by the present application;

[0098] FIG9 is a schematic structural diagram of the chip provided in this application. DETAILED DESCRIPTION

[0099] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0100] The terms "first," "second," "third," "fourth," and the like (if any) in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or apparatus.

[0101] It should be understood that the term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0102] To facilitate understanding, the following first introduces the optical bus system using all-optical networking in traditional technology.

[0103] As shown in Figure 1A, a traditional optical bus system includes an optical headend, an optical terminal, and a splitter network (also known as an optical distribution network or optical distribution network) connecting the optical headend and the optical terminal. The optical headend is connected to or integrated into a control device, while the optical terminal is connected to or integrated into a field device. The optical headend is connected to multiple optical terminals via the splitter network. The control device can be a controller, such as a programmable logic controller (PLC) or other hardware device with computing or control capabilities. The field device can be a device controlled based on instructions issued by the control device. For example, these include sensors, regulators, transmissions, relays, machine tools, and cutting tools in traditional industrial production plants. The control device and the field devices communicate via an optical bus system. Various field device information (such as operating parameters, status information, and fault information) is transmitted to a remote control device via the optical bus system. The control device can then send various control and maintenance commands to the relevant field devices via the optical bus system.

[0104] Generally, the aforementioned optical splitting network can be implemented by one or more optical splitters. Exemplarily, an optical head end and multiple optical terminals can be connected using one optical splitter, that is, the optical head end uses one-level optical splitting to connect to multiple optical terminals. For example, as shown in FIG1B , the optical bus system can adopt a tree-type network, where the optical head end connected to the control device is connected to an optical splitter via a trunk optical fiber, and the optical splitter is connected to multiple optical terminals via multiple branch optical fibers. Exemplarily, the optical head end and multiple optical terminals can also be connected using multiple optical splitters, that is, the optical head end uses multi-level optical splitting to connect to multiple optical terminals. For example, as shown in Figure 1C, the optical bus system can adopt a daisy-type networking, where the optical head end connected to the control device is connected to the input port of the splitter 1 through the trunk optical fiber, the output port of the splitter 1 is connected to the optical terminal 1, and the cascade port of the splitter 1 is connected to the next-level splitter (i.e., splitter 2); the output port of the splitter 2 is connected to the optical terminal 2, and the cascade port of the splitter 2 is connected to the next-level splitter (i.e., splitter 3), the output port of the splitter 3 is connected to the optical terminal 3, and the cascade port of the splitter 3 is then connected to the next-level splitter, and so on, which will not be repeated here.

[0105] As can be seen, traditional all-optical networking-based optical bus systems primarily connect a single optical headend to multiple optical terminals through one or more levels of splitting. However, due to a series of losses, such as fiber loss, splitting loss, additional splitting loss, and active connector loss, the total optical link loss increases as the data from connected optical terminals increases. Consequently, the number of optical terminals that can be connected in an optical bus system is limited. However, with the development of industrial automation, control equipment needs to perform increasingly precise, real-time, and complex control of more field devices. This has limited the application scenarios of current all-optical networking-based optical buses and has failed to meet the current needs of industrial automation development.

[0106] In this regard, the present application provides a communication system and a communication device for increasing the number of connectable optical terminals in an optical bus system, which is conducive to the control device controlling more field devices, thereby expanding the application scenarios of the optical bus system.

[0107] The communication system provided by this application is introduced below with reference to FIG2A .

[0108] As shown in Figure 2A, the communication system provided by the present application includes an optical head end 01 and at least two optical terminals, each of the at least two optical terminals including at least one electrical port for connecting to another optical terminal. Optionally, at least one of the at least two optical terminals also includes an optical port. It should be noted that the aforementioned optical port refers to an optical fiber interface, which is a physical interface for connecting an optical fiber cable and is used to transmit optical signals. The optical port can be an optical port in traditional technology. For example, the aforementioned optical port can be any type of optical port such as a square connector (SC) interface, a plug-in card sleeve (stab & twist, ST) interface or a round sleeve (ferrule connector, FC) interface; the optical port can also be a newly defined optical port, which is not limited by the present application. In addition, the aforementioned electrical port is a concept relative to the optical port, which is an interface for connecting conductive media such as copper cables and is used to transmit electrical signals. Exemplarily, the aforementioned electrical port can be a twisted pair interface, such as an RJ45 interface, which is not limited by the present application. For ease of description, this application refers to an optical terminal connected to an optical headend 01 via an optical port as a first optical terminal 02, and an optical terminal indirectly connected to the optical headend via an electrical port of at least one optical terminal as a second optical terminal 03. First optical terminal 02 manages at least one second optical terminal 03. The following description uses the example of first optical terminal 02 managing n second optical terminals 03, where n is an integer greater than 0.

[0109] The first optical terminal 02 includes at least one optical port and at least one electrical port for connecting to another optical terminal. The optical port of the first optical terminal 02 is used to connect to the optical headend 01 via an optical fiber or a splitter network. The first optical terminal 02 and the optical headend 01 communicate by transmitting optical signals through the optical port. In addition, the electrical port of the first optical terminal 02 is used to connect to the second optical terminal 03 managed by the first optical terminal 02. The first optical terminal 02 and the second optical terminal 03 managed by the first optical terminal 02 communicate by transmitting electrical signals through the electrical port. For example, the first optical terminal 02 in Figure 2A is connected to the second optical terminal #1 via the electrical port. The first optical terminal 02 can exchange electrical signals with the second optical terminal #1 via the electrical port to achieve communication between the first optical terminal 02 and the second optical terminal #1.

[0110] The second optical terminal 03 includes at least two electrical ports for connecting to another optical terminal, one of which is used to connect to a previous optical terminal, and the other is used to connect to a next optical terminal. For example, taking the second optical terminal #1 shown in FIG2A as an example, one of the electrical ports of the second optical terminal #1 is used to connect to the first optical terminal (i.e., the previous optical terminal of the second optical terminal #1), and the other electrical port of the second optical terminal #1 is used to connect to the second optical terminal #2 (i.e., the next optical terminal of the second optical terminal #1). For another example, taking the second optical terminal #2 shown in FIG2A as an example, one of the electrical ports of the second optical terminal #2 is used to connect to the second optical terminal #1 (i.e., the previous optical terminal of the second optical terminal #2), and the other electrical port of the second optical terminal #2 is used to connect to the second optical terminal #3 (i.e., the next optical terminal of the second optical terminal #2). Similarly, the n second optical terminals 03 managed by the first optical terminal 02 are connected in series via electrical ports, and the first optical terminal 02 is connected in series with the n second optical terminals 03 via electrical ports.

[0111] It should be noted that even if the second optical terminal 03 has at least two electrical ports for connecting to another optical terminal, the second optical terminal 03 can use only one of the electrical ports to connect to the other optical terminal, leaving the other electrical port unconnected. That is, the other electrical port is not connected to an optical terminal or other devices. For example, as shown in FIG2A , one of the electrical ports of the second optical terminal #n located at the end of the n second optical terminals is connected to the second optical terminal #(n-1), while the other electrical port of the second optical terminal #n is unconnected. For another example, when n=1, the first optical terminal 02 is connected in series to only one second optical terminal (i.e., the second optical terminal #1) via an electrical port. One of the electrical ports of the second optical terminal #1 is connected to an electrical port of the first optical terminal 02, while the other electrical port of the second optical terminal #1 is unconnected.

[0112] Optionally, the communication system further includes a control device and a field device. The aforementioned optical headend 01 is connected to the control device, and the first optical terminal 02 and the second optical terminal 03 are respectively connected to the field device. The first optical terminal 02 can be connected to at least one field device, and the second optical terminal 03 can also be connected to at least one field device, without limitation here. It should be noted that the control device and the optical headend 01 can be deployed separately or deployed together, that is, the optical headend 01 is integrated into the control device. When the control device and the optical headend 1 are deployed separately, the interface between the control device and the optical headend 01 can be an Ethernet interface (for example, an FE, GE, 10GE Ethernet interface), a PCIE interface, or any other interface; when the optical headend 01 and the control device are deployed together, the interface between the optical headend 01 and the control device is a software transceiver interface within the same device. In addition, the optical terminal (the first optical terminal 02 or the second optical terminal 03) and the field device can be deployed separately or deployed together, that is, the optical terminal (the first optical terminal 02 or the second optical terminal 03) is integrated into the field device. As shown in FIG2A , taking the first optical terminal 02 and the field device #0 as an example, when the first optical terminal 02 and the field device #0 are deployed separately, the interface between the first optical terminal 02 and the field device #0 can be any one of an Ethernet interface (e.g., FE, GE, 10GE), a serial peripheral interface (SPI), a general-purpose input / output (GPIO), RS422, a parallel port, an integrated circuit bus (I2C), or other interfaces; when the first optical terminal 02 and the field device #0 are deployed together, the interface between the first optical terminal 02 and the field device #0 is a software transceiver interface within the same device. For the rest of the description of the control device and the field device, please refer to the relevant description of FIG1A above, which will not be repeated here.

[0113] Specifically, when the control device has data to be sent to one or more second optical terminals 03, the optical head end 01 can obtain data from at least one second optical terminal 03 from the control device and generate a data frame. The optical head end 01 sends a data frame to the first optical terminal 02, and the data frame includes data from at least one second optical terminal among the n second optical terminals. For example, the optical head end 01 sends an optical signal to the first optical terminal 02 through an optical fiber or a splitter network, and the optical signal carries the aforementioned data frame. The first optical terminal 02 obtains the aforementioned data frame through the optical port, that is, the first optical terminal 02 receives the optical signal carrying the aforementioned data frame through the aforementioned optical port, and converts the optical signal into an electrical signal to obtain a data frame in the form of an electrical signal. Then, the first optical terminal 02 sends the data frame to the second optical terminal 03 connected to the first optical terminal 02 through the electrical port. Each of the at least one second optical terminal 03 receives a data frame from the first optical terminal 02 or from the second optical terminal 03 at the previous stage via an electrical port, obtains the data of the second optical terminal 03 in the data frame, and sends the data frame to the second optical terminal 03 at the next stage connected to the second optical terminal 03. Furthermore, each second optical terminal 03 can also transmit the obtained data to a field device connected to the second optical terminal 03.

[0114] It should be understood that, since the aforementioned n second optical terminals 03 are connected in series via electrical ports, the data frame sent by the first optical terminal 02 is transmitted to each of the n second optical terminals 03 in a step-by-step manner, i.e., each of the n second optical terminals 03 can receive the data frame. If a second optical terminal 03 that receives the data frame determines that the data frame contains data for the second optical terminal 03, the second optical terminal 03 obtains the data from the data frame and sends the data frame to the next-level second optical terminal 03. If a second optical terminal 03 that receives the data frame determines that the data frame does not contain data for the second optical terminal 03, the second optical terminal 03 sends the data frame to the next-level second optical terminal 03, until the data frame is transmitted to the last-level second optical terminal 03 (e.g., the nth second optical terminal #n shown in FIG2A ). Optionally, the data frame may also include data from the first optical terminal 02. In this case, before sending the data frame to the second optical terminal 03 connected to the first optical terminal 02 through the electrical port, the first optical terminal 02 will also obtain the data of the first optical terminal 02 from the data frame.

[0115] For ease of understanding, Figure 2A is used as an example. As shown in Figure 2A, if the control device has data to be sent to the first optical terminal 02 and the second optical terminal #2, the optical headend 01 generates a data frame #1 based on the data from the first optical terminal 02 and the second optical terminal #2 obtained from the control device. This data frame #1 includes the data from the first optical terminal 02 and the second optical terminal #2. The optical headend 01 transmits an optical signal carrying the data frame #1 to the first optical terminal 02 via an optical fiber or a splitter network. The first optical terminal 02 receives the data frame #1 via an optical port. Specifically, the first optical terminal 02 receives the optical signal carrying the data frame #1 via the optical port and converts the optical signal into an electrical signal to obtain the electrical signal of the data frame #1. The first optical terminal 02 then extracts the data from the data frame #1. The first optical terminal 02 then transmits the data frame #1 to the second optical terminal #1 via the electrical port between the first optical terminal 02 and the second optical terminal #1. The second optical terminal #1 receives the data frame #1 from the first optical terminal 02 via the electrical port. After second optical terminal #1 determines that data frame #1 does not contain its own data, it sends data frame #1 to the next-level second optical terminal (i.e., second optical terminal #2) connected to it. Second optical terminal #2 receives data frame #1 from second optical terminal #1 via an electrical port and extracts its data from data frame #1. Then, second optical terminal #2 sends data frame #1 to the next-level second optical terminal (i.e., second optical terminal #3) connected to it. And so on. Optical headend 01 can send data from each of the multiple optical terminals (including first optical terminal 02 and each of the second optical terminals 03) connected in series via an electrical port. Because each second optical terminal 03 can exchange data with the field device corresponding to it, and the data from each second optical terminal 03 originates from the control device, it is convenient for the control device to send data to multiple field devices.

[0116] It should be noted that the data of the second optical terminal 03 includes, but is not limited to, instructions, service data, maintenance information, etc. issued by the control device to be transmitted to the second optical terminal 03 and / or the field device. This application uses the data of the second optical terminal 03 as an example for description. In some scenarios, the data of the second optical terminal 03 can also be understood as data to be transmitted by the second optical terminal 03 to the field device connected to the second optical terminal 03.

[0117] Optionally, as shown in FIG2B , the aforementioned communication system may further include a third optical terminal 04. The third optical terminal 04 may be an optical terminal in conventional technology, that is, the third optical terminal 04 cannot be connected to another optical terminal via an electrical port. The third optical terminal 04 may also be an optical terminal with the aforementioned electrical port provided in this application (e.g., the first optical terminal 02 or the second optical terminal 03), but the third optical terminal 04 is only connected to the optical head end 01 via the optical port, and the electrical port of the third optical terminal 04 is left empty and not connected to another optical terminal. Exemplarily, the aforementioned communication system may include multiple first optical terminals 02 and multiple third optical terminals 04, and each first optical terminal 02 may also manage multiple second optical terminals 03. During downlink transmission, the optical splitting network splits the downlink optical signal from optical headend 01 into multiple downlink optical signals and distributes them to multiple first optical terminals 02 and multiple third optical terminals 04 connected to optical headend 01 via optical ports. Each first optical terminal 02 then transmits an electrical signal carrying the data of the second optical terminal 03 to multiple second optical terminals 03 connected in series via electrical ports, using the method described in Figure 2A. During uplink transmission, a first optical terminal 02 collects data from each second optical terminal 03 managed by it to generate an uplink optical signal. The optical splitting network combines the uplink optical signals from multiple first optical terminals 02 and multiple third optical terminals 04 into a single optical signal and transmits it to optical headend 01.

[0118] It should be noted that the aforementioned splitting network may include optical fibers, optical couplers, splitters, splitters or other devices, which are not limited in this application. The devices in the splitting network may be passive optical devices, that is, the devices in the splitting network do not require power when transmitting and splitting optical signals. Taking a splitter as an example, the splitter can be connected to the optical head end 01 through a trunk optical fiber, and connected to multiple optical terminals (for example, the first optical terminal 02 and the third optical terminal 04) through multiple branch optical fibers, thereby realizing a point-to-multipoint connection between an optical head end and multiple optical terminals, and completing the function of point-to-multipoint optical splitting or combining. The splitter can be a first-level splitter as shown in Figure 3A, or a multi-level splitter as shown in Figure 3B; the splitter can also be an equal-ratio splitter or an unequal-ratio splitter, which is not limited in this application.

[0119] It should also be noted that the optical communication between the optical head end 01 and the optical terminal (for example, the first optical terminal 02 or the third optical terminal 04) in the communication system provided by the present application can be based on point-to-multipoint optical communication of any type of passive optical network (PON) network. Any PON communication mechanism and protocol is used for communication between the optical head end 01 and the optical terminal (for example, the first optical terminal 02 or the third optical terminal 04). For example, the optical head end 01 allocates different uplink time slots to each optical terminal (for example, the first optical terminal 02 or the third optical terminal 04), and each optical terminal (for example, the first optical terminal 02 or the third optical terminal 04) sends uplink data or uplink transmission frames in the uplink time slot allocated to it by the optical head end 01, so as to ensure that the uplink data sent by each optical terminal will not conflict or interfere during the transmission process. The specific PON communication mechanism and protocol will not be repeated here.

[0120] It should also be noted that the names of the various devices in the system shown in Figure 2A or Figure 2B are only examples, and the names of the various devices in a specific implementation may also be other names. For example, the optical head end may also be referred to as an optical controller, an optical master station, or an optical communication device, and the optical terminal may also be referred to as an optical slave station or an optical communication device, etc. This application does not specifically limit this.

[0121] In the communication system provided herein, an optical terminal includes at least one electrical port for connecting to another optical terminal. When a first optical terminal 02 is connected in series with at least one second optical terminal 03 via the electrical port, the first optical terminal 02 can send data from the second optical terminal 03 to the at least one second optical terminal 03 via the electrical port, and the second optical terminal 03 can also receive data frames from the first optical terminal 02 via the electrical port and obtain data from the second optical terminal 03 sent by the optical head end 01. Because the use of electrical port connections eliminates the optical signal attenuation issue caused by the use of optical port connections, it is beneficial to expand the number of connectable optical terminals in the communication system, thereby facilitating the expansion of the application of the communication system to application scenarios with a large number of nodes.

[0122] It should be understood that before the optical head end 01 sends a data frame to the first optical terminal 02, the first optical terminal 02 and the n second optical terminals 03 have already completed registration with the optical head end 01. The optical head end 01 is able to obtain information about the first optical terminal 02 and the n second optical terminals 03 during the registration process, and then the optical head end 01 generates the aforementioned data frame based on the information about the first optical terminal 02 and the n second optical terminals 03. The following is a brief introduction to the registration process of the first optical terminal 02 at the optical head end 01:

[0123] Specifically, the first optical terminal 02 obtains information about n second optical terminals 03. For example, whenever a second optical terminal 03 comes online, the second optical terminal 03 transparently transmits the information about the second optical terminal 03 to the first optical terminal 02 through the electrical port, and the first optical terminal 02 can receive the information about the n second optical terminals 03 through the electrical port.

[0124] Optionally, the information of each second optical terminal 03 includes the physical address of each second optical terminal 03 and the bandwidth information of each second optical terminal 03. The physical address of the second optical terminal 03 is used to uniquely identify the second optical terminal 03. For example, the physical address of the second optical terminal 03 can be the media access control (MAC) address of the second optical terminal 03, or the serial number (SN) information of the second optical terminal 03, or other information that can uniquely identify the second optical terminal 03, which is not limited here. The bandwidth information of the second optical terminal 03 is used to indicate the upper bandwidth limit for data exchange between the second optical terminal 03 and the field device corresponding to the second optical terminal 03. The bandwidth information indicated by different second optical terminals 03 may indicate the same or different bandwidth values, which is not limited in this application. It should be noted that in some application scenarios, bandwidth information is also referred to as the electrical port rate, which refers to the upper bandwidth limit of the interface between the second optical terminal 03 and the field device. The bandwidth value indicated by the bandwidth information can be in MHz, GHz, or other units. This application limits the specific value of the bandwidth information.

[0125] For example, taking the physical address of the second optical terminal 03 as a MAC address, the information of the n second optical terminals 03 acquired by the first optical terminal 02 may be as shown in the following Table 1-1:

[0126] Table 1-1

[0127] Optionally, the information of each second optical terminal 03 further includes electrical port information of the second optical terminal 03. The electrical port information of the second optical terminal 03 is used to indicate the activation status of the electrical port of the second optical terminal 03 used to connect to another second optical terminal 03. For example, the electrical port number and electrical port level of the electrical port may be included. The electrical port level value may indicate whether the electrical port is connected to another optical terminal, that is, whether the electrical port is in an unused state.

[0128] For example, taking the physical address of the second optical terminal 03 as SN information, the information of n second optical terminals 03 acquired by the first optical terminal 02 may be as shown in the following Table 1-2:

[0129] Table 1-2

[0130] After the first optical terminal 02 obtains the information of the n second optical terminals 03, the first optical terminal 02 registers the first optical terminal 02 and the n second optical terminals 03 at the optical head end 01 based on the information of the first optical terminal 02 and the information of the n second optical terminals 03. The optical head end 01 assigns management identifiers to the successfully registered first optical terminal 02 and the n second optical terminals 03 based on the information of the first optical terminal 02 and the information of the n second optical terminals 03 managed by the first optical terminal 02, that is, the optical head end 01 generates the management identifier of the first optical terminal 02 and the management identifiers of the n second optical terminals 03 based on the information of the first optical terminal 02 and the information of the n second optical terminals 03. Exemplarily, the management identifier can be a serial number or an IO ID determined by the optical head end 01. This application does not limit the specific implementation form of the management identifier. The following description takes the management identifier as an IO ID as an example.

[0131] In one possible implementation, the management identifiers of each optical terminal generated by the optical head end 01 have nothing to do with the serial connection order of each optical terminal. Since the optical head end 01 can obtain the information of n second optical terminals 03 from the first optical terminal 02, the optical head end 01 can determine that the n second optical terminals 03 are managed by the first optical terminal 02, that is, the n second optical terminals 03 are connected in series under the electrical port of the first optical terminal 02. At this time, the optical head end 01 takes the first optical terminal 02 as the starting point and assigns a management identifier to each second optical terminal 03. Optionally, the management identifier of each second optical terminal 03 cannot indicate the connection relationship between the second optical terminal 03 and other second optical terminals 03. For example, taking Figure 2A as an example, the management identifier of the first optical terminal 02 is IO0, the management identifier of the second optical terminal with MAC address #1 is IO1, the management identifier of the second optical terminal with MAC address #2 is IO2, and so on.

[0132] In another possible implementation, the management identifier of each optical terminal generated by the optical head end 01 is related to the serial connection sequence of each optical terminal. In this embodiment, the optical head end 01 also needs to obtain topology information from the first optical terminal 02, and the topology information is used to indicate the serial connection sequence of n second optical terminals 03. The optical head end 01 assigns management identifiers to each second optical terminal 03 in turn according to the serial connection sequence of each second optical terminal 03. Optionally, the management identifier of each second optical terminal 03 can indicate the connection relationship between the second optical terminal 03 and other second optical terminals 03. For example, the management identifiers of n second optical terminals 03 are numbered according to the serial connection relationship of the n second optical terminals 03. For example, taking Figure 2A as an example, the management identifier of the first optical terminal 02 is IO0, the management identifier of the second optical terminal #1 connected to the first optical terminal 02 is IO1, the management identifier of the second optical terminal #2 connected to the second optical terminal #1 is IO2, and so on.

[0133] It should be noted that the management identifier of the first optical terminal 02 and the management identifier of the second optical terminal 03 are uniformly encoded by the optical headend 01. However, the management identifier of the first optical terminal 02 and the management identifier of the second optical terminal 03 can use different address encoding methods. When the management identifier of the first optical terminal 02 and the management identifier of the second optical terminal 03 can use different address encoding methods, it is beneficial for the first optical terminal 02 or the second optical terminal 03 to quickly distinguish the management identifier of the first optical terminal 02 from the management identifier of the second optical terminal 03, thereby improving the efficiency of each optical terminal in reading data frames.

[0134] Optionally, the optical headend 01 sends the management identifier of the first optical terminal 02 and the management identifier of each of the n second optical terminals 03 to the first optical terminal 02. Optionally, the first optical terminal 02 broadcasts the management identifiers of the n second optical terminals 03 to the n second optical terminals 03.

[0135] Optionally, the optical head end 01 stores the information of the first optical terminal 02 and each of the n second optical terminals 03 that have been successfully registered (for example, physical address, bandwidth information, etc.) in correspondence with the management identifier in a storage medium (for example, a memory, a register, or a cache). In this application, the data structure that stores the information of the aforementioned optical terminals (for example, physical address, bandwidth information, etc.) and the management identifier is referred to as a management table. It should be understood that in actual applications, the management table may be an array, a mapping table, or other data structures, which are not limited here. The management table indicates the information of the first optical terminal 02 that has been registered with the optical head end 01 and the information of the n second optical terminals 03 managed by the first optical terminal 02.

[0136] In a possible example, the management table includes information of the first optical terminal 02 , information of each second optical terminal 03 , a management identifier of the first optical terminal 02 , and a management identifier of each second optical terminal 03 .

[0137] For example, the information of the first optical terminal 02 includes the physical address and bandwidth information of the first optical terminal 02, and the information of the second optical terminal 03 includes the physical address and bandwidth information of the second optical terminal 03. Moreover, taking the physical address as a MAC address as an example, the management table generated by the optical head end 01 may be as shown in the following Table 2-1:

[0138] Table 2-1

[0139] In another possible example, the management table includes information about the first optical terminal 02, information about each second optical terminal 03, a management identifier of the first optical terminal 02, a management identifier of each second optical terminal 03, and third indication information, where the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal 02. When there are multiple first optical terminals 02 or at least one third optical terminal 04 in the communication system, setting the third indication information in the management table facilitates the optical head end 01 to accurately distinguish between the second optical terminals 03 managed by each first optical terminal 02, thereby improving the efficiency of the optical head end 01 in distributing data to each optical terminal.

[0140] It should also be noted that, in different scenarios, the process of the first optical terminal 02 applying for registration at the optical head end 01 is different. For example, in a scenario involving time division multiplexing (TDM) and / or time division multiple access (TDMA), the optical head end 01 and the first optical terminal 02 need to first perform a time synchronization process and a ranging process before they can complete the registration. For another example, in a scenario involving frequency division multiplexing (FDM) and / or frequency division multiple access (FDMA), the optical head end 01 and the first optical terminal 02 need to first perform a frequency synchronization process before they can complete the registration. This application does not elaborate on the specific registration process.

[0141] Furthermore, the optical head end 01 can generate the aforementioned data frame based on the management table and send down the data frame. Specifically, the optical head end 01 generates a data frame based on the data from at least one second optical terminal 03 of the control device and the aforementioned management table. Among them, the data frame includes data processing fields of multiple optical terminals, and each data processing field is used to carry data for interaction between the optical head end 01 and the optical terminal. It should be noted that the data processing field of a certain optical terminal in the aforementioned data frame may carry the data of the optical terminal, or may not carry the data of the optical terminal. After receiving the data frame, each optical terminal can perform data interaction based on the data processing field corresponding to the optical terminal, and then send the data frame after the data interaction to the next-level optical terminal. After the last optical terminal managed by the first optical terminal 02 performs data interaction, the optical terminal will transparently transmit the data frame after the data interaction to the first optical terminal.

[0142] For example, as shown in FIG4A , the data frame received by the first optical terminal 02 from the optical headend 01 includes a data processing field for the first optical terminal 02 and a data processing field for each of the n second optical terminals 03. The data processing field for the first optical terminal 02 is used to carry data from the first optical terminal 02, while the data processing field for the second optical terminal 03 is used to carry data from the second optical terminal 03. After the first optical terminal 02 receives the data frame via the optical port, it performs data exchange based on the data processing field corresponding to the first optical terminal 02 in the data frame and sends the data frame after the data exchange to the second optical terminal #1 connected to the first optical terminal 02 via the electrical port. After the second optical terminal #1 receives the data frame from the first optical terminal 02 via the electrical port, it performs data exchange based on the data processing field corresponding to the second optical terminal #1 in the received data frame and sends the data frame after the data exchange to the next-level second optical terminal (i.e., the second optical terminal #2) connected to the second optical terminal #1. After the second optical terminal #2 receives the data frame from the second optical terminal #1 through the electrical port, the second optical terminal #2 performs data exchange based on the data processing field corresponding to the second optical terminal #2 in the received data frame, and sends the data frame after the data exchange to the next-level second optical terminal (i.e., the second optical terminal #3) connected to the second optical terminal #2. Similarly, the data frame is transmitted from the first optical terminal 02 to each second optical terminal managed by the first optical terminal 02 step by step, and finally reaches the second optical terminal #n. After the second optical terminal #n performs data exchange based on the data processing field corresponding to the second optical terminal #n in the received data frame, the data frame after the data exchange is transparently transmitted to the first optical terminal 02 through the optical terminals between the first optical terminal 02 and the second optical terminal #n. Optionally, the first optical terminal 02 sends the data frame after the data exchange to the optical head end.

[0143] Optionally, the aforementioned execution of data interaction includes data processing processes such as read processing, write processing, read-write processing, broadcast write processing, and loopback testing. Among them, read processing refers to the optical head end obtaining data from the optical terminal through a data frame, that is, the optical terminal writes data in the data processing field of the data frame; write processing refers to the optical head end writing data to the optical terminal through a data frame, that is, the optical terminal reads data from the data processing field of the data frame; broadcast write processing refers to the optical head end writing the same data to each optical terminal through a data frame, that is, each optical terminal reads the same data from the data frame; loopback testing refers to testing the connectivity of the link between each optical terminal for exchanging data through the electrical port. In actual applications, other types of data interaction are also possible, and this application does not limit this. In the subsequent embodiments, read processing and write processing are mainly used as examples for introduction.

[0144] As can be seen, as the data frame is transmitted step by step from the first optical terminal to the last second optical terminal managed by the first optical terminal (e.g., second optical terminal #n in Figure 4A), each optical terminal can perform data processing in the data processing field corresponding to each optical terminal in the data frame. The last second optical terminal managed by the first optical terminal (e.g., second optical terminal #n in Figure 4A) can transparently transmit the data frame after data exchange to the first optical terminal. Since the optical terminals exchange data in their respective corresponding data processing fields, rather than requiring each optical terminal to parse the data processing fields corresponding to other optical terminals or parse the entire data frame, this facilitates each optical terminal to quickly write or read data from the data frame. Furthermore, the last second optical terminal transparently transmits the data frame after data exchange to the first optical terminal via at least one second optical terminal, facilitating the rapid transmission of the data frame after data exchange to the first optical terminal and then to the optical headend. This improves the efficiency of data exchange between the optical headend and the optical terminals, and in turn, the efficiency of data exchange between the control device and the field equipment.

[0145] The main structure of the data frame provided by this application is introduced below in conjunction with Figures 4B and 4C:

[0146] As shown in FIG4B , the aforementioned data frame includes a frame header and a data field.

[0147] The frame header of the data frame includes the management identifier of the second optical terminal 03. For example, if the first optical terminal 02 manages n second optical terminals 03, the frame header of the data frame includes the management identifier of each of the n second optical terminals 03, and different second optical terminals 03 have different management identifiers.

[0148] Specifically, the first optical terminal 02 forwards data frames to the second optical terminal 03 in a cut-through forwarding (also known as fast-forward) manner based on the management identifier of the second optical terminal 03 connected to the first optical terminal 02; each of the n second optical terminals 03 forwards data frames to the next-level second optical terminal 03 in a cut-through forwarding manner based on the management identifier of the next-level second optical terminal 03 connected to the second optical terminal 03.

[0149] For example, as shown in Figure 4A, when the first optical terminal 02 receives a data frame from the optical head end 01, it first reads the frame header and then reads the data processing field corresponding to the first optical terminal 02 in the data field. When the first optical terminal 02 reads the management identifier of the second optical terminal #1 in the frame header, the first optical terminal 02 can determine that after data exchange, the data frame should be sent to the second optical terminal #1 instead of to other optical terminals. Similarly, when the second optical terminal #1 receives a data frame from the first optical terminal 02, the second optical terminal #1 first reads the frame header and then reads the data processing field corresponding to the second optical terminal #1 in the data field. When the second optical terminal #1 reads the management identifier of the second optical terminal #2 in the frame header, the second optical terminal #1 can determine that after data exchange, the data frame should be sent to the second optical terminal #2 instead of to other optical terminals. This process is analogous and not further described here.

[0150] Optionally, the frame header of the data frame also includes a management identifier of the first optical terminal 02. When the communication system includes multiple first optical terminals 02, the management identifier of the first optical terminal 02 in the frame header is used by the optical headend 01 to distinguish which first optical terminal 02 the data frame originates from. Exemplarily, after the last second optical terminal #n among the n second optical terminals 03 managed by the first optical terminal 02 performs data exchange, the second optical terminal #n can quickly transparently transmit the data frame after the data exchange to the first optical terminal 02 based on the management identifier of the first optical terminal 02 in the frame header.

[0151] It can be seen from this that since the frame header of the data frame contains the management identifier of each second optical terminal 03, the first optical terminal 02 can determine the next hop for forwarding when receiving the frame header, that is, the data frames are forwarded by direct forwarding between each optical terminal, which is beneficial to improving the efficiency of data frame forwarding and thus helping to reduce network latency.

[0152] In one possible implementation, as shown in FIG4B , the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal 02 to send the data frame to the second optical terminal 03 connected to the first optical terminal 02. It can also be understood that the first indication information is used to indicate that the data frame carries a data processing field for the second optical terminal 02.

[0153] In one possible implementation, as shown in Figure 4B , the data field of the data frame includes the management identifier of each second optical terminal 03. The management identifier of each second optical terminal 03 in the data field is used to indicate the location of the data processing field corresponding to each second optical terminal 03 within the data field. Each second optical terminal 03 can determine the location of the data processing field corresponding to the second optical terminal 03 within the data field based on the management identifier of the second optical terminal 03 in the data field. For example, in the data frame shown in Figure 4C , the management identifiers of the n second optical terminals are IO1 ID, IO2 ID, ..., IOn ID, respectively.

[0154] Optionally, the data field of the data frame also includes a management identifier of the first optical terminal 02. The management identifier of the first optical terminal 02 in the data field is used to indicate the location of the data processing field corresponding to the first optical terminal 02 in the data field. The first optical terminal 02 can determine the location of the data processing field corresponding to the first optical terminal 02 in the data field based on the management identifier of the first optical terminal 02 in the data field. For example, in the data frame shown in FIG4C , the management identifier of the first optical terminal is IO0ID.

[0155] Optionally, the data field of the data frame also includes second indication information of each second optical terminal 03, and the second indication information of each second optical terminal 03 is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal 03 and the length of the data processing field of each data processing type.

[0156] Optionally, the data field of the data frame also includes second indication information of the first optical terminal 02, and the second indication information of each first optical terminal 02 is used to indicate at least one data processing type of the data processing field corresponding to the first optical terminal 02 and the length of the data processing field of each data processing type.

[0157] Different data processing types correspond to different positions in the data processing field. Optionally, data processing types include read processing, write processing, read-write processing, broadcast write processing, loopback testing and other data processing processes. Among them, read processing refers to the optical head end obtaining data from the optical terminal through the data frame, that is, the optical terminal writes data in the data processing field of the data frame; write processing refers to the optical head end writing data to the optical terminal through the data frame, that is, the optical terminal reads data from the data processing field of the data frame; broadcast write processing refers to the optical head end writing the same data to each optical terminal through the data frame, that is, each optical terminal reads the same data from the data frame; loopback testing refers to testing the connectivity of the link between each optical terminal through the electrical port to exchange data. In actual applications, other types of data interaction are also possible, and this application is not limited. In the subsequent embodiments, read processing and write processing are mainly used as examples for introduction. For example, in the data frame shown in Figure 4C, the second indication information can be a command prompt (command, CMD) and a length (length, LEN) field (hereinafter referred to as the CMD&LEN field). The second indication information includes 8 bytes, the upper 4 bytes are CMD, the first 2 bytes of the lower 4 bytes are the length of the write process, and the last 2 bytes are the length of the read process.

[0158] The main structure and functions of the communication system provided by this application are introduced above. The following introduces each device in the communication system respectively:

[0159] FIG5 is a schematic diagram of the structure of a communication device 50 provided in this embodiment. The communication device 50 can implement some or all of the functions of the optical head end 01 described above. When the communication device 50 serves as the optical head end 01, the communication device 50 can be directly plugged into a control device, or the communication device 50 can be integrated into the control device. The communication device 50 is applied to the communication system shown in FIG2A or FIG2B . For an introduction to the communication system, please refer to the corresponding description of FIG2A or FIG2B above, which will not be repeated here. The communication device 50 primarily includes a processing module 501 and a transceiver module 502.

[0160] Among them, the transceiver module 502 is used to obtain data from at least one second optical terminal among n second optical terminals; the processing module 501 is used to generate a data frame based on the data from at least one second optical terminal among n second optical terminals, and the data frame includes data from at least one second optical terminal among n second optical terminals; the transceiver module 502 is also used to send data frames to the first optical terminal.

[0161] In one possible implementation, the data frame generated by the communication device 50 includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals. The transceiver module 502 is further configured to receive a data frame after data exchange has been performed from the first optical terminal, wherein at least one data processing field in the data frame after data exchange has performed data exchange with the optical terminal corresponding to the data processing field, and the optical terminal corresponding to the data processing field includes the first optical terminal and / or the second optical terminal.

[0162] For an introduction to the data frame, please refer to the corresponding description in FIG4B above, which will not be repeated here.

[0163] In one possible implementation, the transceiver module 502 is further configured to obtain information about the first optical terminal and information about n second optical terminals from the first optical terminal. The processing module 501 is further configured to determine the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals based on the information about the first optical terminal and the information about the n second optical terminals. The transceiver module 502 is further configured to send the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals to the first optical terminal. Optionally, the information about each second optical terminal includes bandwidth information of the second optical terminal, the physical address of the second optical terminal, and electrical port information of the second optical terminal.

[0164] In one possible embodiment, the processing module 501 is also used to generate a management table, which includes information about the first optical terminal, information about each second optical terminal, a management identifier of the first optical terminal, a management identifier of each second optical terminal, and third indication information, where the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal.

[0165] In a possible implementation, the transceiver module 502 is specifically configured to obtain data of at least one second optical terminal from the control device; the processing module 501 is specifically configured to generate a data frame based on the data of at least one second optical terminal and a management table.

[0166] As shown in Figure 6, a schematic diagram of the structure of a communication device 60 provided in this embodiment is shown. The communication device 60 can implement some or all of the functions of the optical terminal described above (for example, the first optical terminal 02 or the second optical terminal 03 described above). The communication device 60 is provided with at least one electrical port for connecting to another optical terminal. When the communication device 60 is used as an optical terminal, the communication device 60 can be directly plugged into the field device, or the communication device 60 can be integrated into the field device. The communication device 60 is applied to the communication system shown in Figure 2A or Figure 2B. For an introduction to the communication system, please refer to the corresponding description of Figure 2A or Figure 2B above, which will not be repeated here. The communication device 60 mainly includes a processing module 601 and a transceiver module 602.

[0167] When the communication device 60 implements part or all of the functions of the first optical terminal 02, the processing module 601 and the transceiver module 602 in the communication device 60 mainly implement the following functions:

[0168] Specifically, the transceiver module 602 is used to obtain data frames from the optical head end through the optical port, where the data frames include data of at least one second optical terminal among n second optical terminals; and send data frames to the second optical terminal connected to the first optical terminal through the electrical port.

[0169] In one possible implementation, the data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals. The processing module 601 is configured to perform data exchange based on the data processing field corresponding to the first optical terminal in the data frame. The transceiver module 602 is specifically configured to transmit the data frame after the data exchange to the second optical terminal connected to the first optical terminal via an electrical port.

[0170] In a possible implementation, the transceiver module 602 is further configured to: receive data frames after data interaction from the second optical terminal through the electrical port; and send data frames after data interaction to the optical head end through the optical port.

[0171] In one possible implementation, the frame header of the data frame includes the management identifier of each second optical terminal. The transceiver module 602 is specifically configured to forward the data frame to the second optical terminal in a cut-through forwarding manner based on the management identifier of the second optical terminal connected to the first optical terminal.

[0172] In one possible implementation, the data field of the data frame further includes a management identifier of the first optical terminal. The management identifier of the first optical terminal in the data field is used to indicate the position of the data processing field corresponding to the first optical terminal in the data field. Processing module 601 is specifically configured to determine the position of the data processing field corresponding to the first optical terminal in the data field based on the management identifier of the first optical terminal in the data field.

[0173] In one possible embodiment, the transceiver module 602 is also used to obtain information of n second optical terminals; the processing module 601 is also used to register the first optical terminal and n second optical terminals at the optical head end based on the information of the first optical terminal and the information of the n second optical terminals; the transceiver module 602 is also used to receive the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals from the optical head end; and, broadcast the management identifiers of the n second optical terminals to the n second optical terminals.

[0174] When the communication device 60 implements part or all of the functions of the second optical terminal 03, the processing module 601 and the transceiver module 602 in the communication device 60 mainly implement the following functions:

[0175] Specifically, the transceiver module 602 is used to receive data frames from the first optical terminal or from the second optical terminal at the previous level through the electrical port; the processing module 601 is used to obtain data from the second optical terminal in the data frame; the transceiver module 602 is also used to send data frames to the second optical terminal at the next level connected to the second optical terminal.

[0176] In one possible implementation, the data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals. The processing module 601 is specifically configured to perform data exchange based on the data processing field corresponding to the second optical terminal in the received data frame. The transceiver module 602 is specifically configured to transmit the data frame after the data exchange to the next-level second optical terminal connected to the second optical terminal.

[0177] In a possible implementation manner, the transceiver module 602 is further configured to transparently transmit the data frame after data interaction to the first optical terminal through at least one second optical terminal.

[0178] In one possible implementation, the frame header of the data frame includes the management identifier of each second optical terminal. The transceiver module 602 is specifically configured to forward the data frame to the next-level second optical terminal in a cut-through forwarding manner based on the management identifier of the next-level second optical terminal connected to the second optical terminal.

[0179] Optionally, the frame header of the data frame further includes a management identifier of the first optical terminal.

[0180] Optionally, the frame header of the data frame further includes first indication information, where the first indication information is used to instruct the first optical terminal to send the data frame to a second optical terminal connected to the first optical terminal.

[0181] In one possible implementation, the data field of the data frame includes a management identifier of each second optical terminal. The management identifier of each second optical terminal in the data field is used to indicate the position of a data processing field corresponding to each second optical terminal in the data field. Processing module 601 is specifically configured to determine the position of the data processing field corresponding to the second optical terminal in the data field based on the management identifier of the second optical terminal in the data field.

[0182] Optionally, the data field of the data frame further includes a management identifier of the first optical terminal, and the management identifier of the first optical terminal in the data field is used to indicate a position of a data processing field corresponding to the first optical terminal in the data field.

[0183] Optionally, the data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

[0184] In one possible implementation, the data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field. Processing module 601 is specifically configured to write data to the data processing field whose data processing type is read processing based on the second indication information; and / or, processing module 601 is specifically configured to read data from the data processing field whose data processing type is write processing based on the second indication information.

[0185] In one possible implementation, the transceiver module 601 is further configured to obtain a management identifier of the second optical terminal, where the management identifier of the second optical terminal is determined by the optical headend based on information about n second optical terminals. Optionally, the information about each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal, and electrical port information of the second optical terminal.

[0186] FIG7 is a schematic diagram of the structure of a communication device 70 provided in this embodiment. The communication device 70 may be the optical head end 01 described above. It should be understood that the communication device 70 may be directly plugged into the control device, or the communication device 70 may be integrated into the control device.

[0187] As shown in FIG. 7 , the communication device 70 may include a processor 701 and a communication interface 702 , where the processor 701 is coupled to the communication interface 702 .

[0188] The processor 701 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 701 may be a single processor or may include multiple processors, the specific details of which are not limited herein. In one possible design, the processor 701 is used to implement the functions of the processing module 501 in the communication device 50 shown in FIG5 . Please refer to the description related to FIG5 above for details, which will not be repeated here.

[0189] In addition, the aforementioned communication interface 702 is used to communicate with other devices or apparatuses. The communication interface 702 includes an optical port 7021. The optical port 7021 is used to connect to one or more optical terminals (for example, the first optical terminal 02 or the third optical terminal 04 described above) through an optical fiber or a splitter network. The optical port 7021 is used to transmit and receive optical signals. Exemplarily, the optical port 7021 can be an optical port in conventional technology. For example, the aforementioned optical port 7021 can be any type of optical port such as a square connector (SC) interface, a stab & twist (ST) interface, or a ferrule connector (FC) interface; the optical port 7021 can also be a newly defined optical port, which is not limited in this application.

[0190] In addition, the communication interface 702 also includes an electrical port for connecting to a control device in conventional technology. When the control device and the communication device 70 are deployed separately, the interface between the control device and the communication device 70 can be an Ethernet interface (e.g., FE, GE, 10GE, etc.), a PCIE interface, or any other interface. When the communication device 70 and the control device are deployed together, the interface between the communication device 70 and the control device is a software transceiver interface within the same device.

[0191] Optionally, the communication device 70 further includes a memory 703. The processor 701 is coupled to the memory 703. The memory 703 is mainly used to store software programs and data. The memory 703 may exist independently and be connected to the processor 701. Optionally, the memory 703 may be integrated with the processor 701, for example, integrated into one or more chips. The memory 703 can store program codes for executing the technical solutions of the embodiments of the present application, and is controlled by the processor 701 for execution. The various types of computer program codes executed can also be regarded as drivers for the processor 701. The memory 703 may include volatile memory, such as random-access memory (RAM); the memory may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 703 may also include a combination of the above types of memory. The memory 703 may be a single memory or may include multiple memories. For example, the memory 703 is used to store various data, such as the information of the first optical terminal 02, the information of the second optical terminal 03, and the management table mentioned above.

[0192] In one implementation, memory 703 stores computer-readable instructions, which include multiple software modules. Processor 701 invokes these computer-readable instructions to execute the functions of the processing modules in optical headend 01. For example, processor 701 invokes these computer-readable instructions to execute the functions of processing module 501 in communication device 50 shown in FIG5 . For details, please refer to the description related to FIG5 above and will not be repeated here.

[0193] FIG8 is a schematic diagram of the structure of a communication device 80 provided in this embodiment. The communication device 80 may be the first optical terminal 02 or the second optical terminal 03 described above. It should be understood that the communication device 80 may be directly plugged into a field device, or the communication device 80 may be integrated into the field device.

[0194] As shown in FIG8 , the communication device 80 may include a processor 801 and a communication interface 802 , where the processor 801 is coupled to the communication interface 802 .

[0195] The processor 801 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 801 may be a single processor or may include multiple processors, the specific details of which are not limited herein. In one possible design, the processor 801 is used to implement the functions of the processing module 601 in the communication device 60 shown in FIG6 . Please refer to the description related to FIG6 above for details, which will not be repeated here.

[0196] In addition, the aforementioned communication interface 802 is used to communicate with other devices or apparatuses. The communication interface 802 includes an optical port 8021. The optical port 8021 is used to connect to the optical head end (for example, the optical head end 01 introduced above) through an optical fiber or a splitter network. The optical port 8021 is used to transmit and receive optical signals. Exemplarily, the optical port 8021 can be an optical port in traditional technology. For example, the aforementioned optical port 8021 can be any type of optical port such as a square connector (SC) interface, a stab & twist (ST) interface, or a ferrule connector (FC) interface; the optical port 8021 can also be a newly defined optical port, which is not limited in this application. The communication interface 802 also includes an electrical port 8022. The electrical port 8022 is used to connect to another optical terminal so that the communication device 80 can transmit electrical signals to another optical terminal through the electrical port 8022. Exemplarily, the electrical port 8022 may be a twisted pair interface, such as an RJ45 interface, etc., which is not limited in this application.

[0197] In addition, the communication interface 802 also includes an electrical port for connecting to a field device in conventional technology. When the communication device 80 and the field device are deployed separately, the interface between the communication device 80 and the field device can be an Ethernet interface (e.g., FE, GE, 10GE), a serial peripheral interface (SPI), a servo motor monitoring and drive interface (e.g., AD, general-purpose input / output (GPIO), RS422, pulse width modulation (PWM) control, etc.), a parallel port, an integrated circuit bus (ICB), an SPI bus, a GPIO ... 2 C) interface or any other interface; when the communication device 80 and the field device are deployed in one, the interface between the first optical terminal 02 and the field device is a software transceiver interface within the same device.

[0198] Optionally, the communication device 80 further includes a memory 803. The processor 801 is coupled to the memory 803. The memory 803 is mainly used to store software programs and data. The memory 803 can exist independently and be connected to the processor 801. Optionally, the memory 803 can be integrated with the processor 801, for example, integrated into one or more chips. The memory 803 can store program codes for executing the technical solutions of the embodiments of the present application, and the execution is controlled by the processor 801. The various types of computer program codes executed can also be regarded as drivers for the processor 801. The memory 803 can include volatile memory (volatile memory), such as random-access memory (RAM); the memory can also include non-volatile memory (non-volatile memory), such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 803 can also include a combination of the above types of memory. The memory 803 may be a single memory or may include multiple memories. For example, the memory 803 is used to store various data, such as the information of the first optical terminal 02 and the information of the second optical terminal 03 described above.

[0199] In one implementation, memory 803 stores computer-readable instructions, which include multiple software modules. Processor 801 invokes these computer-readable instructions to execute the functions of the processing modules in optical headend 01. For example, processor 801 invokes these computer-readable instructions to execute the functions of processing module 601 in communication device 60 shown in FIG6 . For details, please refer to the description related to FIG6 above and will not be repeated here.

[0200] FIG9 is a schematic diagram of the structure of a chip 90 provided in this embodiment. The chip 90 includes at least one logic circuit 901 and an input / output interface 902. The input / output interface 902 is used to input electrical signals to be processed and processed electrical signals. By way of example, the chip may be a system on chip (SOC), although this is not specifically limited here.

[0201] In one implementation, the logic circuit 901 is used to perform some or all of the functions of the optical headend 01 shown in FIG2A . In another implementation, the logic circuit 901 is used to perform some or all of the functions of the first optical terminal 02 shown in FIG2A . In another implementation, the logic circuit 901 is used to perform some or all of the functions of the second optical terminal 03 shown in FIG2A .

[0202] Optionally, the chip 90 also includes a storage medium 903, which stores computer-readable instructions so that the chip 90 performs part or all of the functions of the communication device 50 shown in Figure 5, or so that the chip 90 performs part or all of the functions of the communication device 60 shown in Figure 6.

[0203] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication system, characterized in that: include: An optical head end, a first optical terminal, and n second optical terminals managed by the first optical terminal, the first optical terminal is connected to the optical head end through an optical port, the n second optical terminals are connected in series through an electrical port, the first optical terminal is connected to the n second optical terminals connected in series through the electrical port, and n is an integer greater than 0; The optical head end is used to send a data frame to the first optical terminal, wherein the data frame includes data of at least one second optical terminal among the n second optical terminals; The first optical terminal is used to obtain the data frame through the optical port and send the data frame to the second optical terminal connected to the first optical terminal through the electrical port; Each second optical terminal among the at least one second optical terminal is used to receive a data frame from the first optical terminal or from a second optical terminal at an upper level through the electrical port, obtain the data of the second optical terminal in the data frame, and send the data frame to a second optical terminal at a lower level connected to the second optical terminal.

2. The communication system according to claim 1, characterized in that The data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals; The first optical terminal is further used to perform data interaction based on the data processing field corresponding to the first optical terminal in the data frame; Each second optical terminal among the n second optical terminals is specifically configured to perform data interaction based on a data processing field corresponding to the second optical terminal in a received data frame.

3. The communication system according to claim 2, characterized in that: The second optical terminal is further used to transparently transmit the data frame after data interaction to the first optical terminal through at least one second optical terminal; The first optical terminal is also used to send the data frame after performing data interaction to the optical head end through the optical port.

4. The communication system according to any one of claims 1 to 3, characterized in that: The frame header of the data frame includes the management identifier of each of the second optical terminals; The first optical terminal is specifically configured to send a data frame to the second optical terminal in a direct forwarding manner based on a management identifier of the second optical terminal connected to the first optical terminal; Each of the n second optical terminals is specifically configured to send data frames to the next-level second optical terminal in a direct forwarding manner based on a management identifier of the next-level second optical terminal connected to the second optical terminal.

5. The communication system according to claim 4, characterized in that: The frame header of the data frame also includes a management identifier of the first optical terminal.

6. The communication system according to claim 4 or 5, characterized in that: The frame header of the data frame also includes first indication information, and the first indication information is used to instruct the first optical terminal to send a data frame to a second optical terminal connected to the first optical terminal.

7. The communication system according to any one of claims 2 to 6, characterized in that: The data field of the data frame includes a management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate a position of a data processing field corresponding to each second optical terminal in the data field; Each of the n second optical terminals is specifically configured to determine a position of a data processing field corresponding to the second optical terminal in the data domain based on a management identifier of the second optical terminal in the data domain.

8. The communication system according to claim 7, characterized in that: The data field of the data frame further includes a management identifier of the first optical terminal, and the management identifier of the first optical terminal in the data field is used to indicate a position of a data processing field corresponding to the first optical terminal in the data field; The first optical terminal is specifically configured to determine a position of a data processing field corresponding to the first optical terminal in the data domain based on a management identifier of the first optical terminal in the data domain.

9. The communication system according to claim 7 or 8, characterized in that: The data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

10. The communication system according to claim 9, characterized in that: The data processing type includes read processing and / or write processing, and different data processing types correspond to different positions in the data processing field; The second optical terminal is specifically configured to write data in a data processing field whose data processing type is read processing based on the second indication information; and / or The second optical terminal is specifically used to read data in a data processing field whose data processing type is write processing based on the second indication information.

11. The communication system according to any one of claims 1 to 10, characterized in that: The first optical terminal is further used to obtain information of the n second optical terminals, and register the first optical terminal and the n second optical terminals at the optical head end based on the information of the first optical terminal and the information of the n second optical terminals; The optical head end is further used to determine the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals based on the information of the first optical terminal and the information of the n second optical terminals obtained from the first optical terminal.

12. The communication system according to claim 11, characterized in that: The optical head end is further used to send the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals to the first optical terminal; The first optical terminal is further used to broadcast the management identifiers of the n second optical terminals to the n second optical terminals.

13. The communication system according to claim 11 or 12, characterized in that: The information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal and electrical port information of the second optical terminal.

14. The communication system according to any one of claims 11 to 13, characterized in that: The optical head end is also used to generate a management table, which includes information about the first optical terminal, information about each of the second optical terminals, a management identifier of the first optical terminal, a management identifier of each of the second optical terminals, and third indication information, wherein the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal.

15. The communication system according to claim 14, characterized in that: The communication system further comprises a control device and a field device, wherein the control device is connected to the optical head end, the first optical terminal is connected to at least one field device, and each of the second optical terminals is connected to at least one field device; The optical head end is further used to obtain the data of the at least one second optical terminal from the control device, and generate the data frame based on the data of the at least one second optical terminal and the management table; The first optical terminal is further used to exchange data with at least one field device connected to the first optical terminal; The second optical terminal is further used to exchange data with at least one field device connected to the second optical terminal.

16. The communication system according to claim 15, characterized in that: The optical head end is connected to the optical port of the first optical terminal through a split optical network. The communication system also includes a third optical terminal. The optical head end is connected to the optical port of the third optical terminal through the split optical network. The third optical terminal is connected to at least one of the field devices.

17. An optical headend, the optical headend is applied to a communication system, the communication system comprises the optical headend, a first optical terminal and n second optical terminals managed by the first optical terminal, the first optical terminal is connected to the optical headend via an optical port, the n second optical terminals are connected in series via an electrical port, the first optical terminal is connected to the n second optical terminals connected in series via an electrical port, and n is an integer greater than 0, characterized in that: include: A transceiver module, used to obtain data of at least one second optical terminal among the n second optical terminals; A processing module, configured to generate a data frame based on data of at least one second optical terminal among the n second optical terminals, wherein the data frame includes data of at least one second optical terminal among the n second optical terminals; The transceiver module is further used to send the data frame to the first optical terminal.

18. The optical head end according to claim 17, characterized in that: The data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals; The transceiver module is also used to receive data frames after data interaction is performed from the first optical terminal, and at least one data processing field in the data frame after data interaction has performed data interaction with the optical terminal corresponding to the data processing field, and the optical terminal corresponding to the data processing field includes the first optical terminal and / or the second optical terminal.

19. The optical head end according to claim 17 or 18, characterized in that: The transceiver module is further used to obtain information about the first optical terminal and information about the n second optical terminals from the first optical terminal; The processing module is further used to determine the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals based on the information of the first optical terminal and the information of the n second optical terminals; The transceiver module is further used to send the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals to the first optical terminal.

20. The optical head end according to claim 19, characterized in that: The information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal and electrical port information of the second optical terminal.

21. The optical head end according to claim 19 or 20, characterized in that: The processing module is also used to generate a management table, which includes information about the first optical terminal, information about each of the second optical terminals, a management identifier of the first optical terminal, a management identifier of each of the second optical terminals, and third indication information, wherein the third indication information is used to indicate that the second optical terminal is managed by the first optical terminal.

22. The optical head end according to claim 21, characterized in that: The communication system further comprises a control device and a field device, wherein the control device is connected to the optical head end, the first optical terminal is connected to at least one field device, and each of the second optical terminals is connected to at least one field device; The transceiver module is specifically configured to obtain data of the at least one second optical terminal from the control device; The processing module is specifically configured to generate the data frame based on the data of the at least one second optical terminal and the management table.

23. A first optical terminal, the first optical terminal is applied to a communication system, the communication system comprises an optical head end, the first optical terminal and n second optical terminals managed by the first optical terminal, the first optical terminal is connected to the optical head end through an optical port, the n second optical terminals are connected in series through an electrical port, the first optical terminal is connected to the n second optical terminals connected in series through the electrical port, and n is an integer greater than 0, characterized in that: include: a transceiver module, configured to obtain a data frame from the optical head end through the optical port, wherein the data frame includes data of at least one second optical terminal among the n second optical terminals; The transceiver module is further used to send data frames to a second optical terminal connected to the first optical terminal through the electrical port.

24. The first optical terminal according to claim 23, characterized in that: The data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals; The first optical terminal also includes a processing module; The processing module is used to perform data interaction based on the data processing field corresponding to the first optical terminal in the data frame; The transceiver module is specifically used to send the data frame after executing data interaction to the second optical terminal connected to the first optical terminal through the electrical port.

25. The first optical terminal according to claim 23 or 24, characterized in that: The transceiver module is also used for: receiving, through the electrical port, a data frame after data interaction is performed from the second optical terminal; The data frame after performing data interaction is sent to the optical head end through the optical port.

26. The first optical terminal according to any one of claims 23 to 25, characterized in that: The frame header of the data frame includes the management identifier of each of the second optical terminals; The transceiver module is specifically configured to forward data frames to the second optical terminal in a direct forwarding manner based on a management identifier of the second optical terminal connected to the first optical terminal.

27. The first optical terminal according to claim 25 or 26, characterized in that: The frame header of the data frame also includes first indication information, and the first indication information is used to instruct the first optical terminal to send a data frame to a second optical terminal connected to the first optical terminal.

28. The first optical terminal according to any one of claims 24 to 27, characterized in that: The data field of the data frame includes the management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate the position of the data processing field corresponding to each second optical terminal in the data field.

29. The first optical terminal according to claim 28, characterized in that: The data field of the data frame further includes a management identifier of the first optical terminal, and the management identifier of the first optical terminal in the data field is used to indicate a position of a data processing field corresponding to the first optical terminal in the data field; The processing module is specifically configured to determine a position of a data processing field corresponding to the first optical terminal in the data domain based on the management identifier of the first optical terminal in the data domain.

30. The first optical terminal according to claim 28 or 29, characterized in that: The data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

31. The first optical terminal according to any one of claims 23 to 30, characterized in that: The transceiver module is further used to obtain information of the n second optical terminals; The processing module is further used to register the first optical terminal and the n second optical terminals at the optical head end based on the information of the first optical terminal and the information of the n second optical terminals; The transceiver module is also used to receive the management identifier of the first optical terminal and the management identifier of each of the n second optical terminals from the optical head end; and broadcast the management identifiers of the n second optical terminals to the n second optical terminals.

32. The first optical terminal according to claim 31, characterized in that: The information of each second optical terminal includes bandwidth information of the second optical terminal, a physical address of the second optical terminal and electrical port information of the second optical terminal.

33. A second optical terminal, the second optical terminal is applied to a communication system, the communication system comprises an optical head end, a first optical terminal and n second optical terminals managed by the first optical terminal, the first optical terminal is connected to the optical head end through an optical port, the n second optical terminals are connected in series through an electrical port, the first optical terminal is connected to the n second optical terminals connected in series through the electrical port, and n is an integer greater than 0, characterized in that: include: A transceiver module, used for receiving a data frame from the first optical terminal or from a second optical terminal at an upper level through the electrical port; A processing module, used for acquiring the data of the second optical terminal in the data frame; The transceiver module is further used to send data frames to the next-level second optical terminal connected to the second optical terminal.

34. The second optical terminal according to claim 33, characterized in that: The data frame includes a data processing field for the first optical terminal and a data processing field for each of the n second optical terminals; The processing module is specifically configured to perform data interaction based on a data processing field corresponding to the second optical terminal in a received data frame; The transceiver module is specifically used to send the data frame after executing data interaction to the next-level second optical terminal connected to the second optical terminal.

35. The second optical terminal according to claim 34, characterized in that: The transceiver module is further used to transparently transmit the data frame after data interaction to the first optical terminal through at least one second optical terminal.

36. The second optical terminal according to any one of claims 33 to 35, characterized in that: The frame header of the data frame includes the management identifier of each of the second optical terminals; The transceiver module is specifically used to forward the data frame to the next-level second optical terminal in a direct forwarding manner based on the management identifier of the next-level second optical terminal connected to the second optical terminal.

37. The second optical terminal according to claim 35 or 36, characterized in that: The frame header of the data frame also includes first indication information, and the first indication information is used to instruct the first optical terminal to send a data frame to a second optical terminal connected to the first optical terminal.

38. The second optical terminal according to any one of claims 34 to 37, characterized in that: The data field of the data frame includes a management identifier of each second optical terminal, and the management identifier of each second optical terminal in the data field is used to indicate a position of a data processing field corresponding to each second optical terminal in the data field; The processing module is specifically configured to determine the position of the data processing field corresponding to the second optical terminal in the data domain based on the management identifier of the second optical terminal in the data domain.

39. The second optical terminal according to claim 38, characterized in that: The data field of the data frame also includes a management identifier of the first optical terminal. The management identifier of the first optical terminal in the data field is used to indicate the position of a data processing field corresponding to the first optical terminal in the data field.

40. The second optical terminal according to claim 38 or 39, characterized in that: The data field of the data frame also includes second indication information of each second optical terminal, and the second indication information is used to indicate at least one data processing type of the data processing field corresponding to the second optical terminal and the length of the data processing field of each data processing type.

41. A communication device, characterized in that: It comprises a processing module, and the processing module is used to implement the function of the optical head end as described in any one of claims 17 to 22.

42. A communication device, characterized in that: It comprises a processing module, wherein the processing module is used to implement the function of the first optical terminal as described in any one of claims 23 to 32; or, to implement the function of the second optical terminal as described in any one of claims 33 to 40.

Citation Information

Patent Citations

  • Communication system and communication device

    CN118677531A

  • Communication method and related equipment

    CN115225153A

  • Equipment control system, method and device based on optical communication

    CN115225987A

  • Implementing method of one-way transmission from Ethernet optical transmitting port to optical transmitting port and its optical fibre transceiver

    CN1956361A

  • Optical communication device and optical communication method

    US20170338891A1