A transmission system for multi-site sampling control signals

By using the central controller to detect and record signals, calculate line inflection points, and control time slots, the transmission of multi-station sampling control signals was optimized, the problem of inconsistent signal responses on the differential shared bus was solved, the continuity and efficiency of communication were improved, and the waste of time resources was reduced.

CN123177291APending Publication Date: 2026-11-27BOKAY ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611429135.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In multi-station sampling scenarios of industrial production lines, testing lines and experimental equipment, the signal response characteristics on the differential shared bus are inconsistent. The traditional polling transmission method is difficult to adapt to the differences in bus response, resulting in communication abnormalities and wasted time resources. Moreover, when there are changes in local lines, the entire network needs to be re-probeed, which affects continuity and efficiency.

Method used

The central controller acquires round-trip time, quiet time, and idle jitter through the detection and recording unit. The line inflection point calculation unit determines the line inflection point location set and grouping. The time slot control unit adjusts the polling order and time slot idle time. The local feedback unit updates locally when there is an anomaly, thus optimizing the communication process.

Benefits of technology

It reduces the impact of residual disturbances on the next sampling control frame, reduces the impact of network-wide reprobing, improves communication continuity and efficiency, and optimizes the utilization of bus time resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177291A_ABST
    Figure CN123177291A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of bus communication, and discloses a transmission system for multi-station sampling control signals, which comprises a central controller, a differential common bus and a plurality of station sampling nodes. The central controller obtains the round-trip time, quiet time and idle jitter of each station sampling node in the detection communication, determines the sorted station number according to the round-trip time, forms the line inflection point value based on the adjacent station round-trip difference, adjacent station quiet difference and adjacent station jitter difference of the adjacent position after sorting, and further determines the line inflection point position set and the line grouping. The time slot control unit arranges the polling sequence according to the line grouping, and adjusts the time slot empty time according to the quiet time and the adjacent station round-trip difference; the local feedback unit re-measures the station sampling nodes on both sides and locally updates when the same adjacent position repeatedly abnormity. The application can make the multi-station sampling control signal transmission more adaptive to the response difference of the existing differential common bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of bus communication technology, and more specifically, to a transmission system for multi-station sampling control signals. Background Technology

[0002] In multi-station sampling scenarios of industrial production lines, testing lines, and experimental equipment, differential shared buses are typically used to achieve communication between the central controller and multiple station sampling nodes. However, due to differences in wiring positions, branch line lengths, connector contact states, cable shielding states, and the electromagnetic environment at each station sampling node, even with consecutive station addresses, the actual signal response characteristics on the differential shared bus exhibit significant inconsistencies. Traditional fixed-address polling transmission methods often employ a uniform time slot interval across the entire network. This not only struggles to adapt to differences in bus response across different segments but also easily leads to abnormal transmission of subsequent sampling control frames due to residual disturbances from previous communications. Furthermore, the conservative waiting time across the entire network results in wasted bus time resources. Additionally, when the status of a local line changes, a full-network re-probing is often required, negatively impacting the continuity and efficiency of periodic sampling. Summary of the Invention

[0003] This invention provides a transmission system for multi-station sampling control signals, which solves the technical problems mentioned in the background art.

[0004] To achieve the above-mentioned objectives, the present invention provides the following technical solution.

[0005] A transmission system for multi-station sampling control signals includes a central controller, a differential shared bus, and multiple station sampling nodes. The multiple station sampling nodes are connected to the central controller through the differential shared bus and are used to receive sampling control frames and return response frames.

[0006] The central controller includes a detection and recording unit, a line inflection point calculation unit, a time slot control unit, and a local feedback unit;

[0007] The detection and recording unit is used to obtain the round-trip time, quiet time and idle jitter of each sampling node under the condition that each sampling node adopts the same fixed response waiting time for the same length of detection frame and returns the same length of response frame.

[0008] The line inflection point calculation unit is used to determine the sorted workstation number according to the round-trip time, obtain the neighbor station round-trip difference, neighbor station quiet difference and neighbor station jitter difference of the adjacent positions after sorting, convert the neighbor station round-trip difference, the neighbor station quiet difference and the neighbor station jitter difference into the same evaluation range to form the line inflection point value, and determine the line inflection point location set and line grouping based on the comparison result of the line inflection point value and the inflection point threshold.

[0009] The time slot control unit is used to determine the polling order according to the line grouping, determine the time slot clearance time according to the quiet time, and adjust the time slot clearance time according to the round-trip difference of the adjacent station when the adjacent position belongs to the line inflection point position set.

[0010] The local feedback unit is used to remeasure the sampling nodes of the workstations on both sides of the adjacent position and locally update the line inflection point location set and the time slot blanking time when communication anomalies occur repeatedly at the same adjacent position.

[0011] Compared with the prior art, the present invention has the following substantial features and significant progress:

[0012] This invention utilizes the round-trip time, quiet time, and idle jitter obtained by the central controller during probe communication to sort the workstation sampling nodes and determine the set of line inflection point locations. This allows the polling order, line grouping, and time slot idle time to be adjusted according to the response differences of the existing differential shared bus. Continuous polling within the same line group, with additional waiting arrangements when crossing obvious jumps between adjacent positions, can reduce the impact of residual disturbances on the next sampling control frame and reduce the time occupied by uniform waiting across the entire network. In case of anomalies, only the sampling nodes on both sides of the relevant adjacent positions are retested and locally updated, reducing the impact of network-wide reprobeing on periodic sampling. Attached Figure Description

[0013] Figure 1 This is a system architecture and transmission control mechanism diagram of a transmission system for multi-station sampling control signals according to the present invention. Detailed Implementation

[0014] The following description is provided in conjunction with the accompanying drawings. It should be understood that the following embodiments are for illustrative purposes only and are not intended to limit the invention; those skilled in the art can make equivalent substitutions or combinations for the specific implementations.

[0015] This embodiment relates to a transmission system for multi-station sampling control signals. This transmission system is suitable for scenarios where a differential shared bus has already been laid out in industrial production lines, testing lines, or experimental equipment. Multiple station sampling nodes are arranged along the differential shared bus. The central controller needs to send sampling control frames or probe frames to each station sampling node and receive response frames returned by each station sampling node. Due to differences in wiring positions, branch lengths, connector contact states, cable shielding states, and the on-site electromagnetic environment of each station sampling node, even if the station addresses are continuous, the actual responses on the differential shared bus may not be continuous.

[0016] like Figure 1 As shown, the transmission system includes a central controller 100, a differential shared bus 200, and multiple workstation sampling nodes. Figure 1The distribution relationship of multiple sampling nodes along the line is represented by the first sampling node 310, the second sampling node 320, and the Nth sampling node 330. The central controller 100 sends sampling control frames or probe frames to the first sampling node 310, the second sampling node 320, and the Nth sampling node 330 through the differential shared bus 200, and receives response frames through the same differential shared bus 200. Figure 1 The detection and recording unit 110, the line inflection point calculation unit 120, the time slot control unit 130, and the local feedback unit 140 inside the central controller 100 are also shown. The above four units work together to complete the detection and recording, line inflection point calculation, time slot control, and local feedback.

[0017] In this embodiment, the central controller 100 utilizes the round-trip time, quiet time, and idle jitter directly obtainable during existing communication processes to convert the workstation sampling nodes from a fixed address sequence to a sorted workstation number obtained according to the measured response. It then calculates the neighboring station round-trip difference, neighboring station quiet difference, and neighboring station jitter difference for adjacent positions after sorting. The resulting set of line inflection point locations is not a quality evaluation of a single workstation, but rather a judgment result indicating whether there is a significant jump between two adjacent workstation sampling nodes.

[0018] Furthermore, the implementation methods for the central controller, differential shared bus, and multiple workstation sampling nodes are as follows:

[0019] The central controller 100 can be a PLC, industrial controller, embedded control board, or a host control device with a differential communication interface. The central controller 100 has at least a processor, a differential transceiver, a timer, a transmit buffer, a receive buffer, and a storage area for storing workstation information. The processor executes the program logic corresponding to the detection recording unit 110, the line inflection point calculation unit 120, the time slot control unit 130, and the local feedback unit 140; the differential transceiver switches between transmit and receive states; the timer measures the completion time of the detection frame transmission, the first valid edge time of the response frame, the end time of the response frame, and the stable idle time of the differential shared bus 200. The timer resolves the time. It is the smallest unit of time that the central controller 100 timer can distinguish.

[0020] The differential shared bus 200 can use an existing two-wire half-duplex differential bus. Multiple station sampling nodes are connected to the differential shared bus 200 through existing access points. Each station sampling node retains its original fixed address, differential transceiver, sampling processor, analog-to-digital converter, local buffer, and status output.

[0021] Multiple sampling nodes at each workstation are used to receive sampling control frames and return response frames. The sampling control frame must at least enable the target workstation sampling node to identify the target address, sampling command, sampling sequence number, data length, or checksum. The response frame must at least enable the central controller 100 to identify the response address, sampling sequence number, data length, checksum, execution status, or sampling data. These fields can utilize existing communication protocols, as long as it ensures that non-target workstation sampling nodes maintain receiving status due to address mismatches, and that the target workstation sampling node returns a response frame within the corresponding time slot.

[0022] The probe frame can reuse an existing query frame or an idle control frame. To ensure that the round-trip time primarily reflects the differences in propagation and transmission / reception of the differential shared bus 200, each sampling node at each workstation uses the same fixed response waiting time for probe frames of the same length and returns a response frame of the same length. This fixed response waiting time is preset by the local program of the workstation sampling node or issued by the central controller 100 during the initialization phase. This fixed response waiting time is intended to eliminate the impact of differences in processing time within different workstation sampling nodes on the sorted workstation numbers.

[0023] During the initialization phase, the central controller 100 registers the online workstation sampling nodes, recording the fixed address and allowed sampling range for each node. The fixed address is used for frame addressing. Subsequently, the central controller 100 generates sorted workstation numbers based on the round-trip time obtained from the detection, thereby determining the sorted adjacent positions and corresponding line groups. This process ensures that the workstation address order and the measured response order are independent of each other.

[0024] When there is only one online workstation sampling node, the central controller 100 can skip calculating the neighbor station round-trip difference, neighbor station quietness difference, and neighbor station jitter difference for adjacent positions after sorting, and directly treat the workstation sampling node as the same line group for polling. When there are at least two online workstation sampling nodes, the central controller 100 determines the line inflection point location set according to the calculation process of this embodiment.

[0025] Furthermore, the implementation method of the detection and recording unit is as follows:

[0026] The detection recording unit 110 is used to obtain the round-trip time, quiet time, and idle jitter of each sampling node at each workstation under the condition that each sampling node adopts the same fixed response waiting time for the same length of detection frame and returns a response frame of the same length. The round-trip time, quiet time, and idle jitter are all obtained directly by the central controller 100 from the communication process of the differential shared bus 200.

[0027] Round-trip time is used to represent the time between the central controller 100 completing the transmission of the probe frame and receiving the first valid edge of the response frame from the target workstation sampling node. The probe recording unit 110 starts timing after the central controller 100 completes the transmission of the probe frame and ends timing when the first valid edge of the response frame from the target workstation sampling node is detected, so as to obtain the round-trip time of the target workstation sampling node.

[0028] In specific implementation, the central controller 100 generates a transmission completion interrupt when the last bit of the probe frame is transmitted, and the probe recording unit 110 reads the current value of the timer as the transmission completion time. After the central controller 100 releases the differential shared bus 200 and switches to the receiving state, the differential transceiver or the receiving comparator detects the first valid edge of the response frame, and the probe recording unit 110 reads the current value of the timer as the response start time. The response start time minus the transmission completion time is the round-trip time of the sampling node at that workstation. Since each sampling node at each workstation uses the same fixed response waiting time and returns a response frame of the same length, the difference between the round-trip times can be used to approximately reflect the differences in propagation and transmission / reception conversion on the differential shared bus 200.

[0029] Quiet time is used to represent the time required for the differential shared bus 200 to re-enter and continuously maintain an idle level range after the response frame from the target workstation sampling node ends. The detection and recording unit 110 continues to monitor the differential shared bus 200 after the response frame ends, and uses the time required for the differential shared bus 200 to re-enter and continuously maintain an idle level range as the quiet time. The idle level range is used to determine whether the differential shared bus 200 is stably idle.

[0030] In one embodiment, during the initialization phase where all sampling nodes at all workstations remain in a receiving state and no workstation sampling node drives the differential shared bus 200, the central controller 100 continuously acquires differential voltage samples for a duration of no less than three characters and calculates the initial idle average value. Sampling quantization unit This represents the minimum resolvable equivalent differential voltage of the central controller's 100 analog-to-digital sampling channel; when a comparator is used instead of an analog-to-digital sampling channel, the sampling quantization unit is... The equivalent differential voltage corresponding to the input hysteresis voltage of the comparator. If the analog-to-digital sampling channel of the central controller 100 outputs a digital quantity first, the central controller 100 converts the digital quantity into an equivalent differential voltage according to the fixed range and bit depth of the analog-to-digital sampling channel, and then uses it to calculate the initial idle average value, idle average value, idle jitter, and jitter allowable deviation.

[0031] The idle jitter is used to represent the root mean square deviation of the differential voltage relative to the idle average value within one character duration after the differential shared bus 200 enters the idle state. The detection and recording unit 110 obtains the root mean square deviation of the differential voltage relative to the idle average value as the idle jitter within the idle observation window. The length of the idle observation window is one character duration, which is determined by the existing communication rate, data bits, parity bits, and stop bit configuration of the differential shared bus 200.

[0032] The idle jitter can be calculated using discrete differential voltage samples obtained from the existing analog-to-digital sampling channel of the central controller 100 or the monitoring terminal of the differential transceiver. Let the target workstation sampling node be workstation number. The number of discrete differential voltage samples obtained within the idle observation window is , No. The discrete differential voltage samples are The average idle time is The idle jitter amount can be obtained by the following formula.

[0033]

[0034]

[0035] Lower limit of idle level The initial average idle time Subtract three times the sampling quantization units The lower limit of the differential voltage was then obtained.

[0036] upper limit of idle level The initial average idle time Add three times the sampling quantization units The upper limit of the differential voltage obtained afterwards.

[0037] The idle level range is defined as the differential voltage not being lower than the lower limit of the idle level. And not higher than the upper limit of the idle level. The range. The stable holding condition is that the continuous sampled values ​​of the differential shared bus 200 are all within the idle level range for one character duration, and no new response frame's first valid edge is detected within that one character duration.

[0038] The quiet time acquisition process can be as follows: the detection recording unit 110 starts continuous observation after the response frame verification is completed or the response frame stop bit ends; when the differential input of the differential shared bus 200 is in the idle level range and meets the stable holding condition, the moment is recorded as the stable idle time; the stable idle time minus the response frame end time is the quiet time. If the differential shared bus 200 cannot re-enter and continuously maintain the idle level range within the response timeout range, the central controller 100 can mark the detection as a communication anomaly, and the local feedback unit 140 will handle it in the manner described later.

[0039]

[0040] Idle jitter Workstation number The root mean square deviation of the corresponding differential voltage from the idle average value, with dimensions of equivalent differential voltage.

[0041] Discrete differential voltage sample size This represents the number of samples collected within the duration of one character. Discrete differential voltage samples Data is collected directly by the central controller 100 within the idle observation window.

[0042] average idle time It is the average value of all discrete differential voltage samples within the same free observation window.

[0043] Each set of round-trip time, quiet time, and idle jitter recorded by the detection recording unit 110 is associated with and stored with the fixed address of the corresponding workstation sampling node. This storage result can be stored in the workstation table or buffer of the central controller 100. The stored content includes at least the fixed address of the workstation sampling node, the completion time of the detection frame transmission, the first valid edge time of the response frame, the end time of the response frame, the stable idle time of the differential shared bus 200, the round-trip time, the quiet time, and the idle jitter.

[0044] To prevent accidental disturbances from affecting the detection results, the central controller 100 can perform three consecutive detections on the same sampling node at the same workstation, and save the results after all three detections have been verified by the response address, sampling sequence number, data length, and checksum. If the difference between the round-trip time of one detection and the round-trip time of the other two detections is greater than [missing value], the detection results will be saved. Or, the difference between the quiet time of one detection and the quiet time of the other two detections is greater than [a certain value]. Or, the difference between the idle jitter of one detection and the idle jitter of two other detections is greater than the sampling quantization unit. If a detection deviates from the other two detections, the central controller 100 discards the detection and uses the later of the remaining two detections that passes verification and allows the differential shared bus 200 to re-enter the idle level range as the round-trip time, quiet time, and idle jitter stored for this detection phase. If no detection deviates from the other two detections, the central controller 100 uses the third detection that passes verification and allows the differential shared bus 200 to re-enter the idle level range as the round-trip time, quiet time, and idle jitter stored for this detection phase.

[0045] Furthermore, the implementation method of the line inflection point calculation unit is as follows:

[0046] The line inflection point calculation unit 120 is used to determine the sorted workstation number according to the round-trip time, obtain the neighboring station round-trip difference, neighboring station quiet difference and neighboring station jitter difference of adjacent positions after sorting, convert the neighboring station round-trip difference, neighboring station quiet difference and neighboring station jitter difference into the same evaluation range to form the line inflection point value, and determine the line inflection point location set and line grouping based on the comparison result of the line inflection point value and the inflection point threshold.

[0047] The sorted workstation numbers are obtained by arranging them in ascending order of round-trip time. Let the total number of workstations in the current online workstation sampling node be... The sorted workstation numbers are used It means that among them If the sorting position index is the basis for the adjacent position numbers, then the sorted workstation numbers satisfy the following formula.

[0048]

[0049] Round trip time The round-trip time is the round-trip time of the first sampling node after sorting. For the sorted number Round-trip time for each sampling node at each workstation.

[0050] Sorted workstation numbers This indicates the order after sorting by round-trip time. The original workstation number corresponding to each position.

[0051] When the round-trip time of the two sampling nodes is equal, or the difference between their round-trip times is not greater than the timer resolution time. At that time, the line inflection point calculation unit 120 determines the order of the sorted workstation numbers according to the fixed addresses of the two points, from smallest to largest. If three or more workstation sampling nodes belong to the same parallel range, the line inflection point calculation unit 120 also arranges them in ascending order of fixed addresses. Through this parallel sorting rule, only one sorted workstation number sequence can be obtained for the same set of detection data.

[0052] The neighbor station round-trip difference, neighbor station quietness difference, and neighbor station jitter difference are all calculated based on adjacent positions after sorting. For the sorted... The position and the first For adjacent locations between two workstations, the line turning point calculation unit 120 calculates the round-trip difference, quietness difference, and jitter difference between adjacent workstations. The round-trip difference represents the absolute difference between the round-trip time of two adjacent workstation sampling nodes, the quietness difference represents the absolute difference between the quietness time of two adjacent workstation sampling nodes, and the jitter difference represents the absolute difference between the idle jitter of two adjacent workstation sampling nodes.

[0053]

[0054]

[0055]

[0056] Round trip difference between adjacent stations For the sorted number The position and the first The absolute difference in round-trip time between locations is measured in the same dimension as the round-trip time.

[0057] The neighboring station is quiet For the sorted number The position and the first The absolute difference in quiet time between locations is measured in the same dimension as quiet time.

[0058] Neighboring station jitter For the sorted number The position and the first The absolute difference in idle jitter between positions has the same dimension as the idle jitter.

[0059] Since the dimensions of the neighboring station round-trip difference, neighboring station quietness difference, and neighboring station jitter difference may be different, the line turning point calculation unit 120 converts the three types of adjacent differences into the same evaluation range. The same evaluation range is determined by the maximum value of the adjacent difference of the same type. That is, the line turning point calculation unit 120 determines the maximum value in all neighboring station round-trip differences, the maximum value in all neighboring station quietness differences, and the maximum value in all neighboring station jitter differences, and performs normalization processing on each.

[0060]

[0061]

[0062]

[0063] Return-to-return difference Round trip difference of neighboring station The dimensionless value obtained by dividing by the maximum value among all round-trip differences between adjacent stations.

[0064] Unified quiet difference The neighboring station is quiet The dimensionless value obtained by dividing by the maximum value among all adjacent station quiet differences.

[0065] Unity of shaking difference For neighboring stations with poor jitter The dimensionless value obtained by dividing by the maximum value among all adjacent station jitter differences. If all adjacent differences of a certain type are zero, the corresponding normalized round-trip difference, normalized quiet difference, or normalized jitter difference is uniformly set to zero to avoid division by zero and to ensure that the adjacent differences of that type do not affect the line inflection point value.

[0066] After the line inflection point calculation unit 120 completes a full-scale detection calculation, the central controller 100 saves the maximum values ​​of the round-trip difference, the maximum values ​​of the quiet difference, and the maximum values ​​of the jitter difference of all neighboring stations in this full-scale detection. When the local feedback unit 140 triggers a local update, the denominators of the normalized round-trip difference, the normalized quiet difference, and the normalized jitter difference are locked to the above three maximum values ​​saved before this local update; the above three maximum values ​​are only redefined when sampling nodes at workstations are added or removed, communication parameters are changed, or a new full-scale detection is performed after the central controller 100 is powered on again.

[0067] The line inflection point value is formed by the normalized round-trip difference, the normalized quiet difference, and the normalized jitter difference. The line inflection point calculation unit 120 can add the three normalized differences to obtain the line inflection point value corresponding to each adjacent position after sorting.

[0068]

[0069] Line inflection point value For the sorted number The position and the first The sum of the three normalized differences between each location. The larger the line inflection point value, the more obvious the combined jump in the three aspects of round-trip time, quiet time, and idle jitter of that adjacent location.

[0070] The inflection point threshold is generated based on the median statistical results of the inflection point values ​​of all lines, and the median statistical results of the deviation of each line's inflection point value from the median statistical results. Specifically, the median statistical results of the inflection point values ​​of all lines are calculated first, then the absolute deviation of each line's inflection point value from the median statistical results is calculated, and the median statistical results of the absolute deviation are obtained. Finally, the two are added together as the inflection point threshold.

[0071]

[0072] Inflection point threshold It is the sum of the median statistical results of all line inflection point values ​​and the median statistical results of the deviation of each line's inflection point value from the median statistical results.

[0073] function This function represents the median statistical result of the line inflection point values ​​at all adjacent locations. This indicates that the absolute deviation of each line's inflection point value from the median statistical result is taken from the median statistical result.

[0074] The inflection point threshold is generated by the detection data itself.

[0075] The line inflection point calculation unit 120 writes the adjacent positions above the inflection point threshold into the line inflection point position set. The line inflection point position set can be represented by the following formula.

[0076]

[0077] Line turning point location set Includes all values ​​that satisfy the line inflection point value Above the inflection point threshold Adjacent position number Each element in the set of line inflection points corresponds to the sorted... The position and the first The mapping is between adjacent positions, rather than corresponding to a single workstation sampling node. This mapping enables the central controller 100 to accurately determine which adjacent positions are significant transition positions in subsequent time slot control.

[0078] The route groups are determined by the set of route inflection point locations. The route inflection point calculation unit 120 uses adjacent positions in the set of route inflection point locations as the boundary positions between adjacent route groups, and divides the workstation sampling node sequence arranged according to round-trip time into multiple route groups. The workstation sampling nodes within each route group have relatively similar response performance in terms of round-trip time, quiet time, and idle jitter, so they are suitable for continuous polling within the same route group.

[0079] When the set of line turning point locations contains multiple adjacent location numbers, the line turning point calculation unit 120 first arranges the adjacent location numbers in the set of line turning point locations in ascending order. ,in This represents the number of adjacent position numbers in the set of line turning points. The first line group contains the sorted... Position 1 to 2 The sampling nodes corresponding to each location; the intermediate line group includes the sorted first... Position 1 to 2 The sampling node corresponding to each location; the last line group contains the sorted first... Position 1 to 2 Each location corresponds to a workstation sampling node. Since the adjacent location numbers in the line inflection point location set are all located within... to Between them, and divided in ascending order, without generating empty line groups.

[0080] The route groups are numbered in ascending order according to the above-mentioned segmentation sequence. The polling order is first arranged according to the route group numbers, and then within the same route group, it is arranged in ascending order of round-trip time corresponding to the sorted workstation number. Therefore, the route groups and polling order still have a uniquely determined execution result when multiple route inflection point location sets exist simultaneously.

[0081] When no adjacent locations are written into the line inflection point location set, the line inflection point calculation unit 120 groups the workstation sampling nodes whose round-trip time, quiet time, and idle jitter amount are obtained in the current detection phase into the same line group. This situation indicates that no obvious jump adjacent locations above the inflection point threshold have been detected in the current detection phase. The central controller 100 can continuously poll all online workstation sampling nodes according to the sorted workstation numbers, and still determine the time slot idle time of each adjacent location based on the quiet time.

[0082] Furthermore, the implementation method of the time slot control unit is as follows:

[0083] The time slot control unit 130 is used to determine the polling order according to the line grouping, determine the time slot reservation time according to the quiet time, and adjust the time slot reservation time according to the round-trip difference between adjacent stations when the adjacent position belongs to the line inflection point position set. The time slot control unit 130 receives the line inflection point position set and line grouping output by the line inflection point calculation unit 120, and generates the polling order of the central controller 100 within one sampling period.

[0084] The polling order is prioritized according to line grouping, and sampling nodes within the same line group are polled continuously. Within a line group, the time slot control unit 130 can arrange the sampling nodes in ascending order of round-trip time corresponding to the sorted workstation number. In this way, the central controller 100 minimizes the number of times adjacent positions with concentrated cross-line inflection points are switched within a sampling cycle, reducing the possibility of adjacent positions with large response differences being frequently alternately accessed.

[0085] The time slot idle time is used to determine the time during which the differential shared bus 200 remains idle between the time slots of two adjacent sampling nodes. For the sorted... The position and the first The time slot clearance time between adjacent positions can be determined based on the quiet time of the sampling nodes on both sides and whether the adjacent position belongs to the line inflection point location set.

[0086]

[0087] Time slot blanking time For the sorted number The position and the first The control quantity between each position has the same dimensions as the quiet time.

[0088] Quiet time And quiet time These represent the quiet time for sampling nodes at the workstations on either side of the adjacent location. (Round trip difference between adjacent stations) It represents the absolute difference in round-trip time between the sampling nodes on both sides of the adjacent location.

[0089] Line turning point location set This is the set of adjacent locations above the inflection point threshold. Location indicator. The value is set to 1 if the adjacent position belongs to the set of line inflection points, and to 0 if the adjacent position does not belong to the set of line inflection points.

[0090] When the adjacent location does not belong to the line inflection point location set, the time slot idle time is equal to the larger of the quiet time of the sampling nodes on both sides. This larger value can cover the time required for the differential shared bus 200 to regain stable idleness after the response frames from the sampling nodes on both sides end, so that the central controller 100 waits for the differential shared bus 200 to reach a stable idle state before sending the next sampling control frame.

[0091] When adjacent locations belong to the line inflection point location set, the time slot control unit 130 increases the time slot hold time based on the larger of the quiet times of the sampling nodes at both workstations, according to the round-trip time difference between adjacent stations. This increase is used to cover additional propagation and transmit / receive conversion differences that may exist when crossing adjacent locations with significant jumps. Since the round-trip time difference between adjacent stations comes directly from the round-trip times of the sampling nodes at both workstations on both sides of the sorted adjacent locations, this adjustment is still determined by measured communication data, rather than by manual experience.

[0092] The time slot control unit 130 can save the target workstation sampling node address, time slot start point, expected response end point, response timeout range, and time slot idle time as a grouped time slot table. The grouped time slot table is the data organization format used internally by the central controller 100 to execute the polling order and time slot idle time.

[0093] For workstation number Corresponding workstation sampling node, time slot start point This is the moment when the central controller 100 is allowed to begin sending the current sampling control frame.

[0094] To prevent time slot dwell time from being affected by abnormal single measurements, the time slot control unit 130 can retain the current line inflection point location set, line grouping, and time slot dwell time when the local feedback unit 140 does not trigger a local update. When sampling nodes at workstations are added or removed, communication parameters change, the central controller 100 is powered on again, or the local feedback unit 140 triggers a local update, the central controller 100 performs all detections or local retests, and the time slot control unit 130 updates the relevant time slot dwell time.

[0095]

[0096]

[0097] Expected end point of response The central controller 100 anticipates the latest time when the current workstation sampling node will complete sending the response frame.

[0098] Sampling control frame transmission time The value is determined by the number of bits in the sampling control frame and the communication rate of the differential shared bus 200.

[0099] Maximum sampling execution time at workstation The maximum time required for the target workstation sampling node to complete one local sampling is determined. The central controller 100 first reads the workstation configuration value corresponding to the fixed address of the target workstation sampling node; if the workstation configuration value already stores the maximum time required for the target workstation sampling node to complete one local sampling, then this maximum time is used as the maximum sampling execution time of the workstation. .

[0100] If the maximum time required for the target workstation sampling node to complete one local sampling is not stored in the workstation configuration value, the central controller 100 sends three sampling control frames to the target workstation sampling node in succession during the initialization phase, and records the local sampling execution time from the time the target workstation sampling node fully receives the sampling control frame to the time before the first valid edge of the response frame is sent.

[0101] The central controller 100 takes the maximum value of three local sampling execution times and adds one character duration. As the maximum sampling execution time of the workstation When the sampling command, allowed sampling range, or communication parameters of the target workstation sampling node change, the central controller 100 re-determines the maximum sampling execution time for that target workstation sampling node. .

[0102] Response frame maximum length time The value is determined by the maximum number of bits in the response frame and the communication rate of the differential shared bus 200.

[0103] Character duration The configuration is determined by the communication rate, data bits, parity bits, and stop bits of the differential shared bus 200.

[0104] The response timeout range starts from the time slot origin. Start time and end time of response timeout range End. If the central controller 100 reaches the end of the response timeout period. If the first valid edge of the response frame from the target workstation sampling node is not received, it is determined that the response has timed out.

[0105] The time slot wait time starts from the actual end time of the response frame. If the response frame passes the verification, the central controller 100 waits for the time slot wait time corresponding to the current adjacent position from the actual end time of the response frame; if no valid response frame is received, the central controller 100 waits from the end point of the response timeout range. The system begins waiting for the time slot corresponding to the current adjacent position to remain idle. Only after the wait is completed and the differential shared bus 200 meets the stability holding conditions, does the central controller 100 allow the sampling control frame of the next sampling node to begin transmission.

[0106] This implementation replaces the uniform fixed interval between adjacent time slots, allowing the idle time arrangement between adjacent time slots to vary with quiet time and round-trip time difference between adjacent stations. This method retains the existing sampling control frame and response frame formats while making the transmission of multi-station sampling control signals more adaptable to the actual response differences of the differential shared bus 200.

[0107] Furthermore, the implementation method of the local feedback unit is as follows:

[0108] The local feedback unit 140 is used to remeasure the sampling nodes of the workstations on both sides of the adjacent location and locally update the line inflection point location set and time slot idle time when communication anomalies occur repeatedly at the same adjacent location. The local feedback unit 140 limits the communication anomaly handling to a small range related to the adjacent location of the anomaly, avoiding the reinitialization of the entire differential shared bus 200 due to a problem at a local adjacent location.

[0109] After receiving a response frame, the central controller 100 verifies the response address, sampling sequence number, data length, and checksum. The response address confirms that the response frame originates from the current target workstation sampling node; the sampling sequence number confirms that the response frame corresponds to the current sampling control frame; the data length confirms the valid data range of the response frame; and the checksum confirms that no detectable errors occurred during the transmission of the response frame on the differential shared bus 200. Upon successful verification, the central controller 100 writes the sampled data or execution status to the corresponding data area and records the round-trip time, quiet time, and idle jitter for this response.

[0110] The round-trip time, quiet time, and idle jitter corresponding to this response can be synchronously obtained by the detection and recording unit 110 during normal sampling control frame communication using the aforementioned detection and recording method. The synchronously obtained results are associated with and saved with the fixed address of the current target workstation sampling node and used for subsequent local retest condition determination.

[0111] The local feedback unit 140 compares the round-trip time, quiet time, and idle jitter corresponding to the current response with the round-trip time, quiet time, and idle jitter saved before the current local update to determine whether the local retest conditions are met. Upon completion of a full probe or a local update, the central controller 100 saves the round-trip time reference value for each workstation sampling node. Quiet time baseline value and idle jitter baseline value .

[0112] The aforementioned timer resolves time Minimum time boundaries used to determine round-trip allowable deviation and quiet allowable deviation.

[0113] Round trip allowable deviation Pick and The larger value in the range.

[0114] Quiet allowable deviation Pick and The larger value in the range.

[0115] Jitter tolerance Take sampling quantization unit and The larger value in the range.

[0116] When the round-trip time corresponds to this response satisfy Or the quiet time corresponding to this response. satisfy Or the idle jitter corresponding to this response. satisfy When this occurs, the local feedback unit 140 records the response as a necessary parameter deviation event.

[0117] The local feedback unit 140 determines the adjacent position of the anomaly for each communication anomaly. The adjacent position of the anomaly is the adjacent position between the time slot to which the current sampling control frame belongs and the previous valid time slot in the sorted workstation sequence; if the current sampling control frame belongs to the first target workstation sampling node in a control cycle and there is no previous valid time slot, then the adjacent position of the anomaly is the adjacent position between the target workstation sampling node and the next sorted workstation sampling node.

[0118] When the target workstation sampling node is in the middle position after sorting and the anomaly cannot be uniquely attributed to the previous or next adjacent position from the current time slot switching direction, the local feedback unit 140 records both the previous and next adjacent positions as affected adjacent positions. In this case, the local feedback unit 140 performs local retesting according to the workstation sampling nodes on both sides of the affected adjacent positions, and in subsequent local updates, it only expands to these affected adjacent positions and their previous and next adjacent positions.

[0119] When the necessary parameter deviation event occurs at either sampling node of the adjacent workstations at the same anomaly location in two consecutive responses, the local feedback unit 140 determines that the local retest condition is met. The two consecutive responses can be two responses before and after the retry in the same control cycle, or responses in two adjacent control cycles targeting the sampling nodes of the adjacent workstations at the same anomaly location.

[0120] The local feedback unit 140 triggers a retry if the differential shared bus 200 is not stably idle or the local retest conditions are met in the following situations: response timeout, verification failure, response header disturbance, or when the time slot idle time ends. A response timeout indicates that the central controller 100 has reached the end of the response timeout range. The first valid edge of the response frame from the target workstation sampling node has not yet been received.

[0121] The first response to the disturbance indicated that the central controller 100 had reached the end of the response timeout period. The first valid edge of the response frame has been detected, but the preset frame header cannot be recognized within two character durations after the first valid edge, or more than two reverse transitions occur within one bit duration, making it impossible to determine the frame header sampling point. If the frame header is recognizable but the response address, sampling sequence number, data length, or checksum fails verification, it is determined as a verification failure.

[0122] If the differential shared bus 200 is still not stably idle when the time slot idle time ends, it indicates that the idle time has ended since the actual end of the response frame or the end of the response timeout range. After waiting for the time slot corresponding to the current adjacent position to remain empty, the differential shared bus 200 still does not meet the stable holding condition.

[0123] After a retry is triggered, the central controller 100 retransmits the current sampling control frame or probe frame. Before retransmitting, it waits for the time slot hold time corresponding to the current adjacent position and confirms that the differential shared bus 200 meets the stability hold conditions. If communication returns to normal after this retransmission, the local feedback unit 140 records the anomaly type and the time of occurrence, and uses the current line inflection point position set and time slot hold time.

[0124] If, after a retransmission, the same abnormal location experiences a response timeout, verification failure, response header disturbance, or the differential shared bus 200 is still not stably idle or the local retest conditions are met when the time slot idle time ends, the local feedback unit 140 sends a probe frame of the same length as the probe phase to the sampling nodes on both sides of the abnormal location, and makes the sampling nodes on both sides of the abnormal location use the same fixed response waiting time and the same length of response frame, thereby regaining the round-trip time, quiet time and idle jitter of the sampling nodes on both sides of the abnormal location.

[0125] After obtaining the retest results, the local feedback unit 140 combines the round-trip time, quiet time, and idle jitter of the sampling nodes on both sides of the adjacent position obtained from the retest with the round-trip time, quiet time, and idle jitter of the sampling nodes of the unretested positions before this local update. The line turning point calculation unit 120 only recalculates the adjacent station round-trip difference, adjacent station quiet difference, adjacent station jitter difference, normalized round-trip difference, normalized quiet difference, normalized jitter difference, and line turning point value corresponding to the affected adjacent position and its preceding and following adjacent positions. When calculating the normalized round-trip difference, normalized quiet difference, and normalized jitter difference, it uses the maximum value of the same type of adjacent difference saved before this local update as the denominator.

[0126] When the comparison result between the locally updated line inflection point value and the inflection point threshold changes, the line inflection point calculation unit 120 only updates the write status of the affected adjacent positions and their immediate and next-to-immediate adjacent positions in the current line inflection point position set, and adjusts the line groups near the affected adjacent positions accordingly. The time slot control unit 130 further locally updates the time slot hold time corresponding to the affected adjacent positions and their immediate and next-to-immediate adjacent positions. The sorted workstation number, line group, and time slot hold time of the unaffected workstation sampling nodes remain unchanged.

[0127] If the target station sampling node still fails to return a response frame after partial retesting, the central controller 100 can record the fixed address, anomaly type, and occurrence time of the station sampling node, and temporarily mark the station sampling node as an abnormal station sampling node. The central controller 100 then continues processing the next station sampling node to avoid all station sampling nodes stopping the transmission of sampling control signals due to an anomaly of a single station sampling node.

[0128] As an optional implementation, the differential shared bus 200 has been field-installed, and multiple station sampling nodes can all reach the end point of their corresponding response timeout range. A forward and return response frame is generated. After the central controller 100 performs probe communication, the probe recording unit 110 obtains the round-trip time, quiet time, and idle jitter of each workstation sampling node. If the line inflection point values ​​of multiple adjacent positions are not higher than the inflection point threshold, the line inflection point calculation unit 120 does not write adjacent positions into the line inflection point position set, and all online workstation sampling nodes are grouped into the same line group. At this time, the time slot control unit 130 continuously polls the workstation sampling nodes within the same line group. The time slot idle time of each adjacent position is determined based on the quiet time of the adjacent workstation sampling nodes, without needing to add the round-trip difference between adjacent stations. The central controller 100 sends sampling control frames sequentially according to the sorted workstation numbers and waits for the corresponding time slot idle time after each response frame ends.

[0129] As an optional implementation, after the central controller 100 sends a sampling control frame to a target workstation sampling node according to the current polling order, response timeout, verification failure, response header interference, or the differential shared bus 200 not being stably idle when the time slot idle time ends may occur. The central controller 100 first performs a retransmission. Before retransmission, it waits for the time slot idle time corresponding to the current adjacent position and confirms that the differential shared bus 200 meets the stability maintenance conditions to avoid directly amplifying an occasional interference into an update of the line inflection point location set. If a communication anomaly occurs again at the same adjacent position after a retransmission, the local feedback unit 140 obtains the round-trip time, quiet time, and idle jitter of the workstation sampling nodes on both sides of the adjacent position according to the aforementioned local retest rules, and processes the affected adjacent position and its preceding and following adjacent positions according to the aforementioned local update rules. The sorted workstation number, line group, and time slot idle time of the remaining workstation sampling nodes remain unchanged, so the central controller 100 does not need to reinitialize the entire differential shared bus 200.

[0130] As an optional implementation, if the number of online station sampling nodes is less than two, the central controller 100 may not perform calculations for the neighbor station round-trip difference, neighbor station quiet difference, neighbor station jitter difference, line inflection point value, inflection point threshold, and line inflection point location set, but instead group the online station sampling nodes into the same line group. If all adjacent differences of a certain type are zero, the line inflection point calculation unit 120 uniformly sets the corresponding normalized round-trip difference, normalized quiet difference, or normalized jitter difference to zero, so that the line inflection point value can still be formed by other non-zero adjacent differences. If a station sampling node cannot return a valid response frame due to a hardware failure, the central controller 100 can temporarily mark the station sampling node as an abnormal station sampling node and continue to poll other station sampling nodes. When the station sampling node returns to online status, station sampling nodes are added or removed, communication parameters are changed, or the central controller 100 is powered on again, the central controller 100 will perform all detections or partial retests to re-obtain the corresponding round-trip time, quiet time, and idle jitter.

[0131] It should be noted that the central controller 100 can be implemented using an existing PLC, industrial controller, embedded processor, or data acquisition controller. As long as the central controller 100 can control the differential transceiver to send sampling control frames or probe frames, can read the timer at the completion of transmission and the first valid edge of the response frame, can monitor the idle level range of the differential shared bus 200 after the response frame ends, and can obtain differential voltage samples within the idle observation window, the function of the detection and recording unit 110 can be realized. The differential shared bus 200 can use an existing two-wire half-duplex differential communication link. The workstation sampling node can be implemented using an existing differential transceiver and sampling processor. After receiving the sampling control frame, the sampling processor reads the local analog or digital quantity, forms a response frame, and returns it within the corresponding time slot.

[0132] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A transmission system for multi-station sampling control signals, comprising a central controller, a differential shared bus, and multiple station sampling nodes, wherein the multiple station sampling nodes are connected to the central controller via the differential shared bus, and are used to receive sampling control frames and return response frames, characterized in that: The central controller includes a detection and recording unit, a line inflection point calculation unit, a time slot control unit, and a local feedback unit; The detection and recording unit is used to obtain the round-trip time, quiet time and idle jitter of each sampling node under the condition that each sampling node adopts the same fixed response waiting time for the same length of detection frame and returns the same length of response frame. The line inflection point calculation unit is used to determine the sorted workstation number according to the round-trip time, obtain the neighbor station round-trip difference, neighbor station quiet difference and neighbor station jitter difference of the adjacent positions after sorting, convert the neighbor station round-trip difference, the neighbor station quiet difference and the neighbor station jitter difference into the same evaluation range to form the line inflection point value, and determine the line inflection point location set and line grouping based on the comparison result of the line inflection point value and the inflection point threshold. The time slot control unit is used to determine the polling order according to the line grouping, determine the time slot clearance time according to the quiet time, and adjust the time slot clearance time according to the round-trip difference of the adjacent station when the adjacent position belongs to the line inflection point position set. The local feedback unit is used to remeasure the sampling nodes of the workstations on both sides of the adjacent position and locally update the line inflection point location set and the time slot blanking time when communication anomalies occur repeatedly at the same adjacent position.

2. The transmission system for multi-station sampling control signals according to claim 1, characterized in that, The detection recording unit is used to start timing after the central controller completes the transmission of the detection frame, and to end timing when the first valid edge of the response frame of the target workstation sampling node is detected, so as to obtain the round-trip time.

3. The transmission system for multi-station sampling control signals according to claim 2, characterized in that, The detection and recording unit is also used to monitor the differential shared bus after the response frame ends, take the time required for the differential shared bus to re-enter and continuously maintain the idle level range as the quiet time, and obtain the root mean square deviation of the differential voltage relative to the idle average value in the idle observation window as the idle jitter.

4. The transmission system for multi-station sampling control signals according to claim 1, characterized in that, The sorted workstation numbers are obtained by arranging the round-trip time from smallest to largest, and the round-trip difference between adjacent stations, the quietness difference between adjacent stations, and the jitter difference between adjacent stations are all calculated based on the adjacent positions after sorting.

5. The transmission system for multi-station sampling control signals according to claim 4, characterized in that, The same evaluation range is determined by the maximum value of the adjacent differences of the same type; the line inflection point calculation unit is used to convert the neighboring station round-trip difference, the neighboring station quiet difference and the neighboring station jitter difference into normalized round-trip difference, normalized quiet difference and normalized jitter difference respectively, and form the line inflection point value based on the normalized round-trip difference, the normalized quiet difference and the normalized jitter difference.

6. A transmission system for multi-station sampling control signals according to claim 5, characterized in that, The line inflection point calculation unit is used to generate the inflection point threshold based on the median statistical results of all the line inflection point values ​​and the median statistical results of the deviation of each line inflection point value from the median statistical results, and write the adjacent positions above the inflection point threshold into the line inflection point position set.

7. A transmission system for multi-station sampling control signals according to claim 6, characterized in that, The line inflection point calculation unit is used to take the adjacent positions in the line inflection point location set as the boundary positions between adjacent line groups, and when there are no adjacent positions written into the line inflection point location set, the workstation sampling nodes that have obtained the round-trip time, the quiet time and the idle jitter amount in the current detection phase are classified into the same line group.

8. The transmission system for multi-station sampling control signals according to claim 1, characterized in that, The time slot control unit is used to continuously poll the workstation sampling nodes within the same line group; the time slot idle time is determined based on the quiet time of the adjacent workstation sampling nodes, and the time slot idle time is increased based on the round-trip difference of the adjacent station when the adjacent position belongs to the line inflection point position set.

9. A transmission system for multi-station sampling control signals according to claim 1, characterized in that, The central controller is used to verify the response address, sampling number, data length and check code after receiving the response frame, and to record the round-trip time, quiet time and idle jitter corresponding to this response; The local feedback unit is used to compare the round-trip time, quiet time, and idle jitter corresponding to the current response with the round-trip time, quiet time, and idle jitter saved before the current local update, in order to determine whether the local retest conditions are met.

10. A transmission system for multi-station sampling control signals according to claim 9, characterized in that, The local feedback unit is used to trigger a retry in the following situations: response timeout, verification failure, response header disturbance, the differential shared bus still not being stably idle when the time slot idle time ends, or the local retest conditions are met. When a communication anomaly occurs again at the same adjacent position, the unit updates the line inflection point value, the line inflection point location set, and the time slot idle time based on the round-trip time, quiet time, and idle jitter of the sampling nodes on both sides of the adjacent position obtained by the retest, and in combination with the round-trip time, quiet time, and idle jitter of the sampling nodes of the unretested positions before this local update.