MASTER NODE FOR A DISTRIBUTED ACQUISITION SYSTEM, METHOD FOR SYNCHRONIZING COMMUNICATION BETWEEN A MASTER NODE AND ONE OR MORE SLAVE NODES, AND CONTROL COMPONENT - Patent application

The master node in a distributed acquisition system synchronizes slave nodes by distributing time reference packets over a shared bus, addressing the cost and timing error issues of conventional protocols, ensuring efficient and accurate data correlation.

JP7542306B2Active Publication Date: 2024-08-30SIMMONDS PRECISION PRODUCTS INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2019228578
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-12-18
Filing Date
2019-12-18
Publication Date
2024-08-30
Estimated Expiration
2039-12-18

AI Technical Summary

Technical Problem

Conventional distributed time synchronization protocols for asynchronous communication systems are costly due to separate physical links for time synchronization and suffer from timing errors caused by varying cable lengths, which degrade system performance.

Method used

A master node in a distributed acquisition system uses a communication interface and control component to distribute time reference packets over a shared bus, ensuring communication packets occur at harmonics of a configurable packet interval, thereby eliminating the need for separate synchronization links and correcting propagation delays.

Benefits of technology

This approach reduces system cost and weight while significantly minimizing timing errors by synchronizing slave nodes using the shared bus, ensuring deterministic communication and data correlation among distributed devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542306000006
    Figure 0007542306000006
  • Figure 0007542306000007
    Figure 0007542306000007
  • Figure 0007542306000009
    Figure 0007542306000009
Patent Text Reader

Abstract

To provide a master node of a distributed acquisition system.SOLUTION: A master node includes a communication interface and a control component, where the communication interface interfaces between a control component and a bus. The bus is coupled to slave nodes distributed in the acquisition system. The control component is configured to: acquire a configuration that provides a definition of a packet interval, where the packet interval definition provides an adequate timing margin to ensure that communication packets transmitted by the master node and the one or more slave nodes occur only at harmonics defined by the packet interval; distribute a time reference packet of the communication packets based on the packet interval definition via the bus to all of the slave nodes of the distributed acquisition system; and schedule the transmission to the one or more selected slave nodes based on the packet interval definition.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to protocols for asynchronous communication systems, and more particularly to a distributed time synchronization protocol for asynchronous communication systems. [Background technology]

[0002] A distributed acquisition system performs remote data acquisition and processing. The acquired or processed information can be transferred over one or more communication links to a processing component for aggregation, analysis, data storage, and / or reporting.

[0003] Certain operating modes require highly correlated data acquisition among a distributed set of slave devices. To meet this need, a time synchronization pulse is often used, generated by the master, where the transition of the pulse indicates a time reference for each slave.

[0004] The synchronization pulses are delivered over a separate physical link dedicated to time synchronization, increasing cost and weight, and differences in propagation delays between slave devices over various cable lengths introduce additional timing errors that can degrade system performance. Summary of the Invention [Problem to be solved by the invention]

[0005] Although conventional methods and systems have generally been deemed sufficient for their intended purposes, there remains a need in the art for improved distributed time synchronization protocols for asynchronous communication systems. [Means for solving the problem]

[0006] The objects and advantages of the illustrative embodiments described hereinafter will be set forth in and will be apparent from the following description. Additional advantages of the illustrated embodiments will be realized and attained by the devices, systems, and methods particularly pointed out in this specification and claims, as well as the appended drawings.

[0007] To achieve these and other advantages and in accordance with the objectives of the illustrated embodiment, in one aspect, a master node of a distributed acquisition system is provided, the master node including a communication interface and a control component interfacing between the control component and a bus, the bus being coupled to one or more slave nodes distributed in the acquisition system, the control component configured to obtain a configuration providing a packet interval definition, the packet interval definition providing adequate timing margin to ensure that communication packets transmitted by the master node and the one or more slave nodes occur only at harmonics defined by the packet interval, distribute a time reference packet of the communication packets based on the packet interval definition over the bus to all slave nodes of the distributed acquisition system, and schedule transmission of the communication packets transmitted by the master node over the bus to one or more slave nodes selected based on the packet interval definition.

[0008] According to a further aspect of the present disclosure, a method is provided for synchronizing communications between a master node and one or more slave nodes of a distributed acquisition system, the method including: obtaining a configuration providing a packet interval definition, the packet interval definition providing adequate timing margin to ensure that communication packets transmitted by the master node and the one or more slave nodes occur only at harmonics defined by the packet interval, distributing a time reference packet of the communication packets based on the packet interval definition over a bus to all of the slave nodes of the distributed acquisition system, and scheduling transmission of the communication packets transmitted by the master node over the bus to one or more slave nodes selected based on the packet interval definition.

[0009] According to another aspect of the present disclosure, a control component of a master node of a distributed acquisition system is provided, the control component including a processing device configured to obtain a configuration providing a packet interval definition, the packet interval definition providing adequate timing margins to ensure that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics defined by the packet interval, distribute time reference packets of the communication packets based on the packet interval definition over a bus to all slave nodes of the distributed acquisition system, and schedule transmission of the communication packets transmitted by the master node over the bus to one or more slave nodes selected based on the packet interval definition.

[0010] These and other features of the subject disclosed systems and methods will become more readily apparent to those skilled in the art from the following detailed description of the preferred embodiments taken in conjunction with the drawings.

[0011] Preferred embodiments thereof are described in detail below with reference to certain figures so that those skilled in the art to which the subject disclosure pertains will readily understand how to make and use the devices and methods of the subject disclosure without undue experimentation. [Brief description of the drawings]

[0012] [Figure 1] 1 is a schematic diagram of an exemplary distributed data acquisition system communication topology in accordance with an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of an exemplary computer system used by a node of a distributed data acquisition system according to an embodiment of the present disclosure. [Figure 3A] 4 is a flow diagram illustrating an example method performed by a master node to communicate with one or more slave nodes in a distributed data acquisition system, according to an embodiment of the present disclosure. [Figure 3B] 4 is a flow diagram illustrating an example method performed by a slave node to communicate with a master node in a distributed data acquisition system according to an embodiment of the present disclosure. [Figure 4] 1 is a flow diagram illustrating an example method performed by a slave node of a distributed data acquisition system for implementing an example time synchronization protocol correction logic according to an embodiment of the present disclosure. [Diagram 5] 1 is a flow diagram illustrating an example method performed by a slave node of a distributed data acquisition system for implementing an example time synchronization protocol function logic according to an embodiment of the present disclosure. [Figure 6] 1 is a flow diagram illustrating an example method performed by a master node of a distributed data acquisition system for implementing an example time synchronization protocol function logic according to an embodiment of the present disclosure. [Figure 7] 4 is a flow diagram illustrating an example method performed by a master node of a distributed data acquisition system for implementing output generation logic in accordance with an embodiment of the present disclosure. [Figure 8] 4 is a flow diagram illustrating an example method performed by a master node of a distributed data acquisition system for implementing bus control logic in accordance with an embodiment of the present disclosure. [Figure 9]9 shows a flowchart 900 illustrating an example method performed by a master node to implement propagation delay correction logic in accordance with an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Bus activity on the communication bus is controlled such that communication packet timing occurs at a harmonic of the configurable packet interval. The packet interval is a configurable value known to both master and slave. As part of the system configuration, the non-volatile memory of the master and slave nodes is updated with a communication parameter data item (PDI) that contains the configurable parameters (maximum payload size, baud rate, and packet interval). Upon reset, the nodes use these parameters to control their communication behavior. The packet interval applies to MOSI and MISO channel activity.

[0014] The start of a communication packet itself can be used as a reference time to achieve time synchronization between a set of slave nodes. Data transfers are divided into packets that fit within a configurable packet interval, which includes a timing margin. The maximum packet payload size and communication baud rate are configurable parameters that define the maximum expected transmission time of any packet. The timing margin takes into account error sources such as baud rate differences and inter-character gap times. The packet interval is selected by balancing synchronization and communication considerations. Data acquisition timing between slave devices can drift over time due to clock differences. The packet interval must occur frequently enough to correct this error. The communication protocol overhead affects data transfer times. The packet interval must take into account adequate bandwidth utilization.

[0015] According to a further aspect of the present disclosure, a method is provided for synchronizing communications between a master node and one or more slave nodes of a distributed acquisition system. The method includes defining a packet interval, a maximum payload size, and a baud rate to provide an appropriate timing margin and allow communication packets to occur at all harmonics of the packet interval. When appropriately selected, these parameters ensure that communication activity is deterministic. Additionally, the method includes a configurable provision for managing bus ownership based on the packet interval. The master node generates an output packet that all slave nodes receive and conditionally consume and conditionally use to update time synchronization based on the start of the packet. If the packet is valid and the source address of the packet passes certain address criteria indicating that the master generated the packet, all slave nodes use the packet to update their time synchronization. Additionally, if the destination address of the packet passes certain address criteria indicating that the packet is intended for the slave node and that the packet contents match the channel data, the particular slave node consumes any packet payload and schedules any appropriate slave output packet. The channel data consists of a port number, a data offset, and a transaction ID. The port number governs independent data transfers, direction, and priority. The data offset governs data ordering. The transaction ID helps identify a specific transaction and ensures data integrity, especially when multiple data transfers are pending or active on multiple channels. Matching channel data indicates that the data transfer is ordered for a specific data transaction. Based on the master output packet, only one slave node is allowed bus access. Slave bus access must be limited such that time synchronization is updated at a minimum rate that depends on the master node bus ownership. The protocol transfers bus ownership for a configurable number of packet intervals using bus control parameters.A slave node outputs data starting from the next packet interval for a set of subsequent packet intervals bounded by the bus control number specified by the master node. With this approach, time synchronization updates and bandwidth utilization are managed in a deterministic manner. The protocol handles all permutations. Upon reaching the end of a data transfer, the slave node transfers bus ownership back to the master early. The protocol includes provisions for data ordering and integrity checking, allowing the master node to recover from communication errors.

[0016] According to another aspect of the present disclosure, a control component of a master node of a distributed acquisition system is provided. The control component includes a processing device configured to capture the start time of a communication packet input from each slave node relative to a synchronization time of the master node, which is defined as a current harmonic of the packet interval. Based on the time difference, the master node determines a slave-specific propagation delay. The master node provides this information to each slave node, so that the slave node's data acquisition timing can be modified to account for the propagation delay and reflected in future slave-to-master communication packets. This approach can reduce the time synchronization error of the distributed acquisition system to a negligible level.

[0017] Reference will now be made to the drawings, in which like reference numbers identify similar structural features or aspects of the present disclosure. For purposes of explanation and illustration, and not limitation, a block diagram of an exemplary embodiment of an asynchronous acquisition system according to a first embodiment of the present disclosure is shown in FIG. 1 and generally designated by reference number 100. The acquisition system 100 includes a master node 102 and one or more distributed slave nodes 104 that communicate via a bus 106. The bus 106 can be a half-duplex multi-drop two-wire physical link, with the master node 102 coupled to a first end of the bus 106 and the slave nodes 104 coupled to a second end of the multi-drop of the bus 106. In one example, the bus 106 is an RS-485 physical layer that uses differential signaling over twisted pairs with signal termination resistors to support effective long distance communication in noisy environments. Tri-state logic allows the drivers to be disabled to support multi-drop communication. The RS-485 physical layer driver and receiver interface with a universal asynchronous receiver transmitter (UART), which defines the timing and framing scheme of the data link layer. Shift registers are used to perform parallel to serial conversion to sequentially output individual bits and serial to parallel conversion to buffer the input bits. The master node 102 can communicate with one or more selected slave nodes 104 or broadcast to all slave nodes 104.

[0018] The acquisition system 100 can perform remote data acquisition and processing. For example, the slave nodes 104 can be acquisition nodes that sense physical characteristics and transmit the sensed data to the master node 102 for aggregation, analysis, data storage, and / or reporting. The master node 102 initiates all bus transactions. For a particular transaction, the master node 102 transfers bus ownership to a selected slave node 104 for a specified period of time.

[0019] In certain applications, data acquisition needs to be highly correlated among a set of distributed slave nodes 104. To meet this need, certain acquisition systems have used a synchronization pulse generated by a master node and used as a time reference for the slave nodes. However, this has disadvantages such as increasing the cost and weight of such data acquisition systems due to the use of a separate physical link dedicated to time synchronization, and data transmission is subject to propagation delays that can affect the consistency of the aggregate data.

[0020] In the acquisition system 100, the bus 106 itself is used to accommodate both data transfer and time synchronization, which is accomplished using protocol logic by the master node 102 and the slave nodes 104, respectively. The protocol logic eliminates the need for a separate physical link for time synchronization, reducing cost and weight. The protocol logic further enables propagation delays to be measured by the master node 102 and communicated to the slave nodes 104 so that the slave nodes 104 can compensate for the propagation delays to reduce time synchronization errors between the slave devices 104.

[0021] The acquisition system 100 may use the established Time Synchronization Protocol (TSP), which is a combination of network and transport layer protocols based on the Open Systems Interconnection (OSI) model for communication systems. The TSP uses acknowledgements and error checking to achieve reliable transmission. The TSP further uses segmentation, multiplexing, and bus ownership logic to balance data priority, data latency, data transfer efficiency, and time synchronization considerations. In the TSP, data is encapsulated in a series of data packets, each with a payload portion. The TSP further uses headers and footers to manage and route the data transfer. Certain packets, known as control packets, do not contain a payload portion.

[0022] TSP data transfers are mapped to specific channels and accommodate considerations regarding data priority and data direction. The protocol defines two priorities: high and low. High priority data transfers preempt low priority data transfers in certain cases based on bus management logic. High priority transfers are suitable for control and status information. Low priority transfers are suitable for file transfers. Each channel consists of two ports, one output port and one input port, which indicate the flow of session data contained in the packet payload. The direction is designated as either Master Out Slave In (MOSI) or Master In Slave Out (MISO). For MOSI channels, only the master node 102 generates data packets containing payload. Conversely, for MISO channels, only the slave node 104 generates data packets containing payload. On both MOSI and MISO channels, control packets may be generated that do not contain payload. Control packets do not carry session data, but only complement data packets in controlling the data transfer itself. The packet header contains a port number parameter that defines the channel. The master node can use the Master Out / Slave In (MOSI) channel to signal session data transmission in master packets from the master node 102 to one or more slave nodes 104 to trigger the transfer of data (write operation) or buffering for output of the slave's data (first half of a read operation). Using the MOSI channel, the master node 102 can also request the status of a data transfer to a particular slave node 104 using a data packet or a control packet. In response, a particular slave node 104 acknowledges the progress of the session data transfer using a control packet, allowing the master node 102 to recover from possible communication errors. The master node can use the Master In / Slave Out (MISO) channel to request a slave node to output buffered session data (second half of a read operation) using a control packet.In response, if data is available, the slave node 104 generates a data packet containing the requested session data. If data is not available, the slave node 104 generates a control packet to indicate this possibility. Each channel is assigned a priority to control bus activity. When the master node transfers ownership of the bus to a particular slave node, the master evaluates all inputs to determine if the slave node has transferred ownership of the bus back to the master node. Additionally, the master uses timeouts to handle possible communication errors and regain ownership of the bus.

[0023] In an exemplary application, the master node 102 is a controller or host for a network or sub-network of slave nodes 104. The slave nodes 104 may include sensing elements that sense physical characteristics of the system in which they are deployed. In response to sensing, the sensing elements may output sensed data that may be buffered in a buffer of the slave node 104. In an application such as health monitoring of a vehicle such as an aircraft, the slave node 104 may acquire data sensed by its sensing elements at high speed, but is not limited to a particular application. The sensed data may be analyzed by the master node 104 to geographically locate the sensed condition. In such applications, the slave nodes 104 need to be synchronized to accommodate correlation of high speed sensory data.

[0024] 2, a block diagram of an example node 200 is shown providing an example configuration of a master node 102 and a slave node 104. The node 200 is merely one example of a suitable system and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the present disclosure described herein. The node 200 may be implemented using hardware, software, and / or firmware. In any case, the node 200 may implement and / or perform the functions described in this disclosure.

[0025] Node 200 is shown in the form of a general-purpose computing device that includes a processing device 202, a memory 204, an input / output (I / O) interface (I / F) 206 that can communicate with external components 220, and optionally internal components 208.

[0026] The processing device 202 can be, for example, a programmable logic device (PLD), a microprocessor, a digital signal processor (DSP), a microcontroller, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other similar discrete or integrated logic circuit having processing capabilities.

[0027] The processing unit 202 and memory 204 may be included in components provided in, for example, an FPGA, an ASIC, a microcontroller, or a microprocessor. The memory 204 may include, for example, volatile and non-volatile memory for temporary or long-term storage of data and for storing programmable instructions executable by the processing unit 202.

[0028] The I / OI / F 208 can be communicatively coupled to the bus 106. Additionally, the I / OI / F 108 can include an interface to couple to one or more external components 220, external sensing elements, a keyboard, a pointing device, a display, another computing device, and / or a wide area network, such as a local area network or the Internet, for example, via a connector, short-range communication, wired communication, or wireless communication. For example, the slave node 104 can be coupled to the bus 106 via the I / OI / F 206 and possibly coupled to an external sensing element. The master node 102 can be coupled to the bus 106 via the I / OI / F 206 and possibly coupled to a remote database to upload data received from the slave node 102.

[0029] With respect to a slave node 104, the internal components 208 may include, for example, sensing elements, analog-to-digital (A / D) converters, and / or signal conditioning (SC) circuitry. The sensing elements may sense physical properties of its environment, such as, for example, temperature, vibration, velocity, acceleration, displacement, humidity, pressure, or other properties. The sensing elements may be analog or digital and may have the capability to perform analog-to-digital conversion, some signal conditioning, and / or some pre-processing.

[0030] The timing of the TSP used by the acquisition system 100 for the operation of the acquisition system 100 is determined by configurable data: payload size, baud rate, and packet interval. Payload size is the maximum number of bytes of payload allowed per packet. This value constrains the expected time for transmission of a packet. Baud rate defines the communication speed in terms of symbols per second. For UART-based communication, a symbol includes data bits along with overhead bits such as start and stop bits. The maximum packet payload size and baud rate define the maximum expected transmission time of any packet.

[0031] The packet interval defines the time between successive packets from the master node 102 to the slave node 104 or from the slave node 104 to the master node 102. Bus activity is controlled in the timing of communication packets occurring at harmonics of the configurable packet interval. In this way, time synchronization between a set of slave nodes can be achieved using the start of the master's outgoing communication packet itself as a reference time.

[0032] Packet spacing = {(max payload size + overhead bytes) x symbols per byte} / baud rate + timing Data transfers are divided into packets that fit within a configurable packet interval that includes a timing margin. The timing margin accounts for sources of error such as differences in baud rate and inter-character gap times. Additionally, the timing margin accounts for processing delays during transitions between control of the bus by either a master or slave node and control of the bus by the other of the master or slave nodes.

[0033] As an example, with a TSP protocol overhead of 20 bytes and a UART configuration of 10 symbols per byte (1 start bit, 8 data bits, 1 stop bit), and a timing margin of 40us, the configurable parameters can be selected as follows: maximum payload size 460 bytes, baud rate 5Mbaud, packet spacing 1ms.

[0034] Baud rate errors can be caused by clock differences between the master and slave. Timing margins address these baud rate errors.

[0035] The UART intercharacter gap time is defined as the time between a stop bit and a subsequent start bit within one packet. This can be a source of significant timing variation. However, with hardware buffering mechanisms such as a first-in-first-out (FIFO) memory interface, the UART intercharacter gap time is expected to be zero. Producers can easily avoid underflow when transferring bytes to the UART, which will produce continuous output as long as data is buffered. With this knowledge, packets can be transmitted by the master node 102 at periodic, deterministic packet intervals, since the packet interval infers deterministic bus activity and promotes deterministic behavior for interfacing with the UART hardware. However, it is good practice for the master node 102 to ensure that the UART interface (FIFO or shift register) is empty before writing a new packet to the output port, which triggers transmission on the bus 106. If the packet interval has been exceeded, indicated by the UART interface not being empty, a transmit signal should be sent at the start of the next interval.

[0036] The delay in transitioning from control of the bus by the master node 102 to control of the bus by the slave node 104, or from control of the bus by the slave node 104 to control of the bus by the master node 102, is due to the time to filter and verify whether the packet content is intended for the recipient. Filtering is the process of using an addressing scheme to determine whether a transmission is intended for the recipient. Verification is the process of evaluating the content of a received transmission and comparing it to the latched channel data. Packet intervals can be used to a) define the timing used by the master node 102 to generate all master output packets, b) define the timing used by the slave node 104 to generate all slave output packets, c) synchronize the slave nodes 104 to acquire data, d) control ownership of the bus 106, and / or e) allow the master node 102 to determine the propagation delay of the slave nodes 104 in order to modify the data acquisition timing through feedback reflected in the slave node 104 generated output.

[0037] With regard to defining the timing used by the master node 102 to transmit packets, the master node 102 exercises control to start its output at harmonics of the packet interval, meaning that all start times of the master packets are multiples of the packet interval.

[0038] With respect to defining the timing used by the slave nodes 104 to transmit packets, each slave node 104 captures the start times of all master node 102 packets, offsets the slave-specific propagation delay from the captured start time, and schedules its output to coincide with subsequent harmonics of the packet interval.

[0039] With respect to providing synchronization between slave devices 104, a slave node 104 uses the captured start times of all master node 102 packets, offsetting the captured start times by slave-specific propagation delays, to trigger data acquisition synchronization events to coincide with subsequent harmonics of the packet interval.

[0040] Synchronization of slave nodes 104 is an optional protocol feature that depends on the ability of the master node 102 and the individual slave nodes to perform synchronization. The protocol does not break based on combining node types or synchronization features. Some slave nodes 104 may be able to synchronize their data acquisition and / or their output packets, while other slave nodes 104 may not have that capability.

[0041] If time synchronization is supported, the slave nodes 104 schedule to start outputting at a calculated synchronization time, also called the sync time. The master node 102 expects to start receiving packets at a harmonic of the packet interval offset by the slave-to-master propagation delay, which is half the round trip propagation delay. To achieve this timing, the slave node 104 timestamps the start of the received master output packet and calculates the start time for outputting the reply output packet by adding the packet interval and subtracting the master-to-slave propagation delay. The propagation delay is measured by the master node 102 for each slave and communicated to each slave node 104. The packet interval defines the base time between successive master packet start times and slave packet start times. That is, all master packets and all slave packets are output at a multiple of the packet interval, providing synchronization when any master packet is received by any slave node 104.

[0042] If time synchronization is not supported, the output of the slave node 104 starts immediately after packet processing, which is limited by the minimum and maximum delay times. In the case of continuous data transfer by the slave node 104, the output of the slave node 104 is scheduled to be a multiple of the packet interval after the start of the first output by the slave node 104. In an embodiment, the packet interval limits the time between the last packet end time of the master node 102 and the first packet start time of the slave node 104. The maximum delay is (1.n x packet interval), where n corresponds to the software implementation selected to accommodate providing the service of the communication interface at the packet interval with a margin of n%. In an embodiment, n=2. The minimum delay corresponds to the firmware implementation and depends on the physical configuration. For example, a delay of 10 μs.

[0043] With regard to bus ownership control, the master node 102 can use packet intervals to control the transfer of bus ownership to the slave node 104 for a limited period of time, either for acknowledging receipt of a transmission signal or for transmitting data upon request from the master node 102. The control of bus ownership, reflected in a packet bus control value contained in the packet header, defines the period during which the slave node 104 can use the bus, e.g., for packets. From the perspective of the slave node 104, the master node 102 defines the control of the bus 106, and the slave node 104 only does what is instructed by the master node 102. After ownership of the bus 106 is transferred to the slave node 104, the master node 102 regains bus ownership after the slave node 104 indicates completion of its output or the time limit for control by the slave node expires, whichever occurs first. The slave node 104 transfers bus ownership back to the master node 102 by using the same packet bus control value contained in the packet header. As incoming packets from the slave node 104 are processed, the master node 102 updates the bus ownership based on this value. After regaining bus ownership, the master node 102 may output its next transmission in the next available packet interval.

[0044] For a slave node 104, if an unexpected event occurs that delays the slave node's transmission during the period in which control of the bus 106 is transferred to the slave 104, bus ownership is relinquished to the master node 104 when the slave node outputs its next transmit signal, regardless of the control period provided by the master node 104. The master node 102 can also use a timeout on receipt of input from the slave node 104 to respond to such situations or other communication errors, etc.

[0045] A transfer of bus ownership can be accomplished by setting a bus control value for transmission from the master node 102 to the slave node 104. The 8-bit bus control value, limited between 0 and 255, indicates the number of consecutive packet intervals during which the slave node 104 is allowed to generate output. Upon receiving a non-zero bus control value, the slave node 104 enables the count of output packets corresponding to the bus control value. Because time synchronization updates are not possible while the slave node 104 owns the bus 106, timing errors and bandwidth utilization must be considered when selecting the maximum allowable bus control value. The slave node 104 uses an 8-bit bus control value, with allowable values ​​being 0 or 1. When the slave node 104 has ownership of the bus 106, the slave node 104 transfers bus ownership back to the master node 102 when the bus control value is 1, and retains bus ownership when the bus control value is 0.

[0046] When the master node 102 transfers bus ownership to a particular slave node 104, such as by requesting status or requesting acquired data from the slave node 104, the slave node 104 schedules its first output to start at the next synchronized time if time synchronization is supported, or immediately after packet processing if time synchronization is not supported.

[0047] With regard to determining the propagation delay, when the output of a slave node 104 is synchronized with the output of the master node 102 by capturing a time reference and predicting the next synchronization time based on the packet interval, the master node 102 can measure the propagation delay to that slave node 104. The master node 102 can then report the propagation delay to the slave node 104. The slave node 104 can then use the propagation delay to compensate for the timing of its transmissions, thus reducing timing errors that may prevent synchronization between the slave nodes 104 or between the slave nodes 104 and the master node 102.

[0048] In an embodiment, constraints can be applied to the configurable data of the TSP timing to satisfy design considerations such as minimum and maximum values ​​and resolution values ​​for payload, baud rate, packet spacing, and their respective allowed resolutions. For example, the packet spacing resolution can be a synchronization event, where the synchronization event is a timing inherent in the design for the data acquisition activity, such as a toggling buffer. The baud rate can cover a range of data rates based on hardware clock limitations, transceiver capabilities, and signal integrity considerations. The maximum payload constraint can provide some flexibility to balance overhead, bandwidth utilization, and packet buffer size. A multiple of 4 bytes can simplify cyclic redundancy check (CRC) calculations. Additionally, a timing margin constraint can be provided to address timing variations.

[0049] With respect to the operation of the master node 102, the master node 102 sends transmissions to the slave nodes 104 spaced apart the start of each transmission by a multiple of the packet interval. The master node 102 controls ownership of the bus 106, and unless it is sending a request for status or specified data to the slave node 104, the bus 106 is only allowed for the master node 102 to use for transmissions. The master node 102 allows the slave node 104 to take control of the bus 106 and respond with the requested data for a specified number of intervals, after which the master node 102 resumes control of the bus 106. In an embodiment, the master node 102 can wait for the slave node's response, allowing the response to extend over a specified number of intervals. The master node 102 can apply a timeout function to resume control of the bus 106 if a communication error occurs.

[0050] When synchronization is applied, the master node 102 can send a master packet to the slave node 104 requesting an acknowledgment and grant ownership of the bus 106 to the slave node 104 at substantially the same time. The master node 102 can grant the slave node 104 sufficient bus ownership to allow the slave node 104 to respond to the request and then regain ownership of the bus 106. The master node 102 can expect an acknowledgment in response from the slave node at a particular time, e.g., the start of the next packet interval in a firmware or hardware embodiment, or the start of the second packet interval in a software embodiment. The master node 102 can determine a propagation delay based on the difference between the expected response reception time and the actual response reception time. The master node 102 can transmit the determined propagation delay to the slave node 104 via the bus 106.

[0051] In an embodiment in which the slave nodes 104 are configured to synchronize the output of data acquisition and / or transmission signals with the transmissions of the master node 102, the slave nodes 104 monitor the bus 106 for transitions from an inactive state, where no transmission signals are being transmitted, to an active state, where a transmission signal is being transmitted. With respect to the operation of the master node 102, the master node 102 controls bus ownership and may output MOSI transmissions to the various slave nodes 104. To ensure a minimum synchronization rate, the master node 102 may transmit the output transmission signals within a maximum allowable delay. The master node 102 may also conditionally output control packets when there are no pending data transactions to ensure that synchronization is maintained when no data transfer is required. In this manner, every master packet may be used by each slave node 104 to correct its synchronization time. Correcting the synchronization time may be a continuous process, even as propagation delays change based on modifications to the acquisition system 100 equipment and / or cabling and / or changes in the environment.

[0052] Regarding the operation of the slave nodes 104 to determine a synchronization time for use in synchronizing data acquisition and / or generating output packets, when a master output packet is received over the bus 106, each slave node 104 routes the incoming transmission to the input of its receiver (e.g., a UART in this example) for decoding. Additionally, the incoming transmission signal is routed to a capture port, which evaluates the signal transition to timestamp the start of a new packet. Using an expected inter-character gap time of 0 and a minimum inter-packet time of, e.g., 10 μs, the slave node 104 waits for a specific state in which the slave node 104 detects an inactive input state (during which the bus 106 is inactive) for at least a threshold time, after which it transitions to an active input state (during which the bus 106 transitions to an active state). Since the UART is configured to use a non-return-to-zero (NRZ) encoding scheme, in this example, the inactive state is defined as a logic high level. An active transition is defined as a transition from a logic high level to a logic low level.

[0053] In an embodiment, detection of the predetermined condition is performed by initializing a transition inactivity time counter to zero and incrementing the counter as long as the input state remains inactive. Once a timeout occurs, i.e., the inactive input state persists for a threshold time (where the threshold is the timeout value), the slave node 104 waits for the input state to transition to active (logic low). If the input state becomes active before the timeout occurs, the counter is reset.

[0054] When a transition is detected, i.e., a packet is being received from the bus 106, the slave node 104 captures the current time, which corresponds to the start of the packet and is called the start time (t_k). The current time can be obtained from a free-running timer, where the timer's count value is latched, for example, by firmware in the slave node 104.

[0055] As the bytes of a packet are received, the slave node 104 evaluates the validity of the packet to determine if the packet is a transmission from the master node 102 (regardless of which slave node 104 it is addressed to). If the packet is from another slave node 104, it can be ignored and the latched time is not used. If the packet is from the master node 102, the synchronization time (t_s) is modified based on equation (1): t_s=t_k+t_p-t_prop (1), where (t_p) is a configurable packet interval and (t_prop) is a slave-specific propagation delay provided by the master. A slave node 104 uses the synchronized time to control the timing of its data acquisition and output transmission.

[0056] When a slave node 104 receives a packet output from the master node 102 in which data has been pushed to the slave node 104, the slave node 104 buffers the packet. When a complete packet is received, the slave node 104 processes the packet according to predefined criteria based on its contents. If the packet is invalid or not intended for the slave, the packet is ignored except to determine the synchronization time. If the packet is valid and intended for the slave node 104 (as indicated by the destination address in the packet's header), the slave node 104 initializes the transaction data for the particular channel on which the packet was received and maintains the data based on the packet received thereafter. The transaction data includes the port number, data offset, transaction ID, and source / destination addresses for the particular channel. If the data is correct, the slave node 104 buffers the data and updates the data offset. At the session layer, the buffered data is evaluated and consumed if complete.

[0057] In operation, when the master node 102 transfers bus ownership to a slave node 10, for example, via a write operation status request or a read operation pull request, the next transmit signal output from the slave node 104 is scheduled to begin at a future time or begins immediately after packet processing. If time synchronization is not supported, the slave output begins immediately after packet processing, limited by the minimum and maximum delay times. Successive slave data transfers are scheduled at multiples of the packet interval.

[0058] If time synchronization is supported, the transmit power is scheduled to begin at the calculated synchronized time when the master node 102 is expected to begin receiving packets at a harmonic of its packet interval.

[0059] Upon reset, a free-running timer is started and its "count value" represents the current time, t_c. A reset that initializes the free-running timer can be a power-on reset, a hardware reset such as from a supervisory or watchdog circuit, or a controller-initiated reset such as a software or firmware action. Additionally, the synchronized time is updated using the current time based on equation (2).

[0060] t_s=t_c+t_p-t_prop (2) where t_p is the packet spacing and t_prop is the particular propagation delay that the master node 102 provides to the slave node 104.

[0061] When the current time reaches the synchronization time, the acquisition process is updated depending on the operation mode. For example, if a buffering scheme is used, the slave node 104 can toggle its active buffer. In a scenario where each applicable slave node 104 (slave nodes 104 addressed by the multicast broadcasting the instruction to execute the acquisition process) synchronizes to perform this action at approximately the same time, the acquired data is time-synchronized at the start of each buffer. Among the applicable slave node 104 buffers, the buffers can contain slightly different numbers of acquisition samples, which can be taken into account during processing or data aggregation by the master node 102. For example, the data set can be truncated to the length of the minimum data set.

[0062] A slave node 104 conditionally begins outputting buffered data based on whether it is scheduled to do so. It may be scheduled to produce continuous output depending on the priority of the channel and whether the previous output of the channel (if any) was completed as expected.

[0063] Reference is now made to Figures 3A-9, which are flow charts and diagrams illustrating the implementation of various exemplary embodiments. It should be noted that the order of operations illustrated in Figures 3A-9 is not required, and in principle, various operations can be performed out of the illustrated order or in parallel. Also, certain operations can be skipped, different operations can be added or substituted, and selected operations or groups of operations can be performed in separate applications in accordance with the embodiments described herein.

[0064] FIG. 3A shows a flow diagram 300 illustrating an exemplary method performed by a master node of an acquisition system, such as the master node 102 of the acquisition system 100 shown in FIG. 1. At input 302, a configuration is obtained that provides a definition of a packet interval, which provides a timing margin appropriate to ensure that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics defined by the packet interval. That is, data transfers are divided into packets that fit within a configurable packet interval that includes a timing margin. At operation 304, a time reference for the communication packets is distributed to all slave nodes of the distributed acquisition system via a bus, the time reference being based on the packet interval definition. In particular, the start of the master's output communication packet itself can be used as a reference time to achieve time synchronization between a set of slave nodes. The method can continue with operations 306, 308, and / or 310.

[0065] In operation 306, communications over the bus are synchronized with one or more slave nodes based on a defined packet interval.

[0066] In operation 308, bus ownership is controlled based on the packet interval. In an embodiment, a timeout feature may be used to regain control of the bus after providing control of the bus to one of the slave nodes. In effect, bus activity is controlled where the timing of communication packets occurs at harmonics of the configurable packet interval.

[0067] At operation 310, a propagation delay is determined, the propagation delay relating to the time from the start of transmission of a communication packet sent by the master node to the time of receipt of the communication packet by one of the slave nodes and / or the time from the start of transmission of a communication packet sent by one of the slave nodes to the time of receipt of the communication packet by the master node. At operation 312, the propagation delay is transmitted over the bus to the slave nodes.

[0068] In an embodiment, one or more of operations 306, 308, and / or 310 and 312 may be performed at different times, in different orders, or simultaneously.

[0069] In an embodiment, the bus 106 is used for bidirectional communication. The control component further controls bus ownership based on a definition of the packet interval.

[0070] In an embodiment, the one or more slave nodes include a plurality of slave nodes, and controlling ownership of the bus includes granting limited access to the bus to a single selected slave node of the plurality of slave nodes.

[0071] In an embodiment, the limited access granted is for a specified number of packets permitted to be transmitted by the selected slave node while the selected slave node is granted access to the bus.

[0072] In an embodiment, the bus is configured for bidirectional communication, the packet interval definition is a maximum expected time between successive transmission start times of communication packets transmitted by the master node, and the control component expects the communication packets transmitted by one or more slave nodes to be synchronized based on the packet interval definition.

[0073] In an embodiment, the packet interval definition takes into account the maximum expected transmission time for transmitting a communication packet transmitted by the master node or one or more slave nodes based on the definition of the maximum packet payload size and communication baud rate of the obtained configuration.

[0074] In an embodiment, each packet of the time reference packets and communication packets sent by the master node to any of the slave nodes has a start time that is a multiple of the packet interval definition.

[0075] In an embodiment, the definition of a packet interval is the sum of the baud rate error due to the clock difference between the master node and at least one slave node and the intercharacter timing gap during processing during a transition between control of the bus by the master node or the slave node and control of the bus by the other of the master node and the slave node.

[0076] 3B shows a flow diagram 350 illustrating an exemplary method performed by a slave node of a plurality of distributed slave nodes of an acquisition system, such as the slave node 104 of the acquisition system 100 shown in FIG. 1. At input 352, a configuration is obtained that provides a packet interval definition that ensures that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics of the packet interval definition. At operation 354, a start time for a new master transmission is determined.

[0077] Next, in operation 355, a determination is made whether the master transmission includes a propagation delay measured by the master node for the particular slave node. If the determination in operation 355 is YES, meaning that the master transmission includes the particular propagation delay of the slave node as determined by the master node, then in operation 357 the slave node latches the updated propagation delay and the method then continues to operation 356. If the determination in operation is NO, meaning that the master transmission did not include a propagation delay, then in operation 356 the slave node modifies its synchronization time based on the latched propagation delay and the start time of the master transmission. If the master node does not have a particular message that needs to be sent in the transmission signal, it can send a synchronization message that the slave node can use to modify its own synchronization by modifying its synchronization time.

[0078] A determination is made whether temporary ownership of the acquisition system's bus has been assigned to a slave node in operation 358. If the determination in operation 358 is YES, meaning that ownership of the bus has been temporarily assigned to a slave node, for example for a certain amount of time or number of packet intervals, then a determination is made in operation 360 whether ownership of the bus by the slave is still valid. If the determination in operation 358 is NO, meaning that ownership of the bus has not been assigned to a slave node, then the method continues to operation 354.

[0079] If the determination at operation 360 is YES, meaning that the slave's ownership is still valid and has not expired, then in operation 362 a determination is made whether the master node has requested an acknowledgement (ACK). If the determination at operation 360 is NO, meaning that the slave's ownership of the bus is no longer valid, e.g., has expired, then the method continues to operation 354. If the determination at operation 362 is YES, meaning that an acknowledgement has been requested, then in operation 368 the slave node transmits an acknowledgement at the next available synchronization time, each synchronization time spaced apart by a packet interval. The master node can use the receipt time of the acknowledgement to determine the propagation delay of the slave node. The method then continues to operation 354.

[0080] If the determination at operation 362 is NO, meaning no acknowledgement is requested, then a determination is made at operation 364 as to whether acquisition data has been requested by the master node. If the determination at operation 364 is YES, meaning acquisition data has been requested, then a determination is made at operation 366 as to whether there is acquisition data available. Such available acquisition data may be buffered, waiting to be sent to the master node based on a previous request (first half of the read transaction). If the determination at operation 364 is NO, meaning acquisition data has not been requested, then the method continues at operation 354.

[0081] If the determination at operation 366 is YES, meaning that the acquired data is available, then in operation 370 the slave node transmits the acquired data at the next available synchronization time. The method then continues to operation 354. If the determination at operation 366 is NO, meaning that the acquired data is not available, then in operation 372 the slave node transmits a control packet to indicate that the data is not available. With this input, the master node knows that the slave node needs more time to buffer the requested data. The method then continues to operation 354.

[0082] FIG. 4 shows a flow diagram 400 illustrating an exemplary method for synchronizing slave nodes performed by a slave node of an acquisition system, such as the slave node 104 of the acquisition system 100 shown in FIG. 1. In operation 402, an inactivity time counter is initialized in response to a reset signal or active input from operation 404. In operation 404, it is determined whether the slave node input state is active or inactive. If the input state is active, control returns to operation 402 and the inactivity time counter is reset to zero. If the input state is inactive, the method proceeds to operation 406. In operation 406, an inactivity timer is incremented. In operation 408, the inactivity time count value is evaluated to evaluate whether it exceeds a threshold value. If the threshold value is exceeded, it is determined that a timeout condition has occurred. If a timeout condition has not occurred, i.e., if the inactivity time counter has not exceeded the threshold value, control returns to operation 404. If a timeout condition has occurred, the method proceeds to operation 410.

[0083] At operation 410, it is again determined whether the input state of the slave node is active or inactive. Operation 410 is performed while the inactivity timer continues to increment. If the determination is that the input state is inactive, operation 410 is repeated while the inactivity time counter continues to increment. If the input state is determined to be active, the method proceeds to operation 412 where a timestamp of the current time is captured and latched, for example from a free-running timer. The count value of the free-running timer represents the current time, t_c. At operation 414, a determination is made whether an incoming packet received while in the active input state is a valid master output packet.

[0084] If the determination at operation 414 is NO, meaning that the incoming packet is not a master packet, but is therefore from another slave node 104, control continues to operation 402 to reinitialize the inactivity timer to zero. The incoming packet is ignored and the latched time is not used to correct the synchronization time (t_s). If the determination at operation 414 is YES, meaning that the incoming packet is a valid master packet, control continues to operation 416. At operation 416, the synchronization time (t_s) is corrected based on equation (1) above. The slave node can use the corrected synchronization time (t_s) to control the timing of data acquisition and output transmission signals by the slave node.

[0085] 5 shows a flow diagram 500 illustrating an example method performed by a slave node of an acquisition system, such as the slave node 104 of the acquisition system 100 shown in FIG. 1, to apply a synchronization time (t_s) to synchronize the operation of the slave node. At operation 502, a free-running timer is initialized to a current time, t_c. The value of the free-running timer is incremented over time to represent the updated current time. At operation 504, the current time, t_c, is used to update the synchronization time (t_s) based on equation (2).

[0086] In operation 506, a determination is made as to whether the free-running timer value (updated current time) has reached the synchronization time t_s. If the determination is NO, meaning that the free-running timer value has not yet reached the synchronization time t_s, operation 506 is repeated while the free-running timer is incremented based on the elapsed time. If the determination is YES, meaning that the free-running timer value has reached the synchronization time t_s, the method continues with operation 508. In operation 508, if the sensor node is in an acquisition mode of operation, the acquisition is updated, such as by toggling its active buffer. Operation 508 is required to synchronize with other slave nodes in communication with the master node.

[0087] At operation 510, a determination is made whether an output is scheduled. An output is scheduled when a slave node is given control of the bus by the master node, such as to send an acknowledgment or to respond with requested data, such as acquired data. If the determination at operation 510 is NO, meaning that an output is not scheduled for the slave node, the method continues to operation 504 to update sync_time. If the determination at operation 510 is YES, meaning that an output is scheduled for the slave node, the method continues to operation 512, after which the method continues to operation 504. At operation 512, a transmission procedure is performed to output the requested data or acknowledgment.

[0088] 6 shows a flow diagram 600 illustrating an example method for the functioning of a master node of an acquisition system, such as the master node 102 shown in FIG. 1, to synchronize timing with slave nodes of the acquisition system. At operation 602, a synchronization time (t_s) is initialized, and a free-running timer value is incremented over time to represent an updated current time. At operation 604, the synchronization time (t_s) is updated, where t_s=t_c+t_p, where t_p is a configurable packet interval.

[0089] At operation 606, a determination is made as to whether the free-running timer value (updated current time) has reached the synchronization time t_s. If the determination at operation 606 is NO, meaning that the free-running timer value has not yet reached the synchronization time t_s, operation 606 is repeated while the free-running timer is incremented based on the elapsed time. If the determination at operation 606 is YES, meaning that the free-running timer value has reached the synchronization time t_s, the method continues to operation 608.

[0090] At operation 608, a determination is made whether the master node owns a bus of the acquisition system, such as bus 106 shown in FIG. 1. If the determination at operation 608 is NO, meaning the master node does not own the bus, the method continues to operation 604 to update sync_time. If the determination at operation 608 is YES, meaning the master owns the bus, the method continues to operation 610, after which the method continues to operation 604. At operation 610, the master node generates an output. The master determines what to output by resuming all active high priority outputs. Otherwise, the master node starts pending high priority outputs. Otherwise, the master node resumes all active low priority outputs. Otherwise, the master node starts all pending low priority outputs. Otherwise, if data acquisition is active, the master node outputs a synchronization packet that does not contain a payload and provides only a time synchronization update.

[0091] FIG. 7 shows a flow diagram 700 illustrating the process within operation 610 of FIG. 6. The flow diagram illustrates an exemplary method for selecting which output packets to generate and controlling the bus by a master node of an acquisition system, such as the bus 106 and master node 102 of the acquisition system 100 shown in FIG. 1. In operation 702, the master node determines whether a MISO channel (read transaction) with any of the slaves is active. If the determination in operation 702 is that the MISO channel is active, the method proceeds to operation 704, where the master node generates a pull output control packet. This packet requests the initiation or resumption of a read transaction data transfer from a particular slave node. In operation 706, based on the pull output, the master node transfers control of the bus to the slave node associated with the active MISO channel for a period of the maximum number of packet intervals during which the slave node is expected to generate an output to transfer data.

[0092] If it is determined in operation 702 that the MISO channel is not active, then in operation 708 it is determined whether the MOSI channel (write transaction) is active or pending. If not, a control packet output to update the synchronization time (t_s) may be sent to the bus, not shown in FIG. 7. If it is determined in operation 708 that the MOSI channel is active or pending, then in operation 710 the master node pushes data to one or more slave nodes. The output packet serves as a request for initiation, resumption, and / or status of the write transaction. In operation 712, a determination is made whether an acknowledgement is expected. If the determination in operation 712 is YES and an acknowledgement is expected, then the method continues to operation 706. In operation 706, based on the request status output, the master node transfers control of the bus to the slave node associated with the active MOSI channel at one packet interval, during which the slave node is expected to generate an output indicating the status of its received input from the master node. If the determination in operation 712 is NO and an acknowledgement is not expected, then the method continues to operation 714. At operation 714, a determination is made as to whether the last packet has been output. If the determination at operation 714 is NO and the last packet has not been output, the method ends and then the method resumes at the next packet interval at operation 702. Otherwise, if operation 714 determines YES, the last packet is output and at operation 716 it is determined whether the output is for a read transaction or a write transaction. If operation 716 determines NO and the output is a write operation rather than a read operation, the method proceeds to operation 718 where the current transaction is completed and then the method terminates and resumes at the next packet interval at operation 702. If operation 716 determines YES and the output is a read operation, the method proceeds to operation 720 where the MISO channel of the slave device performing the read transaction is activated and then the method terminates and resumes at the next packet interval at operation 702.Effectively, the master node writes data using the MOSI channel and triggers the slave node to buffer the output, which can then be pulled using the associated MISO channel.

[0093] FIG. 8 illustrates a flow diagram 800 illustrating an exemplary method performed by a master node that provides for reacquisition of the bus by the master node based on a slave node input or a timeout condition. At operation 802, the master node takes input data from the bus while the slave node has control of the bus. At operation 804, the master node processes the input based on predetermined criteria. At operation 806, a determination is made whether the slave node has transferred bus ownership back to the master node. The slave node relinquishes bus ownership using a bus control value of 1 when it has reached the last packet of the data transfer or when it has reached the number of allowed packets. If the determination at operation 806 is YES and the bus is ready to be reclaimed, at operation 810 the master node reclaims the bus and the method then continues at operation 802. If the determination at operation 806 is NO and the slave node has not explicitly relinquished bus ownership, then at operation 808, a determination is made whether a timeout condition has been met. In effect, the master node evaluates whether sufficient time has passed to autonomously reclaim ownership of the bus. The configurable timeout is selected such that a time corresponding to the number of packet intervals the master node allowed the slave node between the last master node output packets is exceeded. If the determination at operation 808 is YES and the timeout condition is met, the master node reclaims the bus at operation 810 and the method continues with operation 802. If the determination at operation 808 is NO and the timeout condition is not met, the method continues with operation 802.

[0094] FIG. 9 shows a flow diagram 900 illustrating an exemplary method performed by a master node to determine a propagation delay correction. A transmission on the bus 106 from a slave node 104 received by the master node 102 can be routed to an input of, for example, a UART for decoding, and further routed for capture, for example, at a capture port, where signal transitions can be evaluated to timestamp the start of a new packet being received. This method can be performed by firmware in the master node. For example, by utilizing an expected inter-character gap time of 0 and a minimum inter-packet time of 10 μs, the master firmware can wait for the bus to go into an inactive state followed by an active transition. For example, in an embodiment using a UART, a non-return-to-zero (NRZ) encoding scheme is used, with the inactive state defined as a logic high level, and the active transition can be detected as a transition from a logic high level to a logic low level.

[0095] At operation 902, an inactivity time counter is initialized in response to either a reset signal or an active input from operation 904. At operation 904, it is determined whether the master node input state is active or inactive based on whether a new packet has been captured. If the input state is active, meaning that a packet has been captured, control returns to operation 902 and the inactivity time counter is reset to zero. If the input state is inactive, meaning that a packet has not been captured, the method proceeds to operation 906. At operation 906, an inactivity timer is incremented. At operation 908, the inactivity time count value is evaluated to determine whether it has exceeded a threshold. If the threshold has been exceeded, it is determined that a timeout condition has occurred. If a timeout condition has not occurred, meaning that the inactivity time counter has not exceeded the threshold, control returns to operation 904. If a timeout condition has occurred, the method continues to operation 910.

[0096] At operation 910, it is again determined whether the input state of the slave node is active or inactive. Operation 910 is performed while the inactivity timer continues to increment. If the determination is that the input state is inactive, operation 910 is repeated while the inactivity time counter continues to increment.

[0097] If the input state is determined to be active, the method proceeds to operation 912, where a timestamp of the current time is captured and latched, for example from a free-running timer. The count value of the free-running timer represents the current time, t_c. In operation 914, in addition to evaluating the validity of the expected packet, the master node updates the propagation delay of the particular slave node that sent the detected transmission by determining a timing error (t_s) relative to the master synchronization time (t_e) using the formula t_e=t_k-t_s-t_prop, where (t_prop) is the current slave-specific propagation delay. In operation 918, a determination is made, possibly after filtering, whether the error is significant, e.g., exceeds a predefined threshold. In operation 918, the master node schedules an output to the particular slave node and updates the particular propagation delay of the slave node. The propagation delay is updated by accumulating half the error, corresponding to the delay in both directions.

[0098] A potential advantage of various embodiments of the disclosed acquisition system is that protocol logic can be applied to the use of a communication link to handle data transfer between a master node and distributed slave nodes, correct timing errors, and provide synchronization of the distributed slave nodes without the need for a separate synchronization link.

[0099] Although shown and described in the exemplary context of aircraft engine related application health monitoring, those skilled in the art will readily appreciate that the acquisition system according to the present disclosure can be used in any other suitable application, including civil and military applications, that uses highly correlated sensory data acquired by distributed slave nodes. Since the correction of the synchronization time to resynchronize the communication between the master node and the slave node can be a continuous process, the acquisition system can resynchronize even if the propagation delay changes based on the correction of the acquisition system's equipment and cables. Thus, the acquisition system can be used to monitor fixed or mobile systems, such as land, sea, space, and air vehicles.

[0100] While the apparatus and method of the present disclosure have been shown and described with reference to preferred embodiments, those skilled in the art will readily appreciate that changes and / or modifications can be made therein without departing from the spirit and scope of the present disclosure.

Claims

1. A master node of a distributed acquisition system, the master node having a bus for communicating with one or more distributed slave nodes, the one or more slave nodes being configured to acquire data; A communication interface; a control component, the communication interface interfaces between the control component and the bus coupled to the one or more slave nodes distributed within the acquisition system; The control component obtains a configuration providing a definition of a packet interval; a definition of the packet interval that provides adequate timing margins to ensure that communication packets transmitted by the master node and communication packets transmitted by the one or more slave nodes occur only at harmonics defined by the packet interval; Distributing the communication packets as time reference packets based on the packet interval definition to all of the slave nodes of the distributed acquisition system via the bus; configured to schedule transmission of communication packets transmitted by the master node over the bus to the one or more selected slave nodes based on the packet interval definition; the bus is configured for bidirectional communication, and the control component further controls ownership of the bus based on the packet interval definition; the master node transferring limited bus ownership for a period of time to a single selected slave node among the one or more slave nodes; A master node, wherein the limited bus ownership is for a specified number of packets permitted to be transmitted by the single selected slave node while the single selected slave node is granted access to the bus.

2. 2. The master node of claim 1, wherein controlling ownership of the bus includes regaining control of the bus after the grant of limited access expires when the bus meets an inactivity condition or a timeout condition.

3. 2. The master node of claim 1, wherein the bus is configured for bidirectional communication, the packet interval definition is a maximum expected time between successive transmission start times of communication packets transmitted by the master node, and the control component expects communication packets transmitted by the one or more slave nodes to be synchronized based on the packet interval definition.

4. 4. The master node of claim 3, wherein the packet interval definition addresses a maximum expected transmission time for transmitting the communication packets transmitted by the master node or one or more of the slave nodes based on a maximum packet payload size and a communication baud rate definition of an acquired configuration.

5. 2. The master node of claim 1, wherein the control component is further configured to determine a propagation delay associated with a time from a start of transmission of a communication packet transmitted by the master node to a time of receipt of the communication packet by one of the slave nodes and / or a time from a start of transmission of a communication packet transmitted by one of the slave nodes to a time of receipt of the communication packet by the master node, and to transmit the propagation delay to the slave nodes via the bus.

6. 2. The master node of claim 1, wherein each of said communication packets transmitted by said master node to any of said slave nodes has a start time that is a multiple of said packet interval definition.

7. 2. The master node of claim 1, wherein the definition of the packet interval is based on a delay caused by at least one of a baud rate error due to a clock difference between the master node and the at least one slave node, a process for transitioning from control of the bus by one of the master node and the slave node to control of the bus by the other of the master node and the slave node, and a sum of an inter-character gap time.

8. 1. A method of synchronizing communications between a master node and one or more slave nodes of a distributed acquisition system, the master node having a bus for communicating with the one or more distributed slave nodes, the one or more slave nodes being configured to acquire data; Get the configuration that provides the packet interval definition, a definition of the packet interval that provides adequate timing margins to ensure that communication packets transmitted by the master node and communication packets transmitted by the one or more slave nodes occur only at harmonics defined by the packet interval; distributing the communication packets as time reference packets based on the packet interval definition to all of the slave nodes of the distributed acquisition system via the bus; scheduling transmission of communication packets transmitted by the master node over the bus to the one or more selected slave nodes based on the packet interval definition; Equipped with the bus is configured for bidirectional communication, and a control component further controls ownership of the bus based on the packet interval definition; the master node transferring limited bus ownership for a period of time to a single selected slave node among the one or more slave nodes; wherein the limited bus ownership is for a specified number of packets permitted to be transmitted by the single selected slave node while the single selected slave node is granted access to the bus.

9. 9. The method of claim 8, wherein controlling ownership of the bus includes regaining control of the bus after the grant of limited access expires when the bus meets an inactivity condition or a timeout condition.

10. 9. The method of claim 8, wherein the bus is configured for bidirectional communication, the packet interval definition is a maximum expected time between successive transmission start times of communication packets transmitted by the master node, and the control component expects communication packets transmitted by the one or more slave nodes to be synchronized based on the packet interval definition.

11. 9. The method of claim 8, wherein the definition of the packet interval takes into account a maximum expected transmission time for transmitting the communication packets transmitted by the master node or one or more of the slave nodes based on a definition of a maximum packet payload size and a communication baud rate of the acquired configuration.

12. 9. The method of claim 8, further comprising determining a propagation delay associated with a time from a start of transmission of a communication packet transmitted by the master node to a time of receipt of the communication packet by one of the slave nodes and / or a time from a start of transmission of a communication packet transmitted by one of the slave nodes to a time of receipt of the communication packet by the master node, and transmitting the propagation delay to the slave nodes via the bus.

13. 9. The method of claim 8, wherein each of the communication packets transmitted by the master node to any of the slave nodes has a start time that is a multiple of the packet interval definition.

14. a control component of a master node of a distributed acquisition system, the master node having a bus for communicating with one or more distributed slave nodes, the one or more slave nodes being configured to acquire data; The control component and processing device Get the configuration that provides the packet interval definition, wherein the definition of the packet interval provides adequate timing margins to ensure that communication packets transmitted by the master node and communication packets transmitted by the one or more slave nodes occur only at harmonics defined by the packet interval; Distributing the communication packets as time reference packets based on the packet interval definition to all of the slave nodes of the distributed acquisition system via the bus; scheduling transmission of communication packets transmitted by the master node over the bus to the one or more selected slave nodes based on the packet interval definition; It is configured as follows: the bus is configured for bidirectional communication, and the control component further controls ownership of the bus based on the packet interval definition; the master node transferring limited bus ownership for a period of time to a single selected slave node among the one or more slave nodes; a control component, wherein the limited bus ownership is for a specified number of packets permitted to be transmitted by the single selected slave node while the single selected slave node is granted access to the bus.

15. The master node of claim 1 , wherein the one or more slave nodes are sensing elements.

16. 2. The master node of claim 1, wherein the packet interval is used to synchronize the slave nodes so that they can acquire data.

17. The master node of claim 1 , wherein obtaining a configuration providing a definition of the packet interval is performed at system setup time.

18. The master node of claim 1 , wherein the one or more slave nodes also obtain a configuration at system setup time that provides a definition of the packet interval.

Citation Information

Patent Citations

  • Slave station time matching system

    JP1992142897A

  • Data transfer system

    JP1995212376A

  • Polling method in communication system

    JP2000183923A

  • Communication system

    JP2004128581A

  • Time synchronous system

    JP2005033444A