Slave node, method for synchronizing communication between a slave node and a master node, and control component of a slave node - Patents.com

The proposed communication protocol integrates data transfer and time synchronization using a bus-based approach, reducing costs and timing errors by synchronizing slave nodes to harmonics of a configurable packet interval, enhancing deterministic timing and bandwidth efficiency.

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

Patent Information

Application Number
JP2019228579
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 methods for distributed time synchronization in asynchronous communication systems incur additional costs due to separate physical links for synchronization and suffer from timing errors caused by propagation delays among slave devices.

Method used

A communication protocol that utilizes the bus for both data transfer and time synchronization, where slave nodes synchronize their communication packets to harmonics of a configurable packet interval, adjusting for propagation delays and managing bus ownership to ensure deterministic timing.

Benefits of technology

Reduces the need for separate synchronization links, minimizes timing errors, and optimizes bandwidth utilization by synchronizing slave nodes efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542307000002
    Figure 0007542307000002
  • Figure 0007542307000007
    Figure 0007542307000007
  • Figure 0007542307000003
    Figure 0007542307000003
Patent Text Reader

Abstract

To provide a slave node of one or more slave nodes and a master node of a distributed acquisition system, and a method of synchronizing communication of the slave node.SOLUTION: The method includes acquiring a configuration that provides a definition for 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 of the packet interval definition. The method further includes receiving master communication packets from the master node via a bus, determining a start time of at least one most recent master communication packet of the master communication packets received from the master node, calculating a synchronization time based on the start time, and starting transmission of slave communication packets to the master node based on the synchronization time.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 via one or more communication links to a processing component for aggregation, analysis, data storage, and / or reporting.

[0003] For certain operating modes, data acquisition needs to be highly correlated among a distributed set of slave devices. To accomplish this need, a master-generated time synchronization pulse is often employed, where the pulse transitions signal a time reference for each slave.

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

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

[0006] Objects and advantages of the illustrated embodiments will be set forth 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 the specification, claims, as well as from the accompanying drawings. To achieve these and other advantages, and in accordance with the objects of the illustrated embodiments, in one aspect, a slave node of a distributed acquisition system is provided. The slave node includes a control component and a communication interface interfacing between the control component and a bus. The bus is coupled to a master node distributed in the acquisition system. The control component is configured to obtain a configuration providing a definition for a packet interval, the packet interval definition providing an appropriate timing margin to ensure that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics of the packet interval definition, and to receive a master communication packet from the master node via the bus. The control component is further configured to determine a start time of at least one immediately preceding master communication packet of the master communication packets received from the master node, calculate a synchronization time based on the start time, and initiate transmission of the slave communication packet to the master node based on the synchronization time.

[0007] In an embodiment, the control component may be further configured to determine whether the slave node has been granted ownership of the bus, and transmission of slave communication packets may commence only when the slave node has been granted ownership.

[0008] In an embodiment, the grant of ownership to a slave node may be exclusive to the slave node.

[0009] In an embodiment, determining whether ownership of the bus is granted to the slave node may include determining a bus access restriction associated with the ownership grant. The control component may be further configured to refrain from initiating transmission of a slave communication packet when ownership of the bus is not granted due to the access restriction.

[0010] In an embodiment, the access restrictions may specify a maximum number of slave communication packets permitted to be transmitted by a slave node while the slave node is granted ownership of the bus, a time interval after which grant of bus ownership by the slave expires, or a definition of the number of packet intervals available for use on the bus by the slave while ownership of the bus is granted.

[0011] In an embodiment, the definition of a packet interval can be the maximum expected time between successive transmission start times of master communication packets transmitted by the master node, and the slave communication packets transmitted by the slave nodes are synchronized based on the packet interval definition.

[0012] In an embodiment, the packet spacing definition may accommodate a maximum expected transmission time for transmitting a master communication packet transmitted by the master node or a slave communication packet transmitted by any of the multiple slave nodes based on a maximum packet payload size and communication baud rate definition of the obtained configuration.

[0013] In an embodiment, a master communication packet of a master communication packet received from a control component of a master node may include a request for an acknowledgment received substantially together with a grant for ownership of the bus to a slave node. A synchronization time may be updated based on a time of receipt of the master communication packet, and a slave communication packet of a slave communication packet that may be transmitted to the master node begins in response to the request for an acknowledgment, further based on a packet interval definition.

[0014] In an embodiment, a second one of the master communications packets received from the master node may include a propagation delay measured by the master node based on an amount of time between a start of transmission of the master communications packet to a time of receipt of the master communications packet by the slave node and / or an amount of time between a start of transmission of a communications packet transmitted by the slave node to a time of receipt of the slave communications packet by the master node. The control component may be further configured to adjust a time for starting transmission of a subsequent slave communications packet based on the propagation delay.

[0015] In an embodiment, the definition of the packet interval may be based on delays caused by at least one of the following: baud rate error due to clock differences between the master node and the slave node, processing when the master node or the slave node transitions between control of the bus to the other of the master node and the slave node, and the sum of inter-character timing offsets.

[0016] In an embodiment, the slave node may further include a sensing element configured to sense the physical property and output sensed data based on the sensing, and a buffer configured to buffer the sensed data. The master communication packets of the master communication packets received from the master node may include a request for the sensed data. The control component may be further configured to include the sensed data buffered by the buffer in one or more of the slave communication packets transmitted to the master node in response to receiving the master communication packet.

[0017] According to a further aspect of the disclosure, a method of synchronizing communications between a slave node and a master node of a distributed acquisition system is provided. The method includes obtaining a configuration that provides a definition for a packet interval, the packet interval definition providing an appropriate timing margin to ensure that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics of the packet interval definition, and receiving master communication packets from the master node over a bus. The method may further include determining a start time of at least one immediately preceding master communication packet of the master communication packets received from the master node, calculating a synchronization time based on the start time, and initiating transmission of a slave communication packet to the master node based on the synchronization time.

[0018] According to another aspect of the disclosure, a control component of a slave node of a distributed acquisition system is provided. The control component is configured to obtain a configuration resulting in a definition for a packet interval, the packet interval definition resulting in an appropriate timing margin to ensure that communication packets transmitted by the master node and one or more slave nodes occur only at harmonics of the packet interval definition. The control component is further configured to receive master communication packets from the master node via the bus, determine a start time of at least one immediately preceding master communication packet of the master communication packets received from the master node, calculate a synchronization time based on the start time, and initiate transmission of a slave communication packet to the master node based on the synchronization time.

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

[0020] Preferred embodiments thereof are described in detail herein 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]

[0021] [Figure 1] 1 is a schematic diagram of a communication topology of an exemplary distributed data acquisition system according to an embodiment of the 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 disclosure. [Figure 3A] 1 is a flowchart illustrating an example method performed by a master node for communicating with one or more slave nodes in a distributed data acquisition system, according to an embodiment of the disclosure. [Figure 3B] 1 is a flowchart illustrating an example method performed by a slave node for communicating with a master node in a distributed data acquisition system, according to an embodiment of the disclosure. [Figure 4] 1 is a flow chart illustrating an example method of implementing an example time synchronization protocol correction logic executed by a slave node of a distributed data acquisition system, in accordance with disclosed embodiments. [Diagram 5] 4 is a flow chart illustrating an example method for implementing example time synchronization protocol function logic executed by a slave node of a distributed data acquisition system, according to an embodiment of the disclosure. [Figure 6] 4 is a flow chart illustrating an example method of implementing example time synchronization protocol functionality logic executed by a master node of a distributed data acquisition system, according to disclosed embodiments. [Figure 7] 1 is a flow chart illustrating an example method of implementing output generation logic executed by a master node of a distributed data acquisition system, according to disclosed embodiments. [Figure 8]4 is a flow chart illustrating an example method of implementing bus control logic performed by a master node of a distributed data acquisition system, according to an embodiment of the disclosure. [Figure 9] 9 shows a flowchart 900 illustrating an example method of implementing propagation delay correction logic performed by a master node according to an embodiment of the disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] Bus operation on the communication bus is controlled where the timing of communication packets occurs at harmonics of a configurable packet interval. The packet interval is a configurable value known to both the master and slave. As part of the system setup, the non-volatile memory of the master and slave nodes is updated with a communication parameter data item (PDI), which includes the configurable parameters, maximum payload size, baud rate, and packet interval. At reset, the nodes use those parameters to control communication behavior. The packet interval applies to the operation of the MOSI and MISO channels.

[0023] The start of the communication packet itself can be used as a reference time to achieve time synchronization among a set of slave nodes. Data transfers are segmented into packets, which fit within a configurable packet interval that includes a timing margin. The maximum packet payload size and communication baud rate are configurable parameters that define the maximum expected transmission time for any packet. The timing margin accommodates error sources such as baud rate differences and intercharacter drift times. The packet interval is selected to balance synchronization and communication considerations. Data acquisition timing among slave devices can drift over time due to clocking differences. The packet interval needs to occur frequently enough to correct this error. Communication protocol overhead affects data transfer times. The packet interval needs to allow adequate bandwidth utilization.

[0024] According to a further aspect of the disclosure, a method is provided for synchronizing communication 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 that provide adequate timing margins to ensure that communication packets can occur at any harmonic of the packet interval. With proper selection, those parameters ensure that communication operations are deterministic. In addition, 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, 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 time synchronization. Furthermore, if the packet destination address passes certain address criteria indicating that the packet is intended for a slave node, and the packet content matches 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 identification (ID). The port number manages independent data transfers, direction, and priority. The data offset manages data ordering. The transaction ID helps distinguish a particular transaction and ensures data integrity, especially for cases where multiple data transfers are pending or active on multiple channels. Matching channel data indicates that the data transfers are ordered for a given data transaction. Based on the master output packet, one and only one slave node is granted bus access. Slave bus access needs to be restricted so that time synchronization is updated at a maximum rate that depends on the master node bus ownership. The protocol uses bus control parameters to transfer bus ownership during a configurable number of packet intervals.The slave node outputs data starting in the next packet interval for a subsequent set of packet intervals limited to the number of bus controls 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. If the end of the data transfer is reached, the slave node transfers bus ownership back to the master early. The protocol includes provisions for data ordering and integrity checks that allow the master node to recover from communication errors.

[0025] According to another aspect of the 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 the synchronization time of the master node, defined as the 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 data acquisition timing can be corrected to accommodate the propagation delay and can also be reflected in the master communication packet at any subsequent slave. With this approach, the time synchronization error for the distributed acquisition system can be reduced to a negligible level.

[0026] Reference is now made to the drawings, in which identical reference numbers identify similar structural features or aspects of the subject disclosure. For purposes of explanation and illustration, and not by way of limitation, a block diagram of an exemplary embodiment of an asynchronous acquisition system according to a first embodiment of the 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 a slave node 104 coupled to a second end of the multi-drop of the bus 106. In an embodiment, the bus 106 is an RS-485 physical layer using differential signaling over twisted pairs with signal termination resistors to support effective long distance communication in a noisy environment. Tri-state logic allows the drivers to be disabled to support multi-drop communication. The RS-485 physical layer driver and receiver interfaces with a Universal Asynchronous Receiver Transmitter (UART), which defines the timing and framing scheme for 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 can broadcast to all of the slave nodes 104.

[0027] The acquisition system 100 can perform remote data acquisition and processing. For example, the slave nodes 104 can be acquisition nodes that sense physical properties 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.

[0028] For certain applications, data acquisition needs to be highly correlated among a set of distributed slave nodes 104. To achieve this need, certain acquisition systems use a synchronization pulse generated by a master node that is used as a time reference for the slave nodes. However, this has disadvantages such as the use of a dedicated separate physical link for time synchronization, which adds cost and burden to such data acquisition systems, and the transmission of data is subject to propagation delays that can affect the coherency of the aggregated data.

[0029] In the acquisition system 100, the bus 106 itself is used to achieve both data transfer and time synchronization, which are achieved by the master node 102 and the slave nodes 104, each employing a protocol logic. The protocol logic removes the need for a separate physical link for time synchronization, reducing costs and burden. The protocol logic further allows the propagation delay to be measured by the master node 102 and communicated to the slave nodes 104 so that the slave nodes 104 can offset the propagation delay to reduce time synchronization errors between the slave devices 104.

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

[0031] TSP data transfers are mapped to specific channels to accommodate data priority and data direction considerations. The protocol defines two priorities: high priority and low priority. High priority data transfers preempt low priority data transfers at certain times 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 indicates the flow of session data contained in the packet payload. The direction is specified as either Master Out Slave In (MOSI) or Master In Slave Out (MISO). For the MOSI channel, only the master node 102 generates data packets that contain payload. Conversely, for the MISO channel, only the slave node 104 generates data packets that contain payload. For both the MOSI and MISO channels, control packets that do not contain payload may be generated. The control packets do not transfer session data, they only capture the data packets in controlling the data transfer itself. The packet header includes a port number parameter that defines the channel. The master node can use the Master Out / Slave In (MOSI) channel to send session data transmissions in master packets from the master node 102 to one or more of the slave nodes 104 to transfer data (write operations) or trigger buffering of slave data for output (the 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 data or control packets. In response, a particular slave node 104 acknowledges the progress of the session data transfer using control packets to enable the master node 102 to recover from possible communication errors.The master node can utilize the Master In / Slave Out (MISO) channel to request the slave node to output buffered session data (the 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 indicating this possibility. Each channel has an assigned priority for controlling bus operations. When the master node transfers bus ownership to a particular slave node, the master evaluates any inputs to determine if the slave node has transferred bus ownership back to the master node. In addition, the master uses timeouts to handle possible communication errors to regain ownership of the bus.

[0032] In an example application, the master node 102 is a controller or host of 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 located. In response to sensing, the sensing elements may output sensed data that may be buffered in a buffer of the slave node 104. Without being limited to a particular application, in applications such as health monitoring of a vehicle such as an aircraft, the slave nodes 104 may rapidly acquire data sensed by their sensing elements. The sensed data may be analyzed by the master node 104 to identify the geographic location of the sensed condition. In such applications, the slave nodes 104 need to be analyzed to accommodate correlation of the sensed data at high speed.

[0033] 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. Node 200 is merely one example of a suitable system and is not intended to suggest any limitation on the scope of use or functionality of the disclosed embodiments described herein. Node 200 may be implemented using hardware, software, and / or firmware. Nevertheless, node 200 is capable of being implemented and / or performing the functionality as set forth in the disclosure.

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

[0035] The processing device 202 may 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 discrete or integrated logic circuitry having similar processing capabilities.

[0036] The processing device 202 and memory 204 may be included in components implemented 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 device 202.

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

[0038] 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 processing (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 processing, and / or some pre-processing.

[0039] With reference to the operation of the acquisition system 100, the TSP timing used by the acquisition system 100 is determined by configurable data: payload size, baud rate, and packet spacing. Payload size is the maximum number of bytes of payload allowed per packet. This value bounds the expected time to transmit a packet. Baud rate defines the communication speed in symbols / 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 for any packet.

[0040] 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 operation is controlled such that the timing of the communication packets occurs at harmonics of the configurable packet interval. In this scheme, the start of the master's output communication packet itself can be used as a reference time to achieve time synchronization among a set of slave nodes.

[0041] Packet spacing = {(max payload size + overhead bytes) x bytes per symbol)} / baud rate + timing margin Data transfers are segmented into packets that fit within a configurable packet interval that includes a timing margin. The timing margin accommodates error sources such as baud rate differences and intercharacter offset times. In addition, the timing margin accommodates processing delays when a master node or a slave node transitions between control of the bus to the other of the master node and the slave node.

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

[0043] Baud rate errors can be caused by clock differences between the master and slave. The timing margin accommodates these baud rate errors.

[0044] The UART intercharacter offset is defined as the time between a stop bit and a subsequent start bit within one packet. It can be a source of significant timing variation. However, due to hardware buffering mechanisms such as a first-in-first-out (FIFO) memory interface, the UART intercharacter offset is expected to be zero. The producer can easily avoid underflow cases when transferring bytes to the UART, and the UART produces continuous output as long as the data is buffered. With this knowledge, packets can be transmitted by the master node 102 at regular deterministic packet intervals, since the packet interval infers deterministic bus operation and promotes deterministic behavior for interfacing with the UART hardware. However, it is good practice for the master node 102 to check that the UART interface (FIFO or shift register) is empty before writing a new packet to its output port and triggering a transmission on the bus 106. If the packet interval is exceeded, as indicated by the UART interface not being empty, the transmission should be sent at the beginning of the next interval.

[0045] The delay when transitioning between control of the bus from the master node 102 to one of the slave nodes 104 or from one of the slave nodes 104 to the master node 102 is due to the time to filter and verify if the packet content is intended for the receiver. Filtering can be the process of using an addressing scheme to determine if the transmission is intended for the receiver. Verifying can be the process of evaluating the content of the received transmission and comparing the content to the latched channel data. The packet interval can be used to allow the master node 102 to determine the propagation delay for the slave nodes 104 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 nodes 104 to generate all slave output packets, c) synchronize the slave nodes 104 for data acquisition, d) control ownership of the bus 106, and / or e) correct the data acquisition timing by feedback reflected in the output generated by the slave nodes 104.

[0046] With respect to defining the timing used by the master node 102 to transmit packets, the master node 102 controls its output to start at a harmonic of the packet interval, which means that all start times of the master packets are multiples of the packet interval.

[0047] In defining the timing used by the slave nodes 104 to transmit packets, each slave node 104 captures the start times for all master node 102 packets and schedules its output to coincide with subsequent harmonics of packet intervals relative to the captured start times offset by a slave-specific propagation delay.

[0048] With respect to providing synchronization among the slave devices 104, the slave nodes 104 use the captured start times for all master node 102 packets to trigger data acquisition synchronization events to coincide with subsequent harmonics of the packet interval relative to the captured start times offset by the slave-specific propagation delay.

[0049] Synchronization of slave nodes 104 is an optional protocol feature that depends on the ability of the master node 102 to perform synchronization and the capabilities of the individual slave nodes. The protocol is not violated based on a mix of node types or synchronization capabilities. Some slave nodes 104 may synchronize their data acquisition and / or their output packets, while other slave nodes 104 may not have that capability.

[0050] When time synchronization is supported, the slave node 104 schedules its output to start at a calculated synchronization time, also referred to as the sync time. The master node 102 expects to start receiving packets at a harmonic of its packet interval offset by the slave-to-master propagation delay, half the round-trip propagation delay. To achieve this timing, the slave node 104 records the time of 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 conveyed to each slave node 104. The packet interval defines the basic time between the start times of successive master packets and slave packets, and the synchronization effected when any master packet is received by any slave node 104 means that all master packets and all slave packets are output at multiples of the packet interval.

[0051] When time synchronization is not supported, the output of the slave node 104 is initiated immediately after the discard of a packet, limited to a minimum delay time and a maximum delay time. For consecutive data transfers 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 defines the time boundary 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), which corresponds to a software implementation, where n is selected to accommodate servicing the communication interface in a packet interval with a margin of n%. In an embodiment, n=2. The minimum delay corresponds to a firmware implementation, subject to a physical configuration of, for example, a delay of 10 μs.

[0052] With regard to controlling bus ownership, 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 to either acknowledge receipt of a transmission or transmit data in response to a request from the master node 102. This control of bus ownership, reflected in a packet bus control value contained in the packet header, defines the duration during which the slave node 104 can use the bus, for example, in units of 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 does exactly what will be done by the master node 102. After ownership of the bus 106 is transferred to the slave node 104, the master node 102 reclaims bus ownership after the slave node 104 indicates that its output is complete or that control of the slave node expires, whether it is done 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. When an incoming packet from a slave node 104 is discarded, the master node 102 updates the bus ownership based on this value. After the master node 102 reclaims bus ownership, it can output its next transmission in the next available packet interval.

[0053] For a slave node 104, if a predicted event occurs that delays the slave node's transmission for a period of time during which control of the bus 106 is transferred to the slave 104, bus ownership is relinquished again to the master node 104 when the slave node outputs its next transmission independent of the control period provided by the master node 104. The master node 102 can also use the timeout to receive input from the slave node 104 to accommodate situations such as or other communication errors.

[0054] The transfer of bus ownership can be performed by setting a bus control value in a transmission from the master node 102 to the slave node 104. The 8-bit bus control value, limited to 0-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 output packets for the count corresponding to the bus control value. Since time synchronous updates are not possible while the slave node 104 owns the bus 106, timing error 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, but the allowable values ​​are 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.

[0055] 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 synchronization time if time synchronization is supported, or immediately after packet processing if time synchronization is not supported.

[0056] 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.

[0057] 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 interval, and their respective allowed resolutions. For example, the resolution of the packet interval 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 account for timing variations.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] Regarding the operation of the slave nodes 104 to determine the synchronization time used to synchronize data acquisition and / or generate 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., in this example, a UART) for decoding. In addition, the incoming transmission signal is routed to a capture port, which evaluates the signal transition to timestamp the start of a new packet. The slave node 104 waits for a specific state where the slave node 104 detects at least a threshold time of an inactive input state (during which the bus 106 is inactive), utilizing an expected inter-character gap time of 0 and a minimum inter-packet time of, for example, 10 μs, before transitioning 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.

[0062] 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. If a timeout occurs, i.e., if 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, the counter is reset until the timeout occurs.

[0063] 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.

[0064] When a packet byte is 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).

[0065] 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 synchronous time to control the timing of its data acquisition and output transmission.

[0066] 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.

[0067] 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.

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

[0069] 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 according to equation (2).

[0070] 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.

[0071] 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 that broadcasts the instruction to execute the acquisition process) synchronizes and performs this action at approximately the same time, the acquired data is time-synchronized at the start of each buffer. Among the buffers of the applicable slave nodes 104, the buffers may 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.

[0072] 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.

[0073] 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.

[0074] 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 over a bus to all slave nodes of the distributed acquisition system, 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.

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

[0076] At 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, resulting in the timing of communication packets at harmonics of the configurable packet interval.

[0077] 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.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] 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.

[0082] 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.

[0083] 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.

[0084] 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.

[0085] In an embodiment, the definition of the packet interval is based on a delay caused by at least one of the following: baud rate error due to clock differences between the master node and at least one slave node, processing upon transfer of control of the bus by the master node or slave node to the other of the master node and slave node, and the sum of the inter-character timing gap.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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 modify 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 modified 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.

[0095] 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).

[0096] 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.

[0097] 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 by sending an acknowledgment or responding 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.

[0098] 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.

[0099] At operation 606, a determination is made as to whether the free-running timer value (updated current time) has reached the synchronized time t_s. If the determination at operation 606 is NO, meaning that the free-running timer value has not yet reached the synchronized 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 synchronized time t_s, the method continues to operation 608.

[0100] 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. If not, the master node starts any pending high priority outputs. If not, the master node resumes all active low priority outputs. If not, 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.

[0101] FIG. 7 shows a flow diagram 700 illustrating the process within operation 610 of FIG. 6. The flow diagram illustrates an example method for selecting which output packets to generate and for 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 maximum number of packet intervals during which the slave node is expected to generate an output to transfer data to the master node.

[0102] 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 to initiate, resume, and / or request the 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 state 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.

[0103] 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.

[0104] 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.

[0105] 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.

[0106] 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.

[0107] 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.

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

[0109] 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. Because modifying the synchronization time to resynchronize communication between the master node and the slave nodes can be a continuous process, the acquisition system can resynchronize even if the propagation delay changes based on the modification 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.

[0110] 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 slave node of a plurality of slave nodes of a distributed acquisition system, the slave node comprising: a communication interface for interfacing between a control component and a bus, the bus being a communication bus coupled to a master node of the acquisition system and other slave nodes of the plurality of slave nodes; and A control component, obtaining a configuration that provides a definition for a packet interval, the packet interval definition providing appropriate 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 of the packet interval definition; receiving a master communication packet from the master node via the bus; determining a start time of at least one immediately preceding one of the master communication packets received from the master node; calculating a synchronization time based on the start time; commencing transmission of a slave communication packet to the master node based on the synchronization time; The control component is configured to: Equipped with The control component is further configured to determine whether the slave node is granted ownership of the bus; transmission of said slave communication packets commences only when said slave node is granted ownership; the master communication packet received from the control component of the master node includes a request for an acknowledgment response received substantially together with a grant for ownership of the bus to the slave node; the synchronization time is updated based on a time of receipt of the master communication packet; The slave node, wherein the slave communication packets transmitted to the master node are initiated in response to the request for acknowledgment further based on the packet interval definition.

2. 2. The slave node of claim 1, wherein the grant of ownership to the slave node is exclusive to the slave node.

3. Determining whether ownership of the bus is granted to the slave node includes determining limitations on access to the bus associated with the ownership grant; 2. The slave node of claim 1, wherein the control component is further configured to refrain from initiating transmission of the slave communication packet when ownership of the bus is not granted due to the access restriction.

4. 4. The slave node of claim 3, wherein the access limitations specify a maximum number of slave communication packets permitted to be transmitted by the slave node while the slave node is granted ownership of the bus, a time interval after which the grant of ownership of the bus by the slave node expires, or a definition of a number of packet intervals available for use on the bus by the slave node while ownership of the bus is granted.

5. The definition of the packet interval is the maximum expected time between successive transmission start times of master communication packets transmitted by the master node, 2. The slave node of claim 1, wherein the slave communication packets transmitted by the slave node are synchronized based on the packet interval definition.

6. 6. The slave node of claim 5, wherein the packet spacing definition accommodates a maximum expected transmission time for transmitting the master communication packets transmitted by the master node or the slave communication packets transmitted by any of the plurality of slave nodes based on a maximum packet payload size and a communication baud rate definition of the obtained configuration.

7. a second master communications packet of the master communications packets received from the master node includes a propagation delay measured by the master node based on an amount of time from a start of transmission of the second master communications packet to a receipt of the second master communications packet by the slave node and / or an amount of time from a start of transmission of the slave communications packet by the slave node to a receipt of the slave communications packet by the master node; the control component is further configured to adjust a time for commencing transmission of a subsequent slave communication packet based on the propagation delay.

2. The slave node of claim 1.

8. 2. The slave node of claim 1, wherein the definition of the packet interval is based on delays caused by at least one of a baud rate error due to clock differences between the master node and the slave node, processing when the master node or the slave node transitions between control of the bus to the other of the master node and the slave node, and a sum of inter-character timing offsets.

9. a sensing element configured to sense a physical property and output sensor data based on said sensing; a buffer configured to buffer the sensed data; the master communication packet received from the master node includes a request for sensed data; the control component is further configured, in response to receiving the master communication packet, to include the sensed data buffered by the buffer in one or more of the slave communication packets transmitted to the master node. The slave node of claim 1 .

10. 1. A method for synchronizing communications between a slave node of one or more slave nodes of a distributed acquisition system and a master node, comprising: Obtaining a configuration that provides a definition for a packet interval, the packet interval definition providing appropriate 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 of the packet interval definition; receiving a master communication packet from the master node via a bus; determining a start time of at least one immediately preceding one of the master communication packets received from the master node; calculating a synchronization time based on the start time; commencing transmission of a slave communication packet to the master node based on the synchronization time; Equipped with determining whether the slave node is granted ownership of the bus; the transmission of said slave communication packets occurs only when said slave node is granted ownership; the master communication packet received from the control component of the master node includes a request for an acknowledgment response received substantially together with a grant for ownership of the bus to the slave node; the synchronization time is updated based on a time of receipt of the master communication packet; The method further includes initiating a slave communication packet of the slave communication packets in response to the request for an acknowledgement further based on the synchronization time and the packet interval definition.

11. 11. The method of claim 10, wherein the grant of ownership to the slave node is exclusive to the slave node.

12. Determining whether ownership of the bus is granted to the slave node includes determining limitations on access to the bus associated with the ownership grant; 11. The method of claim 10, wherein a control component of the slave node is further configured to refrain from initiating transmission of the slave communication packet when ownership of the bus is not granted due to the access restriction.

13. a second master communications packet of the master communications packets received from the master node includes a propagation delay measured by the master node based on an amount of time from a start of transmission of the second master communications packet to a receipt of the second master communications packet by the slave node and / or an amount of time from a start of transmission of the slave communications packet by the slave node to a receipt of the slave communications packet by the master node; The method further includes adjusting a time for commencing transmission of a subsequent slave communication packet based on the propagation delay. The method of claim 10.

14. Sensing a physical property; outputting detection data based on the detection; buffering the sensed data with a buffer; the master communication packet received from the control component of the master node includes a request for sensed data; The method further includes including the sensed data buffered by the buffer in one or more of the slave communication packets transmitted to the master node in response to receiving the master communication packet. The method of claim 10.

15. A control component of a slave node of a plurality of distributed slave nodes of an acquisition system communicating with a master node via a bus, comprising: Obtaining a configuration that provides a definition for a packet interval, the packet interval definition providing appropriate 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 of the packet interval definition; receiving a master communication packet from the master node via the bus; determining a start time of at least one immediately preceding one of the master communication packets received from the master node; calculating a synchronization time based on the start time; commencing transmission of a slave communication packet to the master node based on the synchronization time; configured to: The control component is further configured to determine whether the slave node is granted ownership of the bus; transmission of said slave communication packets commences only when said slave node is granted ownership; the master communication packet includes a request for an acknowledgment received substantially together with a grant for ownership of the bus to the slave node; the synchronization time is updated based on a time of receipt of the master communication packet; A control component, wherein the transmitted ones of the slave communication packets are transmitted to the master node in response to the request for an acknowledgment further based on the packet interval definition.

16. the master communication packet received from the control component of the master node includes a request for sensed data; 16. The control component of claim 15, wherein the control component is further configured to include buffered sensed data sensed and buffered by the slave node in one or more of the slave communication packets transmitted to the master node in response to receiving the master communication packet.

17. The slave node of claim 9 , wherein the packet interval is used to synchronize the slave nodes in sensing the physical property and acquiring the sensory data.

18. The slave node of claim 1 , wherein obtaining a configuration that provides a definition for the packet interval is performed at system setup.

19. 2. The slave node of claim 1, wherein the master node also obtains a configuration during system setup that provides a definition for the packet interval.

Citation Information

Patent Citations

  • Polling communication circuit

    JP1988215237A

  • Data transfer system

    JP1995212376A

  • Method for setting transmission timing

    JP1999168466A

  • Polling method in communication system

    JP2000183923A

  • Duplication system, master device thereof and slave device

    JP2003134134A