Communication method, optical communication master station, optical communication slave station and optical communication equipment

By using time slot allocation data in the optical communication network, the data conflict problem that may arise in the data interaction between the optical communication master station and multiple slave stations is solved, efficient and orderly data transmission is achieved, and the precise control needs of high-performance control systems are met.

CN119729261APending Publication Date: 2025-03-28SUZHOU INOVANCE CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411828415.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

During the data interaction between the optical communication master station and multiple optical communication slave stations, data conflicts may occur, resulting in channel resource competition and transmission delays.

Method used

By introducing time slot allocation data into the optical communication network, the indication of each time slot and the corresponding optical communication slave station identification are clarified, ensuring that each slave station sends or receives data in a specific time slot, thereby avoiding data conflicts.

Benefits of technology

It realizes that the data transmission of each optical communication slave is accurately allocated in a specific time slot, ensuring orderly progress, effectively avoiding data conflicts, reducing transmission delay and jitter, and meeting the precise control needs of high-performance control systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729261A_ABST
    Figure CN119729261A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method, an optical communication master station, an optical communication slave station and optical communication equipment. The communication method is applied to an optical communication master station in an optical communication network, the optical communication network comprises the optical communication master station and a plurality of optical communication slave stations connected with the optical communication master station, the optical communication network comprises data to be transmitted, and the data to be transmitted comprises data issued by the plurality of optical communication slave stations; reading configured time slot allocation data, wherein the time slot allocation data comprises each time slot indication of issued data in a communication period and an optical communication slave station identifier corresponding to each time slot indication; and when a moment represented by a first time slot indication in the time slot indications arrives, sending the issued data to a target optical communication slave station, the target optical communication slave station being an optical communication slave station represented by an optical communication slave station identifier corresponding to the first time slot indication. By adopting the method, data conflicts can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of bus communication, and in particular to a communication method, an optical communication master station, an optical communication slave station and an optical communication device. Background Art

[0002] In a communication network of an optical communication master station and multiple optical communication slave stations, the communication process involves a communication master station exchanging data with multiple communication slave stations at the same time, and data conflicts may occur. Summary of the invention

[0003] Based on this, it is necessary to provide a communication method, an optical communication master station, an optical communication slave station and an optical communication device that can avoid data conflicts in order to solve the above technical problems.

[0004] In a first aspect, the present application provides a communication method, which is applied to an optical communication master station in an optical communication network, wherein the optical communication network includes the optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including:

[0005] Acquire data to be transmitted, wherein the data to be transmitted includes: data sent by the plurality of optical communication slave stations;

[0006] Reading the configured time slot allocation data, the time slot allocation data including: each time slot indication for sending data within a communication cycle, and the optical communication slave station identifier corresponding to each time slot indication;

[0007] When the time indicated by the first time slot indication in each time slot indication arrives, the sent data is sent to the target optical communication slave station, wherein the target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication.

[0008] In a second aspect, the present application further provides a communication method, the method being applied to an optical communication slave station in an optical communication network, the optical communication network comprising an optical communication master station and a plurality of the optical communication slave stations connected to the optical communication master station, comprising:

[0009] Acquire data to be uploaded, read local time slot allocation data, the time slot allocation data including: a second time slot indication for uploading data from the optical communication slave station within a communication cycle;

[0010] When the time indicated by the second time slot indication arrives, the data to be uploaded is sent to the optical communication master station.

[0011] In a third aspect, an optical communication master station is provided, wherein the optical communication master station is in an optical communication network, wherein the optical communication network includes the optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including:

[0012] A data acquisition module, used for acquiring data to be transmitted, wherein the data to be transmitted includes: data sent by the plurality of optical communication slave stations;

[0013] A configuration reading module is used to read the configured time slot allocation data, wherein the time slot allocation data includes: each time slot indication for sending data within a communication cycle, and an optical communication slave station identifier corresponding to each time slot indication;

[0014] The sending module is used to send the sent data to the target optical communication slave station when the time indicated by the first time slot indication in each time slot indication arrives, wherein the target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication.

[0015] In a fourth aspect, an optical communication slave station is provided, wherein the optical communication slave station is in an optical communication network, wherein the optical communication network includes an optical communication master station and a plurality of the optical communication slave stations connected to the optical communication master station, including:

[0016] A data acquisition module is used to acquire data to be uploaded and read local time slot allocation data, wherein the time slot allocation data includes: a second time slot indication for uploading data from the optical communication slave station within a communication cycle;

[0017] The sending module is used to send the data to be uploaded to the optical communication main station when the time indicated by the second time slot indication arrives.

[0018] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the first aspect or the second aspect when executing the computer program.

[0019] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the first aspect or the second aspect are implemented.

[0020] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which implements the steps of the first aspect or the second aspect when executed by a processor.

[0021] In an eighth aspect, the present application also provides an optical communication network, comprising: an optical communication master station, and a plurality of optical communication slave stations connected to the optical communication master station, each of the optical communication slave stations integrating an execution function entity and a communication function entity, the optical communication master station being used to implement the method as described in the first aspect, and the optical communication slave stations being used to implement the method as described in the second aspect.

[0022] The above-mentioned communication method, optical communication master station, optical communication slave station and optical communication equipment are applied to the optical communication master station in the optical communication network. The optical communication network includes the optical communication master station and multiple optical communication slave stations connected to the optical communication master station. The optical communication master station obtains data to be transmitted, and the data to be transmitted includes: the sent data of multiple optical communication slave stations; reads the configured time slot allocation data, and the time slot allocation data includes: each time slot indication of the sent data within the communication cycle, and the optical communication slave station identifier corresponding to each time slot indication; when the time indicated by the first time slot indication in each time slot indication arrives, the sent data is sent to the target optical communication slave station, wherein the target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication. In an optical communication network, an optical communication master station obtains data to be transmitted including data sent by multiple optical communication slave stations, and transmits data according to the configured time slot allocation data. The time slot allocation data specifies the time slot indications of the data sent during the communication cycle and their corresponding optical communication slave station identifiers. When the moment indicated by the first time slot indication arrives, the corresponding data is sent to the target optical communication slave station. This method enables the data transmission of each optical communication slave station to be accurately allocated to a specific time slot, and the data transmission of each optical communication slave station is carried out in an orderly manner, effectively avoiding data conflicts caused by different optical communication slave station data competing for channel resources during the transmission process. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A schematic diagram of an optical communication network in an embodiment Figure 1 ;

[0025] Figure 2A FIG2 is a second networking diagram of an optical communication network in an embodiment;

[0026] Figure 2B A schematic diagram of an optical communication network in an embodiment Figure 3 ;

[0027] Figure 3 A schematic diagram of a flow chart of a time synchronization process in a communication method in an embodiment;

[0028] Figure 4A A schematic diagram of a data transmission process in a communication method Figure 1 ;

[0029] Figure 4B A second flow chart of a data transmission process in a communication method;

[0030] Figure 5 A schematic diagram showing the operation time axis of all devices in a unified manner using the same time axis t;

[0031] Figure 6 It is a structural block diagram of an optical communication master station;

[0032] Figure 7 It is a structural block diagram of an optical communication slave station;

[0033] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] Industrial network protocols form the basis for communication between industrial devices. Currently, there are various types of industrial communication technologies, which can be generally divided into three categories: industrial bus, industrial Ethernet and industrial wireless. They each have their own advantages in terms of performance and usage scenarios.

[0036] Industrial bus protocols perform well in short-distance communications and are suitable for smaller-scale, low-bandwidth device communications. However, due to limited transmission rates, they may not be able to handle large-scale, high-bandwidth device communications. In addition, they are weak in real-time performance and are not suitable for high-precision control scenarios. For communications between small-scale, simple devices, industrial bus protocols are stable and low-cost, making them suitable for more basic communications in industrial automation.

[0037] Industrial Ethernet is a conversion of common Ethernet technology. These protocols provide higher transmission rates and better real-time performance. They are suitable for large-scale device communication and scenarios that require high real-time performance, and show good scalability and flexibility. If large-scale device communication and high real-time performance are required in the application scenario, industrial Ethernet protocols are more suitable. Their high transmission rate and excellent real-time performance can meet complex control requirements.

[0038] Industrial wireless communication is mainly based on technologies such as Wi-Fi and Bluetooth, and is only applicable to scenarios that are sensitive to wiring costs and space costs.

[0039] With the rapid development of technologies in rail transportation, automobiles, equipment manufacturing and information, collaboration is the key to efficient operation of equipment in the field of modern industrial automation. Therefore, the communication performance requirements of industrial control networks are increasing, especially the real-time stability, delay, anti-interference and bandwidth requirements of communications are extremely high.

[0040] At present, optical fiber transmission technology has developed rapidly in the field of communications and has been widely used. This technology is a way of transmitting information by transmitting light through optical fiber media, which is a type of wired communication. It has the characteristics of anti-interference, high bandwidth, and low latency. The technical method of using optical fiber communication to realize industrial bus is rarely used in the industrial field and has great development prospects.

[0041] Passive Optical Network (PON) is a pure medium network, which means that the signal channel from the source to the destination node is completed by passive devices. These passive devices include single-mode optical fiber cables, passive optical splitters / couplers, connectors and joints, etc. Passive devices and optical transmission avoid electromagnetic interference and lightning interference from external devices, reduce the failure rate of lines and external devices, improve the reliability of the system, and save maintenance costs. PON has always been considered a technology with great application prospects in optical access networks. It breaks the traditional point-to-point solution and adopts point-to-multiple optical fiber transmission and access technology. The downstream adopts broadcast mode and the upstream adopts time division multiple access mode. It can flexibly form tree, star, bus and other topological structures. Only simple splitters need to be installed at branch nodes. Therefore, it has the advantages of saving optical cable resources, sharing bandwidth resources, saving machine rooms, fast network construction speed, and low comprehensive cost. It is an economical and future-oriented multi-service user access technology in solving broadband access problems.

[0042] Traditional industrial bus protocols mostly use cables as transmission media, data transmission is susceptible to external electromagnetic interference, and the transmission rate and slave station capacity are limited, which has limited room for improvement in the current growing demand for communication between devices. The Ethernet transmission protocol has shown good flexibility and adaptability, but its latency, bandwidth, anti-interference and real-time performance may no longer be able to meet future industrial control needs.

[0043] In view of the current situation that the communication between existing industrial equipment has insufficient real-time performance, anti-interference ability, bandwidth capacity, unstable transmission delay and large jitter. In the embodiment of the present application, the strong anti-interference ability of optical fiber communication on the cable, the large space for improving the transmission rate, and the characteristics of the passive optical network with one master and multiple slaves and flexible networking are combined to realize an optical communication network and a communication method. Among them, firstly, the structure of the optical communication network integrates both the communication function entity and the execution function entity in the optical communication slave station, and the structure is simpler than other methods of separating the communication function from the optical communication slave station, which ensures the real-time nature of the communication. Secondly, the embodiment of the present application provides a communication method in an optical communication network with one master and multiple slaves networking, avoiding data conflicts during the transmission process, and also provides a time synchronization message based on timestamp to synchronize the time between the optical communication slave station and the optical communication master station, further reducing the transmission delay and communication jitter, and improving the real-time and unified collaborative control capabilities.

[0044] For example, Figure 1 As shown, it is a schematic diagram of an optical communication network Figure 1 . Figure 1 In the optical communication network, the optical communication master station includes a controller, an optical communication master station connected to the controller, and a plurality of optical communication slave stations connected to the optical communication master station. Figure 1 As shown, the optical communication master station and Figure 1 The three optical communication slave stations shown in the figure are connected through optical fiber cables and optical splitters. Optical fiber cables and optical splitters are devices that transmit optical signals in communication transmission. One end of the optical fiber cable is connected to the optical communication master station, and then it is divided into multiple branches through the optical splitter, which are respectively connected to multiple optical communication slave stations. The above three optical communication slave stations can receive control instructions issued by the optical communication master station and pass them to the execution devices connected to them to execute the corresponding control instructions. The above three optical communication slave stations Figure 3 They are respectively represented as optical communication slave station 1, optical communication slave station 2 and optical communication slave station 3. Optical communication slave station 1 is connected to execution device 1, optical communication slave station 2 is connected to execution device 2, and optical communication slave station 3 is connected to execution device 3.

[0045] Above Figure 1 The central controller is used to manage the interactive data content of multiple optical communication slave stations in the system as a whole, so as to achieve the purpose of unified control of the operation of the slave station equipment; the optical communication master station receives the data sent by the controller and distributes it to each slave station in turn, and also summarizes the data uploaded from each optical communication slave station and uploads it to the controller for processing. On the other hand, the optical communication master station also provides low-latency and accurate real-time data transmission control for each optical communication slave station.

[0046] For example, Figure 2A As shown, this is a second schematic diagram of a networking of an optical communication network. Figure 2A With the above Figure 1 The difference is that each optical communication slave station device (hereinafter referred to as an optical communication slave station) integrates an execution part (i.e., an execution function entity) and a communication part (i.e., a communication function entity). In other words, the optical communication slave station device integrates the communication function and the execution function, which is equivalent to Figure 2A The optical communication slave device in Figure 1 Functions of Zhongguang Communication slave station and execution equipment. Figure 2A The three optical communication slave station devices (optical communication slave station device 1, optical communication slave station device 2 and optical communication slave station device 3) shown in the figure can receive the control instructions issued by the optical communication master station through the communication part thereof, and the control instructions can be directly executed by the execution part.

[0047] Figure 2A In the above-mentioned optical communication slave station device, there can be one or more in the networking structure, and each optical communication slave station device includes a communication part and an execution part. Among them, the communication part realizes real-time low-latency data transmission between the optical communication slave station device and the optical communication master station, and the execution part is used to execute the control instructions issued by the controller and upload information such as the device status of the optical communication slave station device. Figure 2A In the Zhongguang Communication slave station equipment, the execution part (i.e., the execution function entity) and the communication part (i.e., the communication function entity) are integrated into the same control processing chip. Figure 1 In comparison, it can better guarantee low latency and real-time performance of communication.

[0048] For example, Figure 2B As shown, it is a schematic diagram of an optical communication network Figure 3 . Figure 2B With the above Figure 2A The difference is that the above Figure 2A The controller is integrated in the optical communication master station.

[0049] In a specific implementation, the above Figure 1 , Figure 2A and Figure 2B In the networking structure, there is no restriction on the specific optical network transmission rate, specific optical fiber material and layout. For example, the optical splitting network composed of the above-mentioned optical fiber cables and splitters can include optical fiber cables, optical couplers, splitters, splitters or other devices in actual application scenarios, without limiting the specific form. The devices in the optical splitting network can be passive optical devices, that is, the devices in the optical splitting network do not require power when transmitting and splitting optical signals. The use of passive optical devices can resist interference, have high bandwidth, and have great room for subsequent improvement.

[0050] The embodiment of the present application also provides a communication method, in which data conflicts are avoided when a communication master station is involved in data interaction with multiple communication slave stations at the same time. The method is specifically performed by an optical communication master station and an optical communication slave station, and is intended to reduce the data transmission delay between the master and slave stations, reduce transmission and control jitter, and meet the precise control requirements of high-performance control systems.

[0051] In order to realize real-time data transmission, this communication method needs to perform time synchronization before data transmission.

[0052] Figure 3 The figure is a flow chart of the time synchronization process in a communication method. This method can be applied to Figure 2A or Figure 2B Take the network structure shown in the figure as an example. Figure 3 As shown, the time synchronization process may include but is not limited to the following steps:

[0053] 301. The optical communication master station broadcasts a time synchronization request message to a target optical communication slave station via an optical fiber cable.

[0054] Correspondingly, the target optical communication slave station receives the time synchronization request message broadcasted by the optical communication master station through the optical fiber cable.

[0055] Among them, after the optical communication master station broadcasts the time synchronization request message for the target optical communication slave station through the optical fiber cable, if other optical communication slave stations other than the target optical communication slave station receive the time synchronization request message, they will automatically ignore it. Each optical communication slave station only receives and processes the time synchronization request message for itself.

[0056] Exemplarily, the target optical communication slave station may be one of a plurality of optical communication slave stations, such as Figure 2A or Figure 2B Any of the three optical communication slave devices shown in .

[0057] The time synchronization request message carries first timestamp information of the time when the time synchronization request message is sent, and the first timestamp information is recorded as t1.

[0058] 302. The target optical communication slave station records third timestamp information of the time when the time synchronization request message is received.

[0059] The third timestamp information is recorded as t2.

[0060] 303. The target optical communication slave station sends a delay request message to the optical communication master station, and records fourth timestamp information of the time when the delay request message is sent.

[0061] Correspondingly, the optical communication master station receives the delay request message sent by the target optical communication slave station.

[0062] Among them, the fourth timestamp information is recorded as t3.

[0063] 304. The optical communication master station sends a delay request response message to the target optical communication slave station.

[0064] Correspondingly, the target optical communication slave station receives the delay request response message sent by the optical communication master station, wherein the delay request response message carries second timestamp information of the time when the delay request message is received.

[0065] The delay request response message carries second timestamp information, and the second timestamp information is recorded as t4.

[0066] 305. The target optical communication slave station determines a time offset value between the optical communication master station and the optical communication slave station based on the first timestamp information, the second timestamp information, the third timestamp information and the fourth timestamp information.

[0067] Exemplarily, the above time offset value is recorded as to, then to=((t2−t1)−(t4−t3) ) / 2.

[0068] 306. The target optical communication slave station synchronizes the time of the optical communication slave station with the optical communication master station based on the time offset value.

[0069] In the embodiment of the present application, the timestamps of the optical communication master station and the optical communication slave station include nanosecond time and millisecond time, and both times are realized by a counter driven by an external stable clock source pulse, ensuring nanosecond-level time synchronization accuracy.

[0070] The target optical communication slave station compensates the time offset value to to its own nanosecond time counter and millisecond time counter, thereby achieving the effect of correcting the local time of the target optical communication slave station.

[0071] The above steps 301 and 306 are the process of time synchronization between the optical communication master station and a target optical communication slave station among the multiple optical communication slave stations. For the optical communication master station and other optical communication slave stations, time synchronization can also be performed based on the above steps 301 and 306. In practical applications, the optical communication master station can perform the above time synchronization process with each optical communication slave station in turn to achieve time synchronization of the entire system, and the optical communication master station can also perform the above time synchronization process with each optical communication slave station at the same time to achieve time synchronization of the entire system. The embodiments of the present application are not limited.

[0072] In the above time synchronization process, first, the optical communication master station broadcasts the time synchronization request message, and in the subsequent series of message interactions, the target optical communication slave station records the relevant timestamp information. Based on these accurately recorded timestamp information, the time offset value between the optical communication master station and the optical communication slave station can be accurately calculated, ensuring the scientificity and accuracy of the time offset calculation. Secondly, the timestamp is realized by means of a counter driven by an external stable clock source pulse for both nanosecond time and millisecond time, ensuring high-precision time synchronization at the nanosecond level. Whether the optical communication master station synchronizes time with each optical communication slave station in turn, or executes the process with multiple slave stations at the same time, it can ensure that the entire optical communication system remains highly consistent in time. This is of great significance to the entire optical communication network. It provides an accurate time reference for subsequent data transmission, greatly helps to reduce the data transmission delay between the master and slave stations, reduce transmission and control jitter, and effectively meet the stringent requirements of high-performance control systems for precise control, ensuring the stable, efficient and precise operation of the entire optical communication network, and effectively avoiding a series of data transmission errors and instruction execution deviations that may be caused by time asynchrony.

[0073] After executing the above-mentioned time synchronization process, the communication method provided by the embodiment of the present disclosure can realize the subsequent data transmission process.

[0074] For example, Figure 4A A schematic diagram of a data transmission process in a communication method Figure 1 This method can be applied to Figure 2A or Figure 2B Take the network structure shown in the figure as an example. Figure 4A As shown, the time synchronization process may include but is not limited to the following steps:

[0075] 401. The optical communication master station obtains data to be transmitted.

[0076] The data to be transmitted includes: data sent from multiple optical communication slave stations.

[0077] For example, in Figure 2A In the optical communication master station, as the hub of data transmission, it needs to obtain the data to be transmitted from the controller connected to it. These data to be transmitted cover the data sent by multiple optical communication slave stations. The controller, as the core component of the system to manage the interactive data content of multiple optical communication slave stations, provides the optical communication master station with various instructions, information and other data that need to be sent to the slave station, so that the subsequent master station can accurately distribute the corresponding data according to the identification of the slave station, thereby realizing the unified control and coordinated management of the operation of the entire optical communication network slave station equipment, ensuring that each slave station can receive the correct data information related to itself.

[0078] For example, in Figure 2BIn the optical communication master station, a controller is integrated into the optical communication master station, so the optical communication master station can obtain the data to be transmitted from its own controller.

[0079] 402. The optical communication master station reads the configured time slot allocation data.

[0080] The time slot allocation data includes: each time slot indication for sending data within a communication cycle, and an optical communication slave station identifier corresponding to each time slot indication.

[0081] The time slot allocation data may be pre-configured in a configuration file. The time slot allocation data may be stored in the form of a time slot allocation table.

[0082] After obtaining the data to be transmitted, the optical communication master station immediately reads the pre-configured time slot allocation data. The time slot allocation data plays an extremely critical role in the entire data transmission process. It specifies in detail the time slot indications for sending data during the communication cycle and the corresponding optical communication slave station identification. By reading this information, the optical communication master station can clearly know which optical communication slave station should send data to in each specific time slot. This precise time slot planning is like a data transmission schedule, which enables the master station to distribute data to multiple slave stations in an orderly manner, avoiding chaos and disorder in data transmission, and laying a solid foundation for efficient, orderly and conflict-free data transmission.

[0083] 403. When the time indicated by the first time slot indication in each time slot indication arrives, the optical communication master station sends the downlink data to the target optical communication slave station.

[0084] The target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication.

[0085] When the precise moment represented by the first time slot indication determined by the time slot allocation data arrives, the optical communication master station starts the data transmission process and transmits the corresponding downlink data to the target optical communication slave station. By strictly following the time slot indication to send data, the master station ensures that the data can reach the corresponding slave station accurately at the predetermined time point, making full use of time resources, avoiding data conflicts caused by different slave station data competing for the transmission channel at the same time, and ensuring the stability and reliability of data transmission in the entire optical communication network, so that data can flow between the master station and each slave station in an orderly manner according to the established plan.

[0086] 404. The target optical communication slave station receives the sent data sent by the optical communication master station through the communication function entity, and transmits the sent data to the communication function entity.

[0087] The target optical communication slave station receives the data sent from the optical communication master station in a specific time slot by means of its built-in communication function entity. As the key module for data interaction between the slave station and the master station, the communication function entity is responsible for receiving and transmitting data. After receiving the data, it is transmitted to the communication function entity for further processing or temporary storage so that the subsequent execution function entity can obtain and execute the corresponding control instructions. This process reflects the collaborative working mechanism between the internal functional modules of the slave station, in which the communication function entity plays an important role in data reception and transfer, ensuring that the data can flow smoothly within the slave station.

[0088] 405. The target optical communication slave station executes the corresponding control instruction based on the sent data by executing the functional entity.

[0089] After the target optical communication slave station receives and transmits the sent data in its communication function entity, the execution function entity begins to play a role. The execution function entity interprets and executes the corresponding control instructions based on the information contained in the received sent data. These control instructions may involve various operations on the devices connected to the slave station, such as starting, stopping, and adjusting parameters of the equipment. Through the accurate execution of the control instructions by the execution function entity, the optical communication network slave station can effectively control the external devices, thereby achieving the functional goal of the entire optical communication network system, that is, through the unified management of the controller, the data distribution and coordination of the optical communication master station, and the execution of the control instructions by the optical communication slave station, the precise control and efficient operation management of the equipment in the entire network can be achieved.

[0090] For example, Figure 4B FIG2 is a flow chart of a data transmission process in a communication method. This method can be applied to Figure 2A or Figure 2B Take the network structure shown in the figure as an example. Figure 4B As shown, the time synchronization process may include but is not limited to the following steps:

[0091] 411. The optical communication slave station obtains data to be uploaded.

[0092] In an optical communication network, the optical communication slave station bears the important responsibility of feeding back information to the optical communication master station, and this first requires obtaining the data to be uploaded. These data to be uploaded usually reflect the operating status of the slave station itself, the relevant parameters of the connected equipment, or the execution of the control instructions previously received. For example, the operating temperature, operating hours, and whether there are any abnormalities of the execution equipment connected to the slave station may be sorted and collected as data to be uploaded, so that the optical communication master station can fully understand the specific conditions of each slave station and its associated equipment, provide a basis for subsequent summary analysis and further decision-making of the controller, and thus realize the effective monitoring and management of the entire optical communication network.

[0093] 412. The optical communication slave station reads local time slot allocation data.

[0094] The optical communication slave station time slot allocation data includes: a second time slot indication for uploading data by the optical communication slave station within the communication cycle.

[0095] The time slot allocation data may be pre-stored in the optical communication slave station. The time slot allocation data may be stored in the form of a time slot allocation table.

[0096] In order to ensure the orderliness of data upload, the optical communication slave station will read the time slot allocation data pre-stored locally, which is often in the form of a time slot allocation table. The data clearly records the second time slot indication corresponding to the slave station uploading data during the communication cycle, which is equivalent to setting a specific time "window" for the slave station to upload data. Each slave station knows when to send data to the optical communication master station based on its own time slot allocation data, which is like each slave station has its own exclusive "speaking time". In this way, data congestion and conflicts caused by multiple slave stations uploading data at the same time are avoided, ensuring the orderly process of uploading data on the entire network. It cooperates with the mechanism of time slot allocation when the master station sends data mentioned above to jointly maintain the efficiency and stability of data interaction in the optical communication network.

[0097] It should be noted that the optical communication master station and the optical communication slave station can store different time slot allocation data.

[0098] 413. When the time indicated by the second time slot indication arrives, the optical communication slave station sends the data to be uploaded to the optical communication master station.

[0099] When the precise moment corresponding to the second time slot indication determined by the local time slot allocation data arrives, the optical communication slave station will send the previously acquired data to be uploaded to the optical communication master station according to the established rules. Strictly following this time slot requirement to perform data upload actions is the key to ensuring the orderly transmission of data in the entire optical communication network. In this way, the data of each slave station can flow to the optical communication master station in an orderly manner at their respective specified times, without competing for channels or interfering with each other, just like everyone speaking in order, ensuring that the master station can smoothly receive accurate information from each slave station, paving the way for subsequent aggregation processing and other operations.

[0100] 414. The optical communication master station aggregates and processes the data uploaded by multiple optical communication slave stations to obtain aggregated data.

[0101] For example, in Figure 2AIn the optical communication master station, as the core hub connecting the controller and multiple optical communication slave stations, it is necessary to integrate the task of uploading data from the optical communication slave stations. After receiving the data to be uploaded from each optical communication slave station according to the time slot arrangement, the optical communication master station will use the corresponding algorithms and processing mechanisms to summarize and process these scattered data. For example, the equipment operation status data fed back by different optical communication slave stations will be classified, sorted, statistically analyzed, etc., and integrated into a complete summary data, so as to clearly present the overall operation status of each part of the entire optical communication network, laying the foundation for the master station to accurately send the summary data to the controller in the next step, so that the controller can grasp the overall picture of the entire system from a macro level and make corresponding decisions and adjustments.

[0102] For example, in Figure 2B In the optical communication master station, a controller is integrated. After aggregating and processing the data uploaded by multiple optical communication slave stations, the internal controller can perform overall system management, analysis and subsequent decision-making.

[0103] 415. The optical communication master station processes the summary data.

[0104] In some embodiments, the optical communication master station can send the summary data to the controller, for example, Figure 2A As shown, in an optical communication network where the optical communication master station and the controller are independent devices, the optical communication master station can send summary data to the controller.

[0105] After summarizing and processing, the optical communication master station will pass the obtained summary data to the controller. As the "brain" of the entire optical communication network, the controller needs these comprehensive and organized data to carry out overall system management, analysis and subsequent decision-making. After the optical communication master station sends the summary data, the controller can use this data to gain insight into the operating status of the entire network, determine whether there are any abnormal conditions, and then issue new control instructions to each optical communication slave station or adjust the existing control strategy, etc., to achieve unified command and precise control of the optical communication network, ensuring that the entire network is always in an efficient and stable operating state.

[0106] In some embodiments, the optical communication master station itself can perform overall system management, analysis, and subsequent decision making based on the aggregated data. Figure 2B As shown, in an optical communication network in which a controller is integrated in an optical communication master station, the controller in the optical communication master station can perform overall system management, analysis and subsequent decision making based on the aggregated data.

[0107] Figure 5 It is a schematic diagram that the same time axis t uniformly represents the operating time axis of all devices. Figure 5As shown, after the optical communication slave station equipment is synchronized with the optical communication master station equipment, the same time axis t can be used to uniformly represent the operating time axis of all devices. In the embodiment of the present application, the control of the optical communication slave station by the controller (which can be integrated in the optical communication master station; or it can be independently set without integration with the optical communication master station) can be divided into communication cycles of fixed time lengths. In each communication cycle, the optical communication master station and each optical communication slave station complete a data exchange, and let the execution part of each optical communication slave station execute a control instruction. Specifically, the optical communication master station and the optical communication slave station are based on the nanosecond time counter; each time the counter reaches a predetermined count value, an interrupt signal (IRQ) is generated as a communication cycle start signal to start subsequent work.

[0108] Each communication control cycle is divided into multiple time slots, each of which represents a specific time allocation. The implementation of the time slot is similar to the control cycle. A counter is started according to the cycle start signal IRQ, and a time slot start signal is generated every time the count value reaches the set time. A single time slot interval can be used for a specific function execution, which can be communication sending start, waiting or instruction execution.

[0109] The above Figure 5 In the example shown, a cycle is divided into multiple time slots and assigned to different optical communication slave stations to send data. In this way, the data interval of each slave station is accurately controlled, data conflicts between multiple optical communication slave station devices are avoided, and delays or errors are reduced. For another example, time slot 4 can be used as the unified instruction start time for all optical communication slave station devices, and nanosecond time synchronization ensures the synchronous cooperation performance of multiple slave station devices.

[0110] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0111] In an exemplary embodiment, Figure 6As shown, a structural block diagram of an optical communication master station is provided, wherein the optical communication master station is in an optical communication network, wherein the optical communication network includes the optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including: a data acquisition module 601, used for acquiring data to be transmitted, wherein the data to be transmitted includes: data sent from the plurality of optical communication slave stations; a configuration reading module 602, used for reading configured time slot allocation data, wherein the time slot allocation data includes: each time slot indication for sending data within a communication cycle, and an optical communication slave station identifier corresponding to each time slot indication; a sending module 603, used for sending the sent data to a target optical communication slave station when a time indicated by a first time slot indication in each time slot indication arrives, wherein the target optical communication slave station is an optical communication slave station indicated by an optical communication slave station identifier corresponding to the first time slot indication.

[0112] In some embodiments, the sending module 603 is further used to:

[0113] A time synchronization request message for the target optical communication slave station is broadcasted through an optical fiber cable, wherein the time synchronization request message carries a first timestamp information of the time when the time synchronization request message is sent; the optical communication master station further comprises: a receiving module 604, which is used to receive a delay request message sent by the target optical communication slave station, and record a second timestamp information of the time when the delay request message is received; the sending module 603 is also used to send a delay request response message to the target optical communication slave station, wherein the delay request response message carries the second timestamp information;

[0114] The first timestamp information and the second timestamp information are used to determine a time offset value between the optical communication master station and the target optical communication slave station.

[0115] In some embodiments, the receiving module 604 is also used to receive data uploaded by multiple optical communication slave stations; the optical communication master station also includes: a data aggregation module 605, which is used to aggregate and process the data uploaded by multiple optical communication slave stations to obtain aggregated data, and process the aggregated data.

[0116] In an exemplary embodiment, Figure 7 As shown, a structural block diagram of an optical communication slave station is provided, wherein the optical communication slave station is in an optical communication network, wherein the optical communication network includes an optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including:

[0117] The data acquisition module 701 is used to acquire data to be uploaded and read local time slot allocation data, wherein the time slot allocation data includes: a second time slot indication for uploading data from the optical communication slave station within a communication cycle;

[0118] The sending module 702 is used to send the data to be uploaded to the optical communication master station when the time indicated by the second time slot indication arrives.

[0119] In some embodiments, each of the optical communication slave stations integrates an execution function entity and a communication function entity, and the sending module 702 is further used to:

[0120] Receiving the sent data sent by the optical communication master station through the communication function entity;

[0121] The optical communication slave station also includes:

[0122] The execution module 703 is used to transmit the sent data to the communication function entity; and execute the corresponding control instruction based on the sent data through the execution function entity.

[0123] In some embodiments, the optical communication slave station further includes:

[0124] A receiving module 704 is used to receive a time synchronization request message broadcasted by the optical communication master station through an optical fiber cable, wherein the time synchronization request message carries first timestamp information of the time when the time synchronization request message is sent;

[0125] The recording module 705 is used to record the third timestamp information of the time when the time synchronization request message is received;

[0126] The sending module 702 is further used to send a delay request message to the optical communication master station;

[0127] The recording module 705 is further used to record the fourth timestamp information of the time when the delay request message is sent;

[0128] The receiving module 704 is further configured to receive a delay request response message sent by the optical communication master station, wherein the delay request response message carries second timestamp information of the time when the delay request message is received;

[0129] The time synchronization module 706 is used to determine the time offset value between the optical communication master station and the optical communication slave station based on the first timestamp information, the second timestamp information, the third timestamp information and the fourth timestamp information; and based on the time offset value, synchronize the optical communication slave station with the optical communication master station.

[0130] Each module in the above optical communication master station and optical communication slave station can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0131] In an exemplary embodiment, a computer device is provided. The computer device may be an optical communication master station or an optical communication slave station. The internal structure diagram thereof may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the communication method in the above method embodiment is implemented.

[0132] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method shown in the method embodiment is implemented.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method shown in the method embodiment is implemented.

[0134] In one embodiment, an optical communication network is also provided, which includes: an optical communication master station, and multiple optical communication slave stations connected to the optical communication master station, each of the optical communication slave stations integrating an execution function entity and a communication function entity, the optical communication master station is used to implement each process of the method executed by the optical communication master station in the method embodiment, and the optical communication slave stations are used to implement each process of the method executed by the optical communication master station in the method embodiment.

[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0136] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0137] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A communication method, characterized in that: The method is applied to an optical communication master station in an optical communication network, wherein the optical communication network includes the optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including: Acquire data to be transmitted, wherein the data to be transmitted includes: data sent by the plurality of optical communication slave stations; Reading the configured time slot allocation data, the time slot allocation data including: each time slot indication for sending data within a communication cycle, and the optical communication slave station identifier corresponding to each time slot indication; When the time indicated by the first time slot indication in each time slot indication arrives, the sent data is sent to the target optical communication slave station, wherein the target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication.

2. The method according to claim 1, characterized in that Before obtaining the data to be transmitted, the method further includes: Sending a time synchronization request message for the target optical communication slave station through optical fiber cable broadcasting, wherein the time synchronization request message carries first timestamp information of the time when the time synchronization request message is sent; receiving a delay request message sent by the target optical communication slave station, and recording second timestamp information of the delay request message receiving time; Sending a delay request response message to the target optical communication slave station, wherein the delay request response message carries the second timestamp information; The first timestamp information and the second timestamp information are used to determine a time offset value between the optical communication master station and the target optical communication slave station.

3. The method according to claim 1, characterized in that The method further comprises: receiving data uploaded by a plurality of the optical communication slave stations; Aggregating and processing the data uploaded by the plurality of optical communication slave stations to obtain aggregated data; The aggregated data is processed.

4. A communication method, characterized in that: The method is applied to an optical communication slave station in an optical communication network, wherein the optical communication network includes an optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including: Acquire data to be uploaded, read local time slot allocation data, the time slot allocation data including: a second time slot indication for uploading data from the optical communication slave station within a communication cycle; When the time indicated by the second time slot indication arrives, the data to be uploaded is sent to the optical communication master station.

5. The method according to claim 4, characterized in that Each of the optical communication slave stations is integrated with an execution function entity and a communication function entity, and the method further comprises: Receiving the sent data sent by the optical communication master station through the communication function entity, and transmitting the sent data to the communication function entity; The corresponding control instruction is executed based on the sent data through the execution function entity.

6. The method according to claim 4, characterized in that Before obtaining the data to be uploaded, the method further includes: Receiving a time synchronization request message broadcasted by the optical communication master station through an optical fiber cable, wherein the time synchronization request message carries first timestamp information of the time when the time synchronization request message is sent; Recording third timestamp information of the time when the time synchronization request message is received; Sending a delay request message to the optical communication master station, and recording fourth timestamp information of the time when the delay request message is sent; Receiving a delay request response message sent by the optical communication master station, wherein the delay request response message carries second timestamp information of the time when the delay request message is received; Determine a time offset value between the optical communication master station and the optical communication slave station based on the first timestamp information, the second timestamp information, the third timestamp information and the fourth timestamp information; Based on the time offset value, the optical communication slave station is time synchronized with the optical communication master station.

7. An optical communication master station, characterized in that: The optical communication master station is located in an optical communication network, and the optical communication network includes the optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including: A data acquisition module, used for acquiring data to be transmitted, wherein the data to be transmitted includes: data sent by the plurality of optical communication slave stations; A configuration reading module is used to read the configured time slot allocation data, wherein the time slot allocation data includes: each time slot indication for sending data within a communication cycle, and an optical communication slave station identifier corresponding to each time slot indication; The sending module is used to send the sent data to the target optical communication slave station when the time indicated by the first time slot indication in each time slot indication arrives, wherein the target optical communication slave station is the optical communication slave station indicated by the optical communication slave station identifier corresponding to the first time slot indication.

8. An optical communication slave station, characterized in that: The optical communication slave station is in an optical communication network, and the optical communication network includes an optical communication master station and a plurality of optical communication slave stations connected to the optical communication master station, including: A data acquisition module is used to acquire data to be uploaded and read local time slot allocation data, wherein the time slot allocation data includes: a second time slot indication for uploading data from the optical communication slave station within a communication cycle; The sending module is used to send the data to be uploaded to the optical communication main station when the time indicated by the second time slot indication arrives.

9. An optical communication device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. An optical communication network, characterized in that: The optical communication network includes: an optical communication master station, and multiple optical communication slave stations connected to the optical communication master station, each of the optical communication slave stations integrating an execution function entity and a communication function entity, the optical communication master station is used to implement the method as described in any one of claims 1 to 3, and the optical communication slave stations are used to implement the method as described in any one of claims 4 to 6.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.