Optical bus communication method and communication device

Through the exchange packet communication between the main optical terminal and the slave optical terminal, the problem of limited scalability of optical terminals in the optical bus network is solved, and more efficient communication performance and real-time performance are achieved.

WO2024230314A1PCT designated stage expired Publication Date: 2024-11-14HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081538
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-10
Filing Date
2024-03-13
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

The scalability of optical terminals in optical bus networks is limited, resulting in limited application scenarios and cannot effectively meet the connection needs of multiple optical terminals.

Method used

Through the exchange message communication between the main optical terminal and the slave optical terminal, data interaction is realized, the demand for uplink time slots and optical path power is reduced, the number of connections of the optical terminal is increased, and the probability of conflict is reduced through the transmission path of the exchange message. Reduce communication delay.

Benefits of technology

It improves the scalability of optical terminals in optical bus networks, reduces communication delay and conflict time overhead, and improves communication performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081538_14112024_PF_FP_ABST
    Figure CN2024081538_14112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an optical bus communication method and a communication device, capable of improving the expandability of an optical terminal in an optical bus network. The optical bus network comprises an optical head end, a master optical terminal connected to the optical head end, and at least one slave optical terminal networked to the master optical terminal. The method comprises: a master optical terminal sends an exchange packet to a target slave optical terminal among at least one slave optical terminal, and receives an exchange packet returned by the target slave optical terminal, wherein the exchange packet comprises instruction information, and the instruction information is used for instructing to read, from a data region of the exchange packet, data that is from the optical head end, and / or to write, to the data region of the exchange packet, data to be reported to the optical head end. That is to say, an expanded slave optical terminal can reuse an uplink / downlink optical path between a master optical terminal and an optical head end, and only performs a data exchange operation and a forwarding operation on an exchange packet, thereby reducing the probability of simultaneous transmission of exchange packets on a same transmission link, i.e., improving the communication performance between the expanded slave optical terminal and the master optical terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Optical bus communication method and communication device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on May 10, 2023, with application number 202310525798.0 and application name “Optical Bus Communication Method and Communication Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to an optical bus communication method and a communication device. Background Art

[0003] In the field bus, to meet the low latency and high bandwidth requirements of services such as video and control mixed transmission, a field bus based on optical communication (also known as an optical bus (OptiXBus)) can be used. The optical head end (OHE) in the optical bus network can use an optical distribution network (ODN) to connect multiple optical terminators (OTs), thereby enabling interaction between the controller and multiple field devices.

[0004] However, in the aforementioned optical bus network, the number of optical terminals that can be connected to a single optical headend is limited, which restricts its application scenarios. Therefore, how to improve the scalability of optical terminals in optical bus networks is an urgent problem to be solved.

[0005] Summary of the Invention

[0006] The optical bus communication method and communication device provided in the embodiments of the present application can improve the scalability of optical terminals in an optical bus network.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, an optical bus communication method is provided, wherein the optical bus network includes an optical head end, a master optical terminal connected to the optical head end, and at least one slave optical terminal networked with the master optical terminal. The method can be executed by the master optical terminal, or by a component of the master optical terminal, such as a processor, chip, or chip system of the master optical terminal, or by a logic module or software that can realize all or part of the functions of the master optical terminal. The following is an explanation of the method being executed by the master optical terminal. The method includes: the master optical terminal sends an exchange message to a target slave optical terminal among at least one slave optical terminal, and receives an exchange message returned by the target slave optical terminal. The exchange message includes indication information corresponding to the target slave optical terminal, and the indication information is used to indicate: reading data from the optical head end from the data area of ​​the exchange message, and / or writing data reported to the optical head end into the data area of ​​the exchange message.

[0009] Since, in the embodiment of the present application, the extended slave optical terminal communicates and interacts with the optical head end through the master optical terminal, the slave optical terminal can reuse the uplink and downlink optical paths between the master optical terminal and the optical head end, that is, the optical head end does not need to allocate uplink time slots for the extended slave optical terminal, nor does it need to occupy the optical path power budget of the downlink optical path, so that one optical head end can be connected to a larger number of slave optical terminals. Furthermore, since the data interaction between the extended slave optical terminal and the master optical terminal can be achieved by transmitting an exchange message once, that is, the slave optical terminal reads data and / or writes data according to the instruction information in the exchange message and forwards the exchange message, the probability of multiple messages appearing on the transmission link at the same time can be reduced, that is, by reducing the probability of conflicts, the time overhead caused by conflicts can be reduced, that is, the communication delay between the master optical terminal and the slave optical terminal is reduced, the real-time performance of the communication is improved, and thus the communication performance between the extended slave optical terminal and the optical head end is improved. Therefore, the optical bus communication method provided in the embodiment of the present application can improve the scalability of optical terminals in the optical bus network.

[0010] In conjunction with the first aspect above, in one possible implementation, a master optical terminal sends an exchange message to a target slave optical terminal among at least one slave optical terminal, including: the master optical terminal determines a period for sending the exchange message based on a period for obtaining reported data from an optical head end; the master optical terminal sends an exchange message to the target slave optical terminal based on the period for the exchange message, wherein the instruction information corresponding to the target slave optical terminal in the exchange message is used to instruct: writing the data reported to the optical head end into the data area of ​​the exchange message. The period for sending the exchange message may be less than or equal to the period for obtaining reported data from the optical head end. In other words, the master optical terminal may periodically obtain data reported by the target slave optical terminal to the optical head end by periodically sending exchange messages to the target slave optical terminal. Furthermore, the master optical terminal may store the obtained data reported by the target slave optical terminal to the optical head end, and return the data reported by the target slave optical terminal to the optical head end in response to a request from the optical head end; alternatively, the master optical terminal may proactively send data reported by the target slave optical terminal to the optical head end.

[0011] It should be understood that since the master optical terminal is networked with at least one slave optical terminal, when the optical head-end accesses the target slave optical terminal, exchange messages need to be transmitted between the master optical terminal and the target slave optical terminal. However, the transmission of exchange messages will pass through other slave optical terminals, which will cause delays. Therefore, the delay of the optical head-end accessing the master optical terminal is shorter than the delay of the optical head-end accessing the target slave optical terminal. In other words, the master optical terminal actively sends exchange messages to the target slave optical terminal to obtain data reported by the target slave optical terminal to the optical head-end before the optical head-end accesses the target slave optical terminal, thereby avoiding the above-mentioned delays.

[0012] In combination with the above-mentioned first aspect, in a possible implementation, the method provided by the first aspect also includes: the master optical terminal receives a downlink message from the optical head end, and the downlink message includes data from the optical head end that needs to be read by the target slave optical terminal; accordingly, the master optical terminal sends a message to the target slave optical terminal among the at least one slave optical terminal, including: the master optical terminal sends an exchange message to the target slave optical terminal according to the downlink message, and the indication information corresponding to the target slave optical terminal in the exchange message is used to indicate that the data from the optical head end is read from the data area of ​​the exchange message, and the data area of ​​the exchange message includes data from the optical head end that needs to be read by the target slave optical terminal.

[0013] In combination with the above-mentioned first aspect, in a possible implementation method, the method provided by the first aspect also includes: the main optical terminal sends an uplink message to the optical head end according to the exchange message returned by the target slave optical terminal, and the uplink message includes the data reported to the optical head end written by the target slave optical terminal.

[0014] In a second aspect, an optical bus communication method is provided, applied to an optical bus network. The optical bus network includes an optical headend, a master optical terminal connected to the optical headend, and at least one slave optical terminal networked with the master optical terminal, wherein the at least one slave optical terminal includes a target slave optical terminal. The method can be executed by the target slave optical terminal, or by a component of the target slave optical terminal, such as a processor, chip, or chip system of the target slave optical terminal. It can also be implemented by a logic module or software that implements all or part of the functions of the target slave optical terminal. The following description uses the method executed by the target slave optical terminal as an example. The method includes: the target slave optical terminal receives an exchange message from the master optical terminal, the exchange message including indication information corresponding to the target slave optical terminal; the target slave optical terminal reads data from the optical headend from a data area of ​​the exchange message based on the indication information, and / or writes data to be reported to the optical headend into the data area of ​​the exchange message; and the target slave optical terminal returns the exchange message processed according to the indication information to the master optical terminal.

[0015] Among them, the technical effects of the second aspect can refer to the above-mentioned first aspect and will not be repeated here.

[0016] In conjunction with the first or second aspect above, in one possible implementation, the indication information corresponding to the target slave optical terminal may include address information of the target slave optical terminal and indication information corresponding to the address information of the target slave optical terminal. The address information of the target slave optical terminal may be used to address the target slave optical terminal, thereby determining the indication information corresponding to the target slave optical terminal in the exchange message. The address information of the target slave optical terminal may have a one-to-one correspondence with the ID of the target slave optical terminal. For example, the address information of the target slave optical terminal may be the logical address of the target slave optical terminal.

[0017] Furthermore, the exchange message may include: address information of the target slave optical terminal, indication information corresponding to the target slave optical terminal, and a data area corresponding to the target slave optical terminal. The address information of the target slave optical terminal may also be used by the target slave optical terminal to determine the data area corresponding to the target slave optical terminal in the exchange message.

[0018] In conjunction with the first or second aspect above, in one possible implementation, an exchange message may include a message header and one or more sub-messages. The message header may include information such as the data length of the sub-messages in the exchange message and the type of the exchange message. The type of the exchange message may indicate that the exchange message is used for communication with a slave optical terminal. One sub-message corresponds to one slave optical terminal.

[0019] In conjunction with the first or second aspect above, in one possible implementation, the data area of ​​the exchange message includes a data area corresponding to the target slave optical terminal; the instruction information corresponding to the target slave optical terminal is used to instruct the reading of data from the optical head end from the data area of ​​the exchange message, and / or the writing of data reported to the optical head end into the data area of ​​the exchange message, including: the instruction information corresponding to the target slave optical terminal is used to instruct the reading of data from the optical head end from the data area corresponding to the target slave optical terminal, and / or the writing of data reported to the optical head end into the data area corresponding to the target slave optical terminal. In other words, when the target slave optical terminal reads data and / or writes data according to the instruction information, it needs to perform operations within its corresponding data area.

[0020] It should be understood that the data read from the target slave optical terminal's corresponding data area according to the instruction information may also include data other than data from the optical head end. For example, the instruction information corresponding to the target slave optical terminal is used to instruct the reading of first data from the data area corresponding to the target slave optical terminal. This first data includes data from the optical head end and data from the master optical terminal. The data from the master optical terminal may include instruction information and configuration information from the master optical terminal for the target slave optical terminal.

[0021] It should be understood that the data written by the target slave optical terminal in its corresponding data area according to the instruction information may also include data other than the data reported to the optical head end. For example, the instruction information corresponding to the target slave optical terminal is used to instruct the writing of second data in the data area corresponding to the target slave optical terminal, and the second data includes the data reported to the optical head end and the data reported to the master optical terminal.

[0022] In conjunction with the first or second aspect above, in one possible implementation, the target slave optical terminal may be a slave optical terminal among the at least one slave optical terminal that needs to read data from the optical head end. It will be understood that because the master optical terminal can receive downlink messages from the optical head end, it can determine which of the at least one slave optical terminal is the target slave optical terminal based on the data carried in the downlink messages.

[0023] Furthermore, the indication information corresponding to the target slave optical terminal can also be used to instruct the target slave optical terminal to write the data reported to the optical head end into the data area of ​​the exchange message. In other words, the master optical terminal can complete data exchange with the target slave optical terminal by sending a single exchange message. This can reduce communication redundancy and the delay in the target slave optical terminal reporting data to the optical head end, thereby improving the real-time performance of the optical head end in obtaining feedback data from the target slave optical terminal.

[0024] In combination with the first or second aspect above, in a possible implementation, the target slave optical terminal may be the slave optical terminal expected by the master optical terminal. The indication information corresponding to the target slave optical terminal may be used to instruct the target slave optical terminal to write the data reported to the optical head end in the data area of ​​the exchange message. It can be understood that, as described above with respect to the industrial bus, in some business scenarios (such as sensor monitoring or data acquisition, etc.), the slave optical terminal needs to periodically report data, and then the master optical terminal actively sends an exchange message to the slave optical terminal expected by the master optical terminal to obtain the data reported to the optical head end.

[0025] In conjunction with the first or second aspect above, in one possible implementation, the transmission path of the exchange message includes a transmission path of the exchange message between each of the at least one slave optical terminal. In other words, the transmission of the exchange message between the master optical terminal and the target slave optical terminal needs to traverse each of the at least one slave optical terminal.

[0026] Furthermore, the exchange message includes indication information corresponding to the target slave optical terminal, including: the exchange message includes indication information corresponding to each slave optical terminal in at least one slave optical terminal. The indication information corresponding to each slave optical terminal is used to indicate: the data reported to the optical head end is written in the data area corresponding to the slave optical terminal. It should be understood that for the optical head end, the master optical terminal and the slave optical terminal are both objects that need to be managed, and are nodes at the same level, that is, the master optical terminal is only responsible for forwarding the data corresponding to the slave optical terminal, and cannot parse the information carried by the data corresponding to the slave optical terminal, and thus the master optical terminal cannot predict which of each slave optical terminal will report data to the optical head end. In other words, the transmission path of the exchange message will traverse the characteristics of each slave optical terminal, and through the indication information corresponding to each slave optical terminal in the exchange message, the master optical terminal can obtain the data reported to the optical head end corresponding to each slave optical terminal by sending a single exchange message, thereby reducing the redundancy of communication.

[0027] In conjunction with the first or second aspect above, in one possible implementation, the data area of ​​the exchanged message includes a data area corresponding to each of at least one slave optical terminal. In other words, a slave optical terminal performs read and write operations within its own data area, thereby isolating the data areas of different slave optical terminals.

[0028] In combination with the first aspect or the second aspect above, in a possible implementation, the transmission path of the exchanged message is determined based on routing information, and the routing information is pre-configured. Specifically, the routing information is determined based on the connection order of the hardware ports when the master optical terminal is networked with at least one slave optical terminal. In other words, when the master optical terminal and at least one slave optical terminal complete the networking, the transmission path of the exchanged message has been determined. In other words, the transmission path of the exchanged message is fixed each time, and thus the delay is relatively fixed, that is, the jitter is small, which facilitates compensation for the delay. Furthermore, since the transmission path between the master optical terminal and the slave optical terminal is fixed, the optical head end accessing the slave optical terminal through the master optical terminal will not add additional jitter compared to the optical head end accessing the master optical terminal.

[0029] In a third aspect, a communication device is provided for implementing the various methods described above. The communication device may be the master optical terminal described in the first aspect or any of its implementations, or a device including the master optical terminal, or a device included in the master optical terminal, such as a chip; or the communication device may be the target slave optical terminal described in the second aspect or any of its implementations, or a device including the target slave optical terminal, or a device included in the target slave optical terminal, such as a chip. The communication device includes modules, units, or means corresponding to the implementation of the above methods, and the modules, units, or means may be implemented by hardware, software, or by executing corresponding software implementations in hardware. The hardware or software includes one or more modules or units corresponding to the above functions.

[0030] In some possible designs, the communication device may include a processing module and a transceiver module. The transceiver module, also referred to as a transceiver unit, is configured to implement the transmitting and / or receiving functions described in any of the above aspects and any possible implementations thereof. The transceiver module may be comprised of a transceiver circuit, a transceiver, a transceiver, or a communication interface. The processing module may be configured to implement the processing functions described in any of the above aspects and any possible implementations thereof.

[0031] In some possible designs, the transceiver module includes a sending module and a receiving module, which are respectively used to implement the sending and receiving functions in any of the above aspects and any possible implementation methods.

[0032] In a fourth aspect, a communication device is provided, comprising: a processor and a memory; the memory is configured to store computer instructions, and when the processor executes the instructions, the communication device performs the method described in any of the above aspects. The communication device may be the master optical terminal described in the first aspect or any implementation thereof, or a device including the master optical terminal, or a device included in the master optical terminal, such as a chip; or the communication device may be the target slave optical terminal described in the second aspect or any implementation thereof, or a device including the target slave optical terminal, or a device included in the target slave optical terminal, such as a chip.

[0033] In a fifth aspect, a communication device is provided, comprising: a processor and a communication interface; the communication interface is configured to communicate with a module external to the communication device; the processor is configured to execute a computer program or instruction to cause the communication device to perform the method described in any of the above aspects. The communication device may be the master optical terminal described in the first aspect or any implementation thereof, or a device including the master optical terminal, or a device included in the master optical terminal, such as a chip; or the communication device may be the target slave optical terminal described in the second aspect or any implementation thereof, or a device including the target slave optical terminal, or a device included in the terminal device, such as a chip.

[0034] In a sixth aspect, a communication device is provided, comprising: at least one processor; the processor is configured to execute a computer program or instruction stored in a memory, so that the communication device performs the method described in any of the above aspects. The memory may be coupled to the processor, or may be independent of the processor. The communication device may be the master optical terminal described in the first aspect or any implementation thereof, or a device including the master optical terminal, or a device included in the master optical terminal, such as a chip; or the communication device may be the target slave optical terminal described in the second aspect or any implementation thereof, or a device including the target slave optical terminal, or a device included in the target slave optical terminal, such as a chip.

[0035] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program or instruction. When the computer-readable storage medium is run on a communication device, the communication device can execute the method described in any of the above aspects or any of its implementation methods.

[0036] In an eighth aspect, a computer program product comprising instructions is provided, which, when executed on a communication device, enables the communication device to execute the method described in any one of the above aspects or any one of its implementations.

[0037] In a ninth aspect, a communication device is provided (for example, the communication device may be a chip or a chip system), which includes a processor for implementing the functions involved in any of the above aspects or any of its implementation methods.

[0038] In some possible designs, the communication device includes a memory for storing necessary program instructions and data.

[0039] In some possible designs, when the device is a chip system, it can be composed of a chip or include a chip and other discrete devices.

[0040] It can be understood that when the communication device provided in any one of the third to ninth aspects is a chip, the above-mentioned sending action / function can be understood as output, and the above-mentioned receiving action / function can be understood as input.

[0041] Among them, the technical effects brought about by any design method in the third to ninth aspects can refer to the technical effects brought about by different design methods in the above-mentioned first or second aspects, and will not be repeated here.

[0042] In a tenth aspect, a communication method is provided, which includes the method described in the first aspect or any implementation thereof, and the method described in the second aspect or any implementation thereof.

[0043] In an eleventh aspect, a communication system is provided, which includes the master optical terminal described in the above aspect and the target slave optical terminal described in the above aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] FIG1 is a schematic diagram of an EtherCAT network architecture provided in an embodiment of the present application;

[0045] FIG2 is a schematic diagram of an optical bus network architecture according to an embodiment of the present application;

[0046] FIG3 is a second schematic diagram of an optical bus network architecture provided in an embodiment of the present application;

[0047] FIG4 is a third schematic diagram of an optical bus network architecture provided in an embodiment of the present application;

[0048] 5 is a schematic diagram of a connection structure between a master optical terminal and multiple slave optical terminals provided in an embodiment of the present application;

[0049] FIG6 is a schematic diagram of a logical functional structure of an optical head end provided in an embodiment of the present application;

[0050] FIG7 is a schematic diagram of the logical functional structure of an optical terminal provided in an embodiment of the present application;

[0051] FIG8 is a schematic diagram of a cascade interface logic function structure provided by an embodiment of the present application;

[0052] FIG9 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0053] FIG10 is a flow chart of an optical bus communication method provided in an embodiment of the present application;

[0054] FIG11 is a schematic diagram of an exchange message structure provided in an embodiment of the present application;

[0055] FIG12 is a second schematic diagram of an exchange message structure provided in an embodiment of the present application;

[0056] 13 is a schematic diagram of a transmission flow of exchanging messages between a master optical terminal and a slave optical terminal according to an embodiment of the present application;

[0057] FIG14 is a schematic structural diagram of a main optical terminal provided in an embodiment of the present application;

[0058] FIG15 is a schematic structural diagram of a target slave optical terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] To facilitate understanding of the technical solutions provided by the embodiments of this application, a brief introduction to the relevant technologies of this application is first given. The brief introduction is as follows:

[0060] First, fieldbus:

[0061] A fieldbus is a digital communication system used between a controller and multiple field devices. The controller serves as the management center for the entire fieldbus network, managing and maintaining multiple field devices. The controller can be a programmable logic controller (PLC); alternatively, it can be a device with computing capabilities other than a PLC, such as a motion controller. Field devices can include motors, drives, actuators, robotics, sensors, and other input / output (I / O) devices.

[0062] Currently, fieldbus technologies can employ open architectures based on Ethernet, such as Ethernet control automation technology (EtherCAT). As shown in Figure 1, an EtherCAT network architecture includes a controller and multiple field devices (e.g., field devices #1 to #12 in Figure 1). The controller is referred to as the master, and the field devices are referred to as slaves. The topology formed by the master and multiple slaves can be star, tree, or daisy chain.

[0063] Furthermore, EtherCAT uses standard Ethernet data frames and a physical layer that complies with the Ethernet standard (i.e., Institute of Electrical and Electronics Engineers (IEEE) 802.3). EtherCAT data frames are generated by a controller and transmitted serially.

[0064] However, because data frames incur latency (e.g., 100-500ns) when passing through field devices, and because these frames must pass through all field devices, latency accumulates as the number of field devices increases. Therefore, when there are many field devices, communication between the controller and the field devices can experience significant latency. Furthermore, EtherCAT's bandwidth is typically in the 100M range, which cannot meet the high-bandwidth network requirements of applications such as machine vision and motion control.

[0065] To meet the needs of low latency and large bandwidth, optical bus can provide lower latency and larger bandwidth. The following introduces the optical bus network architecture.

[0066] Second, optical bus network architecture:

[0067] Optical buses can be used for digital communication between controllers and multiple field devices in business scenarios such as industrial sites, smart homes, or building automation. Optical buses used in industrial sites are also called industrial optical buses (IOBs). In an optical bus network architecture, since a single optical headend can connect to multiple optical terminals via a splitter network, known as point-to-multipoint (P2MP), the optical bus network architecture enables the controller to send information to multiple field devices in parallel, allowing multiple field devices to share bandwidth without increasing overall communication latency as the number of field devices increases.

[0068] The optical bus network architecture is introduced below with reference to FIG2 and FIG3.

[0069] For example, FIG2 is a schematic diagram of an optical bus network architecture provided by an embodiment of the present application. As shown in FIG2 , the optical bus network architecture may include: a controller, an optical communication system, and multiple field devices. Among them, the optical communication system may include: an optical head end, a splitting network, and an optical terminal. The controller can be used to manage the optical head end, the optical terminal, and the field devices. The optical terminal may correspond to one or more field devices. The splitting network includes a trunk optical fiber, a splitter, and a branch optical fiber. The splitter (or optical splitter) is used for coupling and distributing optical signals. For example, the splitter can be an optical fiber junction device having one or more input ends and multiple output ends. Specifically, the optical head end can be connected to the splitter through the trunk optical fiber, and the splitter is connected to multiple optical terminals through multiple branch optical fibers, thereby realizing P2MP networking between an optical head end and multiple optical terminals.

[0070] Furthermore, depending on the ratio of optical signal power distribution by the optical splitter, the topology of the network between an optical headend and multiple optical terminals can be an equal-ratio optical splitting tree structure or an unequal-ratio optical splitting daisy-chain structure. The equal-ratio optical splitting tree structure can be similar to the structure of the optical communication system in Figure 2, where the optical splitter in this communication system has one input and three outputs. The input is connected to the optical headend via a trunk optical fiber, and the output is connected to optical terminals #1 to #3 via branch optical fibers. The optical splitter can distribute the power of the optical signal from the input to the three outputs in equal proportions, so that the power of the optical signals output by the three outputs is the same.

[0071] For an unequal-ratio splitting daisy-chain structure, the optical splitter can distribute the power of the optical signal from the input end to multiple output ends in unequal proportions, such as 1:2, 1:4, or 1:8. Among the multiple output ends, the output end that is allocated more power can be called a cascade end, which can be connected to other optical splitters via optical fiber; the output end that is allocated less power can be connected to an optical terminal via optical fiber.

[0072] Exemplarily, the structure of the optical communication system in the optical bus network architecture shown in FIG3 is an unequal-score splitting daisy-chain structure. As shown in FIG3 , the communication system may include optical splitters #1 to #3, and each optical splitter may include 1 input end, 1 output end, and 1 cascade end. The input end of optical splitter #1 may be connected to the optical head end, the output end of optical splitter #1 may be connected to optical terminal #1, and the cascade end of optical splitter #1 may be connected to optical splitter #2. The output end of optical splitter #2 may be connected to optical terminal #2, and the cascade end of optical splitter #2 may be connected to optical splitter #3. The output end of optical splitter #3 may be connected to optical terminal #3, and the cascade end of optical splitter #2 may be used for extended connection, such as connecting to other optical splitters or optical terminals, or may be left vacant, which is not limited in the embodiments of the present application.

[0073] It should be understood that the form and number of each structure in the optical bus network architecture shown in Figures 2 and 3 are for example only and do not constitute a limitation on the embodiments of the present application. For example, the optical head end, optical terminal, splitter, and the number of ports included in the optical splitter included in the above optical communication system are only examples. In addition, the name of each device or communication entity (or node) in the above optical communication system is only an example. The name of each device or communication entity in the specific implementation may also be other names. The embodiments of the present application do not make specific limitations on this. For example, the optical head end can also be called an optical line terminal (OLT), an optical controller, an optical master station, or an optical communication device, etc. The optical terminal can also be called an optical network terminal (ONT), an optical network unit (ONU), an optical slave station, or an optical communication device, etc.

[0074] In one possible implementation, the optical communication system may be a passive optical network (PON) system, wherein the PON system may be, for example, a gigabit capable PON (GPON) system, an Ethernet passive optical network (EPON) system, a 10 Gigabit Ethernet passive optical network (10Gb / s Ethernet passive optical network, 10G-EPON) system, a time and wavelength division multiplexing passive optical network (TWDM-PON), a 10 Gigabit passive optical network (XG-PON) system, or a 10 Gigabit symmetric passive optical network (XGS-PON) system. Of course, with the emergence of new technologies in the future, the rate of the PON system may be increased to 25Gbps, 50Gbps or even 100Gbps, so the optical communication system can also be a PON system with a higher transmission rate, which is not limited in the embodiments of the present application.

[0075] Based on the above description of the optical communication system, the working principle of the optical communication system is introduced below by taking the PON system as an example.

[0076] As shown in Figures 2 and 3, the transmission direction of data or optical signals carrying data from the optical head end to the optical terminal is called the downlink direction. The direction in which data or optical signals carrying data are transmitted from the optical terminal to the optical head end is called the uplink direction. The way in which the optical head end transmits optical signals to the optical terminal can be broadcast or unicast; the way in which the optical terminal transmits optical signals to the optical head end can be unicast. It should be understood that for the uplink direction, the PON system is a multipoint to point (MP2P) system; for the downlink direction, the PON system is a P2MP system. The optical communication system can be a single-fiber bidirectional system, and the controller and the optical head end can communicate through the service node interface (SNI), and the optical terminal and the field equipment it manages can communicate through the user network interface (UNI).

[0077] Furthermore, in the downlink direction, the signal sent by the optical headend can be split into n signals via an optical splitter with a 1:n split ratio (n is an integer greater than 1), and each signal reaches each optical terminal separately. In the uplink direction, a signal sent by any optical terminal only reaches the optical headend and not the other optical terminals. If multiple optical terminals send signals simultaneously, these multiple signals are combined into one signal by the optical splitter and reach the optical headend. This results in the superposition of optical signals of the same wavelength, which the optical headend cannot interpret after receiving. Therefore, to avoid uplink data conflicts and improve network utilization efficiency, various access methods such as time division multiple access (TMDA) can be used in the uplink direction, and uplink data from each optical terminal can be arbitrated. For example, the optical headend allocates different uplink time slots to each optical terminal, and each optical terminal transmits uplink data or uplink transmission frames in its corresponding uplink time slot to ensure that the uplink data sent by each optical terminal does not conflict or interfere during transmission. The specific PON communication mechanisms and protocols are not detailed here.

[0078] However, according to the operating principle of the aforementioned optical communication system, the number of optical terminals that can be connected to an optical headend is limited due to the limitations of the optical path power budget and configuration parameters. Specifically, in the downlink direction, the optical signal sent by the optical headend to the optical terminal reaches the optical terminal through a 1:n optical splitter and optical fiber. The transmission of the optical signal through optical components such as the optical splitter and optical fiber transmission will cause the optical signal to attenuate (i.e., optical attenuation). In theory, the optical attenuation of the optical signal cannot exceed a threshold (e.g., 28 decibels (dB), 30 dB, or 31 dB), which in turn limits the optical signal power distribution ratio (e.g., in ideal conditions, the maximum distribution ratio of the optical splitter is 1:128), thereby limiting the number of optical terminals that can be connected to the optical splitter. In the uplink direction, as described above, the optical headend needs to allocate different configuration parameters such as uplink time slots to each optical terminal to avoid conflicts. As the number of optical terminals increases, the required uplink time slots will accumulate. However, considering the ratio between uplink and downlink transmission time, the uplink transmission duration within an uplink transmission cycle is limited, that is, the number of uplink time slots within an uplink transmission cycle is limited.

[0079] In one possible implementation, multiple optical terminals are networked. The multiple optical terminals may include a master optical terminal and slave optical terminals, the master optical terminal being optically connected to the optical head end, and the slave optical terminal being connected to the optical head end through the master optical terminal. In other words, by changing the network structure in the above-mentioned optical communication system, the number of optical terminals that can be connected to an optical head end can be increased. However, since the master optical terminal and different slave optical terminals exchange data through messages, different messages need to share at least part of the transmission link, and as the number of slave optical terminals that need to exchange data increases, the probability of multiple messages existing on the shared transmission link at the same time increases, that is, the probability of conflict increases, resulting in the inability of the extended slave optical terminal to communicate normally with the master optical terminal. Therefore, the scalability of the optical terminal in the optical bus network is limited.

[0080] Based on this, embodiments of the present application provide an optical bus communication method and a communication device, which can improve the scalability of optical terminals in an optical bus network.

[0081] The following will describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In order to facilitate understanding of the embodiments of the present application, the following points are explained before introducing the embodiments of the present application.

[0082] 1. In the embodiments of the present application, for the convenience of description, when numbering is involved, the numbering can be started from 1 or from 0, or from any parameter.

[0083] 2. “Pre-defined”, “pre-configured”, or “pre-configured” can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, an optical terminal or an optical head end). The embodiments of this application do not limit the specific implementation method.

[0084] 3. The "protocol" involved in the embodiments of the present application may refer to the IEEE 802.3 protocol family, the PON protocol family in the communication field, or related protocols of the optical bus used in future communication systems, and the embodiments of the present application do not limit this.

[0085] 4. In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the device (such as the master optical terminal or the slave optical terminal) will make corresponding processing under certain objective circumstances. It does not limit the time, and does not require the device (such as the master optical terminal or the slave optical terminal) to perform a judgment action during implementation, nor does it mean that there are other limitations.

[0086] 5. In the embodiments of the present application, “sending information to… (the main optical terminal)” can be understood as the destination of the information being the main optical terminal, and can include sending information to the main optical terminal directly or indirectly. “Receiving information from… (the main optical terminal)” or “receiving information from… (the main optical terminal)” can be understood as the source of the information being the main optical terminal, and can include receiving information from the main optical terminal directly or indirectly. The information may be processed as necessary between the source and destination of the information transmission, such as format changes, but the destination can understand the valid information from the source. Similar expressions in this application can be understood similarly and will not be repeated here.

[0087] 6. In the description of the embodiments of the present application, unless otherwise specified, the "and / or" in the embodiments of the present application indicates that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. Moreover, "at least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions.

[0088] The technical solutions of the embodiments of this application can be applied to various communication systems. For example, PON communication systems, optical communication systems based on Ethernet standards, or other optical communication systems. In addition, the communication system can also be applied to future-oriented communication technologies, all of which are applicable to the technical solutions provided in the embodiments of this application. The above-mentioned communication systems applicable to this application are merely examples, and the communication systems applicable to this application are not limited to these. They are described here as a unified description and will not be repeated below.

[0089] In addition, the communication architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the communication architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0090] As shown in Figure 4, a schematic diagram of an optical bus network architecture is provided for an embodiment of the present application. The optical bus network includes an optical head end, a master optical terminal, and at least one slave optical terminal (for example, slave optical terminals #1 to #n, where n is an integer greater than 1). Among them, the optical head end and the master optical terminal are optically interconnected, for example, the optical head end and the master optical terminal are optically interconnected through the above-mentioned optical splitting network. The network structure between the master optical terminal and at least one slave optical terminal can be a star, a tree, or a daisy chain. Exemplarily, as shown in Figure 5, the master optical terminal and the slave optical terminals #1 to #n can be a cascaded structure (or a hand-in-hand structure) with each other. In one possible implementation, the optical head end is connected to the controller, and the master optical terminal and each of the at least one slave optical terminals are connected to the field equipment (not shown in Figure 4, refer to Figures 2 and 3). Furthermore, the optical head end can also be connected to other optical terminals that do not need to be networked, and the embodiment of the present application does not specifically limit this.

[0091] In one possible implementation, the master optical terminal sends an exchange message to a target slave optical terminal among at least one slave optical terminal, and receives an exchange message returned by the target slave optical terminal. The exchange message includes instruction information corresponding to the target slave optical terminal, which is used to instruct: reading data from the optical head end from the data area of ​​the exchange message, and / or writing data reported to the optical head end into the data area of ​​the exchange message.

[0092] The specific implementation of the above solution will be described in detail in the following embodiments and will not be repeated here.

[0093] Since, in the embodiment of the present application, the extended slave optical terminal communicates and interacts with the optical head end through the master optical terminal, the slave optical terminal can multiplex the uplink and downlink optical paths between the master optical terminal and the optical head end, that is, the optical head end does not need to allocate uplink time slots for the extended slave optical terminal, nor does it need to occupy the optical path power budget of the downlink optical path, so that one optical head end can be connected to a larger number of slave optical terminals. Furthermore, since the data interaction between the extended slave optical terminal and the master optical terminal is realized by transmitting exchange messages, that is, the slave optical terminal reads data and / or writes data according to the instruction information in the exchange message and forwards the exchange message, the probability of multiple messages appearing on the transmission link at the same time can be reduced, that is, by reducing the probability of conflicts, the time overhead caused by conflicts can be reduced, that is, the communication delay between the master optical terminal and the slave optical terminal is reduced, the real-time performance of the communication is improved, and thus the communication performance between the extended slave optical terminal and the optical head end is improved. Therefore, the optical bus communication method provided by the embodiment of the present application can improve the scalability of optical terminals in the optical bus network. The following describes a schematic diagram of the logical functional structure of the optical head end, the master optical terminal, and the slave optical terminal in an embodiment of the present application in conjunction with the optical bus network architecture shown in FIG. 4 and FIG. 5 .

[0094] In one possible implementation, the optical head end and the controller can be deployed in a unified system, for example, both are deployed in the optical head end. In this case, the specific implementation of the controller can be, for example, a PLC module, and the interface between the optical head end and the PLC module is an internal software transceiver interface.

[0095] In another possible implementation, the controller and the optical head end can be deployed separately, and the controller and the optical head end are connected by an external interface. In this case, the SNI interface of the optical bus system can be an Ethernet interface or a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) interface. In one possible implementation, the UNI interface can be an Ethernet interface, a serial peripheral interface (SPI) interface, a servo motor monitoring and drive interface (such as a general-purpose input / output port (GPIO), or an electrical characteristic of a balanced voltage digital interface circuit (RS-422) interface, etc.).

[0096] Furthermore, the optical head end is mainly used to complete the carrying and multiplexing of bus services / Ethernet services on the P2MP communication system. As shown in Figure 6, the optical head end may include, for example: a PLC module (optional), an optical bus module, an Ethernet service module (optional), a point-to-multipoint module, and a head-end optical module. Among them, the PLC module can be used to complete the programming and management functions of multiple industrial network controls (such as the optical head end and the optical terminals managed by the optical head end). The optical bus module can be used to complete the carrying of optical bus services, and its service data is the data of the control machine or the query / collection machine. The Ethernet service module can be used to carry the Ethernet service of the local end, and the interface provided by the module to the outside is an Ethernet interface. The point-to-multipoint module can be used to complete the link layer communication of multiple optical terminals in the point-to-multipoint network. The head-end optical module can be used to complete the transmission of optical signals by the optical head end and the reception of optical signals by the optical terminal. The light here can be single wavelength or multi-wavelength, which is not limited in this application.

[0097] The following describes the logical functional structures of the master optical terminal and the slave optical terminal in the embodiment of the present application.

[0098] The master optical terminal and the slave optical terminal can have the same modules. The master optical terminal can have additional modules for the slave optical terminal. As shown in Figure 7, both the slave optical terminal and the master optical terminal can include: a peripheral interface module, a data processing and storage module, a cascade forwarding module, a serializer / deserializer (SDS), and a cascade interface module. The peripheral interface module is used to communicate with external information, such as obtaining field device data (e.g., sensor data, analog I / O data, etc.) through the SPI interface.

[0099] The data processing and storage module is responsible for address mapping and data synchronization of local data. The module can obtain field device data through the peripheral interface module. For example, the module can exchange messages with the cascade forwarding module to exchange data. Specifically, the module can read data from the optical headend carried in exchanged messages and / or write local data into the data area of ​​the exchanged messages.

[0100] The cascade forwarding module is used for cascade protocol processing and forwarding, to realize communication with the cascaded slave optical terminals (for example, the communication between slave optical terminal #1 and slave optical terminal #2 in Figure 5), and / or, to communicate with the cascaded master optical terminal (for example, the communication between slave optical terminal #1 and master optical terminal in Figure 5), and the cascade forwarding module can obtain field device data from the data processing and storage module.

[0101] SDS is used to realize serial-to-parallel conversion of data.

[0102] The cascade interface module is used to perform signal interaction with the cascaded slave optical terminal and / or master optical terminal.

[0103] It can be understood that after the switching message enters the optical terminal through the cascade interface module, it can be converted from serial to parallel through the SDS. The converted switching message enters the cascade forwarding module, and then exchanges data with the local data in the data processing and storage module through the cascade forwarding module, and is forwarded again through the SDS and the cascade interface module.

[0104] Furthermore, for slave optical terminals, the cascade interface module can be logically divided into two types of cascade interfaces, one for connecting the slave optical terminals on both sides of the cascade (e.g., slave optical terminal #1 and slave optical terminal #3 on both sides of slave optical terminal #2), or one for connecting the slave optical terminal in the cascade with the master optical terminal (e.g., the master optical terminal and slave optical terminal #2 on both sides of slave optical terminal #1). Both types of cascade interfaces can receive or transmit signals.

[0105] For example, with slave optical terminal #2 as the target slave optical terminal, the process of transmitting exchange messages via the cascade interface is described in conjunction with the above exchange messages. As shown in Figure 5, the master optical terminal sends an exchange message to slave optical terminal #2 and receives an exchange message returned by slave optical terminal #2. The transmission path of the exchange message can be: the master optical terminal sends an exchange message to the slave optical terminal corresponding to the next destination address (i.e., slave optical terminal #1); slave optical terminal #1 receives the exchange message, processes it, and sends it to the slave optical terminal corresponding to the next destination address (i.e., slave optical terminal #2); slave optical terminal #2 receives the exchange message, performs corresponding processing based on the instruction information in the exchange message, and sends the exchange message to the slave optical terminal corresponding to the next destination address (e.g., slave optical terminal #1). Then, slave optical terminal #1 forwards the exchange message to the master optical terminal.

[0106] In the above-described process of transmitting exchanged messages, for the cascade interface between slave optical terminal #1 and the master optical terminal (or cascade interface #1), cascade interface #1 receives exchanged messages from the master optical terminal that have not yet reached slave optical terminal #2, and sends exchanged messages returned from slave optical terminal #2 to the master optical terminal. Similarly, for the cascade interface between slave optical terminal #1 and slave optical terminal #2 (or cascade interface #2), cascade interface #2 also includes sending and receiving exchanged messages.

[0107] It is understood that, based on the above description of the process for transmitting and exchanging messages, the cascade interface #1 can be referred to as a cascade input interface, and the cascade interface #2 can be referred to as a cascade output interface. Of course, the cascade interface #1 can also be alternatively expressed as other names, such as a "cascade receiving interface," or the cascade interface #2 can also be alternatively expressed as other names, such as a "cascade sending interface," and this is not limited in the present embodiment.

[0108] Based on the above description of the cascade interface, the following describes the definition of the cascade interface in detail.

[0109] FIG8 is a schematic diagram of a cascade interface logical function structure provided by an embodiment of the present application. As shown in FIG8 , the cascade interface may functionally include a cascade send / receive interface. Among them, the cascade send / receive interface can be used for data transmission (e.g., exchanging messages), and the exchanged messages can be carried by electrical signals or optical signals. For example, the electrical signal can be an electrical signal of a differential level type (e.g., low-voltage differential signaling (LVDS)), and can be transmitted through a balanced cable. It is understood that the optical signal can be transmitted through an optical fiber.

[0110] Optionally, the cascade interface may also include a clock and time interface. The clock and time interface can be used for time synchronization between the cascaded master and slave optical terminals. For example, the cascade input interface is used to receive clock and time information, while the cascade output interface is used to send clock and time information.

[0111] Optionally, the cascade interface may also include a power interface. The power interface can be used to power the cascaded slave optical terminals. For example, the cascade input interface is used for power input, while the cascade output interface is used for power output. It is understood that when the cascade interface transmits optical signals via optical fiber, the optical fiber can be a combined optical and electrical fiber, thereby providing power supply functionality.

[0112] As shown in Figure 7, in addition to the above modules, the main optical terminal may also include: an industrial optical bus processing module and a communication interface module. The industrial optical bus processing module is used for industrial optical bus protocol processing (such as link layer processing of a point-to-multipoint network), to achieve communication between the main optical terminal and the optical head end, and to obtain field device data from the data processing and storage module. The communication interface module is used to complete the transceiver processing of optical signals between the main optical terminal and the optical head end. It should be understood that logically, the communication interface module may include a communication sending interface and a communication receiving interface. The communication sending interface is used to send optical signals to the optical head end, and the communication receiving interface is used to receive optical signals from the optical head end.

[0113] In one possible implementation, the master optical terminal may further include a dual-transmitter / receiver module, which supports connection of two communication interfaces with the optical head end, thereby implementing dual-transmitter / receiver selection, thereby ensuring uninterrupted service switching and improving the reliability of optical bus communication.

[0114] It can be understood that, combined with the modules corresponding to the aforementioned master optical terminal, the master optical terminal's workflow is as follows: Downlink messages are received from the optical headend via the communication interface module. Once the downlink messages enter the device, they undergo serial-to-parallel conversion via the SDS and are converted into a data stream via the dual-transmitter / receiver module. Furthermore, the data stream undergoes protocol conversion via the industrial optical bus processing module, and local data exchange is performed via the data processing and storage module. This module also drives the cascade forwarding module to access the connected slave optical terminals, completing the data stream conversion between the master optical terminal and the extended slave optical terminals.

[0115] It should be understood that the above description of interfaces is a classification based on different interfaces with different logical functions. The embodiments of this application do not specifically limit the number of interfaces and the input and output methods. The input (or receiving) interface and the output (or transmitting) interface can be the same physical port or two separate physical ports. Furthermore, the number of physical ports corresponding to the interface can be 2, 3, or more physical ports, which is not specifically limited in this embodiment of the application.

[0116] It can be understood that, in conjunction with the above description of the logical functional structure of the master optical terminal and the slave optical terminal, since both the master optical terminal and the slave optical terminal have a cascade connection function, the master optical terminal and the slave optical terminal can be designed in a normalized manner. For example, the optical terminal shown in FIG7 can be configured so that the optical terminal is in the master optical terminal mode or the slave optical terminal mode. The master optical terminal mode can also be replaced by the optical terminal mode, and the slave optical terminal mode can also be replaced by the expansion module mode or the expansion IO mode, etc., which are not specifically limited in the embodiments of the present application.

[0117] In one possible implementation, the optical terminal may further include a device type module and registers. The device type module is used to configure the optical terminal to operate in either master or slave optical terminal mode. The registers are used to configure the optical terminal's status and functionality. For example, the registers can be used to select whether to drive the aforementioned industrial optical bus processing module and / or the cascade forwarding module. It is understood that if both the industrial optical bus processing module and the cascade forwarding module can be driven, the optical terminal is in master optical terminal mode; if only the cascade forwarding module is driven, the optical terminal is in slave optical terminal mode.

[0118] That is, the above-mentioned related functions of the master optical terminal or the slave optical terminal in the embodiments of the present application can be implemented by a single device, or by multiple devices, or by one or more functional modules within a single device. It is understood that the above-mentioned functions can be components in a hardware device, or software functions running on dedicated hardware, or a combination of hardware and software, or virtualized functions instantiated on a platform (e.g., a cloud platform).

[0119] For example, the relevant functions of the master optical terminal or the slave optical terminal in the embodiment of the present application can be implemented by the communication device 900 in Figure 9.

[0120] Figure 9 is a schematic diagram of the structure of a communication device 900 provided in an embodiment of the present application. The communication device 900 includes one or more processors 901, a communication circuit 902, and at least one communication interface (Figure 9 is merely an example of a communication interface 904 and a processor 901). In one possible implementation, the communication device 900 may further include a memory 903.

[0121] The processor 901 may be a CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0122] Communication line 902 may include pathways for connecting different components.

[0123] The communication interface 904 may be a transceiver module for communicating with other devices or communication networks, such as a splitter network in a PON or Ethernet. For example, the transceiver module may be a device such as a transceiver or a transceiver. In one possible implementation, the communication interface 904 may also be a transceiver circuit located within the processor 901, used to implement signal input and output to the processor.

[0124] The memory 903 may be a device having a storage function. For example, it may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 902. The memory may also be integrated with the processor.

[0125] The memory 903 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 901. The processor 901 is used to execute the computer-executable instructions stored in the memory 903, thereby implementing the method provided in the embodiment of the present application.

[0126] Alternatively, in an embodiment of the present application, the processor 901 may also perform processing-related functions in the method provided in the following embodiments of the present application, and the communication interface 904 is responsible for communicating with other devices or communication networks, which is not specifically limited in the embodiment of the present application.

[0127] The computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

[0128] In a specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 9 .

[0129] In a specific implementation, as an embodiment, the communication device 900 may include multiple processors, such as the processor 901 and the processor 907 in FIG9 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0130] Optionally, the communication apparatus 900 may further include an output device 905 and an input device 906. The output device 905 communicates with the processor 901 and may display information in various ways.

[0131] The communication device 900 can be a general-purpose device or a dedicated device. For example, the communication device 900 can be a vehicle-mounted terminal device, an embedded device, a router, a repeater, or a device having a similar structure as shown in FIG9 . The embodiment of the present application does not limit the type of the communication device 900 .

[0132] The optical bus communication method provided in the embodiment of the present application will be described in detail below with reference to FIG. 4 .

[0133] It should be understood that the message names between the various devices or the names of the various parameters in the messages in the following embodiments of the present application are merely examples, and other names may be used in specific implementations, and the embodiments of the present application do not impose specific limitations on this.

[0134] Taking the interaction between the master optical terminal and the slave optical terminal shown in FIG4 as an example, FIG10 is a flow chart of the optical bus communication method provided in an embodiment of the present application, including the following steps:

[0135] S1001: A master optical terminal sends an exchange message to a target slave optical terminal among at least one slave optical terminal. Correspondingly, the target slave optical terminal receives the exchange message from the master optical terminal.

[0136] The exchange message includes indication information corresponding to the target slave optical terminal, which is used to indicate: reading data from the optical head end from the data area of ​​the exchange message, and / or writing data reported to the optical head end into the data area of ​​the exchange message.

[0137] S1002. The target slave optical terminal reads data from the optical head end from the data area of ​​the exchange message according to the instruction information, and / or writes data reported to the optical head end into the data area of ​​the exchange message.

[0138] S1003: The target slave optical terminal returns an exchange message to the master optical terminal. Correspondingly, the master optical terminal receives the exchange message returned by the target slave optical terminal.

[0139] Steps S1001 to S1003 are described below respectively.

[0140] For step S1001:

[0141] It should be understood that, as described above with respect to the optical bus network architecture shown in FIG4 , a master optical terminal is networked with at least one slave optical terminal. Therefore, the master optical terminal needs to scan and discover each of the at least one slave optical terminal and configure each slave optical terminal to complete the networking. Specifically, the master optical terminal can be controlled by a host computer to complete the networking with each slave optical terminal, or the master optical terminal can discover each slave optical terminal through broadcast addressing and configure each slave optical terminal to complete the networking. The configuration information of a slave optical terminal may include the slave optical terminal's name, interface type, memory management, data type, data length, clock information, and an address for data exchange. The address for data exchange may be a logical address assigned by the master optical terminal to each slave optical terminal. This logical address corresponds one-to-one with each slave optical terminal and is used by the slave optical terminal to address the corresponding data area and indication information in exchanged messages. This indication information can, for example, indicate whether a slave optical terminal is reading data from the data area corresponding to the slave optical terminal and / or whether it is writing data to the data area corresponding to the slave optical terminal.

[0142] In one possible implementation, the master optical terminal may assign a logical address to each of the at least one slave optical terminal based on the distance between the master optical terminal and the at least one slave optical terminal in the topological structure. The logical address may be represented by numbers or letters and may be arranged in ascending / delegating order based on the distance in the topological structure. For example, taking the cascade structure shown in FIG5 as an example, the logical addresses [IO1 ID, IO2 ID, IO3 ID, …, IOn ID] corresponding to the slave optical terminals #1 to #n may be: [1, 2, 3, …, n], or [1 / 2, 1 / 3, …, 1 / n]. For another example, taking A as the logical address of the master optical terminal, the logical addresses [IO1 ID, IO2 ID, IO3 ID, …, IOn ID] corresponding to the slave optical terminals #1 to #n may be: [A+1, A+2, …, A+n], or [A+1 / 2, A+1 / 3, …, A+1 / n], etc. This embodiment of the present application does not specifically limit this.

[0143] In another possible implementation, the master optical terminal may allocate a logical address to each of the at least one slave optical terminal according to a physical distance between the master optical terminal and the at least one slave optical terminal.

[0144] It is understood that since the optical headend needs to exchange data with the slave optical terminals, the master optical terminal needs to send the configuration information of each slave optical terminal to the optical headend. The optical headend can assign an identification (ID) to each slave optical terminal based on the configuration information of each slave optical terminal in at least one slave optical terminal, and use it for data exchange.

[0145] Furthermore, the optical headend sends the assigned ID to the master optical terminal, so that the master optical terminal can determine the data from the optical headend corresponding to each slave optical terminal based on the ID of each slave optical terminal. The master optical terminal can map the ID of each slave optical terminal to the logical address of each slave optical terminal one by one, so that the master optical terminal can write the data from the optical headend that each slave optical terminal needs to read into the data area of ​​the exchange message, and also read the data written by each slave optical terminal to the optical headend from the data area of ​​the returned exchange message.

[0146] For example, taking the at least one slave optical terminal networked with the master optical terminal shown in FIG5 as an example, including slave optical terminals #1 to #n (n is an integer greater than 3), the mapping relationship between the IDs allocated by the optical head end to the slave optical terminals #1 to #n, the data from the optical head end that needs to be read from the optical terminal, and the logical addresses is shown in Table 1.

[0147] Table 1

[0148] It should be understood that the ID of the slave optical terminal in Table 1 is merely exemplary, and the ID of the slave optical terminal may be represented by numbers, letters, or other symbols, and this embodiment of the present application does not specifically limit this.

[0149] In one possible implementation, the indication information corresponding to the target slave optical terminal may include the address information of the target slave optical terminal and the indication information corresponding to the address information of the target slave optical terminal. The address information of the target slave optical terminal may be used to address the target slave optical terminal, thereby determining the indication information corresponding to the target slave optical terminal in the exchange message. The address information of the target slave optical terminal may have a one-to-one correspondence with the ID of the target slave optical terminal. For example, the address information of the target slave optical terminal may be the logical address of the target slave optical terminal.

[0150] Furthermore, the exchange message may include: address information of the target slave optical terminal, indication information corresponding to the target slave optical terminal, and a data area corresponding to the target slave optical terminal. The address information of the target slave optical terminal may also be used by the target slave optical terminal to determine the data area corresponding to the target slave optical terminal in the exchange message.

[0151] The specific structure of the exchange message is introduced below.

[0152] In one possible implementation, an exchange message may include a message header and one or more sub-messages. The message header may include information such as the data length of the sub-messages in the exchange message and the type of the exchange message. The type of the exchange message may indicate that the exchange message is used for communication with a slave optical terminal. One sub-message corresponds to one slave optical terminal.

[0153] Specifically, as shown in Figure 11, a sub-message may include an address field, a command and length field, and a data area. The address field is used to indicate the address information of the target slave optical terminal. The command and length field may include a command subfield and a length subfield. The command subfield may be used to indicate the corresponding instruction information of the target slave optical terminal, and the length subfield indicates the length of the data area corresponding to the target slave optical terminal. Furthermore, the data area corresponding to the target slave optical terminal may be divided into a data area for reading data from the target slave optical terminal and a data area for writing data to the target slave optical terminal.

[0154] It can be understood that, since the address field of the sub-message in the exchange message can be used to determine the target slave optical terminal that needs to execute the above instruction information, the exchange message may not include the destination address information.

[0155] It is also understood that when other slave optical terminals other than the target slave optical terminal receive the exchange message and determine that the address indicated by the address field in the sub-message does not belong to them, the other slave optical terminals can skip the sub-message and parse the content of the next sub-message. Furthermore, if the other slave optical terminals do not find a sub-message addressed to them in the exchange message, they forward the exchange message.

[0156] In one possible implementation, the data area of ​​the exchange message includes a data area corresponding to the target slave optical terminal; the indication information corresponding to the target slave optical terminal is used to instruct to read data from the optical head end from the data area of ​​the exchange message, and / or to write data reported to the optical head end into the data area of ​​the exchange message, including:

[0157] The indication information corresponding to the target slave optical terminal is used to instruct reading data from the optical head end from the data area corresponding to the target slave optical terminal, and / or writing data reported to the optical head end into the data area corresponding to the target slave optical terminal.

[0158] That is, when the target reads data and / or writes data from the optical terminal according to the instruction information, the operation needs to be performed within the corresponding data area.

[0159] It should be understood that the data read by the target slave optical terminal in its corresponding data area according to the indication information may also include data other than the data from the optical head end.

[0160] In one possible implementation, the indication information corresponding to the target slave optical terminal is used to instruct reading data from the optical head-end from the data area of ​​the exchange message, including: the indication information corresponding to the target slave optical terminal is used to instruct reading first data from the data area corresponding to the target slave optical terminal, where the first data includes data from the optical head-end and data from the master optical terminal. The data from the master optical terminal may include indication information and configuration information of the master optical terminal for the target slave optical terminal, which is not specifically limited in this embodiment of the present application.

[0161] It should be understood that the data written by the target slave optical terminal in its corresponding data area according to the instruction information may also include data other than the data reported to the optical head end.

[0162] In one possible implementation, the indication information corresponding to the target slave optical terminal is used to indicate that the data reported to the optical head end is written in the data area corresponding to the target slave optical terminal, including: the indication information corresponding to the target slave optical terminal is used to indicate that the second data is written in the data area corresponding to the target slave optical terminal, and the second data includes the data reported to the optical head end and the data reported to the master optical terminal.

[0163] The following introduces the target slave optical terminal.

[0164] In one possible implementation, the target slave optical terminal may be a slave optical terminal among the at least one slave optical terminal that needs to read data from the optical head end. It is understood that since the master optical terminal can receive downlink messages from the optical head end, it can determine which of the at least one slave optical terminal is the target slave optical terminal based on the data carried in the downlink messages.

[0165] Furthermore, the indication information corresponding to the target slave optical terminal can be used to instruct the target slave optical terminal to read the data from the optical head end from the data area of ​​the exchange message. The data area of ​​the exchange message includes the data from the optical head end corresponding to the target slave optical terminal.

[0166] Optionally, the indication information corresponding to the target slave optical terminal can also be used to instruct the target slave optical terminal to write the data reported to the optical head end into the data area of ​​the exchange message. In other words, the master optical terminal can complete data exchange with the target slave optical terminal by sending a single exchange message. This can reduce communication redundancy and the delay in the target slave optical terminal reporting data to the optical head end, thereby improving the real-time performance of the optical head end in obtaining feedback data from the target slave optical terminal.

[0167] In another possible implementation, the target slave optical terminal may be the slave optical terminal desired by the master optical terminal. The indication information corresponding to the target slave optical terminal may be used to instruct the target slave optical terminal to write the data reported to the optical head end into the data area of ​​the exchange message. It is understood that, as described above regarding the industrial bus, in some business scenarios (such as sensor monitoring or data acquisition), the slave optical terminal needs to periodically report data, and the master optical terminal then actively sends exchange messages to the slave optical terminal desired by the master optical terminal to obtain the data reported to the optical head end.

[0168] In one possible implementation, the master optical terminal sends an exchange message to a target slave optical terminal among at least one slave optical terminal (i.e., step S1001), including: the master optical terminal determines the period for sending the exchange message based on the period for the optical head end to obtain the reported data; the master optical terminal sends the exchange message to the target slave optical terminal according to the period of the exchange message, and the indication information corresponding to the target slave optical terminal in the exchange message is used to indicate: writing the data reported by the optical head end into the data area of ​​the exchange message.

[0169] The period of sending exchange messages can be less than or equal to the period of the optical head end obtaining reported data. In other words, the master optical terminal can periodically obtain the data reported by the target slave optical terminal to the optical head end by periodically sending exchange messages to the target slave optical terminal.

[0170] Furthermore, the master optical terminal can store the acquired data reported by the target slave optical terminal to the optical head end, and return the data reported by the target slave optical terminal to the optical head end in response to the request of the optical head end; or, the master optical terminal can also actively send the data reported by the target slave optical terminal to the optical head end, and the embodiments of the present application do not make specific limitations on this.

[0171] In a possible implementation, the master optical terminal may request the optical head end to obtain a period for reporting data, and determine a period for sending exchange messages according to the period.

[0172] It should be understood that since the master optical terminal is networked with at least one slave optical terminal, when the optical head-end accesses the target slave optical terminal, exchange messages need to be transmitted between the master optical terminal and the target slave optical terminal. However, the transmission of exchange messages will pass through other slave optical terminals, which will cause delays. Therefore, the delay of the optical head-end accessing the master optical terminal is shorter than the delay of the optical head-end accessing the target slave optical terminal. In other words, the master optical terminal actively sends exchange messages to the target slave optical terminal to obtain data reported by the target slave optical terminal to the optical head-end before the optical head-end accesses the target slave optical terminal, thereby avoiding the above-mentioned delays.

[0173] In one possible implementation, the master optical terminal may send an exchange message to the target slave optical terminal based on a topological structure between the master optical terminal and at least one slave optical terminal. The master optical terminal may send the exchange message to the target slave optical terminal based on a transmission path that traverses the least number of slave optical terminals in the topological structure.

[0174] For step S1002 and step S1003:

[0175] In a possible implementation, the target slave optical terminal can be addressed to the indication information and data area corresponding to the target slave optical terminal in the exchange message according to the address information of the exchange message.

[0176] Furthermore, the target slave optical terminal can read the data from the optical head end in the data area corresponding to the target slave optical terminal according to the indication information, and / or write the data reported to the optical head end in the data area corresponding to the target slave optical terminal.

[0177] It should be understood that the target slave optical terminal may choose to return the exchange message via the last slave optical terminal that forwarded the exchange message; or, the target slave optical terminal may select other transmission paths according to the topology structure to return the exchange message.

[0178] The transmission path of the exchanged messages is further described below.

[0179] In one possible implementation, the transmission path of the exchange message includes a transmission path of the exchange message between each of the at least one slave optical terminal. In other words, the transmission of the exchange message between the master optical terminal and the target slave optical terminal needs to traverse each of the at least one slave optical terminal.

[0180] Furthermore, the exchange message includes indication information corresponding to the target slave optical terminal, including: the exchange message includes indication information corresponding to each slave optical terminal in at least one slave optical terminal. The indication information corresponding to each slave optical terminal is used to instruct: writing the data reported to the optical head end into the data area corresponding to the slave optical terminal.

[0181] It should be understood that for the optical head end, both the master optical terminal and the slave optical terminal are objects that need to be managed, and are nodes at the same level. That is, the master optical terminal is only responsible for forwarding the data corresponding to the slave optical terminal, and cannot parse the information carried by the data corresponding to the slave optical terminal. Therefore, the master optical terminal cannot predict which slave optical terminals among each slave optical terminal will report data to the optical head end.

[0182] That is to say, the transmission path of the exchange message will traverse the characteristics of each slave optical terminal, and through the indication information corresponding to each slave optical terminal in the exchange message, the master optical terminal can obtain the data reported by each slave optical terminal by sending an exchange message once, thereby reducing the redundancy of communication.

[0183] In a possible implementation, the data area of ​​the exchange message includes a data area corresponding to each of the at least one slave optical terminal.

[0184] That is to say, the slave optical terminal performs read and write operations in its own data area, thereby achieving isolation of data areas between different slave optical terminals.

[0185] Furthermore, the exchange message may include a sub-message corresponding to each slave optical terminal in at least one slave optical terminal. The structure of the sub-message can refer to the above description of FIG. 11 and will not be repeated here.

[0186] For example, taking the ID and logical address of the slave terminal corresponding to the optical terminals #1 to #n in Table 1 above as an example, as shown in FIG12 , the exchange message may include n sub-messages, and the address field of each sub-message corresponds to the logical address of the slave optical terminal.

[0187] It is understood that the indication information corresponding to each of the above-mentioned slave optical terminals may be different. For example, some indication information may be used to instruct the writing of data reported to the optical head end in the corresponding data area, while some indication information may be used to prohibit the writing of data reported to the optical head end in the corresponding data area. In other words, the optical head end may only obtain part of the data reported to the optical head end corresponding to the slave optical terminal.

[0188] In one possible implementation, the transmission path for exchanged messages is determined based on routing information. The routing information is preconfigured. Specifically, the routing information is determined based on the order in which the hardware ports of the master optical terminal are connected when networking with at least one slave optical terminal. In other words, the transmission path for exchanged messages is determined when the master optical terminal and at least one slave optical terminal are networked.

[0189] In other words, the transmission path for each exchanged message is fixed, resulting in a relatively constant latency, meaning minimal jitter, making it easier to compensate for latency. Furthermore, because the transmission path between the master and slave optical terminals is fixed, accessing a slave optical terminal through the master optical terminal does not incur any additional jitter compared to accessing the master optical terminal from the optical headend.

[0190] Exemplarily, the transmission path of the exchange message is explained by taking the networking of the master optical terminal and the slave optical terminals #1 to #n shown in FIG13 as an example. As shown in FIG13, when the master optical terminal sends the exchange message, it will detect whether the device is connected based on its cascade interface. If the device is connected, the exchange message will be output through the cascade interface, that is, the master optical terminal will send the exchange message to the slave optical terminal #1. As shown in (a) in FIG13, the exchange message includes the data from the optical head end corresponding to the slave optical terminal #1, and the data from the optical head end corresponding to the slave optical terminal #n. The indication information corresponding to the slave optical terminal #1 in the exchange message is used to indicate that the data from the optical head end is read in the data area corresponding to the slave optical terminal #1. The indication information corresponding to the slave optical terminal #n in the exchange message is used to indicate that the data reported to the optical head end is written in the data area corresponding to the slave optical terminal #n.

[0191] Next, slave optical terminal #1 receives the exchange message for the first time and parses it. If it does not find its own logical address in the exchange message, it forwards the exchange message. If it does find its own logical address, it performs the corresponding operation according to the instruction information in the exchange message. As shown in Figure 13 (b), slave optical terminal #1 reads the data in the data area corresponding to slave optical terminal #1.

[0192] Similarly, the exchange message will be transmitted along the transmission path of the master optical terminal, slave optical terminal #1, slave optical terminal #2, slave optical terminal #3, ..., slave optical terminal #n. As shown in (c) in Figure 13, after receiving the exchange message, the slave optical terminal #n reads the data from the optical head end in the data area corresponding to the slave optical terminal #n, and writes the data reported to the optical head end. After the slave optical terminal #n completes the data exchange for the exchange message, if the next device is not detected in the cascade interface, the slave optical terminal #n will return the exchange message along the original transmission path. It should be understood that when the exchange message is returned, the slave optical terminal can directly forward the exchange message along the original transmission path without parsing the exchange message.

[0193] It should also be understood that the transmission path shown in Figure 13 above is only exemplary, and the transmission path of the exchange message can also take different transmission paths according to different network topology structures. For example, if the slave optical terminal #n in Figure 13 is directly connected to the master optical terminal, the slave optical terminal #n will send the exchange message to the master optical terminal. The embodiment of the present application does not make specific limitations on the specific path that the transmission path traverses for each slave optical terminal.

[0194] It is understandable that, in addition to the periodic sending of exchange messages in step S1001, the master optical terminal may also send exchange messages in bursts. The following describes the master optical terminal sending exchange messages in bursts.

[0195] In one possible implementation, the optical bus communication method provided in the embodiment of the present application may further include, before step S1001:

[0196] S1004: The optical head-end sends a downlink message to the master optical terminal. Correspondingly, the master optical terminal receives the downlink message from the optical head-end. The downlink message includes data from the optical head-end that needs to be read by the target slave optical terminal.

[0197] In a possible implementation, the master optical terminal sends a message to a target slave optical terminal among at least one slave optical terminal (step S1001 ), including: the master optical terminal sends a switching message to the target slave optical terminal according to the downlink message.

[0198] The instruction information corresponding to the target slave optical terminal is used to instruct to read the data from the optical head end from the data area of ​​the exchange message. The data area of ​​the exchange message includes the data from the optical head end that the target slave optical terminal needs to read.

[0199] That is, the master optical terminal can generate a switching message in response to the downlink message sent by the optical head end, and then forward the data from the optical head end that needs to be read by the target slave optical terminal to the target slave optical terminal through the switching message.

[0200] It should be understood that the master optical terminal may also send exchange messages in a burst without receiving downlink messages from the optical head end. The embodiment of the present application does not specifically limit the timing of sending the exchange messages by the master optical terminal.

[0201] In one possible implementation, the optical bus communication method provided in the embodiment of the present application further includes:

[0202] S1005: The master optical terminal sends an uplink message to the optical head end according to the exchange message returned by the target slave optical terminal. The uplink message includes the data written by the target slave optical terminal to report to the optical head end.

[0203] The exchange message returned by the target slave optical terminal includes the data written by the target slave optical terminal and reported to the optical head end.

[0204] That is to say, the master optical terminal can send an exchange message to the target slave optical terminal to obtain the data written by the target slave optical terminal to report to the optical head end, and then send the data to the optical head end, thereby realizing the uplink transmission between the target slave optical terminal and the optical head end.

[0205] Since, in the embodiment of the present application, the extended slave optical terminal communicates and interacts with the optical head end through the master optical terminal, the slave optical terminal can reuse the uplink and downlink optical paths between the master optical terminal and the optical head end, that is, the optical head end does not need to allocate uplink time slots for the extended slave optical terminal, nor does it need to occupy the optical path power budget of the downlink optical path, so that one optical head end can be connected to a larger number of slave optical terminals. Furthermore, since the data interaction between the extended slave optical terminal and the master optical terminal is realized by transmitting an exchange message once, that is, the slave optical terminal reads data and / or writes data according to the instruction information in the exchange message and forwards the exchange message, the probability of multiple messages appearing on the transmission link at the same time can be reduced, that is, by reducing the probability of conflicts, the time overhead caused by conflicts can be reduced, that is, the communication delay between the master optical terminal and the slave optical terminal is reduced, the real-time performance of the communication is improved, and thus the communication performance between the extended slave optical terminal and the optical head end is improved. Therefore, the optical bus communication method provided in the embodiment of the present application can improve the scalability of optical terminals in the optical bus network.

[0206] Among them, the actions of the master optical terminal in the above steps S1001 to S1005 can be performed by the processor 901 in the communication device 900 shown in Figure 9 calling the application code stored in the memory 903 to instruct the communication device 900 to execute, and the actions of the target slave optical terminal in the above steps S1001 to S1005 can be performed by the processor 901 in the communication device 900 shown in Figure 9 calling the application code stored in the memory 903 to instruct the communication device 900 to execute, and the embodiments of the present application do not impose any restrictions on this.

[0207] The above description primarily describes the solutions provided by the embodiments of the present application from the perspective of interaction between various network elements. Accordingly, the embodiments of the present application also provide a communication device for implementing the various methods described above. The communication device can be a master optical terminal, a device including such a master optical terminal, or a component usable in a master optical terminal, as described in the method embodiments described above. Alternatively, the communication device can be a target slave optical terminal, a device including such a target slave optical terminal, or a component usable in a target slave optical terminal, as described in the method embodiments described above. It will be understood that, to implement the aforementioned functions, the communication device includes hardware structures and / or software modules corresponding to the respective functions. Those skilled in the art will readily appreciate that, in conjunction with the various exemplary units and algorithm steps described in the embodiments disclosed herein, the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or in a hardware-driven manner by computer software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0208] In the embodiment of the present application, the communication device can be divided into functional modules according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be understood that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0209] For example, taking the communication device as the master optical terminal in the above method embodiment, FIG14 shows a schematic structural diagram of a master optical terminal 140. The master optical terminal 140 includes a transceiver module 1401 and a processing module 1402. The transceiver module 1401, also known as a transceiver unit, implements transceiver functions and can be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.

[0210] The transceiver module 1401 is configured to send an exchange message to at least one target slave optical terminal and receive an exchange message returned by the target slave optical terminal. The exchange message includes instruction information corresponding to the target slave optical terminal, which indicates: reading data from the optical head end from the data area of ​​the exchange message; and / or writing data reported to the optical head end into the data area of ​​the exchange message.

[0211] In some embodiments, processing module 1402 is configured to determine a period for sending exchange messages based on a period for obtaining reported data at the optical head end. Transceiver module 1401 is further configured to send exchange messages to the target slave optical terminal based on the exchange message period. Instruction information corresponding to the target slave optical terminal in the exchange message is used to instruct: writing data reported to the optical head end into the data area of ​​the exchange message.

[0212] In some embodiments, the transceiver module 1401 is further configured to receive a downlink message from the optical head-end, the downlink message including data from the optical head-end that needs to be read by the target slave optical terminal. The transceiver module 1401 is further configured to send an exchange message to the target slave optical terminal based on the downlink message. The instruction information corresponding to the target slave optical terminal in the exchange message is used to instruct the data area of ​​the exchange message to read the data from the optical head-end, the data area of ​​the exchange message including the data from the optical head-end that needs to be read by the target slave optical terminal.

[0213] In some embodiments, the transceiver module 1401 is further configured to send an uplink message to the optical head end according to the exchange message returned by the target from the optical terminal, wherein the uplink message includes data written by the target from the optical terminal to report to the optical head end.

[0214] In some embodiments, the transmission path of the exchange message includes the transmission path of the exchange message between each slave optical terminal in at least one slave optical terminal; the exchange message includes indication information corresponding to the target slave optical terminal, including: the exchange message includes indication information corresponding to each slave optical terminal in at least one slave optical terminal.

[0215] In some embodiments, the data area of ​​the exchange message includes a data area corresponding to each of the at least one slave optical terminal.

[0216] In some embodiments, the transmission path of the exchanged message is determined based on routing information, and the routing information is preconfigured.

[0217] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0218] In the embodiments of the present application, the master optical terminal 140 is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functions. In a simple embodiment, those skilled in the art will appreciate that the master optical terminal 140 can take the form of the communication device 900 shown in Figure 9.

[0219] For example, the processor 901 in the communication device 900 shown in FIG9 may call the computer-executable instructions stored in the memory 903 to enable the communication device 900 to execute the optical bus communication method in the above method embodiment.

[0220] Specifically, the functions / implementation processes of the transceiver module 1401 and the processing module 1402 in FIG14 can be implemented by the processor 901 in the communication device 900 shown in FIG9 calling computer-executable instructions stored in the memory 903. Alternatively, the functions / implementation processes of the processing module 1402 in FIG14 can be implemented by the processor 901 in the communication device 900 shown in FIG9 calling computer-executable instructions stored in the memory 903, and the functions / implementation processes of the transceiver module 1401 in FIG14 can be implemented by the communication interface 904 in the communication device 900 shown in FIG9.

[0221] Since the master optical terminal 140 provided in the embodiment of the present application can execute the above-mentioned optical bus communication method, the technical effects that can be obtained can refer to the above-mentioned method embodiment and will not be repeated here.

[0222] Alternatively, for example, taking the target slave optical terminal in the above method embodiment as the communication device, FIG15 shows a schematic structural diagram of a target slave optical terminal 150. The target slave optical terminal 150 includes a transceiver module 1501 and a processing module 1502. The transceiver module 1501, also referred to as a transceiver unit, implements transceiver functions and may be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.

[0223] Among them, the transceiver module 1501 is used to receive the exchange message from the master optical terminal, and the exchange message includes the indication information corresponding to the target slave optical terminal; the processing module 1502 is used to read the data from the optical head end from the data area of ​​the exchange message according to the indication information, and / or write the data reported to the optical head end in the data area of ​​the exchange message; the transceiver module 1501 is also used to return the exchange message to the master optical terminal.

[0224] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0225] In the embodiments of the present application, the target slave optical terminal 150 is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other device capable of providing the aforementioned functionality. In a simple embodiment, those skilled in the art will appreciate that the target slave optical terminal 150 can take the form of the communication device 900 shown in Figure 9.

[0226] For example, the processor 901 in the communication device 900 shown in FIG9 may call the computer-executable instructions stored in the memory 903 to enable the communication device 900 to execute the optical bus communication method in the above method embodiment.

[0227] Specifically, the functions / implementation processes of the transceiver module 1501 and the processing module 1502 in FIG15 can be implemented by the processor 901 in the communication device 900 shown in FIG9 calling computer-executable instructions stored in the memory 903. Alternatively, the functions / implementation processes of the processing module 1502 in FIG15 can be implemented by the processor 901 in the communication device 900 shown in FIG9 calling computer-executable instructions stored in the memory 903, and the functions / implementation processes of the transceiver module 1501 in FIG15 can be implemented by the communication interface 904 in the communication device 900 shown in FIG9.

[0228] Since the target slave optical terminal 150 provided in this embodiment can execute the above optical bus communication method, the technical effects that can be obtained can refer to the above method embodiments and will not be repeated here.

[0229] It should be understood that one or more of the above modules or units can be implemented by software, hardware, or a combination of the two. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can be built into an SoC (system on chip) or an ASIC, or it can be an independent semiconductor chip. In addition to the core used to execute software instructions to perform calculations or processing within the processor, it can further include necessary hardware accelerators, such as field programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.

[0230] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.

[0231] In one possible implementation, an embodiment of the present application further provides a communication device (for example, the communication device may be a chip or a chip system), which includes a processor for implementing the method in any of the above method embodiments. In one possible design, the communication device also includes a memory. The memory is used to store necessary program instructions and data, and the processor can call the program code stored in the memory to instruct the communication device to execute the method in any of the above method embodiments. Of course, the memory may not be in the communication device. When the communication device is a chip system, it may be composed of a chip, or it may include a chip and other discrete devices, which is not specifically limited in the embodiment of the present application.

[0232] In one possible implementation, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program or instruction. When the computer program or instruction is run on a communication device, the communication device can execute the method described in any of the above method embodiments or any of its implementations.

[0233] In a possible implementation, an embodiment of the present application further provides a communication method, which includes the method described in any of the above method embodiments or any of its implementations.

[0234] In a possible implementation, an embodiment of the present application further provides a communication system, which includes the master optical terminal described in the above method embodiment and the target slave optical terminal described in the above method embodiment.

[0235] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0236] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0237] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the present application is intended to include such modifications and variations as fall within the scope of the claims of the present application and their equivalents.

Claims

1. An optical bus communication method, characterized in that: The optical bus network includes an optical head end, a master optical terminal connected to the optical head end, and at least one slave optical terminal networked with the master optical terminal, and the method includes: The master optical terminal sends an exchange message to a target slave optical terminal among the at least one slave optical terminal, wherein the exchange message includes indication information corresponding to the target slave optical terminal, and the indication information is used to indicate: reading data from the optical head end from a data area of ​​the exchange message, and / or writing data reported to the optical head end into the data area of ​​the exchange message; The master optical terminal receives the exchange message returned by the target slave optical terminal.

2. The method according to claim 1, characterized in that The transmission path of the exchange message includes the transmission path of the exchange message between each slave optical terminal in the at least one slave optical terminal; the exchange message includes the indication information corresponding to the target slave optical terminal, including: the exchange message includes the indication information corresponding to each slave optical terminal in the at least one slave optical terminal.

3. The method according to claim 1 or 2, characterized in that: The data area of ​​the exchange message includes a data area corresponding to each slave optical terminal in the at least one slave optical terminal.

4. The method according to any one of claims 1 to 3, characterized in that The transmission path of the exchange message is determined according to routing information, and the routing information is preconfigured.

5. The method according to any one of claims 1 to 4, characterized in that The master optical terminal sends an exchange message to a target slave optical terminal in the at least one slave optical terminal, including: The master optical terminal determines the period of sending the exchange message according to the period of the optical head end acquiring the reported data; The master optical terminal sends the exchange message to the target slave optical terminal according to the cycle of the exchange message, and the indication information corresponding to the target slave optical terminal in the exchange message is used to indicate: writing the data reported to the optical head end in the data area of ​​the exchange message.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The master optical terminal receives a downlink message from the optical head end, wherein the downlink message includes data from the optical head end that needs to be read by the target slave optical terminal; Accordingly, the master optical terminal sends a message to a target slave optical terminal in the at least one slave optical terminal, including: The master optical terminal sends the exchange message to the target slave optical terminal according to the downlink message, and the indication information is used to indicate reading the data from the optical head end from the data area of ​​the exchange message, and the data area of ​​the exchange message includes the data from the optical head end that needs to be read by the target slave optical terminal.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The master optical terminal sends an uplink message to the optical head end according to the exchange message returned by the target slave optical terminal, and the uplink message includes data written by the target slave optical terminal to report to the optical head end.

8. An optical bus communication method, characterized in that: The optical bus network includes an optical head end, a master optical terminal connected to the optical head end, and at least one slave optical terminal networked with the master optical terminal, and the method includes: A target slave optical terminal in the at least one slave optical terminal receives an exchange message from the master optical terminal, wherein the exchange message includes indication information corresponding to the target slave optical terminal; The target slave optical terminal reads the data from the optical head end from the data area of ​​the exchange message according to the indication information, and / or writes the data reported to the optical head end into the data area of ​​the exchange message; The target slave optical terminal returns the exchange message processed according to the indication information to the master optical terminal.

9. The method according to claim 8, characterized in that The data area of ​​the exchange message includes the data area corresponding to the target slave optical terminal; the indication information corresponding to the target slave optical terminal is used to indicate reading data from the optical head end from the data area corresponding to the target slave optical terminal, and / or writing data reported to the optical head end into the data area corresponding to the target slave optical terminal.

10. The method according to claim 8 or 9, characterized in that: The transmission path of the exchange message includes a transmission path of the exchange message between each slave optical terminal in the at least one slave optical terminal.

11. The method according to any one of claims 8 to 10, characterized in that: The data area of ​​the exchange message includes a data area corresponding to each slave optical terminal in the at least one slave optical terminal.

12. The method according to any one of claims 8 to 11, characterized in that The transmission path of the exchange message is determined according to routing information, and the routing information is preconfigured.

13. A communication device, characterized in that: The communication device is used to execute the optical bus communication method according to any one of claims 1 to 7, or the communication device is used to execute the optical bus communication method according to any one of claims 8 to 12.

14. A communication device, characterized in that: The communication device includes a processor and a storage medium, wherein the storage medium stores instructions, and when the instructions are executed by the processor, the optical bus communication method according to any one of claims 1 to 7 is implemented, or the optical bus communication method according to any one of claims 8 to 12 is implemented.

15. A chip, characterized in that: The chip includes a processor, which is used to couple with a memory. When the processor executes a computer program or instruction in the memory, the optical bus communication method described in any one of claims 1 to 7 is executed, or the optical bus communication method described in any one of claims 8 to 12 is executed.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, and when the instructions are executed by a processor, the optical bus communication method according to any one of claims 1 to 7 is implemented, or the optical bus communication method according to any one of claims 8 to 12 is implemented.

17. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed, the optical bus communication method according to any one of claims 1 to 7 is implemented, or the optical bus communication method according to any one of claims 8 to 12 is implemented.

18. A communication system, characterized in that: The communication system comprises a master optical terminal and a target slave optical terminal among the at least one slave optical terminal, the master optical terminal is used to execute the optical bus communication method according to any one of claims 1-7, and the target slave optical terminal is used to execute the optical bus communication method according to any one of claims 8-12.

Citation Information

Patent Citations

  • Method and system for realizing data exchange in IEC104 (international electrotechnical commission 104) communication protocol forwarding

    CN102325084A

  • Method and system for realizing circuit emulation service in passive optical network

    CN102833084A

  • Clock synchronization method, optical head end and optical terminal

    CN115225187A

  • Optical crossbar network using wavelength division multiplexing an optical crossbar exchange

    US6243178B1

Cited By

  • UART (Universal Asynchronous Receiver / Transmitter) communication channel gating method, device, system, equipment and medium

    CN122247781A

  • PLC backplane bus communication system based on FPGA and sensor network

    CN122533689A