Distributed optical fiber communication system and method
By using the three-way handshake mechanism and bus communication mode of the distributed optical fiber communication system, the problems of uneven current and voltage among distributed power modules are solved, the communication rate and reliability are improved, and the stability and reliability of the power supply system for high-power urban rail vehicles are ensured.
Patent Information
- Application Number
- CN202511375559.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-25
- Publication Date
- 2025-12-09
AI Technical Summary
In modern high-power urban rail vehicle power supply systems, parameter differences between distributed power modules lead to uneven current and voltage, increasing the risk of device damage and potentially causing system shutdown. Communication speed and reliability also affect the performance of control strategies.
A distributed optical fiber communication system is adopted, and communication is established through a three-way handshake mechanism between the master and slave controllers, including pulse signal exchange, code verification and control command transmission, to ensure current and voltage equalization output, and switch to bus communication mode in case of failure.
It improves communication speed and reliability, reduces communication data volume, ensures stable operation of distributed power supply system, prevents system downtime, and realizes current and voltage sharing control among modules.
Smart Images

Figure CN121097953A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication control, in particular to a distributed optical fiber communication system and method. BACKGROUND
[0002] In modern high-power urban rail vehicle power supply systems, although the distributed power architecture solves many drawbacks of centralized control, it introduces new technical challenges. The most prominent problem is that the parameter difference between each power module is too large, causing uneven current and uneven voltage between modules, thereby increasing the risk of device damage due to voltage stress and the risk of system shutdown due to false protection. Solving this problem depends on the performance of the power control strategy, and the performance of the power control strategy in actual engineering applications mainly depends on the communication rate and communication reliability between the master and slave controllers.
[0003] Therefore, there is an urgent need for a communication system and method to ensure that the performance of the control strategy meets the needs of distributed power control. SUMMARY
[0004] The present application at least partially solves the above technical problems, and provides a distributed optical fiber communication system and method.
[0005] The first aspect of the embodiments of the present disclosure provides a distributed optical fiber communication system suitable for an input series output parallel type distributed power supply system, for realizing current sharing and voltage sharing control between power modules. The distributed optical fiber communication system comprises: a slave controller connected to one of the power modules for controlling the output current and voltage of the power module, and the number of slave controllers is at least one; a master controller connected to one of the power modules and connected to each of the slave controllers through an optical fiber communication network, and when the distributed optical fiber communication system is powered on or running, the master controller performs handshaking with the slave controllers one by one to establish a communication connection, and when performing the handshaking, the master controller is configured to: send a pulse signal to the slave controller and wait for the slave controller to respond to realize the first stage of handshaking; when the number of pulse signals fed back by the slave controller is detected, receive and record the self-encoding sent by each slave controller, and perform a cyclic redundancy check on the encoding to realize the second stage of handshaking; when the cyclic redundancy check passes, send the encoding of the master controller to the slave controller to complete the third stage of handshaking; When the handshake of the third stage is implemented with all the slave controllers, the power control strategy issued by the host computer is received, and control instructions are sent to each slave controller according to the power control strategy, and the slave controller adjusts the current or voltage of the power module connected thereto according to the control instruction, thereby realizing the current sharing and voltage sharing output of the distributed power supply system.
[0006] The technical scheme provided by the application has at least the following beneficial effects: on the one hand, the communication is established through the three-way handshake, which can confirm the communication capability in both directions and prevent historical connection interference and filter invalid connection requests; on the other hand, the handshake is used to initialize the codes of the two parties, the code names of the two parties are determined, and the code names can be omitted in the communication data, thereby reducing the data amount of communication; the master-slave three-stage handshake mechanism is the simplest and most effective way, which can confirm the normal receiving and sending capability of the two parties, reduce the data amount of communication between the two parties, improve the communication speed, and further realize reliable optical fiber communication, ensure the effectiveness of the control strategy, and realize the current sharing and voltage sharing output of the distributed power supply system.
[0007] In some other embodiments of the application, the master controller is further connected with each slave controller through a communication bus to realize bus communication of the distributed optical fiber communication system; the master controller is further configured to perform self-fault detection when the distributed optical fiber communication system is powered on or running, and perform bus communication when the master controller has a fault; and perform the handshake mechanism with the slave controller when the master controller has no fault.
[0008] The technical scheme provided by the application has at least the following beneficial effects: by setting the dual-channel communication mode and the handshake mechanism in the communication between the master controller and the slave controller, on the one hand, the redundancy backup function of the communication system is realized to ensure that the system does not stop when a fault occurs, and on the other hand, the reliability of the communication control between the master controller and the slave controller is ensured, the communication instruction error is reduced, and the system communication quality is improved.
[0009] In some other embodiments of the application, the slave controller is configured to determine whether to enter the bus communication when the distributed optical fiber communication system is powered on or running, perform the bus communication when the master controller has a fault, and perform the handshake mechanism with the master controller when the master controller has no fault.
[0010] The technical scheme provided by the application has at least the following beneficial effects: by setting the dual-channel communication mode and the handshake mechanism in the communication between the master controller and the slave controller, on the one hand, the redundancy backup function of the communication system is realized to ensure that the system does not stop when a fault occurs, and on the other hand, the reliability of the communication control between the master controller and the slave controller is ensured, the communication instruction error is reduced, and the system communication quality is improved.
[0011] In other embodiments of this application, when the bus communication is performed, the slave controller is configured to: cyclically act as a temporary master controller according to a preset polling order, and be responsible for issuing the control commands to other slave controllers within its own polling cycle; the other slave controllers receive the control commands and adjust the current and voltage of the power module connected to them according to the control commands.
[0012] The technical solution provided in this application brings at least the following beneficial effects: When the main controller of the distributed communication system reports a fault, the communication fault will cause the entire machine to stop. At this time, the main controller automatically expands to a bus communication mode, and each slave controller communicates in a cyclic master mode. The communication mode transitions from "point-to-point" to bus mode, so that the equipment does not stop and the system reliability and redundancy are increased.
[0013] In other embodiments of this application, the slave controller is configured to: receive the pulse signal sent by the master controller during the first handshake and record the number of pulse signals; during the second handshake, feed back the number of pulse signals it recorded to the master controller, and the master controller confirms whether the number of pulse signals fed back by the slave controller is consistent with the pulse signals it sent. If so, communication is established with the slave controller; if not, communication is not established with the slave controller.
[0014] The technical solution provided in this application has at least the following beneficial effects: by establishing communication through a two-way three-way handshake, communication capability can be confirmed in both directions, interference from historical connections can be prevented, and invalid connection requests can be filtered.
[0015] In other embodiments of this application, the slave controller is further configured to: send its own code to the master controller during the second-stage handshake; and in the communication after the handshake is successful, the master controller issues corresponding control instructions to each slave controller according to the slave controller's code, and the slave controller performs current and voltage control on the power module according to its corresponding control instructions to realize the current and voltage equalization output of the distributed power supply system.
[0016] The technical solution provided in this application brings at least the following beneficial effects: by initializing the codes of both parties through a handshake and clarifying the code names of both parties, the code names can be omitted in subsequent communication data, reducing the amount of communication data. Less data means shorter transmission time and lower error probability, which indirectly improves communication stability, ensures the stability of communication strategy, and realizes the current and voltage equalization output of the distributed power supply system.
[0017] In other embodiments of this application, the slave controller is configured to: receive and store the master controller's code sent by the master controller during the third-stage handshake; and in communication after the master and slave controllers have successfully handed over the handshake, the slave controller identifies the control command issued by the master controller based on the received master controller's code, and adjusts the current or voltage of the power module connected to it according to the control command, so as to realize the current sharing and uniform output of the distributed power supply system.
[0018] The technical solution provided in this application brings at least the following benefits: the coded information of the master controller and the slave controller is exchanged in advance during the handshake phase, which reduces the amount of communication data between the two parties in the subsequent communication process, improves the communication rate, further ensures the effectiveness of the communication strategy, and realizes the current and voltage equalization output of the distributed power supply system.
[0019] In other embodiments of this application, the slave controller is further configured to: send fixed data to the master controller during the second-stage handshake, the fixed data including a device type identifier, a default data packet length, and communication rate parameters; the fixed data is used to establish rules for communication between the master and slave controllers after a successful handshake, the master controller issues corresponding control commands according to the rules, and the slave controller identifies the corresponding control commands according to the rules and executes current and voltage control on the power module to achieve current sharing and uniform output of the distributed power supply system.
[0020] The technical solution provided in this application brings at least the following beneficial effects: the device type identifier, default data packet length, communication rate parameters and other related information are confirmed during the handshake phase, which allows a single data packet to carry more effective information, thereby reducing the overall data volume when transmitting the same amount of effective data, increasing the communication rate between the master and slave controllers, ensuring the effectiveness of the control strategy, and thus realizing the current and voltage equalization output of the distributed power supply system.
[0021] In other embodiments of this application, during the second-stage handshake, the main controller is further configured to: sort the fixed data from highest to lowest importance, and set the number of cyclic redundancy checks performed on the fixed data based on the sorting result; increase the number of cyclic redundancy checks performed on the fixed data with high importance, and decrease the number of cyclic redundancy checks performed on the fixed data with low importance.
[0022] The technical solution provided in this application brings at least the following beneficial effects: increasing the number of cyclic redundancy checks for high-importance fixed data ensures the quality of communication; reducing the number of cyclic redundancy checks for low-importance fixed data improves the computational efficiency of the system.
[0023] A second aspect of the present disclosure provides a distributed optical fiber communication method, implemented based on the distributed optical fiber communication system provided in the first aspect of the present disclosure, comprising: When the distributed communication system is powered on or running, the master controller and the slave controller perform a handshake mechanism to establish a communication connection. The handshake mechanism includes: The master controller sends a pulse signal to the slave controller and waits for the slave controller to respond, thus completing the first-stage handshake. When the master controller detects the number of pulse signals fed back by the slave controller, the master controller receives and records the self-encoding sent by each slave controller, and performs cyclic redundancy check on the encoding to realize the second-stage handshake; After the cyclic redundancy check passes, the master controller sends the master controller's code to the slave controller to complete the third-stage handshake. After the master controller completes the third-stage handshake with all the slave controllers, the master controller receives the power control strategy issued by the host computer and sends corresponding control commands to each slave controller according to the power control strategy. The slave controller adjusts the current or voltage of the power module connected to it according to the corresponding control command to realize the current and voltage equalization output of the distributed power supply system.
[0024] Compared with existing technologies, this invention, while ensuring communication quality, improves the overall communication rate of the distributed communication control system by extending bus communication and a two-way three-way handshake mechanism. This enables the distributed optical fiber communication system to ensure the effectiveness of power control strategies in distributed power supply systems, solve the current sharing and uniformity problems in distributed power supply systems, and ensure the stable operation of distributed power supply systems.
[0025] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, specific embodiments of this disclosure are described below. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a high-power power supply topology diagram according to an embodiment of this application; Figure 2 This is a block diagram of a point-to-point communication system for a distributed optical fiber communication system according to an embodiment of this application; Figure 3 This is a flowchart of the handshake mechanism in an embodiment of this application; Figure 4 This is the workflow of the distributed optical fiber communication system in the embodiments of this application. Figure 1 ; Figure 5 This is a bus communication block diagram of a distributed optical fiber communication system according to an embodiment of this application; Figure 6 This is the workflow of the distributed optical fiber communication system in the embodiments of this application. Figure 2 . Detailed Implementation
[0028] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.
[0029] The prefixes such as "first" and "second" used in this application embodiment are merely for distinguishing different descriptive objects and do not limit the position, order, priority, quantity, or content of the described objects. The use of ordinal numbers and other prefixes used to distinguish descriptive objects in this application embodiment does not constitute a limitation on the described objects. The description of the described objects is given in the claims or the context of the embodiments, and should not constitute unnecessary restrictions due to the use of such prefixes. Furthermore, in the description of this embodiment, unless otherwise stated, "multiple" means two or more.
[0030] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0031] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0032] In this application, the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0033] Centralized control of high-power urban rail vehicle power supplies presents several challenges. First, the power devices in the converters bear immense current and voltage stress. While series and parallel connections between these devices can alleviate this, additional current-sharing and voltage-sharing circuits are required for the switching devices, leading to increased system losses. Second, the increased number of control and feedback variables complicates the design of controllers and drivers, reducing system flexibility. Third, the reliability of a single high-power converter is difficult to guarantee; even a minor fault in one unit can cause the entire system to shut down, resulting in incalculable losses. Therefore, due to the requirements of load power, power density, and control performance, distributed power supply systems are commonly used for urban rail vehicle power supplies.
[0034] Distributed power supply systems offer advantages such as modularity, large capacity, high reliability, high efficiency, low cost, and redundancy. However, these advantages also present numerous technical challenges. For instance, when distributed modules are connected in parallel, significant differences in module parameters can lead to uneven output current. Modules with higher output currents will experience greater voltage and current stress, increasing the risk of device damage. Furthermore, when the system operates at full load or near protection thresholds, modules with high output currents will reach their maximum current limit first, triggering current protection. Once the system enters protection mode, the entire module will cease operation. Additionally, during dynamic response, circulating currents between modules will intensify, causing even greater voltage and current surges, ultimately leading to system instability.
[0035] To address the aforementioned voltage and current sharing issues, control strategies can be employed to improve the system, ensuring a uniform distribution of current and voltage stress among modules, preventing one or more power modules from operating under current limits, triggering protection mechanisms that could affect the normal operation of the power system, and ultimately improving the stability of the distributed power supply system.
[0036] In actual product testing, it was found that the communication rate and reliability of master-slave communication have a greater impact on the performance of the control strategy. Therefore, this application provides a communication control method to improve the performance of the control strategy by increasing the communication rate and reliability.
[0037] Based on the series and parallel connection method of the input and output terminals, distributed power supply systems can be divided into four categories: parallel input and parallel output, parallel input and series output, series input and series output, and series input and parallel output. This embodiment uses a series input and parallel output topology. This topology is mainly used in applications with high input voltage and high output current. The structural block diagram of the series input and parallel output distributed power supply system is shown below. Figure 1 As shown.
[0038] This embodiment of the distributed power supply system includes a distributed optical fiber communication system. The distributed optical fiber communication system controls the current and voltage of the power modules within the distributed power supply system, thereby achieving current and voltage sharing in the distributed power supply system. The distributed optical fiber communication system includes a master controller and several slave controllers, each of which is connected to a power module in the distributed power supply system to control the current and voltage of the power module.
[0039] For example, in a specific illustrative embodiment, the distributed optical fiber communication system has a master controller and 11 slave controllers. Correspondingly, the distributed power supply system has 12 power modules. The master controller is connected to one of the power modules to regulate its current and voltage, and the 11 slave controllers are connected to the other 11 power modules to regulate the current and voltage of their respective power modules. Figure 2 As shown, the master and slave controllers are connected via optical fiber for fiber optic communication. Both controllers employ a dual-core architecture of DSP and FPGA. The main functions of the FPGA are to enable fiber optic communication between controllers, control the input and output of digital signals, acquire analog signals, and provide rapid system protection and fault recording. The main functions of the DSP are to implement control algorithms, communicate with the host computer, and handle control logic and logic protection. Information exchange between the FPGA and DSP is achieved through dual-port RAM. This architecture overcomes the shortcomings of both DSP and FPGA, combining their advantages to not only meet the demands of complex algorithm calculations but also significantly improve the stability and real-time performance of the control system, while also satisfying the requirements of multi-module parallel control.
[0040] like Figure 3 When the distributed fiber optic communication system is powered on or running, the master controller performs a handshake mechanism with each slave controller to establish a communication connection. Specifically, this includes: S01: The master controller sends a pulse signal to the slave controller and waits for the slave controller to respond, thus completing the first stage of handshake.
[0041] like Figure 4 As shown, for example, the master controller sends two low pulse signals to the slave controller and waits for the slave controller to respond, thus completing the first phase of the handshake.
[0042] S02: When the master controller detects the number of pulse signals fed back by the slave controller, it receives and records the self-encoding sent by each slave controller, and performs cyclic redundancy check on the encoding to realize the second-stage handshake.
[0043] In a specific illustrative embodiment, during the first-phase handshake, the slave controller receives pulse signals sent by the master controller and records the number of pulse signals; during the second-phase handshake, the slave controller feeds back the number of pulse signals it recorded to the master controller. The master controller confirms whether the number of pulse signals fed back by the slave controller is consistent with the pulse signals it sent. If so, communication is established with the slave controller; otherwise, communication is not established with the slave controller.
[0044] like Figure 4As shown, for example, during the first-stage handshake, the slave controller receives two low-pulse signals sent by the master controller and records the number of the two low-pulse signals; during the second-stage handshake, the slave controller feeds back the number of low-pulse signals it recorded to the master controller, for example, two. The master controller confirms whether the number of low-pulse signals fed back by the slave controller, two, is consistent with the number of low-pulse signals it sent. If they are consistent, communication is established with the slave controller; if they are inconsistent, communication is not established with the slave controller.
[0045] The technical solution provided in this embodiment verifies that the slave controller not only received the signal but also has basic response and transmission capabilities by comparing whether the number of transmissions and receptions are consistent. This completes the first round of bidirectional verification of the integrity of the communication link and the basic functions of the slave controller.
[0046] like Figure 4 As shown, for example, when the main controller detects two low pulse signals fed back from the controller, it receives and records its own encoding sent from the controller and performs cyclic redundancy check on the encoding to achieve the second-stage handshake.
[0047] In a specific illustrative embodiment, during the second-phase handshake, the slave controller sends its own code to the master controller. When the master controller detects the number of low pulse signals fed back by the slave controller, it receives and records the self-code sent by the slave controller. In the communication after the handshake is successful, the master controller issues corresponding control commands to each slave controller according to the slave controller's code. The slave controller performs current and voltage control on the power module according to its corresponding control commands, realizing the current and voltage sharing output of the distributed power supply system.
[0048] For example, during the second-stage handshake, one of the slave controllers sends the number of low pulse signals sent by the master controller and its own code 0x06 to the master controller. After the master controller detects that the number of low pulses sent by the slave controller is two, it receives the code 0x06 from the slave controller and records the code of the slave controller. In the communication after the master and slave controllers successfully handshake, the master controller issues control commands corresponding to the slave controller to the slave controller according to the code.
[0049] The technical solution provided in this application initializes the codes of both parties through a handshake, clarifying the code names of both parties so that the code names can be omitted in subsequent communication data, reducing the amount of communication data. Less data means shorter transmission time and lower error probability, which indirectly improves communication stability, ensures the stability of communication strategy, and realizes the current and voltage equalization output of distributed power supply system.
[0050] In a specific illustrative embodiment, during the second-stage handshake, the slave controller sends fixed data to the master controller. The fixed data includes a device type identifier, a default data packet length, and communication rate parameters. The fixed data is used to establish rules for communication between the master and slave controllers after a successful handshake. The master controller issues control commands according to the rules, and the slave controller identifies the control commands according to the rules and executes current and voltage control on the power module to achieve current sharing and uniform output of the distributed power supply system.
[0051] For example, if the default data packet length in the fixed data is 0x04 (hexadecimal), it indicates that the distributed fiber optic communication system stipulates that the effective data in communication between the master and slave controllers after a successful handshake is 4 bytes long. When receiving data, each packet must be parsed as a 4-byte unit, without reading more or less than the specified length to avoid communication errors. If the communication rate parameter in the fixed data is 0x25 0x80 (hexadecimal), it indicates that the master or slave controller will dynamically adjust its serial communication baud rate to 9600bps according to the aforementioned agreement.
[0052] The technical solution provided in this application confirms relevant information such as device type identifier, default data packet length, and communication rate parameters during the handshake phase. This allows a single data packet to carry more effective information, thereby reducing the overall data volume when transmitting the same amount of effective data, increasing the communication rate between the master and slave controllers, ensuring the effectiveness of the control strategy, and thus realizing the current and voltage equalization output of the distributed power supply system.
[0053] In a specific illustrative embodiment, the main controller sorts the fixed data from highest to lowest importance and sets the number of cyclic redundancy checks based on the sorting result; for fixed data with high importance, the number of cyclic redundancy checks is increased, and for fixed data with low importance, the number of cyclic redundancy checks is decreased.
[0054] For example, in this embodiment, the fixed data includes a device type identifier, a default data packet length, and a communication rate parameter. The main controller sorts the fixed data from highest to lowest importance, resulting in the following order: default data packet length, communication rate parameter, and device type identifier. That is, the default data packet length is more important than the communication rate parameter, and the communication rate parameter is more important than the device type identifier. Based on this sorting result, the main controller sets the number of cyclic redundancy operations for the fixed data. For example, the default data packet length is set to 10 times, the communication rate parameter to 5 times, and the device type identifier to 2 times.
[0055] The technical solution provided in this application ensures communication quality by increasing the number of cyclic redundancy checks for high-importance fixed data, and reduces the number of cyclic redundancy checks for low-importance fixed data, thereby improving the system's computational efficiency.
[0056] S03: After the cyclic redundancy check passes, the master controller sends the master controller's code to the slave controller, completing the third-stage handshake.
[0057] For example, after the master controller passes the cyclic redundancy verification of the response signal sent by the slave controller, it sends its own code 0x01 (hexadecimal) to the slave controller to complete the third-stage handshake.
[0058] In a specific illustrative embodiment, during the third-stage handshake, the slave controller receives and stores the master controller's code sent by the master controller. In the communication after the master and slave controllers successfully handshake, the slave controller identifies the corresponding control command issued by the master controller based on the received master controller code, and adjusts the current or voltage of the power module connected to it according to the control command, so as to realize the current sharing and uniform output of the distributed power supply system.
[0059] For example, after the slave controller receives its own code 0x01 sent by the master controller, the master and slave controllers complete the third-stage handshake and successfully establish a communication connection. In subsequent communications, the slave controller identifies the control commands sent by the master controller based on the code 0x01, and adjusts the current and voltage of the corresponding power modules according to the control commands to realize the current and voltage equalization output of the distributed power supply system.
[0060] The technical solution provided in this application initializes the codes of both parties through a handshake, clearly defining the code names of both parties. In subsequent communication data, the code names can be omitted, reducing the amount of communication data, increasing the communication rate, and thus ensuring the effectiveness of the control strategy for the distributed power supply system.
[0061] S04: After the main controller completes the third-stage handshake with all slave controllers, the main controller receives the power control strategy issued by the host computer and sends the corresponding control command to each slave controller according to the power control strategy. The slave controller adjusts the current or voltage of the power module connected to it according to the control command to realize the current and voltage equalization output of the distributed power supply system.
[0062] The technical solution provided in this application, on the one hand, establishes communication through a two-way three-way handshake, which can both confirm communication capabilities and prevent interference from historical connections, filtering invalid connection requests; on the other hand, the handshake initializes the encoding and fixed data of both parties, clarifying the encoding names and subsequent communication rules of both parties. In subsequent communication data, the encoding names and repeated explanations of communication rules can be omitted, reducing the amount of communication data. The master-slave three-stage handshake mechanism is the simplest and most effective method, confirming the normal receiving and sending capabilities of both parties while reducing the amount of communication data, increasing the communication rate, thereby achieving reliable fiber optic communication, ensuring the effectiveness of the control strategy, and further realizing the current and voltage equalization output of the distributed power supply system.
[0063] like Figure 5 As shown in a specific illustrative embodiment, the master controller is also connected to each slave controller via a communication bus to realize bus communication in the distributed optical fiber communication system. When the distributed optical fiber communication system is powered on or running, the master controller first performs its own fault detection. If the master controller has a fault, it performs bus communication; if the master controller is fault-free, it performs a handshake mechanism with the slave controllers.
[0064] For example, such as Figure 6 As shown, when the distributed optical fiber communication system is powered on, the main controller performs an initialization check. When the test results show that the main controller is normal, the communication system operates in point-to-point communication mode. At this time, the master and slave controllers establish communication through a two-way three-way handshake mechanism. When a fault is detected in the main controller, the distributed optical fiber communication system automatically switches to bus communication mode.
[0065] Accordingly, in a specific illustrative embodiment, when the distributed optical fiber communication system is powered on or running, each slave controller determines whether to enter bus communication: when the master controller performs an initialization check and detects a fault in the master controller, the distributed optical fiber communication system switches to bus communication mode; when the detection result shows that the master controller is normal, the slave controller establishes a communication connection with the master controller through a handshake mechanism to perform bus communication.
[0066] For example, when a distributed optical fiber communication system is powered on, the main controller performs an initialization check. When the test results show that the main controller is normal, the main controller initiates a handshake request to the slave controller. Correspondingly, the slave controller detects the handshake request signal sent by the main controller and determines to establish a communication connection with the main controller using the handshake mechanism. When the main controller has a fault, the main controller switches to bus communication mode. The slave controller detects the switch of the main controller's communication mode and determines to establish a communication connection using bus communication mode.
[0067] The technical solution provided in this application establishes a dual-channel communication mode and handshake mechanism in the communication between the master controller and the slave controller. On the one hand, it realizes the redundancy backup function of the communication system, ensuring that the system will not stop in the event of a failure. On the other hand, it ensures the reliability of communication control between the master and slave controllers, reduces communication command errors, and thus improves the system communication quality.
[0068] Furthermore, in a specific illustrative embodiment, when a fault is detected in the main controller during initialization, the slave controllers take turns acting as temporary main controllers according to a preset polling order, and are responsible for issuing control commands to other slave controllers within their own polling cycle; the other slave controllers receive the control commands and adjust the current and voltage of the power modules connected to them according to the control commands.
[0069] For example, in this embodiment, the preset polling order is the address order of each controller. The slave controllers take turns assuming the responsibilities of the master controller according to the address order of each controller in the distributed optical fiber communication system, temporarily take over the control of bus communication, and issue control commands to other slave controllers. The other slave controllers perform current and voltage regulation of the power module according to the control commands to ensure that the distributed power supply system outputs current and voltage equally.
[0070] The technical solution provided in this application automatically expands the main controller to a bus communication mode when the main controller of the distributed communication system fails. Each slave controller communicates using a cyclic master mode, transitioning the communication mode from point-to-point to bus mode, so that the equipment does not stop and the system reliability and redundancy are increased.
[0071] A second aspect of the embodiments of this disclosure provides a distributed optical fiber communication method, implemented based on the optical fiber communication system provided in the first aspect of the embodiments of this disclosure, such as... Figure 3 As shown, when the distributed optical fiber communication system is powered on or running, the master controller performs a handshake mechanism with each slave controller to establish a communication connection. Specifically, this includes: The master controller sends a pulse signal to the slave controller and waits for the slave controller's response, thus completing the first phase of handshake. When the master controller detects the number of pulse signals fed back by the slave controller, the master controller receives and records the self-encoding sent by each slave controller, and performs cyclic redundancy check on the encoding to realize the second phase handshake. After the cyclic redundancy check passes, the master controller sends the master controller's code to the slave controller, completing the third phase of the handshake. After the master controller completes the third-phase handshake with all slave controllers, the master controller receives the power control strategy issued by the host computer and sends the corresponding control command to each slave controller according to the power control strategy. The slave controller adjusts the current or voltage of the power module connected to it according to the control command to realize the current and voltage equalization output of the distributed power supply system.
[0072] A third aspect of this disclosure provides a computer program product comprising computer program code that, when executed on a computer, causes the computer to perform the distributed optical fiber communication method described in the above embodiments. This computer program can be integrated into a distributed optical fiber communication system, such as a controller for the distributed optical fiber communication system, for circuit control of the system.
[0073] A fourth aspect of this disclosure provides a computer-readable storage medium storing program code that is executed by one or more processors. When the program code is executed on the processor, it causes an apparatus including one or more processors to perform the distributed optical fiber communication method described in the above embodiments. The processor running the computer-readable medium can be mounted on a controller of a distributed optical fiber communication system for circuit control of the distributed optical fiber communication system.
[0074] It should be understood that when the modules or units described herein are implemented using software, they can be implemented in whole or in part as a computer program product. A 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 described in the embodiments of this 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 transferred from one computer-readable storage medium to another. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0075] A fifth aspect of this disclosure provides a chip system comprising a processor, or a memory and a processor, for calling computer programs or computer instructions stored in the memory to cause the processor to execute the distributed optical fiber communication method described in the above embodiments. The chip system can be a single chip or a chip module composed of multiple chips. This chip system can be mounted in the controller of a distributed optical fiber communication system for circuit control of the system. Optionally, the storage module of the control unit is an in-chip storage unit, such as a register or cache. The storage unit can also be an external storage unit located within the wireless access device, such as a read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, such as random access memory (RAM).
[0076] Those skilled in the art will recognize that the modules, units, and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0077] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A distributed optical fiber communication system, characterized in that, Suitable for distributed power supply systems with series input and parallel output, used to achieve current and voltage sharing control among power modules, the distributed optical fiber communication system includes: Slave controller: There is at least one slave controller, each slave controller is connected to one of the power modules, and is used to control the output current and voltage of the power module; The main controller, consisting of one unit, is connected to one of the power modules and to each of the slave controllers via a fiber optic communication network. When the distributed fiber optic communication system is powered on or running, the main controller performs a handshake mechanism with each slave controller to establish a communication connection. During the handshake mechanism, the main controller is configured as follows: Send a pulse signal to the slave controller and wait for the slave controller to respond to complete the first-stage handshake; When the number of pulse signals fed back by the slave controller is detected, the self-encoding sent by each slave controller is received and recorded, and the encoding is subjected to cyclic redundancy check to realize the second-stage handshake; Once the cyclic redundancy check passes, the master controller's code is sent to the slave controller to complete the third-stage handshake. After completing the third-stage handshake with all the slave controllers, the system receives the power control strategy issued by the host computer and sends corresponding control commands to each slave controller according to the power control strategy. The slave controller adjusts the current or voltage of the power module connected to it according to the corresponding control command to realize the current and voltage equalization output of the distributed power supply system.
2. The distributed optical fiber communication system according to claim 1, characterized in that, The master controller is also connected to each of the slave controllers via a communication bus to realize bus communication of the distributed optical fiber communication system; the master controller is also configured to: perform self-fault detection when the distributed optical fiber communication system is powered on or running; when the master controller has a fault, perform bus communication; when the master controller has no fault, perform the handshake mechanism with the slave controller.
3. The distributed optical fiber communication system according to claim 2, characterized in that, The slave controller is configured to: determine whether to enter the bus communication when the distributed optical fiber communication system is powered on or running; execute the bus communication when the master controller is faulty; and execute the handshake mechanism with the master controller when the master controller is fault-free.
4. The distributed optical fiber communication system according to claim 2 or 3, characterized in that, When performing the bus communication, the slave controller is configured to: cyclically act as a temporary master controller according to a preset polling order, and be responsible for issuing the control commands to other slave controllers within its own polling cycle; the other slave controllers receive the corresponding control commands and adjust the current and voltage of the power modules connected to them according to the control commands.
5. The distributed optical fiber communication system according to claim 1, characterized in that, The slave controller is configured to: receive the pulse signal sent by the master controller during the first handshake and record the number of pulse signals; during the second handshake, feed back the number of pulse signals it recorded to the master controller, and the master controller confirms whether the number of pulse signals fed back by the slave controller is consistent with the pulse signals it sent. If so, communication is established with the slave controller; if not, communication is not established with the slave controller.
6. The distributed optical fiber communication system according to claim 1, characterized in that, The slave controller is further configured to: send its own code to the master controller during the second-stage handshake; and in the communication after the handshake is successful, the master controller issues corresponding control commands to each slave controller according to the slave controller's code, and the slave controller performs current and voltage control on the power module according to the control commands to realize the current and voltage sharing output of the distributed power supply system.
7. The distributed optical fiber communication system according to claim 1 or 6, characterized in that, The slave controller is configured to: receive and store the code sent by the master controller during the third-stage handshake; and in the communication after the master and slave controllers successfully handshake, the slave controller identifies the corresponding control command issued by the master controller according to the received code, and adjusts the current or voltage of the power module connected to it according to the control command to achieve current sharing and uniform output of the distributed power supply system.
8. The distributed optical fiber communication system according to claim 1 or 6, characterized in that, The slave controller is further configured to: during the second-phase handshake, send fixed data to the master controller, the fixed data including a device type identifier, a default data packet length, and communication rate parameters; the fixed data is used to establish rules for communication between the master and slave controllers after a successful handshake, the master controller issues control commands according to the rules, and the slave controller identifies the control commands according to the rules and executes current and voltage control on the power module to achieve current sharing and uniform output of the distributed power supply system.
9. The distributed optical fiber communication system according to claim 8, characterized in that, During the second-phase handshake, the main controller is further configured to: sort the fixed data from highest to lowest importance, and set the number of cyclic redundancy checks performed on the fixed data based on the sorting result; increase the number of cyclic redundancy checks performed on the fixed data with high importance, and decrease the number of cyclic redundancy checks performed on the fixed data with low importance.
10. A distributed optical fiber communication method, implemented based on the distributed optical fiber communication system described in claims 1-9, characterized in that, include: When the distributed communication system is powered on or running, the master controller performs a handshake mechanism with each slave controller to establish a communication connection. The handshake mechanism includes: The master controller sends a pulse signal to the slave controller and waits for the slave controller to respond, thus completing the first-stage handshake. When the master controller detects the number of pulse signals fed back by the slave controller, the master controller receives and records the self-encoding sent by each slave controller, and performs cyclic redundancy check on the encoding to realize the second-stage handshake; After the cyclic redundancy check passes, the master controller sends the master controller's code to the slave controller to complete the third-stage handshake. After the master controller completes the third-stage handshake with all the slave controllers, the master controller receives the power control strategy issued by the host computer and sends corresponding control commands to each slave controller according to the power control strategy. The slave controller adjusts the current or voltage of the power module connected to it according to the corresponding control command to realize the current and voltage equalization output of the distributed power supply system.
