Distributed communication system and method

By using reference clock signals and preset time partitioning in a distributed communication system, the bus blocking problem caused by multiple communication modules to send data simultaneously is solved, and the stable transmission of communication data and the accuracy of communication cycles is achieved.

CN120017443AActive Publication Date: 2025-05-16CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510494538.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-05-16
Estimated Expiration
2045-04-21

AI Technical Summary

Technical Problem

In a distributed system, since each communication module has an independent system clock, multiple modules may send data at the same time, causing bus blockage, sending timeout or retransmission failure, resulting in loss of communication data.

Method used

Using a communication module as the transmission source for the reference clock signal, a preset time partition for all communication modules electrically connected to the same communication bus is configured. Based on the reference clock signal, each communication module sends signals to the communication bus in the corresponding preset time partition.

Benefits of technology

Multiple communication modules are avoided to send signals to the communication bus at the same time, prevent communication bus from being blocked, and ensure the accuracy of the communication cycle of the communication module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017443A_ABST
    Figure CN120017443A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of communication, and provides a distributed communication system and method, and the system comprises a clock distribution module, a communication bus, and a plurality of communication modules which are electrically connected with the communication bus according to a preset sequence. The first communication module is electrically connected with the input end of the clock distribution module and sends a reference clock signal to the clock distribution module; all the other communication modules except the first communication module are electrically connected with the output end of the clock distribution module and receive a reference clock signal synchronously forwarded by the clock distribution module; the communication module determines a corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; the communication modules are provided with corresponding preset time partitions according to a preset sequence, and the preset time partitions corresponding to the communication modules are not overlapped. The communication blocking of the communication bus caused by the fact that two or more communication modules send signals to the communication bus at the same time is prevented, and the accuracy of the communication cycle of the communication modules is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of communication technology, and in particular, relates to a distributed communication system and method. Background Art

[0002] like Figure 1 As shown, in the process of distributed system communicating through the bus, multiple communication modules are connected to the same bus and send data through the bus. Each communication module initializes the system clock and configures the task cycle, and sends data through the bus according to the configured task cycle.

[0003] Continue to refer Figure 1 ,This communication method has obvious defects; first, since each communication module has an independent system clock, during the operation of multiple communication modules, two or more communication modules may send data through the bus at the same time, which may trigger the communication congestion of the bus, causing the communication module to time out or retransmit failure, and then lead to the failure of the task cycle to send, the communication data is lost, and the communication serial number is disconnected; secondly, since the system clock of each communication module is derived from the crystal oscillation signal, the crystal oscillator has a temperature drift error. As time accumulates, the error of the system clock of the communication module becomes larger and larger, resulting in the absolute time deviation of the task cycle becoming larger and larger. When the cycle deviation accumulates to a certain amplitude (for example, the cycle time delay is greater than 1 millisecond), the task cycle that misses the absolute time (for example, the tolerance time deviation threshold is ±1 millisecond) is sent. Although the time deviation can be compensated by software through an algorithm, the task cycle has failed to send, the communication data is lost, and the communication serial number is disconnected. Summary of the invention

[0004] To solve the above problems, the present disclosure provides a distributed communication system and method, which determines a communication module as the sending source of a reference clock signal, configures preset time partitions for all communication modules electrically connected to the same communication bus, and based on the reference clock signal, each communication module sends a signal to the communication bus in the corresponding preset time partition, which can avoid multiple communication modules sending signals to the communication bus at the same time.

[0005] The present invention is achieved through the following technical solutions: In a first aspect, an embodiment of the present disclosure provides a distributed communication system, the system comprising a clock distribution module, a communication bus, and a plurality of communication modules electrically connected to the communication bus in a preset order; The first communication module electrically connected to the communication bus in the preset order is electrically connected to the input end of the clock distribution module to send a reference clock signal to the clock distribution module; all the remaining communication modules except the first communication module electrically connected to the communication bus in the preset order are electrically connected to the output end of the clock distribution module to receive the reference clock signal synchronously forwarded by the clock distribution module; wherein, The communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; the communication module sets the corresponding preset time partition according to the preset order, and the preset time partitions corresponding to each communication module have no overlap.

[0006] Furthermore, The reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses.

[0007] Furthermore, The first communication module electrically connected to the communication bus in a preset order sends the square wave pulse signal to the clock distribution module; the communication module includes a pulse generating unit; The pulse generating unit is electrically connected to the input end of the clock distribution module. The pulse generating unit sends the generated square wave pulse signal to the clock distribution module and counts the square wave pulse signal while generating the square wave pulse signal.

[0008] Furthermore, All communication modules except the first communication module electrically connected to the communication bus in a preset order receive the square wave pulse signal forwarded by the clock distribution module; the communication module includes a pulse counting unit; The pulse counting unit is electrically connected to the output end of the clock distribution module and counts the received square wave pulse signals.

[0009] Furthermore, The communication module includes a cycle checking unit and a signal sending unit; the cycle checking unit and the signal sending unit are electrically connected, and the signal sending unit is electrically connected to the communication bus; The period checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit or the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0010] Furthermore, Each preset time partition includes the same number of square wave pulses.

[0011] Furthermore, The number of communication modules electrically connected to the same communication bus is not greater than the ratio of the smallest communication cycle of each communication module to the duration of the preset time partition.

[0012] In a second aspect, based on the same inventive concept, an embodiment of the present disclosure further provides a distributed communication method, the method comprising: The first communication module electrically connected to the communication bus in a preset order sends a reference clock signal to the clock distribution module; all communication modules except the first communication module electrically connected to the communication bus in the preset order receive the reference clock signal synchronously forwarded by the clock distribution module; The communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; wherein the communication module sets the corresponding preset time partition in the preset order, and the preset time partitions corresponding to each communication module have no overlap.

[0013] Furthermore, The reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses.

[0014] Furthermore, The pulse generating unit sends the generated square wave pulse signal to the clock distribution module, and counts the square wave pulse signal while generating the square wave pulse signal.

[0015] Furthermore, The pulse counting unit receives the square wave pulse signal sent by the clock distribution module, and counts the received square wave pulse signal.

[0016] Furthermore, The cycle checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit or the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0017] Compared with the prior art, the present invention has the following advantages: 1. Each communication module sends a signal to the communication bus in the corresponding preset time partition to prevent two or more communication modules from sending signals to the communication bus at the same time, causing communication congestion on the communication bus; 2. Each communication module sends a signal to the communication bus in the corresponding preset time partition, and reasonably controls the number of communication modules connected to the communication bus, thereby ensuring the accuracy of the communication cycle of the communication module.

[0018] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 It is a block diagram of a distributed communication system in the prior art; Figure 2 A block diagram of a distributed communication system provided by an embodiment of the present disclosure; Figure 3 A schematic diagram of a distributed communication system provided in an embodiment of the present disclosure; Figure 4 A block diagram of another distributed communication system provided by an embodiment of the present disclosure; Figure 5 A schematic diagram of the corresponding relationship between a communication module and a square wave pulse signal provided in an embodiment of the present disclosure; Figure 6 A schematic diagram of the correspondence between a communication module and a preset time partition provided in an embodiment of the present disclosure; Figure 7 A schematic diagram of the correspondence between another communication module and preset time partitions provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0022] First, Figure 2 A block diagram of a distributed communication system provided in an embodiment of the present disclosure, such as Figure 2 As shown, an embodiment of the present disclosure provides a distributed communication system, which includes a clock distribution module, a communication bus, and a plurality of communication modules electrically connected to the communication bus in a preset order.

[0023] The first communication module electrically connected to the communication bus in a preset order is electrically connected to the input end of the clock distribution module, and sends a reference clock signal to the clock distribution module; all communication modules except the first communication module electrically connected to the communication bus in a preset order are electrically connected to the output end of the clock distribution module, and receive the reference clock signal synchronously forwarded by the clock distribution module. Among them, the communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition. The communication module sets the corresponding preset time partition in a preset order, and the preset time partitions corresponding to each communication module have no overlap. Each communication module corresponds to a preset time partition, and the preset time partitions corresponding to each communication module have no overlapping parts. The communication module sends the output signal in the corresponding preset time partition, which avoids two or more communication modules sending output signals at the same time, causing the communication bus to be blocked.

[0024] In the disclosed embodiment, the preset order can be determined based on the unique identifier generated when the communication module is electrically connected to the communication bus, or it can be determined based on the time sequence in which the communication module is electrically connected to the communication bus. For example, the preset order of each communication module is determined based on the unique address assigned to the communication module electrically connected to the same communication bus; or, the preset order of multiple communication modules is determined based on the device ID, serial number and other information of the communication module; or, the preset order of each communication module is determined based on the order in which each communication module is electrically connected to the same communication bus. The specific method for determining the preset order needs to be selected based on the protocol, model and type of the communication module, as well as the protocol, model and type of the communication bus.

[0025] Understandable, such as Figure 3 As shown, the clock distribution module receives the reference clock signal sent by the first communication module electrically connected to the communication bus in a preset order, and synchronously forwards the received reference clock signal to all other communication modules; in this process, the clock distribution module does not need to generate a new clock signal, but only needs to synchronously forward the reference clock signal sent by the first communication module.

[0026] In some examples, the reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses. When the signal period and signal frequency of the square wave pulse signal are known, the preset time partition can be determined by counting the number of square wave pulses in the square wave pulse signal. When counting the square wave pulse signal, a complete square wave pulse is counted once, and the counting can be performed by detecting the rising edge, and a square wave pulse has only one rising edge.

[0027] It is understandable that the preset time partitions corresponding to each communication module include the same number of square wave pulses. When the communication data volume of a communication module is large, the preset time partitions can be lengthened, that is, the number of square wave pulses corresponding to the preset time partitions can be increased.

[0028] In some examples, the first communication module electrically connected to the communication bus in a preset order sends a square wave pulse signal to the clock distribution module. The communication module includes a pulse generating unit, a cycle checking unit, and a signal sending unit; the pulse generating unit is electrically connected to the input end of the clock distribution module, the pulse generating unit sends the generated square wave pulse signal to the clock distribution module, and counts the square wave pulse signal while generating the square wave pulse signal; the cycle checking unit is electrically connected to the signal sending unit, and the signal sending unit is electrically connected to the communication bus; the cycle checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0029] In some examples, all communication modules except the first communication module electrically connected to the communication bus in a preset order receive the square wave pulse signal forwarded by the clock distribution module. The communication module includes a pulse counting unit, a cycle checking unit and a signal sending unit; the pulse counting unit is electrically connected to the output end of the clock distribution module to count the received square wave pulse signal; the cycle checking unit is electrically connected to the signal sending unit, and the signal sending unit is electrically connected to the communication bus; the cycle checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0030] It should be understood that the communication module can be provided with a pulse generating unit and a pulse counting unit at the same time to replace the first communication module arranged in a preset order among a plurality of communication modules.

[0031] In some examples, the communication bus is a differential bus, including a transmitting signal line and a receiving signal line; the communication module also includes a signal receiving unit, the signal transmitting unit is electrically connected to the transmitting signal line, and the signal receiving unit is electrically connected to the receiving signal line; in the preset time partition corresponding to the communication module, the signal transmitting unit sends the output signal to the transmitting signal line.

[0032] In the disclosed embodiment, the communication bus may be a CAN (Controller Area Network) bus, which theoretically supports 110 communication modules, or an MVB bus (Multifunction Vehicle Bus), which theoretically supports 4096 communication modules. In the actual deployment process, the maximum number of communication modules connected to the communication bus is related to the communication cycle of the communication module. In order to prevent two or more communication modules from sending signals through the communication bus in the same preset time partition, there is an upper limit on the number of communication modules connected to the same communication bus. The communication module has a communication cycle, that is, the communication module may send a signal again after a certain period of time. Therefore, the number of communication modules electrically connected to the same communication bus is not greater than the ratio of the smallest communication cycle of each communication module to the length of the preset time partition, so as to avoid two or more communication modules from sending signals through the communication bus in the same preset time partition.

[0033] The distributed communication system provided by the embodiment of the present disclosure prevents two or more communication modules from sending signals to the communication bus at the same time, causing communication congestion in the communication bus, by enabling each communication module to send a signal to the communication bus in a corresponding preset time partition; and reasonably controls the number of communication modules connected to the communication bus, thereby ensuring the accuracy of the communication cycle of the communication module.

[0034] Embodiment 1: In the disclosed embodiment, a plurality of communication modules electrically connected to the same communication bus determine a preset order of each communication module according to information such as a unique address, device ID, and serial number of the communication module.

[0035] In the embodiments of the present disclosure, Figure 4 As shown, the distributed communication system includes n communication modules, where n is a positive integer, and the n communication modules are electrically connected to the same communication bus. Communication modules 1 to communication modules n are used to represent communication modules and corresponding serial numbers, and communication module 1 is the first communication module electrically connected to the communication bus in a preset order.

[0036] In the embodiments of the present disclosure, Figure 5 As shown, the signal period of the square wave pulse signal is 100 microseconds, the signal frequency is 10000 Hz, and each preset time partition is 1 millisecond, that is, each preset time partition corresponds to 10 square wave pulses.

[0037] In the disclosed embodiment, the communication cycle of each communication module is the same, and the communication cycle is 50 milliseconds. When the communication cycles of each communication module electrically connected to the same communication bus are the same, the number of communication modules connected to the same communication bus is not greater than the ratio of the communication cycle of each communication module to the preset time partition duration. The communication cycle of the communication module is 50 milliseconds, and the preset time partition duration is 1 millisecond. Therefore, the number of communication modules electrically connected to the same communication bus is not greater than 50, and n is a positive integer less than or equal to 50. The maximum number of communication modules electrically connected to the same communication bus can be the theoretical maximum number of the communication bus, but the communication of the communication module has the characteristics of periodicity, and the communication module sends output signals according to a certain period. Therefore, in order to prevent the communication modules electrically connected to the same communication bus from sending output signals at the same time in a preset time partition, resulting in congestion of the communication bus, it is necessary to set the maximum number of communication modules electrically connected to the communication bus according to the communication cycle of the communication module.

[0038] Continue to refer Figure 4 Communication module 1 includes a pulse generating unit. The pulse generating unit in communication module 1 starts counting square wave pulse signals while sending the generated square wave pulse signals to the clock distribution module. Communication modules 2 to n include pulse counting units. The pulse counting units are electrically connected to the output end of the clock distribution module. The pulse counting units start counting square wave pulse signals while receiving the square wave pulse signals forwarded by the clock distribution module.

[0039] Continue to refer Figure 4 , communication module 1 to communication module n also include a cycle checking unit and a signal sending unit; the cycle checking unit and the signal sending unit are electrically connected, and the signal sending unit is electrically connected to the communication bus; the cycle checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit or the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0040] In the embodiments of the present disclosure, Figure 5As shown, the preset time partition corresponding to the communication module is determined by using a method of counting square wave pulse signals, taking the signal period of the square wave pulse signal in the embodiment of the present disclosure as 100 microseconds, the signal frequency as 10,000 Hz, and each preset time partition as 1 millisecond as an example; one preset time partition corresponds to 10 square wave pulses, and the pulse generating unit of the communication module 1 counts the square wave pulse signal, and the 1st square wave pulse to the 10th square wave pulse determined by the count correspond to the preset time partition of the communication module 1, and within the range of the 1st square wave pulse to the 10th square wave pulse, the communication module 1 can send output signals to the communication bus; the pulse counting unit of the communication module 2 counts the square wave pulse signal, and the 11th square wave pulse to the 20th square wave pulse determined by the count correspond to the preset time partition of the communication module 2, and within the range of the 11th square wave pulse to the 20th square wave pulse, the communication module 2 can send output signals to the communication bus; the subsequent communication modules 3 to the communication modules n are analogous and will not be repeated here.

[0041] Continue to refer Figure 4 The communication bus is a differential bus, including a sending signal line and a receiving signal line; the communication module includes a signal sending unit and a signal receiving unit, the signal sending unit is electrically connected to the sending signal line to enable the communication module to send signals outward, and the signal receiving unit is electrically connected to the receiving signal line to enable the communication module to receive external signals.

[0042] In the embodiments of the present disclosure, Figure 6As shown, the communication cycles of the communication modules are the same, both of which are 50 milliseconds. The following uses the preset time partition to illustrate the communication module periodic communication. While generating a square wave pulse signal, communication module 1 can send an output signal to the communication bus for the first time. The preset time partition corresponding to communication module 1 is from the 0th millisecond to the 1st millisecond, that is, the 1st square wave pulse determined by the count to the 10th square wave pulse. The preset time partition corresponding to communication module 2 is from the 1st millisecond to the 2nd millisecond, that is, the 11th square wave pulse determined by the count to the 20th square wave pulse; subsequent communication modules 3 to communication modules n, and so on, are not repeated here, and n is a positive integer less than or equal to 50. The communication cycle of each communication module is 50 milliseconds. After each communication module sends an output signal to the communication bus for the first time, each communication module will send an output signal to the communication bus for the second time. Communication module 1 starts timing from the 0th millisecond. After 50 milliseconds, communication module 1 will send an output signal to the communication bus for the second time. At this time, the preset time partition corresponding to communication module 1 is from the 50th millisecond to the 51st millisecond. Communication module 2 starts timing from the 1st millisecond. After 50 milliseconds, communication module 2 will send an output signal to the communication bus for the second time. At this time, the preset time partition corresponding to communication module 2 is from the 51st millisecond to the 52nd millisecond; subsequent communication module 3 to communication module n, and so on, will not be repeated here, n is a positive integer less than or equal to 50.

[0043] It is understandable that after each communication module ends a communication cycle, or after completing sending an output signal to the communication bus, the pulse generation module and the pulse counting module may perform a counting initialization to clear the previous count of the square wave pulses.

[0044] Embodiment 2: In the disclosed embodiment, a plurality of communication modules electrically connected to the same communication bus determine a preset order of each communication module according to information such as a unique address, device ID, and serial number of the communication module.

[0045] In the embodiments of the present disclosure, Figure 4 As shown, the distributed communication system includes n communication modules, where n is a positive integer, and the n communication modules are electrically connected to the same communication bus. Communication modules 1 to communication modules n are used to represent communication modules and corresponding serial numbers, and communication module 1 is the first communication module electrically connected to the communication bus in a preset order.

[0046] In the embodiments of the present disclosure, Figure 5 As shown, the signal period of the square wave pulse signal is 100 microseconds, the signal frequency is 10000 Hz, and each preset time partition is 1 millisecond, that is, each preset time partition corresponds to 10 square wave pulses.

[0047] In the disclosed embodiment, the communication cycles of the communication modules are different, and the number of communication modules connected to the same communication bus is not greater than the ratio of the smallest communication cycle of each communication module to the preset time partition duration.

[0048] For example, the communication cycle of the communication module includes 10 milliseconds and 20 milliseconds, and the preset time partition duration is 1 millisecond. Therefore, the number of communication modules electrically connected to the same communication bus is not greater than 10, and n is a positive integer less than or equal to 10. The maximum number of communication modules electrically connected to the same communication bus can be the theoretical maximum number of the communication bus. However, the communication of the communication module has the characteristic of periodicity, and the communication module sends output signals according to a certain period. Therefore, in order to prevent the communication modules electrically connected to the same communication bus from sending output signals at the same time in a preset time partition, resulting in congestion of the communication bus, it is necessary to set the maximum number of communication modules electrically connected to the communication bus according to the communication cycle of the communication module.

[0049] Continue to refer Figure 4 Communication module 1 includes a pulse generating unit. The pulse generating unit in communication module 1 starts counting square wave pulse signals while sending the generated square wave pulse signals to the clock distribution module. Communication modules 2 to n include pulse counting units. The pulse counting units are electrically connected to the output end of the clock distribution module. The pulse counting units start counting square wave pulse signals while receiving the square wave pulse signals forwarded by the clock distribution module.

[0050] Continue to refer Figure 4 , communication module 1 to communication module n cycle inspection unit and signal sending unit; the cycle inspection unit and the signal sending unit are electrically connected, and the signal sending unit is electrically connected to the communication bus; the cycle inspection unit determines the preset time partition corresponding to the communication module according to the counting result of the pulse generating unit or the pulse counting unit on the square wave pulse signal, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0051] In the embodiments of the present disclosure, Figure 5As shown, the preset time partition corresponding to the communication module is determined by using a method of counting square wave pulse signals, taking the signal period of the square wave pulse signal in the embodiment of the present disclosure as 100 microseconds, the signal frequency as 10,000 Hz, and each preset time partition as 1 millisecond as an example; one preset time partition corresponds to 10 square wave pulses, and the pulse generating unit of the communication module 1 counts the square wave pulse signal, and the 1st square wave pulse to the 10th square wave pulse determined by the count correspond to the preset time partition of the communication module 1, and within the range of the 1st square wave pulse to the 10th square wave pulse, the communication module 1 can send output signals to the communication bus; the pulse counting unit of the communication module 2 counts the square wave pulse signal, and the 11th square wave pulse to the 20th square wave pulse determined by the count correspond to the preset time partition of the communication module 2, and within the range of the 11th square wave pulse to the 20th square wave pulse, the communication module 2 can send output signals to the communication bus; the subsequent communication modules 3 to the communication modules n are analogous and will not be repeated here.

[0052] Continue to refer Figure 4 The communication bus is a differential bus, including a sending signal line and a receiving signal line; the communication module includes a signal sending unit and a signal receiving unit, the signal sending unit is electrically connected to the sending signal line to enable the communication module to send signals outward, and the signal receiving unit is electrically connected to the receiving signal line to enable the communication module to receive external signals.

[0053] In the embodiments of the present disclosure, Figure 7As shown, the communication cycle of communication module 1 is 10 milliseconds, and the communication cycle of communication module 2 is 20 milliseconds. The following uses the preset time partition to illustrate the communication module periodic communication. While generating a square wave pulse signal, communication module 1 can send an output signal to the communication bus for the first time. The preset time partition corresponding to communication module 1 is from the 0th millisecond to the 1st millisecond, that is, the 1st square wave pulse determined by the count to the 10th square wave pulse. The preset time partition corresponding to communication module 2 is from the 1st millisecond to the 2nd millisecond, that is, the 11th square wave pulse determined by the count to the 20th square wave pulse; subsequent communication modules 3 to communication modules n, and so on, are not repeated here, and n is a positive integer less than or equal to 10. The communication cycle of communication module 1 is 10 milliseconds, and communication module 1 starts timing from the 0th millisecond. After 10 milliseconds, communication module 1 will send an output signal to the communication bus for the second time. At this time, the preset time partition corresponding to communication module 1 is from the 10th millisecond to the 11th millisecond. The communication cycle of communication module 2 is 20 milliseconds. Communication module 2 starts timing from the 1st millisecond. After 20 milliseconds, communication module 2 will send an output signal to the communication bus for the second time. At this time, the preset time partition corresponding to communication module 2 is from the 21st millisecond to the 22nd millisecond. Before communication module 2 sends an output signal to the communication bus for the second time, communication module 1 starts timing from the 10th millisecond. After 10 milliseconds, communication module 1 will send an output signal to the communication bus for the third time. At this time, the preset time partition corresponding to communication module 1 is from the 20th millisecond to the 21st millisecond. The time when communication module 1 sends an output signal to the communication bus for the third time and the time when communication module 2 sends an output signal to the communication bus for the second time just avoid each other, which prevents the occurrence of congestion in the communication main line.

[0054] It is understandable that after each communication module ends a communication cycle, or after completing sending an output signal to the communication bus, the pulse generation module and the pulse counting module may perform a counting initialization to clear the previous count of the square wave pulses.

[0055] Furthermore, among multiple communication modules electrically connected to the same communication bus, the communication cycle of each communication module may include two or more types. By reasonably dividing the preset time partitions, it is achieved that only one communication module sends an output signal to the communication bus at the same time. For example, the number of communication modules electrically connected to the same communication bus is appropriately reduced.

[0056] Preferably, when deploying or setting the communication modules, the communication cycles of the communication modules connected to the same communication bus are all integer multiples of the minimum communication cycle of the communication modules. For example, the communication modules include communication cycles of 10 milliseconds and 20 milliseconds, and the maximum number of communication modules connected to the same communication bus is 10; for another example, the communication modules include communication cycles of 5 milliseconds, 10 and 15 milliseconds, and the maximum number of communication modules connected to the same communication bus is 5. In this way, it is ensured that the communication modules electrically connected to the same communication bus will not have two or more communication modules sending output signals to the communication bus at the same time, and as many communication modules as possible are electrically connected to the same communication bus.

[0057] In a second aspect, based on the same inventive concept, the embodiment of the present disclosure further provides a distributed communication method, the distributed communication method comprising: S1: The first communication module electrically connected to the communication bus in a preset order sends a reference clock signal to the clock distribution module; all communication modules except the first communication module electrically connected to the communication bus in a preset order receive the reference clock signal synchronously forwarded by the clock distribution module.

[0058] S2: The communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; wherein the communication module sets the corresponding preset time partition in a preset order, and the preset time partitions corresponding to each communication module have no overlap.

[0059] Specifically, the reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses.

[0060] In some examples, the distributed communication method further includes: S11: The pulse generating unit sends the generated square wave pulse signal to the clock distribution module, and counts the square wave pulse signal while generating the square wave pulse signal.

[0061] Specifically, the first communication module electrically connected to the communication bus in a preset order sends a square wave pulse signal to the clock distribution module, and the first communication module includes a pulse generating unit; the pulse generating unit sends the generated square wave pulse signal to the clock distribution module, and counts the square wave pulse signal while generating the square wave pulse signal.

[0062] In some examples, the distributed communication method further includes: S12: The pulse counting unit receives the square wave pulse signal sent by the clock distribution module, and counts the received square wave pulse signal.

[0063] Specifically, all communication modules except the first communication module that are electrically connected to the communication bus in a preset order receive the square wave pulse signal forwarded by the clock distribution module; all communication modules except the first communication module include a pulse counting unit; the pulse counting unit receives the square wave pulse signal sent by the clock distribution module and counts the received square wave pulse signals.

[0064] In some examples, a distributed communication method further includes: S21: The period checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit or the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

[0065] Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A distributed communication system, characterized in that: The system includes a clock distribution module, a communication bus, and a plurality of communication modules electrically connected to the communication bus in a preset order; The first communication module electrically connected to the communication bus in the preset order is electrically connected to the input end of the clock distribution module to send a reference clock signal to the clock distribution module; all the remaining communication modules except the first communication module electrically connected to the communication bus in the preset order are electrically connected to the output end of the clock distribution module to receive the reference clock signal synchronously forwarded by the clock distribution module; wherein, The communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; the communication module sets the corresponding preset time partition according to the preset order, and the preset time partitions corresponding to each communication module have no overlap.

2. The system according to claim 1, characterized in that The reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses.

3. The system according to claim 2, characterized in that The first communication module electrically connected to the communication bus in a preset order sends the square wave pulse signal to the clock distribution module; The communication module includes a pulse generating unit; The pulse generating unit is electrically connected to the input end of the clock distribution module. The pulse generating unit sends the generated square wave pulse signal to the clock distribution module and counts the square wave pulse signal while generating the square wave pulse signal.

4. The system according to claim 2, characterized in that All communication modules except the first communication module electrically connected to the communication bus in a preset order receive the square wave pulse signal forwarded by the clock distribution module; The communication module includes a pulse counting unit; The pulse counting unit is electrically connected to the output end of the clock distribution module and counts the received square wave pulse signals.

5. The system according to claim 3 or 4, characterized in that: The communication module includes a cycle checking unit and a signal sending unit; the cycle checking unit and the signal sending unit are electrically connected, and the signal sending unit is electrically connected to the communication bus; The period checking unit determines the preset time partition corresponding to the communication module according to the counting result of the square wave pulse signal by the pulse generating unit or the pulse counting unit, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

6. The system according to claim 2, characterized in that Each preset time partition includes the same number of square wave pulses.

7. The system according to claim 1, characterized in that The number of communication modules electrically connected to the same communication bus is not greater than the ratio of the smallest communication cycle of each communication module to the duration of the preset time partition.

8. A distributed communication method, characterized in that: The method comprises: The first communication module electrically connected to the communication bus in a preset order sends a reference clock signal to the clock distribution module; all communication modules except the first communication module electrically connected to the communication bus in the preset order receive the reference clock signal synchronously forwarded by the clock distribution module; The communication module determines the corresponding preset time partition according to the reference clock signal, and sends an output signal to the communication bus in the corresponding preset time partition; wherein the communication module sets the corresponding preset time partition in the preset order, and the preset time partitions corresponding to each communication module have no overlap.

9. The method according to claim 8, characterized in that The reference clock signal is a square wave pulse signal, and the preset time partition includes a plurality of continuous square wave pulses.

10. The method according to claim 9, characterized in that The method comprises: The pulse generating unit sends the generated square wave pulse signal to the clock distribution module, and counts the square wave pulse signal while generating the square wave pulse signal.

11. The method according to claim 9, characterized in that The method comprises: The pulse counting unit receives the square wave pulse signal sent by the clock distribution module, and counts the received square wave pulse signal.

12. The method according to any one of claims 8 to 11, characterized in that: The method comprises: The cycle checking unit determines the preset time partition corresponding to the communication module according to the counting result of the pulse generating unit or the pulse counting unit on the square wave pulse signal, and controls the signal sending unit to send an output signal to the communication bus in the preset time partition corresponding to the communication module.

Citation Information

Patent Citations

  • Multi-system base station, its signal receiving and transmission method and wireless communication network

    CN101188817A

  • Time division multiplex switching system based on field programmable gate array

    CN108337582A

  • Data synchronization system and method and storage medium

    CN114785658A

  • Power management method and arrangement for bus-coupled circuit blocks

    CN1471664A

  • Communication system, host, client, phone body of cellular phone, battery, and communication method

    JP2009272965A