Search

CN-122027392-A - Dynamic time slot allocation and self-adaptive communication cycle system based on Powerlink bus

CN122027392ACN 122027392 ACN122027392 ACN 122027392ACN-122027392-A

Abstract

The invention discloses a dynamic time slot allocation and self-adaptive communication period system based on a Powerlink bus, which comprises a master station and a slave station, wherein the master station is in communication connection with the slave station through the Powerlink bus, the master station comprises a fault monitoring module, a time slot management module and a period adjusting module, and the slave station comprises a sampling rate identification module, a parameter mapping module and a parameter reporting module. The invention realizes high real-time performance, high reliability and high adaptability of data transmission in a multi-node scene.

Inventors

  • ZHANG QINGXIANG
  • WANG QINGHUA
  • CHEN JIAN
  • CHEN QIAOLI
  • WANG PENGFEI

Assignees

  • 航天物联网技术有限公司

Dates

Publication Date
20260512
Application Date
20251230

Claims (10)

  1. 1. A Powerlink bus based dynamic time slot allocation and adaptive communication cycle system, comprising: The master station is in communication connection with the slave stations through a Powerlink bus; Wherein the master station comprises: the fault monitoring module is used for monitoring the state of each slave station in each Powerlink cycle period and generating a fault identifier when judging that the slave station fails offline; The time slot management module is used for recalculating and distributing the time slot width of each normal slave station according to the number of the remaining normal slave stations after receiving the fault identification, and generating a time slot configuration instruction; The period adjusting module is used for counting the effective data quantity of each slave station in a plurality of continuous periods, and dynamically calculating and issuing a new Powerlink cycle period instruction according to a preset data quantity threshold value and an average value of the effective data quantity; the secondary station includes: the sampling rate identification module is used for analyzing the acquired analog quantity signals, and identifying and determining the current signal sampling rate level; and the parameter mapping module is used for automatically configuring the PDO mapping length and the sending time slot width of the current slave station according to the sampling rate grade.
  2. 2. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein communication between the master station and the slave station occurs via an extended Powerlink frame structure comprising an extended SoC frame for carrying a failure identification, a time slot configuration frame for carrying a time slot configuration instruction, and an extended Pres frame for reporting a sample rate level.
  3. 3. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein the processing of the fault monitoring module comprises: And expanding a one-byte slave station fault identification field in the SoC frame of the Powerlink cycle period, wherein each bit corresponds to the state of one slave station, and judging that the corresponding slave station is out of line if the Pres frame of the slave station is not received in a continuous preset number of cycles.
  4. 4. The Powerlink bus based dynamic time slot allocation and adaptive communication cycle system of claim 1 wherein the time slot width of the normal secondary station is calculated as: new slot width = original total slot length/normal number of slaves; the original total time slot length=Powerlink cycle period-idle phase duration, and the idle phase duration is more than or equal to 20 mu s.
  5. 5. The Powerlink bus based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein the cycle adjustment module comprises: the data quantity statistics unit is used for counting the effective data quantity of Payload in each secondary station Pres frame in N continuous periods and calculating to obtain average effective data quantity AvgData; The period calculating unit is used for calculating a new period according to a preset data quantity threshold ThrData; And the period issuing unit is used for issuing a new period instruction to all the slave stations through ASnd frames, and the slave stations update the local communication period in one period.
  6. 6. The Powerlink bus based dynamic time slot allocation and adaptive communication cycle system of claim 5, wherein calculating the new cycle comprises: If AvgData is less than or equal to ThrData, the new period=the original period× (ThrData/AvgData), and the new period does not exceed the preset maximum period value; If AvgData > ThrData, the new period=the original period× (ThrData/AvgData), and the new period is not lower than the preset minimum period value.
  7. 7. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein the sample rate identification module is configured to divide the sample rate into three levels, including a high sample rate level, a medium sample rate level, and a low sample rate level, wherein the high sample rate is greater than or equal to 10KHz, the medium sample rate is 1 KHz-10 KHz, and the low sample rate is <1KHz.
  8. 8. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 7, wherein the parameter mapping module has a mapping relation table of sampling rate and Powerlink parameters built in, and is configured to configure a shorter PDO mapping length and a narrower transmission time slot width for the high sampling rate class, and to configure a longer PDO mapping length and a wider transmission time slot width for the low sampling rate class.
  9. 9. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein the secondary station further comprises a parameter reporting module, the parameter reporting module is configured to report the current sampling rate level to the primary station through the RS field of the Pres frame, and the primary station optimizes time slot allocation according to the reporting result.
  10. 10. The Powerlink bus-based dynamic time slot allocation and adaptive communication cycle system of claim 1, wherein the hardware core of the master station comprises a first FPGA chip, and the fault monitoring module, the time slot management module, and the cycle adjustment module are integrated in the first FPGA chip; The hardware core of the slave station comprises a second FPGA chip, wherein the second FPGA chip is integrated with the sampling rate identification module, the parameter mapping module and the parameter reporting module, and is connected with the A/D conversion chip to collect analog quantity signals.

Description

Dynamic time slot allocation and self-adaptive communication cycle system based on Powerlink bus Technical Field The invention relates to the technical field of industrial real-time Ethernet communication, in particular to a dynamic time slot allocation and self-adaptive communication period system based on a Powerlink bus. Background The Powerlink is used as an open source industrial real-time Ethernet standard, accords with the GB/T-27960 national standard, has the advantages of high real-time performance (network jitter is less than 1 mu s), supports any topological structure, is compatible with standard Ethernet equipment (such as a switch and a common network card), and the like, and is widely applied to a multi-node data acquisition system (such as an oil transmission system), wherein a plurality of data acquisition nodes are connected through a Powerlink bus, and analog quantity signals such as pressure, temperature, impact, vibration and the like are transmitted to an upper computer monitoring system in real time. However, the existing communication system based on the Powerlink bus adopts PRC (Poll Response Chaining) mode or Preq/Pres mode of fixed time slot allocation, and the following technical pain exists in practical application: 1. time slot waste and cycle stuck caused by a failed slave station: In a multi-secondary station system (such as 8 data acquisition secondary stations), if a certain secondary station is offline due to hardware failure, a main station still keeps a fixed time slot (such as 160 mu s) of the secondary station, so that time slot resource is empty and wasted, and a time slot empty window of the failed secondary station breaks the original communication time sequence, causes the blocking of the whole Powerlink cycle period (such as 1 ms), causes data transmission delay of other normal secondary stations, and influences the instantaneity of oil data. 2. The bandwidth utilization rate due to the fixed communication period is low: The Powerlink cycle period of the existing system needs to be preconfigured (such as 1ms and 400 mu s), and cannot be dynamically adjusted according to the actual data quantity of the slave station. For example, a fixed short period (1 ms) may result in a large amount of redundant communication when a secondary station collects a ramp signal (e.g., temperature, 1khz, 32 bytes of payload data), and a fixed long period (2 ms) may not meet the real-time requirements when a secondary station collects a ramp signal (e.g., vibration, 30khz, 128 bytes of payload data), and data cache overflows. 3. The secondary station communication parameters have poor adaptability to the sampling rate: The Powerlink parameters (e.g., PDO map length, transmit slot width) of the secondary station need to be manually configured. If the types of the signals collected by the secondary station are switched (for example, a 1KHz temperature signal is switched to a 30KHz vibration signal), preset communication parameters (for example, 64 bytes PDO mapping and 100 mu s time slots) cannot be matched with the change of the sampling rate, and incomplete data transmission or overtime of data transmission in the time slots easily occur. The above problems lead to the defects of resource waste, insufficient real-time performance and high adapting cost of the existing Powerlink system in a multi-node high-reliability acquisition scene, and a Powerlink communication system which can dynamically optimize time slot allocation, adaptively adjust communication period and realize parameter and sampling rate linkage is needed. Disclosure of Invention The invention provides a dynamic time slot allocation and self-adaptive communication period system based on a Powerlink bus, which aims to solve the problems of time slot waste and period blocking, low fixed period bandwidth utilization rate and poor communication parameter and sampling rate suitability of a slave station caused by a fault slave station in the existing Powerlink system, realize high real-time performance, high reliability and high suitability of data transmission under a multi-node scene and meet the multi-parameter acquisition requirements in the fields of aerospace, industrial control and the like. In order to achieve the above object, the present invention provides a dynamic time slot allocation and adaptive communication cycle system based on a Powerlink bus, including: The master station is in communication connection with the slave stations through a Powerlink bus; Wherein the master station comprises: the fault monitoring module is used for monitoring the state of each slave station in each Powerlink cycle period and generating a fault identifier when judging that the slave station fails offline; The time slot management module is used for recalculating and distributing the time slot width of each normal slave station according to the number of the remaining normal slave stations after receiving the fault identification, a