BUS INTERFACE WITH BIDIRECTIONAL SINGLE-WIRE COMMUNICATION AND INDIVIDUAL SELECTION LINES
Patent Information
- Application Number
- DE102017125234
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-11-03
- Filing Date
- 2017-10-27
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2037-10-27
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
A master-slave architecture may include a master device that controls one or more slave devices to which the master device is connected. The master device may include, for example, a controller, a microcontroller, an electronic control unit, or the like. The slave devices may include, for example, sensors (e.g., speed sensors, angle sensors, pressure sensors, etc.), actuators (e.g., light emitting diodes (LEDs), light sources, etc.), hybrid sensors / actuators, or the like.US 5,327,121 relates to a communication system for communicating messages between a master device and a plurality of slave devices, each of the slave devices being connected to the master device via three lines.US 2004 / 0208200 A1 relates to a communication bus having a single line for use in systems with low power requirements. In this case, a dedicated clock line (CLK) is dispensed with, and the addressing takes place via predefined state changes which are transmitted via the individual line of the communication bus.DE 101 23 802 A1 relates to a control system for components of a motor vehicle using a single-wire bus system.DE 10 2008 062 865 A1 shows a serial interface with a reduced number of connections.DE 10 2016 106 834 A1 discloses a single-wire interface which is at least partially synchronized during a tri-state phase.One object is in particular to improve the solutions known in the prior art.This object is achieved according to the features of the independent claims. Preferred embodiments can be found in particular in the dependent claims.To achieve the object, a system is proposed, comprising:a plurality of slave devices connected to a master device via a bus interface including a communication line and a plurality of selection lines,wherein the communication line connects the master device to each of the plurality of slave devices and enables bidirectional single-wire communication between the master device and the plurality of slave devices,wherein each slave device of the plurality of slave devices comprises only two pinswherein a selection line of the plurality of selection lines connects the master device to a slave device of the plurality of slave devices and enables signaling between the master device and the respective slave device which is associated with the bidirectional single-wire communication.In one development, the master device has a number of pins which is equal to a number of the plurality of slave devices plus one.In one embodiment, each slave device of the plurality of slave devices does not include non-volatile memory and any other component associated with an individual slave addressing mechanism.In one development, the master device and each slave device are connected via a wired connection whose length is less than or equal to one meter.In one embodiment, the bidirectional single-wire communication between the master device and the plurality of slave devices is asynchronous.In one development, the selection line is assigned to controlling a transmission direction of information on the communication line.A system is also proposed, comprising:a master device forsignaling via a selection line which is associated with a slave device that the master device is intended to transmit information via a communication line,wherein the master device is connected to the slave device via a bus interface comprising the communication line and the selection line,wherein the communication line enables bidirectional single-wire communication between the master device and the slave device, andwherein the selection line allows the slave device to detect the signaling by the master device; andtransmitting the information on the communication line based on the signaling via the selection line; andthe slave device comprising only two pins, wherein the slave device is configured todetecting the signaling on the selection line; andreceiving the information about the communication line based on the detection of the signaling on the selection line.In one development, the information comprises at least one of the following:synchronization information associated with synchronizing the master device and the slave device,address information identifying an address of the slave device,configuration information associated with the configuration of the slave device,payload information comprising information associated with a command to be executed by the slave device.In one development, after receiving the information, the slave device is intended to transmit a response to the master device via the communication line.It is a development that the master device, when it signals via the selection line, is intended to cause:a level of a signal associated with the select line transitions from a first state to a second state,wherein the first state is different from the second state.In one development, the master device is intended to cause the level of the signal to transition from the first state to the second state when it causes itthe transition of the signal level from a low level to a high level,the transition of the signal from a high level to a low level, orthe transition of the signal from a high-impedance state to an active state.It is a development that the master device is intended to transmit the information while the level of the signal is in the second state.In one development, the master device further transmits at least part of the informationcausing the level of the signal associated with the selection line to transition from the second state to the first state.It is a development that the slave device furtherprotecting against a collision when transmitting information to the master device via the communication line.It is a development that the slave device furtherpulling down a level of a signal associated with the communication line,wherein the master device has a push-pull output that pulls up the level of the signal when the master device does not transmit information over the communication line;wherein the slave device is protected from the collisionbased on the level of the signal associated with the communication line being pulled down, it is intended to protect against the collision.It is a development that the slave device furtherlimiting an amount of current flow associated with the communication line using a set of resistors of the slave device,wherein the master device and the slave device comprise push-pull outputs placed in an inactive state; andwherein the slave device is protected from the collisionbased on a limitation of the current flow quantity which is assigned to the communication line, is intended to protect against the collision.It is a development that the master device, if it signals that the master device is to transmit, alsosimultaneously signaling that the master device is to transmit via a plurality of selection lines corresponding to each of a plurality of slave devices,wherein the plurality of selection lines comprises the selection line, andwherein the plurality of slave devices comprises the slave device.In one development, the master device transmits the information on the communication line and based on the simultaneous signaling to the plurality of sensorstransmitting information that causes each sensor of the plurality of sensors to perform a respective sensing function.In one development, the master device transmits the information on the communication line and based on the simultaneous signaling to the plurality of sensorstransmitting information that causes the plurality of sensors to transmit sensor data to the master device based on a corresponding plurality of response delays.Furthermore, a system is proposed, comprising:a set of slave devices, each slave device of the set of slave devices comprising only two pins for communication;a master device;a bidirectional, single wire communication bus connecting the master device and the set of slave devices;a set of selection lines connecting the master device and the set of slave devices,wherein each selection line of the set of selection lines connects the master device to a respective slave device of the set of slave devices.It is a refinement that the master device and one or more of the set of slave devices are implemented on a same printed circuit board.In one development, the set of slave devices comprises one or more sensors, one or more actuators, or one or more hybrid sensors / actuators.The described properties, features and advantages and the manner in which these are achieved are further explained in connection with the following schematic description of exemplary embodiments, which are explained in more detail in connection with the drawings. For the sake of clarity, identical or identically acting elements can be provided with identical reference numerals. FIG. 1 is a diagram of an overview of an example implementation described herein; FIG. 2 is a diagram of an example environment in which systems and / or methods described herein may be implemented; FIGS. 3A to 3E are diagrams of example implementations for allowing a master device to communicate with slave devices via a serial companion (SCP) interface]; FIG. 4 is a diagram of a particular example using the example implementation associated with FIG. 3C to enable communication over the SCP interface; FIGS. 5A and 5B are diagrams of additional example implementations associated with implementing the SCP interface for communication between a master device and one or more slave devices; and FIGS. 6A and 6B are diagrams of example arrangements of electrical elements that may enable the SCP interface between a master device and one or more slave devices.A communication interface may allow a master device (e.g., a controller, a microcontroller, an electronic control unit (ECU), or the like) to communicate with a set of slave devices, such as one or more sensor devices (e.g., one or more devices configured to acquire and / or collect data, such as a speed sensor, an angle sensor, a pressure sensor, a gas sensor, or the like), one or more actuator devices (e.g., one or more devices configured to perform an action, such as an LED, a light source, an audio device, a switch, or the like), one or more hybrid sensor / actuator devices (e.g., one or more devices, executing a detection function and executing an action) or the like.In some implementations, the communication interface may be in a bus configuration (i.e., a bus interface), such as a universal asynchronous receiver / transmitter ["Universal Asynchronous Receiver Transmitter"]-based interface (UART) (e.g., a local interconnect network (LIN) interface), a serial peripheral interface (SPI) interface, an inter-integrated circuit (I2C) interface, a single edge nibble transmission (SENT) interface, a short PWM code (SPC) interface, a controller area network (CAN) interface, a 1-wire interface, a peripheral sensor interface 5 (PSI5) interface], or the like.In some cases, cost considerations must be taken into account in selecting a bus interface for implementing a given master-slave system. For example, as low cost slave devices become increasingly available (e.g., slave devices with a small number of components for collecting and / or processing data, slave devices without non-volatile memory [NVM) components, slave devices with fewer than four pins, or the like), cost savings may be difficult to implement by these low cost slave devices using such prior bus interfaces as listed above.For example, an I2C interface may be used to reduce an amount of peripheral hardware required on a master device and / or to reduce an amount of cabling and / or pins for connection to multiple slave devices. However, the I2C interface requires each slave device to be individually identifiable (e.g., by an address configurable via a pin of the slave device, by an address stored on the slave device during manufacture), which can significantly increase the cost of the system by requiring the otherwise cost-effective slave devices to have an additional pin (e.g., to accommodate configuration of the address) or include an NVM component (e.g., to store the address during manufacture).As another example, the use of an SPI interface with individual selection lines for each slave device may significantly increase the cost of the system by requiring the otherwise cost effective slave devices to include additional pins (e.g., four or more) to support the communication of the SPI interface and the configuration of the address of the slave devices.As yet another example, the use of a PSIS interface may significantly increase the cost of the system by requiring an accurate clock base to coordinate communication over the interface, which may require the otherwise cost-effective slave devices to maintain accurate clocks (e.g., using oscillators with guaranteed accuracy of up to 1%) to coordinate communication within the system, which is more costly than relatively inaccurate clocks (e.g., using oscillators that can maintain a clock with guaranteed accuracy of up to 20%).As yet another example, a PSIS interface or a CAN interface may require the system to draw a significant amount of current (e.g., 20-30 milliamps (mA)) and / or consume a significant amount of energy (e.g., which increases the overall cost of the system and / or reduces system efficiency).As another example, a LIN interface or a CAN interface may not support direct communication of the slave devices with the master device (e.g., a transceiver may be required to perform signal level conversion), which increases the cost and / or complexity of the system.As a more general example, previous bus interfaces may not provide simple methods for simultaneously triggering multiple slave devices on the bus, and / or may not be well supported in a given application (e.g., I2C is not widely available in automotive applications).The implementations described herein provide a bus interface with a single wire bidirectional communication line between a master device and a set of slave devices with an individual select line for each slave device. This bus interface may be referred to as a serial companion (SCP) interface.The SCP interface, in some implementations, enables efficiencies of low cost slave devices to be realized, for example, by supporting operation of slave devices that include only two pins, supporting operation of slave devices that do not include an NVM component, operating the slave devices with low power consumption and / or low power consumption, providing direct communication between the slave devices and the master device, supporting operation of the slave devices based on a relatively inaccurate clock (e.g., an oscillator with guaranteed accuracy of up to 20%), or the like.In some implementations, the SCP interface may support 3.3 volt (V) or 5.0 V supply and / or signal level operation. In some implementations, the SCP interface may be used to power a slave device in the master-slave system (e.g., via the one-wire bidirectional communication line and / or a selection line associated with a slave device), which may reduce a number of pins required at the one or more slave devices.Additionally or alternatively, the SCP interface may support communication between a master device and a slave device at a bit rate within the range of 100 kilobit per second (kBit / s) (e.g., when the master device and the slave device are connected via a wired connection) to 1 megabit per second (Mbit / s) (e.g., when the master device and the slave device are connected via an on-board connection). Additionally or alternatively, the SCP interface may support a data integrity check capability associated with detecting an error in the information received from the master device and / or the slave device.FIG. 1 is a diagram of an overview of an example implementation 100 described herein. As shown in FIG. 1, a master-slave system may include a master device and a set of slave devices (e.g., slave device 1 to slave device N) (N>1). As shown, the master device and the set of slave devices may be connected in a bus configuration that includes a one-wire bidirectional communication line (sometimes referred to as a one-wire bidirectional I / O line) and a set of N slave selection lines corresponding to the set of N slave devices. This bus configuration may be referred to as a serial companion (SCP) interface, as described above.In some implementations, the single-wire bidirectional communication line allows the master device to transmit information (e.g., synchronization information, address information, configuration information, payload information including a command and / or data, etc.) to each of the set of slave devices (e.g., simultaneously, at different times), and / or, as described in more detail below, to receive information from each of the set of slave devices (e.g., a response to a query, an acknowledgement, information associated with an exception, data, etc.). As shown in FIG. 1, the one-wire bidirectional communication line may connect the master device to all slave devices.As further shown in FIG. 1, the master device is also connected to the slave devices via a set of selection lines (i.e., a respective selection line for each slave device). In some implementations, the selection line allows the master device to signal to the corresponding slave device that the slave device is to be ready to receive information from the master device and / or transmit information to the master device. For example, via a transition of a signal on the selection line corresponding to a particular slave device, the master device may signal that the particular slave device is to receive and / or transmit information via the single-wire bidirectional communication line, as described in detail below.In particular, as shown in FIG. 1, the SCP interface supports slave devices that include only two pins (e.g., a pin associated with the single-wire bidirectional I / O line and a pin associated with the slave select line). As further demonstrated, the SCP interface supports slave devices that do not include an NVM component (or another component associated with a single slave addressing mechanism) and supports direct communication between the master device and the slave devices. Moreover, the SCP interface supports operation of the slave devices with low power consumption and / or low power consumption (e.g., as compared to a previous bus interface, such as a PSIS interface and / or a CAN interface), and supports operation of the slave devices based on a relatively inaccurate oscillator. The SCP interface can thus be used to realize efficiencies of cost-effective slave devices, as a result of which the cost and / or the complexity of the master-slave system are reduced.As already mentioned, FIG. 1 is provided merely as an example. Other examples are possible and may differ from what has been described with respect to FIG. 1.FIG. 2 is a diagram of an example environment 200 in which systems and / or methods described herein may be implemented. As shown in FIG. 2, environment 200 includes a master device 205 and a set of slave devices 210- 1 to 210-N (N≥1) (collectively referred to herein as "slave devices 210" and individually as "slave device 210"). The master device 205 may be disposed on a same printed circuit board (e.g., a printed circuit board (PCB])) as one or more slave devices 210 in some implementations, and may be connected to the one or more slave devices 210 via on-board connections. Additionally or alternatively, the master device 205 may be disposed on a different circuit board than one or more slave devices 210. In this case, a master device 205 may be connected to the one or more slave devices 210 via a short wire bond (e.g., about 30 centimeters (cm), less than about 100 cm, less than about 1 meter (m)), or the like). In some implementations, the master device 205 and the slave device 210 may each be implemented on a corresponding chip.The master device 205 includes a device capable of communicating with and / or controlling a slave device or devices 210 to which the master device 205 is connected. Master device 205 is shown to include controller 215 (e.g., a controller, a microcontroller (μC), an electronic control unit (ECU), or the like). In some implementations, the controller 215 may control one or more electrical systems and / or electrical subsystems, such as one or more electrical systems and / or one or more electrical subsystems housed in a motor vehicle.As further illustrated, the master device 205 includes a transmit (Tx) component 220 for transmitting information (e.g., synchronization information, address information, configuration information, payload including a command and / or data, or the like) to the slave devices 210 over the single-wire bidirectional I / O line and a receive (Rx) component 225 for receiving information (e.g., a response to a command, an acknowledgement, sensor data, readout data, or the like) from the slave devices 210 over the single-wire bidirectional I / O line.As shown, the master device 205 includes a line driver 230 to enable the Tx component 220 (to transmit information) or the Rx component 225 (to receive information) at a given time (e.g., since the master device 205 cannot simultaneously transmit and receive data via the single-wire bidirectional I / O line). As further shown, the master device 205 includes a line control component 235 that is capable of controlling slave select lines (via which the master device 205 may signal slave devices 210, for example) and / or the line driver 230. In some implementations, the line control component 235 may control the slave select lines and / or the line driver 230 based on information provided by the controller 215. In some implementations, the master device 205 may include a number of N+1 pins to implement the SCP interface (e.g., one pin for the single-wire bidirectional I / O line and one pin for each slave select line).The slave device 210 includes a device capable of communicating with the master device 205 and being controlled by the master device 205. For example, the slave device 210 may include a sensor device, an actuator device, a hybrid sensor / actuator device, or the like. As shown, the slave device 210 includes a sensor / actuator 240 capable of performing a sensing function (e.g., speed sensing, angle sensing, pressure sensing, or the like) and / or performing an action (e.g., illuminating an LED, playing a sound, actuating a switch, or the like).As further shown, the slave device 210 includes a Tx component 220 for transmitting information to the master device 205 over the single-wire bidirectional I / O line, and an Rx component 225 for receiving information from the master device 205 over the single-wire bidirectional I / O line. As shown, the slave device 210 includes a line driver 230 to enable the Tx component 220 or the Rx component 225 at a given time (e.g., since the slave device 210 cannot simultaneously send and receive information over the single-wire bidirectional I / O line). As further shown, the slave device 210 includes a line control component 235 that is capable of receiving a signal and / or controlling the line driver 230 via a slave select line. In some implementations, the line control component 235 may control the line driver 230 (i.e., enable receipt or transmission of information by the slave device 210)) based on receiving a signal over the slave selection line (e.g., when the master device 205 triggers the slave device 210 over the slave selection line) and / or based on information provided by the sensor / actuator 240. In some implementations, the slave device 210 may include two pins to implement the SCP interface (e.g., a pin for the single wire bidirectional I / O line and a pin for the slave select line). In particular, in some implementations, the slave device 210 does not include an NVM component (e.g., an EEPROM, a flash memory component, or the like) or any other component associated with an individual slave addressing mechanism.The master device 205 and the slave devices 210 may support the SCP interface for communication between the master device 205 and the slave devices 210. For example, as shown in FIG. 2, the slave devices 210 include only two pins (e.g., a pin connected to the single-wire bidirectional I / O line and a pin connection to the slave selection line), do not include NVM components, and are configured to communicate directly with the master device 205. Additionally or alternatively, the master device 205 and / or the slave device 210 may include an untrimmed oscillator capable of maintaining a relatively inaccurate clock (e.g., a clock with guaranteed accuracy of up to 20%) (not shown).In some implementations, the SCP interface may support a single master device 205 in a bus configuration with eight or more slave devices 210. In some implementations, the SCP interface may support a single master device 205 in a bus configuration with less than eight slave devices 210.The number and arrangement of devices and components shown in FIG. 2 are provided as an example. In practice, additional devices and / or components, fewer devices and / or components, other devices and / or components, or devices and / or components arranged differently than those illustrated in FIG. 2 may be present. Further, two or more devices and / or components illustrated in FIG. 2 may be implemented within a single device and / or component, or a single device and / or component illustrated in FIG. 2 may be implemented as multiple distributed devices and / or components. Additionally or alternatively, a set of devices (e.g., one or more devices) or a set of components (e.g., one or more components) of environment 200 may perform one or more functions described as being performed by another set of devices or another set of components of environment 200.In some implementations, the SCP interface allows the master device 205 to send signals to and / or receive information from one or more slave devices 210 via one or more corresponding selection lines, such that the master device 205 can send information to and / or receive information from the one or more slave devices 210 via the single-wire bidirectional I / O line. Depending on the performance and / or configuration of the slave device 210, various techniques may be implemented to enable communication over the SCP interface.FIGS. 3A through 3E are diagrams of example implementations to enable the master device 205 to communicate with the slave devices 210 via the SCP interface. For the purposes of FIGS. 3A through 3E, assume that master device 205 is connected to one or more slave devices 210 via an SCP interface (e.g., as shown in FIG. 2). In other words, assume that the master device 205 is connected to the one or more slave devices 210 via a bi-directional single-wire I / O line, and that the master device 205 is connected to the one or more slave devices 210 via one or more corresponding selection lines.As shown in FIG. 3A, the master device 205 may place a select line associated with the slave device 210 in a review (first) state or a dominant (second) state. The master device 205 may maintain the selection line in the review state while the master device 205 is not transmitting information to the slave device 210. In some implementations, the master device 205 may transition the select line from the review state to the dominant state. A transition of the selection line from the review state to the dominant state signals the slave device 210 that the master device 205 is transmitting information (e.g., synchronization information, address information, configuration information, payload including a command and / or data, or the like) to the slave device 210. The master device 205 may maintain the selection line in the dominant state at least until the master device has completed the transmission of the information to the slave device 210. Subsequently, the master device 205 may transition the selection line from the dominant state to the recessive state. A transition of the selection line from the dominant state to the recessive state indicates to the slave device 210 that the slave device 210 may transmit information (e.g., a response to the command, acknowledgement, data, or the like) to the master device 205, and / or that the master device 205 has completed transmitting information to the slave device 210. Here, the fact that the selection line is in the dominant state indicates that the slave device 210 cannot transmit via the one-wire bidirectional I / O line, whereas the fact that the selection line is in the recessive state may indicate that the slave device 210 can transmit to the master device 205. In this way, a selection line may be associated with controlling a direction of transmission of information on the single-wire bidirectional I / O line (e.g., from the master device 205 to the slave device 210 or from the slave device 210 to the master device 205). As described further below, multiple slave devices 210 may transmit over the single-wire bidirectional I / O line based on different response delays configured at the multiple slave devices 210 (e.g., to avoid collisions).The attribute of the dominant state and the recessive state is a state or condition on the selection line that can be detected and / or differentiated for use in selection or deselection of the slave device 210. In some implementations, the recessive state may correspond to a high level of a signal (e.g., a current, a voltage), while the dominant state may correspond to a low level of the signal. Here, a transition from the recessive state to the dominant state may be a transition from the high level to the low level, and a transition from the dominant state to the recessive state may be a transition from the low level to the high level.Alternatively, the recessive state may correspond to a low level of a signal (e.g., a current, a voltage), while the dominant state may correspond to a high level of the signal. Here, a transition from the recessive state to the dominant state may be a transition from the low level to the high level, and a transition from the dominant state to the recessive state may be a transition from the high level to the low level.Alternatively, the recessive state may correspond to a high impedance (high-Z) state of the signal (e.g., a state in which the signal is not driven to a certain level) achieved by a pull-up resistor or a pull-down resistor, while the dominant state may correspond to an active state of the signal (e.g., a state in which the signal is driven to a low level or a high level). Here, a transition from the recessive state to the dominant state may be a transition from the high-Z state to the active state, and a transition from the dominant state to the recessive state may be a transition from the active state to the high-Z state.In some implementations, a signal on a select line and / or the single wire bidirectional I / O line may be pulse code modulated. Additionally or alternatively, a signal on a select line and / or the single-wire bidirectional I / O line may be modulated using another modulation technique, such as amplitude modulation, frequency modulation, phase modulation, phase shift keying modulation, quadrature phase shift keying modulation, quadrature amplitude modulation, or the like.As shown in the example implementation 300 of FIG. 3A, in some implementations, the master device 205 may transition the selection line associated with the slave device 210 from the review state to the dominant state. Here, the slave device 210 may detect the transition and prepare for receiving information from the master device 205 (e.g., power-on, "wake up" from a sleep state). As shown, master device 205 may transmit information over the single wire bidirectional I / O line during the dominant state. As further shown, after the master device 205 completes the transmission of the payload, the master device 205 may transition the selection line from the dominant state to the re-intensive state.As shown in example implementation 305 of FIG. 3B, in some implementations, master device 205 may transition the selection line associated with slave device 210 from the review state to the dominant state. Here, the slave device 210 may detect the transition and prepare for receiving information from the master device 205. As shown, the master device 205 may transmit address information (e.g., information identifying an address configured on one or more slave devices 210) followed by payload information over the single-wire bidirectional I / O line and during the dominant state. As further shown, after the master device 205 completes the transmission of the payload, the master device 205 may transition the selection line from the dominant state to the re-intensive state. In some implementations, if the address information comprises an address that is not configured on the slave device 210, the slave device 210 may ignore the payload, as described below.As shown in the example implementation 310 of FIG. 3C, in some implementations, the master device 205 may transition the selection line associated with the slave device 210 from the review state to the dominant state. Here, the slave device 210 may detect the transition and prepare for receiving information from the master device 205. As shown, the master device 205 may transmit synchronization information (e.g., information that may be used to synchronize bit rates between the master device 205 and the slave device 210), followed by payload information, over the single-wire bidirectional I / O line and during the dominant state. As further shown, after the master device 205 completes the transmission of the payload, the master device 205 may transition the selection line from the dominant state to the re-intensive state.As shown in example implementation 315 of FIG. 3D, in some implementations, master device 205 may transition the selection line associated with slave device 210 from the review state to the dominant state. Here, the slave device 210 may detect the transition and prepare for receiving information from the master device 205. As shown, the master device 205 may transmit synchronization information, address information, and payload information over the single-wire bidirectional I / O line and during the dominant state. As further shown, after the master device 205 completes the transmission of the payload, the master device 205 may transition the selection line from the dominant state to the re-intensive state.As shown in the example implementation 320 of FIG. 3E, in some implementations, the master device 205 may transition the selection line associated with the slave device 210 from the review state to the dominant state. Here, the slave device 210 may detect the transition and prepare for receiving information from the master device 205. As shown, the master device 205 may transmit synchronization address information (e.g., combined synchronization information and address information) followed by payload information over the single-wire bidirectional I / O line and during the dominant state. As further shown, after the master device 205 completes the transmission of the payload, the master device 205 may transition the selection line from the dominant state to the re-intensive state.The example implementations of FIGS. 3A and 3B do not include synchronization information associated with synchronization bit rates between the master device 205 and the slave device 210. As such, these example implementations may be implemented when the bit rates of the master device 205 and the slave device 210 are already synchronized (e.g., when a previous transmission contained synchronization information), when configured with accurate clocks such that synchronization information is not required, or when operating based on the same clock signal.In some implementations, the example implementations shown in FIGS. 3A and 3C may be implemented to allow the master device 205 to configure the slave device 210 with an address. For example, the master device 205 may place a select line for a single slave device 210 in the dominant state and provide information associated with an address to be associated with the slave device 210 via the single-wire bidirectional I / O line. Here, other slave devices 210 may ignore the transmission (e.g., since master device 205 only transfers the selection line associated with the single slave device 210), thereby allowing slave device 210 to be configured with the address. The other slave devices 210 may be similarly configured with addresses. In some implementations, the slave device 210 may be configured with one or more addresses. Additionally or alternatively, the master device 205 may configure multiple slave devices 210 with the same (i.e., common) address.In some implementations, the example implementations shown in FIGS. 3B, 3D, and 3E may be implemented to allow master device 205 to transmit information to multiple slave devices 210 simultaneously. For example, in a case where the master device 205 is configured to set or maintain all selection lines in the dominant state (e.g., to reduce processing and / or configuration at the master device 205), a subset of slave devices 210 may be configured (e.g., in the manner described above) with a shared address. Here, the master device 205 may provide address information and payload identifying the common address via the one-wire bidirectional I / O line. In this example, slave devices 210 configured with the common address may operate based on the information included in the payload, while slave devices 210 not configured with the common address may ignore the payload.In some implementations, the example implementations shown in FIGS. 3B, 3D, and 3E may be implemented for a slave device 210 configured with an address as described above, or for a slave device 210 that includes an NVM component (e.g., storing an address known to the master device 205) or another component associated with an individual slave addressing mechanism.Using one or more of the above techniques, the master device 205 may efficiently communicate with the slave devices 210 via the SCP interface. For example, master device 205 may simultaneously transmit information to multiple slave devices 210. In such a case, the master device 205 may simultaneously signal that the master device 205 is to transmit via selection lines corresponding to each of a plurality of slave devices 210, and each slave device 210 may acquire the signal (sometimes referred to as a common trigger signal). Here, the plurality of slave devices 210 may operate (e.g., perform a sensing function, provide data to the master device 205, illuminate an LED, set a configuration parameter, etc.) based on the information included in the payload received after sensing the signal. In some implementations, collisions between the responses provided by multiple slave devices 210 may be prevented based on response delays configured on each slave device 210, an example of which is described below.As indicated above, FIGS. 3A through 3E are provided merely as examples. Other examples are possible and may differ from what has been described with reference to FIGS. 3A to 3E.In some implementations, the signaling to the slave device 210 may be via transitions on the select line (sometimes referred to as slave triggering) using a falling edge of the signal, a rising edge of the signal, a particular pattern of rising and falling edges, or the like. In some implementations, the SCP interface may support a slave triggering capability that enables the master device 205 to simultaneously trigger and transmit multiple slave devices 210 (e.g., such that multiple sensors perform a sensing function such that multiple actors perform an action).In some implementations, the SCP interface allows the slave device 210 to signal an exception to the master device 205. For example, the slave device 210 may detect the exception associated with the slave device 210 (e.g., an error, an over-temperature condition, or the like). Here, the slave device 210 may be configured to determine whether the selection line associated with the slave device 210 is in the review state, and if so, may set the selection line to the dominant state. In this example, the master device 205 may detect the transition of the selection line initiated by the slave device 210, and may transmit a command (e.g., a request for information associated with the exception) from the slave device 210.As another example, the slave device 210 may detect the exception and be configured to determine whether the single-wire bidirectional I / O line is available (e.g., whether the master device 205 is transmitting information or whether another slave device 210 is transmitting information to the master device 205) and, if so, may transmit information associated with the exception to the master device 205 via the single-wire bidirectional I / O line.FIG. 4 is a diagram of a particular example of using the example implementation 310 (FIG. 3C ) to enable communication over the SCP interface. The upper portion of FIG. 4 generically identifies an activity on a select line associated with a particular slave device 210 and an activity on the single-wire bidirectional I / O line, while the lower portion of FIG. 4 illustrates example details of the activity on the select line and the single-wire bidirectional I / O line.As shown in the upper part of Fig. 4, the selection line starts in a review state. The selective state of the selection line corresponds to a high signal level of the selection line in the bottom of FIG. 4 As further illustrated, the master device 205 may set the selection line to a dominant state when the master device 205 is to provide information (e.g., synchronization information, payload including a write command, and write data) to the slave device 210. The transition to the dominant state is characterized in the lower part of FIG. 4 by a falling edge of the selection line signal.As further illustrated in the upper portion of FIG. 4, after the master device 205 sets the selection line in the dominant state, it may transmit the synchronization information via the one-wire bidirectional I / O line. The transmission of the synchronization information is identified on the single-wire bidirectional I / O line as a first set of 10 bits. Herein, a first bit sequence of the synchronization information (e.g., the first six bits comprising a start bit at the low signal level, a first set of four bits at the low signal level, and an intermediate bit at the high signal level) may provide sufficient time to the slave device 210 to power up, wake up from idle, turn on or wake up a component, or the like. A second bit sequence of the synchronization information (e.g., a second set of four bits at the low signal level (including a parity bit) and a stop bit at the high signal level) may allow the slave device 210 to determine a baud rate (e.g., in bits per second) at which the master device 205 is transmitting information. Herein, the slave device 210 may measure a time period corresponding to the second set of four bits (e.g., a time period during which the signal was at the low level during reception of the second bit sequence) and may determine the baud rate based on the time period divided by four (i.e., the number of bits in the second set). The slave device 210 may use the baud rate to synchronize with the master device 205 (e.g., such that the slave device 210 may accurately decode the payload).In some implementations, the slave device 210 may also measure a time period corresponding to the intermediate bit in the first sequence (e.g., a time period during which the signal was high during the first bit sequence). This may be useful to verify synchronization in a case where an open drain configuration on the slave device 210 causes a low-to-high transition on the single-wire bidirectional I / O line to be slower (i.e., longer) than a high-to-low transition on the single-wire bidirectional I / O line when the slave device 210 transmits data to the master device 205 after executing a command.In this way, the master device 205 may provide synchronization information that enables transmission of information in a case where the slave device 210 and / or the master device 205 operate based on a low-cost clock (e.g., a clock with guaranteed accuracy of up to 20%). Here, an accurate clock is not required because the synchronization information is provided from the master device 205 to the slave device 210.As further shown in the upper portion of FIG. 4, while the select line remains in the dominant state, the master device 205 may provide payload to the slave device 210. As shown in the corresponding bottom portion of FIG. 4, a first bit sequence of the payload may include information associated with a command that the slave device 210 is to execute (e.g., a command to execute a write operation, characterized by the bits labeled CMD, and information identifying an address of a registry associated with the write operation, characterized by the bits labeled REGADR), and a second bit sequence may include information associated with the command to execute (e.g., data to be written to the registry, characterized by the bits labeled REGDATA).As further shown in the bottom of FIG. 4, the master device 205 may transition the select line back to the high level after transmitting the payload (e.g., immediately thereafter, after waiting for a configurable amount of time).In an alternative implementation, the master device 205 may transition the select line to the high level after transmitting the first set of payload bits and before transmitting the second set of payload bits. In such a case, the slave device 210 may be configured (e.g., by the master device 205) with a response delay that causes the slave device 210 to wait for a certain amount of time after the selection line transitions to the review state before transmitting information to the master device 205 (e.g., to allow the master device 205 to provide the second set of payload bits before the slave device 210 responds to the master device 205).As further shown, after the master device 205 transitions the selection line to the review level (e.g., immediately thereafter, based on a response delay configured at the slave device 210), the slave device 210 may transmit information (e.g., an acknowledgement) to the master device 205. In this way, the SCP interface may enable asynchronous communication over the single wire bidirectional I / O line. In an implementation where open drain configuration at the slave device 210 causes a low-to-high transition to be slower than a high-to-low transition, the slave device 210 transmits such that synchronization may be achieved (e.g., by earlier starting a high-to-low transition to account for the increased transition time), as shown.As already mentioned, FIG. 4 is provided merely as an example. Other examples are possible and may differ from what has been described with respect to FIG. 4. While FIG. 4 is an implementation of the SCP interface that uses UART-based transmissions, implementations such as an SPC-based transmission, a PSI5-based transmission, or another type of transmission associated with a single-wire interface are possible. In some implementations, the SCP interface may even use an M-wire (M>1) interface, such as an I2C interface.FIGS. 5A and 5B are diagrams of additional example implementations 500 and 550 associated with the implementation of the SCP interface for communication between the master device 205 and one or more slave devices 210. For the purposes of FIGS. 5A and 5B, it is assumed that master device 205 is connected to multiple slave devices 210 (e.g., slave device 210- 1, slave device 210- 2, and slave device 210- 3) via an SCP interface.FIG. 5A is a diagram of an example implementation 500 of the master device 205 selecting a single slave device 210 via a corresponding selection line and communicating with the single slave device 210 accordingly. As seen in FIG. 5A, the master device 205 may set a signal on a first selection line associated with a first slave device 210 (e.g., selection 1 associated with the slave device 210- 1) to a low level (i.e., a transition from a high level to the low level) to signal the first slave device 210 to prepare for receiving information from the master device 205. As further shown, based on setting the first select line low, the master device 205 may transmit information (e.g., payload, synchronization information, configuration information associated with configuring an address or response delay at the first slave device 210, or the like) over the single-wire bidirectional I / O line. In this case, the first slave device 210 can receive the information and act accordingly.In particular, a second slave device 210 (e.g., slave device 210- 2) and a third slave device 210 (e.g., slave device 210- 3) do not operate based on the information conveyed from master device 205, because master device 205 maintains a second selection line associated with second slave device 210 and a third selection line associated with third slave device 210 high.As further illustrated, after the master device 205 sends the information on the single-wire bidirectional I / O line, the master device 205 may set the signal on the first selection line to the high level (i.e., transition from the low level to the high level). As further shown, after the master device 205 sets the signal on the first selection line to the high level (e.g., after a first response delay configured on the first slave device 210), the first slave device 210 may transmit information (e.g., an acknowledgement, data requested by the master device 205) to the master device 205 via the one-wire bidirectional I / O line. As shown, a time period from the selection of the first slave device 210 to an end of transmission by the first slave device 210 may be in a range from about 530 microseconds to about 835 microseconds.FIG. 5B is a diagram of an example implementation 550 of the master device 205 selecting multiple slave devices 210 via corresponding selection lines and communicating with the multiple slave devices 210, respectively. As shown in FIG. 5B, the master device 205 may set a signal on a first selection line associated with a first slave device 210 (e.g., selection 1 associated with the slave device 210- 1), a signal on a second selection line associated with a second slave device 210 (e.g., selection 2 associated with the slave device 210- 2), and a signal on a third selection line associated with a third slave device 210 (e.g., selection 3 associated with the slave device 210- 3) to a low level to simultaneously signal the plurality of slave devices 210 to prepare for receiving information from the master device 205. As further shown, based on setting the first, second, and third select lines low, the master device 205 may transmit information on the single-wire bidirectional I / O line. In this case, the first, second and third slave devices 210 can each receive the information and act accordingly.As further illustrated, after the master device 205 sends the information on the single-wire bidirectional I / O line, the master device 205 may set the signal on the first, second, and third selection lines to the high level. As further shown, after the master device 205 sets the signals on the first, second, and third selection lines high, the slave devices 210 may transmit information to the master device 205 via the one-wire bidirectional I / O line. As shown, the first slave device 210 may transmit after a time period corresponding to a first response delay (e.g., referred to as delay 1), the second slave device 210 may transmit after a time period corresponding to a second response delay (e.g., referred to as delay 2), and the third slave device 210 may transmit after a time period corresponding to a third response delay (e.g., referred to as delay 3). In this way, a response may be time multiplexed such that collisions on the single-wire bidirectional I / O line are avoided while master device 205 may efficiently communicate with multiple slave devices 210 (e.g., because master device 205 only needs to transmit information once), thereby allowing master device 205 to reduce a time period required to communicate with multiple slave devices 210. As shown, a time period from the selection of the first slave device 210 to an end of transmission by the third slave device 210 may be in a range from about 1.2 milliseconds (ms) to about 2.0 milliseconds.As indicated above, FIGS. 5A and 5B are provided merely as examples. Other examples are possible and may differ from what has been described with respect to FIGS. 5A and 5B.FIGS. 6A and 6B are diagrams of example arrangements 600 and 650 of electrical elements that may enable the SCP interface between the master device 205 and the slave devices 210.FIG. 6A shows the example arrangement 600 utilizing an open drain interface on the slave device 210 side for connection to the single-wire bidirectional I / O line and utilizing a push-pull output on the master device 205 side for connection to the single-wire bidirectional I / O line. Here, the push-pull output from the master device 205 side is connected via a series resistor (e.g., pulling up the level of the signal when the master device 205 is not transmitting). Thus, in a case where the slave device 210 needs to transmit information (e.g., signal an exception) to the master device 205, a slave device 210 may pull down the level of the signal on the single-wire bidirectional I / O line (which may be detected by the master device 205). This allows the example arrangement 600 to inherently protect from collisions between transmissions by the slave devices 210.As further shown in FIG. 6A, the select lines (e.g., labeled / CS1, / CS2, and / CSN in FIG. 6A ) are implemented as single lines for each slave device, thereby allowing master device 205 to send signals individually to each slave device 210, or to send signals in parallel to multiple slave devices 210.FIG. 6B shows an example arrangement 650 that uses push-pull outputs on the master device 205 side and on the slave device 210 side. In this case, the push-pull outputs can be placed in an inactive state, and other means can be implemented for protection against collisions. For example, as shown in example arrangement 650, small series resistors (e.g., external or on-chip) may be used to limit current flow for collision protection. One possible advantage of the example arrangement 650 is that such an arrangement provides robust signal generation and data readout (e.g., since both rising and falling signal edges are actively controlled), thereby providing robustness of electromagnetic performance.The number and arrangement of elements shown in FIGS. 6A and 6B are provided as examples. In practice, additional elements, fewer elements, other elements, or differently arranged elements than those shown in FIGS. 6A and 6B may be present. Further, two or more of the elements shown in FIGS. 6A and 6B may be implemented within a single element, or a single element shown in FIGS. 6A and 6B may be implemented as multiple distributed elements. Additionally or alternatively, a set of elements (e.g., one or more elements) of FIGS. 6A and 6B may perform one or more functions described as being performed by another set of elements of FIGS. 6A and 6B.The implementations described herein provide a bus interface with a single wire bidirectional communication line between a master device and a set of slave devices with an individual select line for each slave device. This bus interface may be referred to as a serial companion (SCP) interface.The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise form disclosed. Modifications and variations are possible in the light of the above disclosure or may be obtained from practice of the implementations.As used herein, the term "component" is intended to be broadly construed as hardware, firmware, and / or a combination of hardware and software.Although certain combinations of features are recited in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. Indeed, many of these features may be combined in ways not specifically recited in the claims and / or disclosed in the specification. Although each dependent claim listed below may depend directly on only one claim, the disclosure of possible implementations includes each dependent claim in combination with any other claim in the claim set.No element, operation, and instruction used herein should be construed as critical or essential unless explicitly so specified. Further, the articles "a", "an" as used herein are intended to include one or more articles and are used interchangeably with "one or more". Furthermore, the term "set" as used herein is intended to include one or more elements (e.g., related elements, unrelated elements, a combination of related elements and unrelated elements, etc.) and may be used interchangeably with "one or more.". Where only one element is meant, the term "a" or similar term is used. As used herein, the terms "has," "have," or the like, are to be construed as open terms. Further, the term "based on" is intended to mean "at least partially based on" unless expressly stated otherwise.
Claims
A system comprising: a plurality of slave devices connected to a master device via a bus interface comprising a communication line and a plurality of selection lines, wherein the communication line connects the master device to each of the plurality of slave devices and enables bi-directional single-wire communication between the master device and the plurality of slave devices, wherein each slave device of the plurality of slave devices comprises only two pins, wherein each selection line of the plurality of selection lines connects the master device to each slave device of the plurality of slave devices and enables signaling between the master device and the respective slave device associated with the bi-directional single-wire communication.The system of claim 1, wherein the master device has a number of pins equal to a number of the plurality of slave devices plus one.The system of any preceding claim, wherein each slave device of the plurality of slave devices does not include non-volatile memory and other component associated with an individual slave addressing mechanism.The system according to any one of the preceding claims, wherein the master device and each slave device are connected via a wired connection having a length less than or equal to one meter.The system of any preceding claim, wherein the one-wire bidirectional communication between the master device and the plurality of slave devices is asynchronous.The system of any preceding claim, wherein the selection line is associated with controlling a transmission direction of information on the communication line.A system comprising: - a master device for - signaling, via a selection line associated with a slave device, that the master device is to transmit information via a communication line, - wherein the master device is connected to the slave device via a bus interface comprising the communication line and the selection line, - wherein the communication line enables bidirectional one-wire communication between the master device and the slave device, and - wherein the selection line enables the slave device to detect the signaling by the master device; and - transmitting the information on the communication line based on the signaling via the selection line; and - the slave device comprising only two pins, wherein the slave device is configured to - detect the signaling on the selection line; and - receive the information on the communication line based on the detection of the signaling on the selection line.The system of claim 7, wherein the information comprises at least one of: - synchronization information associated with synchronizing the master device and the slave device, - address information identifying an address of the slave device, - configuration information associated with the configuration of the slave device, - payload information comprising information associated with a command to be executed by the slave device.The system of any of claims 7 or 9, wherein the slave device is to transmit a response to the master device over the communication line upon receipt of the information.The system of any of claims 7 to 9, wherein the master device, when signaling via the select line, is to cause: - a level of a signal associated with the select line to transition from a first state to a second state, - wherein the first state is different from the second state.The system of claim 10, wherein the master device, when causing the level of the signal to transition from the first state to the second state, is to cause - the transition of the signal level from a low level to a high level, - the transition of the signal from a high level to a low level, or - the transition of the signal from a high impedance state to an active state.The system of any of claims 10 or 11, wherein the master device is to transmit the information while the level of the signal is in the second state.The system of any of claims 10 to 12, wherein after transmitting at least a portion of the information, the master device is further to cause the level of the signal associated with the select line to transition from the second state to the first state.The system according to any one of claims 7 to 13, wherein the slave device is further to protect against a collision in transmitting information to the master device via the communication line.The system of claim 14, wherein the slave device is further to pull down a level of a signal associated with the communication line, wherein the master device has a push-pull output that pulls up the level of the signal when the master device does not transmit information over the communication line; wherein the slave device is to protect from the collision when protecting from the collision based on the pull down of the level of the signal associated with the communication line.The system of any of claims 14 or 15, wherein the slave device is further to limit an amount of current flow associated with the communication line using a set of resistors of the slave device, wherein the master device and the slave device comprise push-pull outputs placed in an inactive state; and wherein the slave device is to protect from the collision when protected from the collision based on a limitation of the amount of current flow associated with the communication line.The system of any of claims 7 to 16, wherein the master device, when signaling that the master device is to transmit, is further to: - simultaneously signal that the master device is to transmit via a plurality of selection lines corresponding to each of a plurality of slave devices, - wherein the plurality of selection lines comprises the selection line, and - wherein the plurality of slave devices comprises the slave device.The system of claim 17, wherein the master device is to transmit, when transmitting the information on the communication line and based on the simultaneous signaling to the plurality of sensors, information that causes each sensor of the plurality of sensors to perform a respective sensing function.The system of any of claims 17 or 18, wherein the master device is to transmit information to the master device based on transmitting the information on the communication line and based on the simultaneous signaling to the plurality of sensors that causes the plurality of sensors to transmit sensor data to the master device based on a corresponding plurality of response delays.A system comprising: - a set of slave devices, each slave device of the set of slave devices each comprising only two pins for communication; - a master device; - a bi-directional, single wire communication bus connecting the master device and the set of slave devices; - a set of select lines connecting the master device and the set of slave devices, - wherein each select line of the set of select lines connects the master device to a respective slave device of the set of slave devices.The system of claim 20, wherein the master device and one or more of the set of slave devices are implemented on a same circuit board.The system of any of claims 20 or 21, wherein the set of slave devices comprises one or more sensors, one or more actuators, or one or more hybrid sensors / actuators.
Citation Information
Patent Citations
Control system for electrically-controlled automobile components has individual data lines for respective subscribers selectively connected and disconnected
DE10123802A1
serial peripheral interface with a reduced number of connection lines
DE102008062865A1
single-wire interface
DE102016106834A1
Single-wire communication bus for miniature low-power systems
US20040208200A1
Three line communications method and apparatus
US5327121A
