Slave device, bus system and method
By receiving the initialization signal from the device in the bus system, sending identification and detecting conflicts, the problem of inflexible sensor address allocation in the traditional bus system is solved, and flexible address allocation in which each slave device obtains its own address is realized, reducing costs and improving efficiency.
Patent Information
- Application Number
- CN202080061799.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-23
- Filing Date
- 2020-09-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-09-09
AI Technical Summary
Sensor address allocation in traditional bus systems is inflexible, especially when multiple sensors share a unique physical interface, resulting in high cost and low efficiency.
It ensures that each slave device gets an address independently by receiving an initialization signal in the slave device, sending an identification and detecting conflicts, assigning an address if there is no conflict, otherwise setting it to an inactive state.
Flexible address allocation is achieved, reducing costs, improving system flexibility and efficiency, and ensuring that each slave device has exclusive access to the bus.
Smart Images

Figure CN114341827B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a slave device, a bus system and a corresponding method. Background Art
[0002] Bus systems enable multiple bus users to communicate with each other. An example of an application is a sensor system in which multiple sensors communicate as slaves with a control unit as a master, for example in automotive systems. In some applications, it is necessary to assign unique addresses to the various sensors so that the control unit can individually control the sensors via the common bus.
[0003] In some conventional methods, these addresses are usually permanently assigned to slave devices such as sensors, for example at the end of production or in the context of configuration when constructing a bus system. The corresponding preconfigured slave devices are then used. This is relatively inflexible and, moreover, can only be implemented very cost-intensively in the case of multiple sensors sharing a single physical interface. Summary of the invention
[0004] There is provided a method according to claim 1, a slave device according to claim 11 and a bus system according to claim 16. The dependent claims define further embodiments.
[0005] According to one embodiment, a method is provided, comprising:
[0006] In the slave device,
[0007] - receiving the initialization signal,
[0008] - in response to the initialization signal, sending an identification of the slave device via the bus,
[0009] Check if there is a conflict on the bus when sending the initialization flag.
[0010] - if a conflict occurs, the slave device will be set to inactive, and
[0011] - If no conflict occurs, the address for the slave device is received after sending the identification.
[0012] According to a further embodiment, there is provided a slave device, comprising:
[0013] A communication circuit for sending signals to a bus and for receiving signals from the bus, wherein a slave device is arranged to:
[0014] - receiving the initialization signal,
[0015] - in response to the initialization signal, sending an identification of the slave device via the bus,
[0016] Check if there is a conflict on the bus when sending the identification,
[0017] - if a conflict occurs, the slave device will be set to inactive, and
[0018] - If no conflict occurs, the address of the slave device is received after sending the identification.
[0019] The above summary is provided only as a brief overview of some embodiments and should not be construed as limiting. In particular, other embodiments may have features in addition to those described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a diagram of a bus system according to an embodiment.
[0021] Figure 2 is a flow chart for illustrating a method according to some embodiments.
[0022] Figure 3 Signal examples are shown for illustrating the embodiments.
[0023] Figure 4 A driver circuit with conflict identification as used in some embodiments is shown.
[0024] Figure 5 A diagram of a system according to another embodiment is shown.
[0025] Figure 6 A diagram of a system according to another embodiment is shown.
[0026] Figure 7 Example signals are shown to illustrate some embodiments. DETAILED DESCRIPTION
[0027] Various embodiments are explained in detail below. These embodiments are provided for illustration only and should not be construed as limiting. Therefore, in the described embodiments, features or components may be replaced by alternative features or components, or may also be omitted. In addition to the described features and components, other features or components may also be present.
[0028] In particular, the embodiments described below are mainly related to the address assignment of slave devices of the bus system during initialization. Other features of the communication system, such as details of signaling, the protocols used, etc., can be implemented in any conventional manner known to bus systems and are therefore not explained in detail. For example, in some embodiments, communication can be carried out via a CAN bus, and except for the described address assignment and the features and components associated therewith, communication can be carried out via the CAN bus as in conventional communication.
[0029] Features and components of different embodiments may be combined. For example, changes and modifications described for one embodiment may also be applied to other embodiments, and therefore will not be described again.
[0030] Figure 1 A block diagram of a system 10 according to an embodiment is shown. The system of FIG. 10 includes a master device 11 and a plurality of slave devices 12 connected via a bus 13. Three slave devices 12A, 12B, and 12C are shown as examples. The number of three slave devices 12 is only an example, and a different number of slave devices may also be provided. The bus 13 may be any wired bus, such as a CAN bus, a FlexRay bus, etc. The bus 13 may be provided in various configurations, such as a star configuration, another branch configuration similar to the components shown, a daisy chain configuration, etc.
[0031] In some embodiments, as will be explained in more detail later, multiple slave devices may also be arranged in a cluster. As an example, slaves 12A and 12B are arranged in a cluster 14, which has a single connection for bus 13. A conversion from bus 13 to another communication within cluster 14 may be performed here. Again, an example of this will be explained in more detail later.
[0032] In some embodiments, the slave device 12 is a sensor and the master device 11 is a control unit. In some embodiments, the system 10 is arranged in a vehicle, such as a motor vehicle. In this case, the slave device 12 can be, for example, a sensor of the motor vehicle. The master device can also be referred to as a host, and the slave device can be referred to as a slave.
[0033] During the initialization phase of the system 10, the master 11 assigns addresses to the slaves 12 in order to be able to address them individually, for example in order to be able to read out or actuate individual sensors in a targeted manner in the case of sensors. Figure 2 Methods for such address assignment according to some embodiments are explained. Figure 2 For example, the method can be Figure 1 For better understanding, refer to Figure 1 However, Figure 2 The method can also be implemented in other systems.
[0034] Figure 2 The method starts at 20. At 21, a master device (e.g. Figure 1 The master device 11) passes through the bus (eg Figure 1 The initialization signal is used to signal the slave device (e.g. Figure 1The initialization of the slave device 12) now starts. The initialization signal may be any predetermined signal sequence, for example a predetermined sequence of values corresponding to logic 0 and values corresponding to logic 1, which enables the slave device to recognize that the initialization should now start.
[0035] All have predetermined identification (Identifizierung) from equipment 12, it is programmed during manufacturing for example.In certain embodiments, can use 32 bit sequences of unambiguous meaning, wherein other sequence lengths are also possible.Select the different identifications of possible quantity in this way, make it possible to give each manufactured slave equipment distribution unambiguous identification.Can reserve different identification ranges for different manufacturers of slave equipment.
[0036] At 22, all slave devices respond simultaneously with their assigned identifications. For example, all slaves send a bit sequence respectively assigned to them.
[0037] In a number of embodiments, a communication protocol is used which has two possible levels on the bus which are assigned to logic 0 and logic 1. One level is dominant relative to the other, i.e. if different bus participants drive different levels, the dominant level "wins". In the CAN bus, this can be achieved, for example, by actively driving one of the levels (in this case the voltage difference between the bus lines is above a threshold corresponding to logic 0), while the other value corresponds to a voltage difference equal to or close to 0, which is passively regulated by the connection of the bus through a resistor and corresponds to logic 1. In this assignment, logic 0 is dominant relative to logic 1. Within the scope of the present application, it can also be said that a level on the bus is "set" by the slave device. Depending on the embodiment, this can be done by active driving or by "allowing regulation" (by the slave device being passive and the level being regulated, for example, via a resistor without active driving).
[0038] At 23, the slave device detects a conflict on the bus. From the perspective of the slave device, a conflict exists if the value (e.g., voltage level) present on the bus does not correspond to the identification sent by it. In the above embodiment with dominant and recessive states, this occurs when the identification sent by another slave device is more "dominant" than the slave device that recognizes the conflict.
[0039] Those slaves that detect a conflict then restart at 23 from the current "initialization round", i.e. the currently running Figure 2 One of the slave devices will not detect a conflict (e.g., because no other slave device has driven a "more dominant" level during the transmission of the identification). The master device then assigns an address to the slave device at 24. The slave device is thus configured in view of the address and is removed from initialization at 25, for example by blanking it out.
[0040] At 26, it is checked whether all slave devices have obtained addresses. If this is the case, the method ends at 27, otherwise the method jumps to 21 for the next round of initialization.
[0041] Now refer to Figure 3 Briefly illustrate an example of this conflict identification. Figure 3 The signals shown in are used only as simple examples for better explanation and should not be construed as limiting since signal shapes may differ from one another depending on implementations.
[0042] exist Figure 3 In the example, the bus is assumed to be dominant low and recessive high, so when one participant wants to send a low bus level and another participant wants to send a high bus level, the bus level is low overall. This is the case, for example, with the CAN bus.
[0043] exist Figure 3 In the example, suppose three slave devices (in Figure 1 The data sent by slave 1 is represented by curve 30, the data sent by slave 2 is represented by curve 31, and the data sent by slave 3 is represented by curve 32. Curve 33 represents the level on the bus.
[0044] After receiving the initialization signal (for example, Figure 2 21), all participants start sending their identities. This phase is also called the arbitration phase. Figure 3 In the example of , this is first done with the first bit, which indicates the start of a data frame (SOF, Start of Frame) where all slaves pull the bus low. The bus level is therefore low here. Then all participants send their identification, Figure 3 In the example of , the identifier includes 11 bits. Figure 3 In the example, this starts with the most significant bit numbered 10 and goes down to the least significant bit 0.
[0045] A person skilled in the art will directly recognize that in the case of the CAN bus, arbitration results in the highest priority for the bus access method being implemented for the lowest identification, which will also be explained below. The participant with the highest priority (represented by an explicit address) takes precedence over all other participants and is allowed to send. This method is also known as CSMA-CR (Carrier Sense Multiple Access-Collision Resolution) and is used here to assign addresses. Thus, a hierarchical priority can be assigned to the individual participants.
[0046] exist Figure 3In the example of , address 1 starts with the bit sequence 11001 for all slave devices, i.e. the slave sends a high level for bits 10 and 9, a low level for bits 8 and 7, and a high level again for bit 6. Therefore, the bus is also high for bits 10 and 9, low for bits 8 and 7, and high again for bit 6.
[0047] The identification of slaves 1 and 3 continues at bit 5 with 0, corresponding to a low level, while the identification of slave 2 continues with 1, i.e., a high level. Figure 3 In the example of , the low level is dominant, so the bus level is low at bit 5. Therefore, slave device 2 can recognize a conflict at 35, i.e., at bit 5, because the bus level does not correspond to the sent identification. Slave device 2 is therefore removed, as shown in FIG. Figure 2 As explained for 23. In this example, slave 2 remains in the recessive state, i.e. high level.
[0048] The identification of slaves 1 and 3 continues at positions 4 and 3 with the bit sequence 11, i.e. a high level, and the bus level is also high. At the next position (position 2), the bit value is equal to 1 (high) for slave 1 and low (low) for slave 3. The bus level is therefore low, and as shown by arrow 34, slave 1 now recognizes a conflict (low bus level, while it wants to send a high bus level corresponding to position 1) and also exits. Therefore, slave 3 "wins" this round and sends its complete identification (position 1 is 0, position 0 is 1), followed by a stop bit (RPR) with a value of 0.
[0049] The address is then assigned to the only slave 3 (corresponding to 0) that is determined to be free of conflict, using the control data (control) and the data byte (data). Figure 2 24 in the example). Then slave 3 is blanked out in the next round, and only slaves 1 and 2 send their identities. In this case, slave 1 will then win, because slave 2 will again recognize a conflict at 35. Finally, slave 2 is assigned an address. As recognized, in Figure 3 In the method shown, 0 is dominant and the most significant bit is sent first, and the slave device with the lowest identification always "wins". In other embodiments, the least significant bit can also be sent first, in which case the lowest address does not automatically "win".
[0050] Although the mark Figure 3 10), but more or fewer bits may be used. For example, in some embodiments, a 32-bit value may be used, which results in more than 4,000,000,000 possible identifications. Different slave device manufacturers may be assigned different identification ranges that may be used for their products. Here, a manufacturer-indicating code may occupy some of these bits.
[0051] The various possibilities for conflict detection and corresponding systems are explained in more detail below. Figure 4 The diagram shows a transmission and conflict detection circuit with conflict detection via a transmission line TxD, on which a slave device transmits a transmission signal, in particular an identifier. The transmission signal can then be converted into a bus signal by a line driver.
[0052] exist Figure 4 In the circuit of , the PMOS transistor 42 is connected between the transmission connection 47 and the positive supply voltage 45, and the NMOS transistor 43 is connected between the transmission connection 47 and the ground 46. In normal operation (after the above-mentioned initialization phase), the PMOS transistor 42 acts as a push transistor and the NMOS transistor 43 acts as a pull transistor to selectively place the transmission connection 47 on the positive supply voltage 45 or the ground 46. For example, the positive supply voltage 45 may correspond to a logical 1, while the ground 46 corresponds to a 0. In this case, for example due to appropriate size, the transistor 42 has a similar behavior to the transistor 43, so that in this case, the push transistor and the pull transistor have approximately the same strength, that is, have similar current driving capabilities.
[0053] In order to transmit the identification during the initialization phase, a PMOS transistor 41 is used instead of the PMOS transistor 42, which is also connected between the positive supply voltage 45 and the transmission connection 47. The PMOS transistor 41 is weaker than the PMOS transistor 42, i.e. has a lower current conductivity and / or a higher resistance Ron in the switched-on state. This means that when transmitting the identification, the PMOS transistor 45, which acts as a push transistor, is weaker than the NMOS transistor 43, which acts as a pull transistor. If now Figure 4 The transmission circuit shown transmits a logic 1 corresponding to a high voltage of the supply voltage 45 during the identification period (by closing the transistor 45 and opening the transistor 43), and another slave transmits a logic 0 corresponding to a low level of the ground 46 by means of such a transmission circuit (by closing the corresponding transistor 43 and opening the transistor 41), and there is a logic 0 corresponding to the ground level on the transmission line TxD as a whole (because the transistor 45 used here is weak). In the slave that transmits the logic 1, this is recognized as a conflict by means of the conflict detection circuit 40, 44. In particular, the inverted version of the signal on the transmission line TxD list and the control signal s for controlling the transistors 41, 43 are fed to the logic gate 44 via the inverter 40. The logic gate 44 then determines whether the level on the transmission line TxD corresponds to the level expected according to the control signal s.
[0054] Specifically, when a conflict occurs, the signal s drives the transistor 41 to close and opens the transistor 43, and there is still a low voltage corresponding to the ground potential at the transmission output 47. In this case, the logic gate 44 outputs a corresponding conflict signal c.
[0055] It should be noted that, in principle, in other embodiments, it is also possible to replace the inverted logic of transistor 43 with a weaker pull-up transistor during initialization.
[0056] A distinction can be made between an initialization phase and a subsequent operation phase using transistor 42, for example, by means of an address flag in the slave. As soon as the slave is assigned an address, the address flag is set and transistor 42 is used instead of transistor 41.
[0057] Figure 4 The transmission and collision detection circuit of the system 50 can be used in particular when multiple slave devices are arranged in a cluster and these slave devices share a bus driver, such as a CAN bus. An example of such a system 50 is Figure 5 Shown in.
[0058] Figure 5 The system 50 includes a master device 51 and multiple slave clusters 52, wherein a first slave cluster 52A and a second slave cluster 52B are shown. The number of the two slave clusters 52A and 52B is understood only as an example, and only one slave cluster or more than two slave clusters may be provided. For example, the slave clusters 52 may be implemented on a single chip respectively.
[0059] The master device 51 is connected to the slave cluster 52 via a bus 53. Figure 5 In the example of , the bus 53 is a CAN bus having two lines BusH, BusL.
[0060] The master device 51 has a microcontroller 54 (MC) and a line driver 55, which is used to drive the lines BusH and BusL of the bus 53. The microcontroller 54 sends the data to be sent to the line driver 55 via the transmission line TxD, and receives the received data from the line driver via the reception line RxD. The data to be sent includes Figure 2 The initialization signal sent at 21 and Figure 2 The assigned address at 24 is received, and the received data includes the identification sent by the slave device.
[0061] exist Figure 2 In the embodiment, the configurations of the slave clusters 52A and 52B are substantially the same. Therefore, only the slave cluster 52A is described in detail below, and the corresponding description also applies to the slave cluster 52A. In other embodiments, different slave clusters may also be configured differently, for example, they may include different numbers or types of slave devices.
[0062] The slave cluster 52A includes line drivers 56 for communicating over the bus 53 and a number of sensors 57 for slave devices as an example. Figure 5In the example of FIG. 1A , the slave cluster 52A includes a first sensor 57A and a second sensor 57B. In other embodiments, more than two sensors 57 may be provided. The sensors 57A and 57B communicate with the line driver 56 via a transmit line TxD and a receive line RxD. Via the transmit line TxD, for example, data to be transmitted via the bus 53, such as the identifier explained above, is transmitted. Via the receive line RxD, data is received via the bus 53, such as the master device 51 in Figure 2 The initialization signal sent at 21 and the assigned address ( Figure 2 24).
[0063] If sensors 57A and 57B transmit different levels on the transmission line TxD, you can refer to Figure 4 As explained, this situation is detected by the transmission and collision detection circuit there. Conflict detection is also performed for slaves of different slave clusters 52, wherein a corresponding level transmitted by a slave of a slave cluster 52 is also transmitted to the transmission line TxD of another slave cluster 52 via the line driver 56 of the slave cluster 52 (at Figure 5 , two slave clusters with another slave cluster).
[0064] The addresses assigned using the methods discussed herein are then stored in the respective address registers 58A, 58B of the sensors 57A, 57B.
[0065] In other embodiments, conflict detection can be performed by a feedback function, where a transmit signal sent to the bus is fed back to the receive line. Conflict detection can then be performed by comparing the transmitted signal with the signal on the receive line. An example system for this is shown in FIG. Figure 6 Shown in.
[0066] Figure 6 The system 60 includes a master device 61 and a plurality of slave devices 62, of which four slave devices 62A, 62B, 62C and 62D are shown as an example. The slave devices 62 are connected to the master device 61 via a bus 63. Figure 6 In the example of FIG. 4 , the bus is designed as a two-wire bus with two bus lines BusH, BusL, in particular as a CAN bus.
[0067] The master device 61 has a microcontroller 64 and a line driver 65, and its working principle is similar to Figure 5 The microcontroller 54 and the line driver 55 of the master device 51 are similar and thus will not be described in detail.
[0068] In the system 60, the slave devices 62A to 62D are configured identically. Therefore, only the slave device 62A is described in more detail below, and the description applies to the slave devices 62B to 62D accordingly. In other embodiments, the slave devices may also be configured differently.
[0069] The slave device 62A includes a line driver 66 and a sensor 67. In other embodiments, other components may be provided in place of the sensor 67.
[0070] The sensor 67 transmits the signal to be transmitted to the line driver 66 via the transmission line TxD, and receives the reception signal from the line driver 66 via the reception line RxD, and the line driver converts the signal between the bus 63 and the lines TxD, RxD accordingly. In particular, the sensor 67 responds to the following Figure 2 The initialization signal at 21 sends its identification (in Figure 2 22 in ), and if it detects no conflict, it receives the address assigned to it (e.g. Figure 2 The address is then stored in address register 68.
[0071] For collision detection, during the initialization phase of sending the identification, the corresponding value on bus 63 is looped back as a received signal on the receiving line RxD. If the received signal deviates from the transmitted signal (for example, if sensor 67 sends a recessive value and another sensor sends a dominant value), a collision can be detected by comparing the transmitted signal on the transmission line TxD with the received signal. In this way, a collision can be detected. In this case, the transmission speed when sending the identification is selected so that a collision detection is possible even if there is a loop delay in the loopback. This delay depends on the line length used, for example. It should be noted again that Figure 7 The signals are merely examples and should not be considered limiting.
[0072] To further illustrate, Figure 7 shows that there may be Figure 6 For simplicity, the signals for one master device and two slave devices are shown.
[0073] exist Figure 7 In the example, the master device (for example Figure 5 The master device 51 or Figure 6 The master device 61 first sends an initialization signal (for example, Figure 2 21 places). Figure 7 In the example of , the hexadecimal value 0x55h corresponding to 3 bytes is sent three times as the initialization signal, alternately with the values 1 and 0, separated by the start / stop bits. If the slave does not correctly identify the initialization signal the first time, redundancy is created by the three repetitions. However, any other bit sequence that can be unambiguously identified as an initialization signal by the slave device can also be used. During this phase, Figure 7 The corresponding signal then exists on the bus.
[0074] After the initialization signal is complete, the slave device responds with its identification. They begin with a start bit, followed by a 4-byte (32-bit) long identification, where the 4 bytes are separated by a stop bit. Figure 7 In the example, the first byte with the most significant bit (MSB) is 00011011 for both slaves, so there is no conflict here. The next byte identified ( Figure 7 byte 3 in the example above) is 11111000 for the first slave and 11111001 for the second slave, so there is a conflict at the last bit. Assuming again that 0 is dominant relative to 1, there is therefore a level corresponding to 0 on this bus. The second slave thus recognizes the conflict (it wants to drive 1 onto the bus, but the bus shows 0) and is therefore removed and blanked, e.g. switched to the recessive state. This is caused by Figure 7 The reference number 70 in FIG.
[0075] The first slave continues to send its identification (at Figure 7 byte 2 and byte 1 in the example above), and then assign its address as described above. Then, in a subsequent round, the first slave device is removed, so that Figure 7 In the case of two slaves shown in FIG. , an address is assigned to the second slave.
[0076] Using the embodiments discussed here, addresses can therefore be assigned to a large number of slaves, wherein collision detection ensures that only one slave always obtains an identification.
[0077] Some embodiments are defined by the following examples:
[0078] Example 1: A method comprising:
[0079] In the slave device,
[0080] - receiving the initialization signal,
[0081] - in response to the initialization signal, sending an identification of the slave device via the bus,
[0082] Check if there is a conflict on the bus when sending the initialization flag.
[0083] - if a conflict occurs, the slave device will be set to inactive, and
[0084] - If no conflict occurs, the address for the slave device is received after sending the identification.
[0085] Example 2. The method of Example 1, wherein checking whether there is a conflict on the bus comprises determining that there is a conflict if a level on the bus does not correspond to an expected value based on the transmitted identification.
[0086] Example 3. A method according to Example 1 or 2, wherein the bus has a dominant level or a recessive level, and wherein if, when the identification is sent, the recessive level on the bus is set by the slave device and there is a dominant level on the bus, there is a conflict on the bus.
[0087] Example 4. The method of Example 3, wherein the method includes sending other identifications by other slave devices in response to the initialization signal, and wherein the conflict exists on the bus if the other slave devices set a dominant level on the bus.
[0088] Example 5. The method of any one of Examples 1 to 4, wherein checking whether there is a conflict on the bus is based on a signal on a transmit line of the slave device.
[0089] Example 6. The method of any one of Examples 1 to 5, wherein the slave devices are arranged in a slave cluster, wherein a plurality of slave devices share a bus interface (56).
[0090] Example 7. The method of Example 5 or 6, wherein the slave device uses a push-pull driver for transmitting the identification, wherein one of the push-pull transistors or the push-pull driver is weaker than the other of the push transistor or the pull transistor.
[0091] Example 8. The method of any one of Examples 1 to 7, wherein checking whether there is a conflict is based on a signal on a receive line of the slave device.
[0092] Example 9. The method according to any one of Examples 1 to 8 further includes sending the initialization signal through a master device, and sending the address through the master device.
[0093] Example 10. The method of any one of Examples 1 to 9, wherein the method is repeated at least until the slave device is assigned an address.
[0094] Example 11. A slave device comprising:
[0095] A communication circuit for sending signals to and receiving signals from a bus, wherein a slave device is configured to:
[0096] - receiving the initialization signal,
[0097] - in response to the initialization signal, sending an identification of the slave device via the bus,
[0098] Check if there is a conflict on the bus when sending the identification,
[0099] - if a conflict occurs, the slave device will be set to inactive, and
[0100] - If no conflict occurs, the address for the slave device is received after sending the identification.
[0101] Example 12. The slave device of Example 11, wherein checking whether there is a conflict on the bus comprises determining that there is a conflict if a level on the bus does not correspond to an expected value based on the transmitted identification.
[0102] Example 13. A slave device according to Example 11 or 12, wherein the bus has a dominant level or a recessive level, and wherein if the recessive level on the bus is set by the slave device when the identification is sent and there is a dominant level on the bus, then there is a conflict on the bus.
[0103] Example 14. The slave device of Example 13, wherein the conflict exists on the bus if the other slave device sets a dominant level on the bus.
[0104] Example 15. The slave device of one of Examples 11 to 14, wherein it is checked whether there is a conflict on the bus based on a signal on a transmit line of the slave device.
[0105] Example 16. The slave device of Example 15, wherein the slave devices are arranged in a slave cluster, wherein multiple slave devices share a bus interface.
[0106] Example 17. The slave device of Example 15 or 16, wherein the slave device comprises a push-pull driver for transmitting the identification, wherein one push-pull transistor of the push-pull driver or one push-pull transistor of the push-pull driver is weaker than the other of the push transistor or the pull transistor.
[0107] Example 18. The slave device of any one of Examples 11 to 17, wherein the checking for a conflict is based on a signal on a receive line of the slave device.
[0108] Example 19. A system comprising a slave device according to any one of Examples 11 to 18 and a master device, the master device being configured to send an initialization signal and to send an address.
[0109] Example 20. The system of Example 19, comprising a plurality of slave devices,
[0110] The master device is configured to send an initialization signal again after sending an address until all slave devices are assigned addresses.
[0111] Although specific embodiments have been illustrated and described in this specification, it will be appreciated by those skilled in the art that a variety of alternative and / or equivalent embodiments may be substituted for the specific embodiments shown and described in this specification without departing from the scope of this specification. Those inventions that deviate may be selected. This application is intended to cover any modifications or variations of the specific embodiments discussed herein. Therefore, the present invention is intended to be limited only by the claims and the equivalents of the claims.
Claims
1. A method comprising: In the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D), - receiving the initialization signal, - in response to the initialization signal, sending the identification of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) via the bus (13; 53; 63), Check that when sending the identification, the bus (13; 53; 63), comprising: if the level on the bus (13; 53; 63) does not correspond to the expected value based on the sent identification, then determining that there is a conflict, - if a conflict occurs, setting the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) to an inactive state, and - if no conflict occurs, receiving an address for the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) after sending the identification to configure the slave device, wherein the configured slave device no longer receives the initialization signal.
2. A method according to claim 1, wherein the bus (13; 53; 63) has a dominant level or a recessive level, and wherein if, when sending the identification, the recessive level on the bus (13; 53; 63) is set by the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) and the dominant level exists on the bus (13; 53; 63), then there is a conflict on the bus (13; 53; 63).
3. The method according to claim 2, wherein the method comprises: In response to the initialization signal, other slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) sends other identifications, and if the other slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) set the dominant level on the bus (13; 53; 63), then the conflict exists on the bus (13; 53; 63).
4. The method according to any one of claims 1 to 3, wherein a check is performed to determine whether there is a conflict on the bus (13; 53; 63) based on a signal on a transmit line (TxD) of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D).
5. A method according to any one of claims 1 to 3, wherein the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) is arranged in a slave cluster (52A, 52B), in which multiple slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) share a bus interface (56).
6. The method of claim 4 , wherein the slave device ( 12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) uses a push-pull driver to send the identification, wherein one push transistor or one push-pull transistor of the push-pull driver is weaker than the other of the push transistor or the pull transistor.
7. The method according to any one of claims 1 to 3, wherein the presence of a conflict is checked based on a signal on a receive line (RxD) of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D).
8. The method according to any one of claims 1 to 3, further comprising: The initialization signal is sent by a master device (11; 51; 61), and the address is sent by the master device (11; 51; 61).
9. The method according to any one of claims 1 to 3, wherein the method is repeated at least until the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) is assigned an address.
10. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D), including: A communication circuit for sending signals to a bus (13; 53; 63) and receiving signals from the bus (13; 53; 63), wherein the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) is configured to: - receiving the initialization signal, - in response to the initialization signal, sending an identification of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) via the bus (13; 53; 63), Checking whether a conflict occurs on the bus (13; 53; 63) when sending the identification comprises: if the level on the bus (13; 53; 63) does not correspond to an expected value based on the identification sent, determining that a conflict exists, - if a conflict occurs, setting the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) to an inactive state, and - if no conflict occurs, receiving an address for the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) after sending the identification to configure the slave device, wherein the configured slave device no longer receives the initialization signal.
11. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to claim 10, wherein the bus (13; 53; 63) has a dominant level or a recessive level, and wherein if, when sending the identification, the recessive level on the bus (13; 53; 63) is set by the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) and the dominant level exists on the bus (13; 53; 63), then there is a conflict on the bus (13; 53; 63).
12. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to claim 11, wherein if other slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) set the dominant level on the bus (13; 53; 63), then the conflict exists on the bus (13; 53; 63).
13. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to one of claims 10 to 12, wherein based on a signal on a transmit line (TxD) of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D), it is checked whether there is a conflict on the bus (13; 53; 63).
14. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to claim 13, wherein the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) is arranged in a slave cluster (52A, 52B), in which multiple slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) share a bus interface (56).
15. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to claim 13, wherein the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) includes a push-pull driver for sending the identification, wherein one push transistor or one push-pull transistor of the push-pull driver is weaker than the other of the push transistor or the pull transistor.
16. A slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to any one of claims 10 to 12, wherein a check is performed to determine whether a conflict exists based on a signal on a receive line (RxD) of the slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D).
17. A system (10; 50; 60), comprising a slave device (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) according to any one of claims 10 to 16 and a master device (11; 51; 61), the master device being arranged to send the initialization signal and for sending the address.
18. The system (10; 50; 60) according to claim 17, comprising a plurality of slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D), The master device (11; 51; 61) is arranged to send the initialization signal again after sending the address until all slave devices (12A, 12B, 12C; 57A, 57B; 62A, 62B, 62C, 62D) are assigned addresses.
