WO2015090904A1 - Method for assigning device identifiers in a bus system, master device, slave device, and bus system - Google Patents

Method for assigning device identifiers in a bus system, master device, slave device, and bus system Download PDF

Info

Publication number
WO2015090904A1
WO2015090904A1 PCT/EP2014/075912 EP2014075912W WO2015090904A1 WO 2015090904 A1 WO2015090904 A1 WO 2015090904A1 EP 2014075912 W EP2014075912 W EP 2014075912W WO 2015090904 A1 WO2015090904 A1 WO 2015090904A1
Authority
WO
WIPO (PCT)
Prior art keywords
slave
bus system
master
bus
interface
Prior art date
Application number
PCT/EP2014/075912
Other languages
German (de)
French (fr)
Inventor
Thomas WANDEL
Michael GONSCHOREK
Original Assignee
Robert Bosch Gmbh
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Robert Bosch Gmbh filed Critical Robert Bosch Gmbh
Publication of WO2015090904A1 publication Critical patent/WO2015090904A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40039Details regarding the setting of the power status of a node according to activity on the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21028Address of module determined by position
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25032CAN, canbus, controller area network bus
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25072Initialise each module during start up
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Definitions

  • the present invention relates to a method for allocating
  • the present invention further relates to a master device, a slave device and a bus system.
  • Bus systems are used today in a variety of different applications.
  • bus systems can be used in automation technology to couple the different sensors, actuators and controllers of an automation system in a data-communicative connection with each other.
  • Bus systems may, however, be e.g. also be used in vehicles to couple the individual control units in a vehicle with each other.
  • an ESP control device of a vehicle can be coupled to a central gateway of a vehicle via a CAN bus or a FlexRay bus.
  • the bus subscribers In order to communicate on a data bus of a bus system, the bus subscribers must be assigned unique device identifiers or identifiers by which data packets or messages on the data bus can be assigned to a corresponding sender.
  • the device identifiers can be set at the individual bus subscribers by means of a PIN coding in which a binary code, which represents the device identifier, is set by means of simple switches or dip switches.
  • DIP switches are usually arranged directly on the board of the respective bus device and require installation space.
  • the dip switches are difficult to reach or adjust due to their small size.
  • the device identifiers can already be specified during the production of a bus participant in hardware or in the firmware of the bus participant.
  • this method is not very flexible and can not be used if several identical bus subscribers in a data bus are to be coupled together.
  • the present invention discloses a method having the features of claim 1, a master device having the features of claim 6, a slave device having the features of claim 8 and a bus system having the features of claim 10.
  • a method of assigning device identifiers in a bus system having a master device and at least two slave devices coupled thereto in a series circuit comprising the steps of activating the first non-activated slave device of the series connection from one end of the series circuit which coupled to the master device, transmitting a not assigned in the bus system device identifier by the master device to the activated slave device, storing the received device identifier in the activated slave device, wherein the steps activating, transmitting and saving repeated until all slave devices have been assigned a device identifier.
  • a master device for a bus system with a master bus interface, which is designed to couple the master device via the bus system with at least two slave devices coupled in a series circuit, with an activation interface, which is designed for this purpose is to transmit an activation signal to a coupled to the master device slave device, and with a control device, which is adapted to the commissioning of the bus system in each case the first non-activated slave device of the series circuit of one end of the series circuit out, which with is coupled to the master device to activate and to transmit this activated slave device not assigned in the bus system device identifier via the master bus interface until all slave devices are activated.
  • a slave device for a bus system with a slave bus interface and with an activation interface, which is adapted to transmit an activation signal to another slave device, wherein after the start of the slave device, the activation interface does not issue an activation signal, and with a computing device, which is designed to output an activation signal via the activation interface after the computing device has received a device identifier via the slave bus interface and when the computing device receives an activation signal command from a master device.
  • a bus system with a master device according to the invention and with a plurality of slave devices according to the invention, wherein the slave devices are arranged electrically in series such that the data lines of the bus system are coupled without interruption to each of the slave devices ,
  • the finding underlying the present invention is that it is difficult to operate a plurality of the same bus subscribers on a bus system, if a device identifier is assigned statically with one of the known methods.
  • the idea on which the present invention is based is now to take account of this knowledge and to provide a possibility of operating a multiplicity of identical slave devices on a bus system, the slave devices being replaced by the slave devices unique identifier can be identified locally and thus, for example, a participant exchange is possible.
  • the present invention provides that the individual slave devices only when switching on or booting of the bus system, a device identifier is assigned.
  • the method according to the invention uses the position of the individual slave devices in a series connection of the plurality of slave devices in the bus system.
  • all slave devices are activated in sequence when the bus system is started up. At startup, all slave devices are inactive first. In this case, the master device activates that slave device which is arranged next to the master device in the series connection. The master device then transmits to this activated slave device a not yet assigned device identifier which it stores and uses for future communication as its device identifier.
  • each activated slave device is assigned a device identifier after activation before the next slave device is activated in series connection.
  • the present method thereby makes it possible to provide a plurality of slave devices in a bus system with a device identifier identifying the position of the individual slave device. As a result, even when replacing one of the slave devices, the replacement slave device can be put into operation very easily.
  • the slave devices are disabled at startup of the bus system.
  • the slave device can be activated in sequence and so it can come during the commissioning of the bus system to no confusion between the individual slave devices.
  • the first slave device in the series circuit is activated by the master device. Additionally or alternatively, the other slave devices are activated by the respective previous slave device in the series circuit. This enables simple activation of the individual slave devices without the master device requiring its own connection for activating the individual slave devices.
  • the slave devices are configured to activate the next slave device in the series circuit only after receiving an activation command from the master device.
  • an activation signal is only provided to the slave devices each time until the respective slave device has stored the device identifier. This can be signaled to the slave devices in a very simple way that the commissioning is completed and normal operation is to be recorded.
  • the activation signal is provided to the respective slave device via a wake-up input of the respective slave device, wherein the arithmetic unit of each slave device must be able to read in particular its activation signal.
  • a wake-up input is usually used to wake up or turn on an electronic device. If such a wake-up input in the slave devices is used to activate and the activation signal can be evaluated by the computing unit, they can be integrated into the present method, without the hardware of the slave devices would have to be adapted to the process consuming.
  • the method is used in a CAN bus system. This makes it possible to use the present method in a variety of applications, for example in the automotive sector.
  • the slave devices are electrically connected in series such that the data lines of the CAN bus system are coupled to each of the slave devices without interruption. This allows passive routing of data between the master device and the slave devices without the need for dedicated logic or electronics controlling the routing.
  • the slave bus interface is designed as a CAN bus interface.
  • the activation interface is designed as a wake-up interface, in particular as a wake-up interface with TTL levels.
  • TTL levels are used for activation, standard devices can be used in the slave devices.
  • re-learning (RequestNodelDReassignment) of the device identifiers may be commanded by the master device 2 to all slave devices by transmitting a special data signal over the bus interface. This brings all slave devices in the initial state, so that the process steps activating, transmitting, saving must be performed again for each slave.
  • the activation interface of the slave devices is deactivated and thus the forwarding of the device identifiers is deactivated and the slave devices are ready to store new device identifiers without forwarding them immediately.
  • a shutdown can be commanded by the master device to all slave devices by transmitting a special data signal via the bus interface. All slave devices respond cyclically with a response of a data signal (ResponseShutdown) to the master device until these slave devices are in shutdown and the processing units of the slave devices are de-energized.
  • a CAN bus system in one embodiment, a CANFD (CAN FlexibleDatarate) bus system may also be used. This is a new variant of CAN.
  • a Flexray bus system can be used.
  • the mechanism also works in the same way for other communication protocols, e.g. CAN-FD and FlexRay. Esp. With FlexRay the implementation is unequally more complex, since corresponding necessary functionality for switching and
  • the mechanism can be represented by its own drivers, which initially allow in each activated slave device its own schedule with the master controller until the node ID assignment is completed. After completion, a switch is made to another stored schedule, which does not disturb the node I D assignment with the next slave and the next slave is activated.
  • the described method can also be transferred to time-controlled systems without adjustments.
  • FIG. 1 shows a flow chart of an embodiment of a method according to the invention
  • Fig. 2 is a block diagram of an embodiment of a master device according to the invention
  • 3 is a block diagram of an embodiment of a slave device according to the invention.
  • 4 shows a block diagram of an embodiment of a bus system according to the invention.
  • Fig. 5 is a flowchart of another embodiment of an inventive
  • Fig. 6 is a flowchart of another embodiment of an inventive
  • FIG. 1 shows a flow chart of an embodiment of a method according to the invention. The inventive method of FIG. 1 is used for the award of
  • Bus system 1 a master device 2 and at least two slave devices 4-1 - 4-n, which are coupled to the master device 2 in a series circuit.
  • a first step S1 the method provides for activating the first non-activated slave device 4-1 - 4-n of the series circuit from one end of the series circuit which is coupled to the master device 2.
  • a second step S2 the method provides for the transmission of a device identifier 5 not assigned in the bus system 1 by the master device 2 to the activated slave device 4-1 - 4-n.
  • a third step S3 the received device identifier 5 is stored in the activated slave device 4-1 - 4-n.
  • the steps of activating S1, transmitting S2 and storing S3 are repeated until a device identifier 5 has been assigned to all slave devices 4-1 - 4-n.
  • the present method makes it possible to activate the individual slave devices 4-1 - 4-n in order and to assign a corresponding device identifier 5 according to their position in the series connection.
  • the slave devices 4-1 - 4-n are deactivated when the bus system 1 is started up. Under disabled in this context is at least to understand that the slave devices 4-1 - 4-n perform no communication via the bus system 1.
  • the slave devices 4-1-4-n may also be in a sleep mode or sleep mode, or turned off when disabled.
  • the method provides that the first slave device 4-1 - 4-n in the series connection is activated directly by the master device 2. This allows the master device 2, very easy to control the commissioning of the bus system 1.
  • each slave device 4-1 - 4-n itself activates, but that each slave device 4-1 - 4-n which has been activated, the next slave Devices 4-2 - 4-n activated in series connection.
  • the slave devices 4-1 - 4-n are always provided with an activation signal 19 until the respective slave device 4-1 - 4-n has stored the device identifier 5.
  • the activation signal 19 can be provided in particular via a dedicated wake-up input in the slave devices 4-1 - 4-n.
  • the method is used in a CAN bus system 1.
  • the master device 2 and the slave devices 4-1 - 4n may each have a CAN bus interface.
  • the slave devices 4-1 - 4-n can be arranged in a series connection or else a so-called daisy chain.
  • the master device 2 and the slave devices 4-1 - 4-n are coupled in series in such a way that no active electrical or electronic components are present between the master device 2 and the last slave device 4-1 - 4-n of the series circuit are.
  • a signal which is given by one of the devices 2 and 4-1 - 4-n to one of the signal lines of the CAN bus system 1 is thus received on all other devices 2 and 4-1 - 4-n.
  • the master device 2 and the slave devices 4-1 - 4-n can each have at least one CAN transceiver and one CAN controller, which control the communication via the CAN bus system 1.
  • the device identifier 5 can be designed as a CAN ID or node ID (depending on the node ID, the respective CAN IDs are defined) of the respective slave device 4-1 - 4-n.
  • the individual devices 2 and 4-1 - 4-n e.g. Controllers in a vehicle network, e.g. to be in an automobile network.
  • the master device 2 may be a battery control device 2 in an electric drive train of an electric vehicle.
  • the slave devices 4-1 - 4-n may be monitoring controllers 4-1 - 4-n disposed on individual cells of a traction battery of the electric vehicle.
  • the respective CAN IDs for the different applications can be configured in the software of the master device 2.
  • FIG. 2 shows a block diagram of an embodiment of a master device 2 according to the invention.
  • the master device 2 of FIG. 2 has a control device 18, which is coupled to a master bus interface 15 and to an activation interface 16. Via the activation interface 16, the control device 18 can transmit an activation signal 17 to a first slave device coupled to the master device 2 (only one slave device can be coupled to the master).
  • the activation signal in one embodiment indirectly via an already activated slave device. 4 -1 - transmit 4-n.
  • the activation interface 16 is configured as a discrete digital interface 16 having TTL levels. Other embodiments are also possible.
  • the control device 18 can communicate data on the bus system 1 via the master bus interface 15. In particular, the control device 18 can output a device identifier 5 via the master bus interface 15 and transmit it to a slave device 4-1 - 4-n.
  • the bus system 1 is designed as a CAN bus system 1.
  • the master bus interface 15 is designed as a CAN bus interface 15.
  • the master device 2 has a CAN controller and a CAN transceiver in order to be able to transmit and receive data on the CAN bus system 1.
  • the device identifier in such an embodiment is e.g. a CAN ID in the CAN bus system 1.
  • FIG. 3 shows a block diagram of an embodiment of a slave device 4-1 according to the invention.
  • the slave device 4 - 1 has a computing device 22, which is coupled to a slave bus interface 20 and to an activation interface 21.
  • the activation interface 21 of the slave device 4-1 serves to transmit the activation signal 17 to another slave device 4-2 - 4-n if the master device 2 is not connected to each of the slave devices 4-1 - 4-n. n is directly coupled.
  • the slave device 4-1 are instructed by the master device 2 via the slave bus interface 20 to output the activation signal 17.
  • the activation interface 21 can be embodied as a discrete digital interface 21 with TTL levels.
  • the slave bus interface 20 may in one embodiment be configured as a CAN bus interface 20 and allow the computing device 22 to exchange data with the master device 2 and other slave devices 4-1 - 4-n.
  • the slave device 4-1 has a CAN controller and a CAN transceiver in order to be able to transmit and receive data on the CAN bus system 1.
  • the device identifier in such an embodiment, for example, a CAN-ID in the CAN bus system.
  • 1 4 shows a block diagram of an embodiment of a bus system 1 according to the invention.
  • the bus system 1 of FIG. 4 is designed as a CAN bus system 1, in which a
  • the Master device 2 is coupled to a plurality of slave devices 4-2 - 4-n.
  • Fig. 4 only the slave devices 4-2, 4-3, 4-4 and 4-n are shown.
  • Other slave devices are represented by three dots between slave devices 4-4 and 4-n.
  • the CAN bus of FIG. 4 has two data lines CAN_H and CAN_L. Since a CAN bus is a differential bus system, one of the two data lines carries the high signal and the other the low signal. Consequently, the abbreviation CAN_H stands for CAN HIGH and the abbreviation CAN_L stands for CAN LOW. 4, the bus interfaces 15, 20 and the activation interfaces 16, 21 are each combined. For example, the individual signals could be applied to different pins of a connector.
  • VDD5 line is further routed between the individual devices 2, 4-2 - 4-n.
  • This line may in one embodiment carry a supply voltage of 5V, which the master may activate for the slave devices 4-1 - 4-n.
  • slave bus interface 20 of the slave device 4-3 is shown how the slave bus interface 20 may be executed. It can be seen that the incoming data lines of the CAN bus system 1 are coupled directly to the outgoing data lines of the CAN bus system 1. The master device 2 is thus directly coupled to all slave devices 4-2 - 4-n without active components would be in the signal path. The CAN transceiver of the slave devices 4-2 - 4-n may in one embodiment be coupled to these data lines to receive or output data from the CAN bus.
  • FIG. 5 shows a flowchart of a further embodiment of a method according to the invention, as can be carried out, for example, with the bus system of FIG. 4.
  • Fig. 5 the timing of the signals for a master and two slaves slave 1 and slave 2 is shown.
  • the master provides a master device 2 according to the present invention.
  • slave 1 and slave 2 each represent a slave device 4-1 - 4-n according to the present invention.
  • the master 2 activates supply voltage (VDD5 - HIGH) of 5V via the line VDD5_OUT (see Fig. 4).
  • the master sets the line WAKE-UP to a low signal level, whereupon slave 1 starts the boot process or start-up. If slave 1 is started, it transmits via the CAN bus of the CAN bus system 1 a message which signals to the master that slave 1 is ready for initialization (CAN ready). The master then transmits a device identifier 5 to slave 1 (CAN Assign ID). Slave 1 confirms this transmission to the master (CAN - Confirm ID). This completes the initialization of slave 1 for the master and the master resets the WAKE-UP line to a high signal level (WAKE-UP HIGH). The master now checks whether the initialization of slave 1 has been completed (CAN - Assign finished), which the slave 1 confirms (CAN - Confirm finished).
  • FIG. 6 shows how, following initialization of slave 1, slave 2 is initialized.
  • the master sends the slave 1 a message via the CAN bus (CAN - start next assign), which causes them to output the activation signal 17 (WAKEP-UP - LOW).
  • the following communication on the CAN bus takes place between the master and the slave 2 to be initialized.
  • Slave 2 starts with the boot process or the start-up. If slave 2 is started, it transmits via the CAN bus of the CAN bus system 1 a message which signals to the master that slave 2 is ready for initialization (CAN ready). The master then transmits a device identifier 5 to slave 2 (CAN Assign ID). Slave 2 confirms this transmission to the master (CAN - Confirm ID). This completes the initialization of slave 2 for the master. Now the master again transmits to slave 1 a signal (CAN - Stop assign), which causes it to set the WAKE-UP line again to a high signal level (WAKE-UP HIGH). The master now checks whether the initialization of slave 2 has been completed (CAN - Assign finished), which the slave 2 confirms (CAN - Confirm finished).

Abstract

The invention relates to a method for assigning device identifiers in a bus system comprising a master device and at least two slave devices which are coupled to the master device in a series circuit. The method has the steps of activating the first non-activated slave device of the series circuit from one end of the series circuit, said slave device being coupled to the master device; transmitting a device identifier which is not assigned in the bus system to the activated slave device by means of the master device; and storing the received device identifier in the activated slave device, wherein the activation, transmission, and storage steps are repeated until all the slave devices have been assigned a device identifier. The invention further relates to a master device, a slave device, and a bus system.

Description

Beschreibung Titel  Description title
VERFAHREN ZUM VERGEBEN VON GERÄTEIDENTIFIKATOREN IN EINEM BUS- SYSTEM, MASTER-GERÄT, SLAVE-GERÄT UND BUSSYSTEM  METHOD FOR GIVING DEVICE IDENTIFICATORS IN A BUS SYSTEM, MASTER DEVICE, SLAVE DEVICE AND BUS SYSTEM
Die vorliegende Erfindung bezieht sich auf ein Verfahren zum Vergeben von The present invention relates to a method for allocating
Geräteidentifikatoren in einem Bussystem mit einem Master-Gerät und mit diesem in einer Serienschaltung gekoppelten mindestens zwei Slave-Geräten. Die vorliegende Erfindung bezieht sich ferner auf ein Master-Gerät, ein Slave-Gerät und ein Bussystem. Device identifiers in a bus system with a master device and with this at least two slave devices coupled in a series circuit. The present invention further relates to a master device, a slave device and a bus system.
Stand der Technik State of the art
Bussysteme werden heute in einer Vielzahl unterschiedlicher Anwendungen eingesetzt. Beispielsweise können Bussysteme in der Automatisierungstechnik eingesetzt werden, um die unterschiedlichen Sensoren, Aktoren und Steuerungen einer Automatisierungsanlage in datenkommunikativer Verbindung miteinander zu koppeln. Bus systems are used today in a variety of different applications. For example, bus systems can be used in automation technology to couple the different sensors, actuators and controllers of an automation system in a data-communicative connection with each other.
Bussysteme können aber z.B. auch in Fahrzeugen eingesetzt werden, um die einzelnen Steuergeräte in einem Fahrzeug miteinander zu koppeln. Beispielsweise kann ein ESP- Steuergerät eines Fahrzeugs mit einem zentralen Gateway eines Fahrzeugs über einen CAN-Bus oder einen FlexRay-Bus gekoppelt werden. Bus systems may, however, be e.g. also be used in vehicles to couple the individual control units in a vehicle with each other. For example, an ESP control device of a vehicle can be coupled to a central gateway of a vehicle via a CAN bus or a FlexRay bus.
Um auf einem Datenbus eines Bussystems kommunizieren zu können, müssen den Bus- teilnehmern eindeutige Gerätekennungen bzw. Identifikatoren zugewiesen werden, durch welche Datenpakete bzw. Botschaften auf dem Datenbus einem entsprechenden Absender zugeordnet werden können. In order to communicate on a data bus of a bus system, the bus subscribers must be assigned unique device identifiers or identifiers by which data packets or messages on the data bus can be assigned to a corresponding sender.
Heute sind mehrere Verfahren bekannt, z.B. baugleichen Teilnehmern einer Datenkom- munikation auf einem Datenbus eindeutige Identifikatoren zuzuweisen. Beispielsweise können die Geräteidentifikatoren an den einzelnen Busteilnehmern mittels einer PIN- Kodierung eingestellt werden, bei welcher mittels einfacher Schalter bzw. Dip-Schalter ein binärer Kode, der den Geräteidentifikator darstellt, eingestellt wird. DIP-Schalter sind üblicherweise direkt auf der Platine des jeweiligen Busteilnehmers angeordnet und benötigen Bauraum. Ferner sind die Dip-Schalter auf Grund ihrer geringen Größe schwer zu erreichen bzw. einzustellen. Alternativ können die Geräteidentifikatoren bereits bei der Produktion eines Busteilnehmers in Hardware bzw. in der Firmware des Busteilnehmers festgelegt werden. Dieses Verfahren ist aber wenig flexibel und kann nicht angewendet werden, wenn mehrere glei- che Busteilnehmer in einem Datenbus miteinander gekoppelt werden sollen. Today, several methods are known, for example identical identifiers to assign data identifiers to a data communication on a data bus. For example, the device identifiers can be set at the individual bus subscribers by means of a PIN coding in which a binary code, which represents the device identifier, is set by means of simple switches or dip switches. DIP switches are usually arranged directly on the board of the respective bus device and require installation space. Furthermore, the dip switches are difficult to reach or adjust due to their small size. Alternatively, the device identifiers can already be specified during the production of a bus participant in hardware or in the firmware of the bus participant. However, this method is not very flexible and can not be used if several identical bus subscribers in a data bus are to be coupled together.
Offenbarung der Erfindung Die vorliegende Erfindung offenbart ein Verfahren mit den Merkmalen des Patentanspruchs 1 , ein Master-Gerät mit den Merkmalen des Patentanspruchs 6, ein Slave-Gerät mit den Merkmalen des Patentanspruchs 8 und ein Bussystem mit dem Merkmalen des Patentanspruchs 10. DISCLOSURE OF THE INVENTION The present invention discloses a method having the features of claim 1, a master device having the features of claim 6, a slave device having the features of claim 8 and a bus system having the features of claim 10.
Demgemäß ist vorgesehen: Accordingly, it is provided:
Ein Verfahren zum Vergeben von Geräteidentifikatoren in einem Bussystem mit einem Master-Gerät und mit diesem in einer Serienschaltung gekoppelten mindestens zwei Sla- ve-Geräten, mit den Schritten Aktivieren des ersten nicht aktivierten Slave-Geräts der Serienschaltung von einem Ende der Serienschaltung aus, welches mit dem Master-Gerät gekoppelt ist, Übermitteln eines in dem Bussystem nicht vergebenen Geräteidentifikators durch das Master-Gerät an das aktivierte Slave-Gerät, Speichern des empfangenen Geräteidentifikators in dem aktivierten Slave-Gerät, wobei die Schritte Aktivieren, Übermit- teln und Speichern wiederholt werden, bis allen Slave-Geräten ein Geräteidentifikator zugewiesen wurde. A method of assigning device identifiers in a bus system having a master device and at least two slave devices coupled thereto in a series circuit, comprising the steps of activating the first non-activated slave device of the series connection from one end of the series circuit which coupled to the master device, transmitting a not assigned in the bus system device identifier by the master device to the activated slave device, storing the received device identifier in the activated slave device, wherein the steps activating, transmitting and saving repeated until all slave devices have been assigned a device identifier.
Ferner ist vorgesehen: Ein Master-Gerät für ein Bussystem, mit einer Master-Busschnittstelle, welche dazu ausgebildet ist, das Master-Gerät über das Bussystem mit mindestens zwei in einer Serienschaltung gekoppelten Slave-Geräten zu koppeln, mit einer Aktivierungsschnittstelle, welche dazu ausgebildet ist, ein Aktivierungssignal an ein mit dem Master-Gerät gekoppeltes Slave-Gerät zu übermitteln, und mit einer Steuereinrichtung, welche dazu ausgebildet ist, beim Inbetriebnehmen des Bussystems der Reihe nach jeweils das erste nicht aktivierte Slave-Gerät der Serienschaltung von einem Ende der Serienschaltung aus, welches mit dem Master-Gerät gekoppelt ist, zu aktivieren und diesem aktivierten Slave-Gerät einen in dem Bussystem nicht vergebenen Geräteidentifikator über die Master-Busschnittstelle zu übermitteln, bis alle Slave-Geräte aktiviert sind. It is further provided: A master device for a bus system, with a master bus interface, which is designed to couple the master device via the bus system with at least two slave devices coupled in a series circuit, with an activation interface, which is designed for this purpose is to transmit an activation signal to a coupled to the master device slave device, and with a control device, which is adapted to the commissioning of the bus system in each case the first non-activated slave device of the series circuit of one end of the series circuit out, which with is coupled to the master device to activate and to transmit this activated slave device not assigned in the bus system device identifier via the master bus interface until all slave devices are activated.
Ferner ist vorgesehen: It is also provided:
Ein Slave-Gerät für ein Bussystem, mit einer Slave-Busschnittstelle und mit einer Aktivierungsschnittstelle, welche dazu ausgebildet ist, ein Aktivierungssignal an ein weiteres Slave-Gerät zu übermitteln, wobei nach dem Start des Slave-Geräts die Aktivierungsschnittstelle kein Aktivierungssignal ausgibt, und mit einer Recheneinrichtung, welche dazu ausgebildet ist, ein Aktivierungssignal über die Aktivierungsschnittstelle auszugeben, nachdem die Recheneinrichtung über die Slave-Busschnittstelle einen Geräteidentifikator empfangen hat und wenn die Recheneinrichtung von einem Master-Gerät einen Aktivie- rungssignalbefehl erhält. A slave device for a bus system, with a slave bus interface and with an activation interface, which is adapted to transmit an activation signal to another slave device, wherein after the start of the slave device, the activation interface does not issue an activation signal, and with a computing device, which is designed to output an activation signal via the activation interface after the computing device has received a device identifier via the slave bus interface and when the computing device receives an activation signal command from a master device.
Schließlich ist vorgesehen: Ein Bussystem, mit einem erfindungsgemäßen Master-Gerät und mit einer Vielzahl von erfindungsgemäßen Slave-Geräten, wobei die Slave-Geräte derart elektrisch in Serie angeordnet sind, dass die Datenleitungen des Bussystems ohne Unterbrechung mit jedem der Slave-Geräte gekoppelt sind. Finally, it is provided: A bus system, with a master device according to the invention and with a plurality of slave devices according to the invention, wherein the slave devices are arranged electrically in series such that the data lines of the bus system are coupled without interruption to each of the slave devices ,
Vorteile der Erfindung Advantages of the invention
Die der vorliegenden Erfindung zu Grunde liegende Erkenntnis besteht darin, dass es nur schwer möglich ist, mehrere gleiche Busteilnehmer an einem Bussystem zu betreiben, wenn diesen mit einem der bekannten Verfahren eine Gerätekennung statisch zugewiesen wird. The finding underlying the present invention is that it is difficult to operate a plurality of the same bus subscribers on a bus system, if a device identifier is assigned statically with one of the known methods.
Die der vorliegenden Erfindung zu Grunde liegende Idee besteht nun darin, dieser Erkenntnis Rechnung zu tragen und eine Möglichkeit vorzusehen, eine Vielzahl von glei- chen Slave-Geräten an einem Bussystem zu betreiben, wobei die Slave-Geräte durch die eindeutige Kennung örtlich identifiziert werden können und somit z.B. ein Teilnehmer- Tausch möglich ist. The idea on which the present invention is based is now to take account of this knowledge and to provide a possibility of operating a multiplicity of identical slave devices on a bus system, the slave devices being replaced by the slave devices unique identifier can be identified locally and thus, for example, a participant exchange is possible.
Dazu sieht die vorliegende Erfindung vor, dass den einzelnen Slave-Geräten erst beim Einschalten bzw. Hochfahren des Bussystems ein Gerateidentifikator zugewiesen wird. For this purpose, the present invention provides that the individual slave devices only when switching on or booting of the bus system, a device identifier is assigned.
Da die einzelnen Geräte bis zur Zuweisung eines Geräteidentifikators nicht individuell adressiert werden können, nutzt das erfindunsgemäße Verfahren die Position der einzelnen Slave-Geräte in einer Serienschaltung der Vielzahl von Slave-Geräten in dem Bus- System. Since the individual devices can not be individually addressed until the assignment of a device identifier, the method according to the invention uses the position of the individual slave devices in a series connection of the plurality of slave devices in the bus system.
Erfindungsgemäß werden beim Hochfahren des Bussystems der Reihe nach alle Slave- Geräte aktiviert. Beim Start sind zuerst alle Slave-Geräte inaktiv. Dabei aktiviert das Master-Gerät dasjenige Slave-Gerät, welches in der Serienschaltung dem Master-Gerät am nächsten angeordnet ist. Diesem aktivierten Slave-Gerät übermittelt das Master-Gerät daraufhin einen noch nicht vergebenen Geräteidentifikator, welchen dieses speichert und für die zukünftige Kommunikation als seinen Geräteidentifikator nutzt. According to the invention, all slave devices are activated in sequence when the bus system is started up. At startup, all slave devices are inactive first. In this case, the master device activates that slave device which is arranged next to the master device in the series connection. The master device then transmits to this activated slave device a not yet assigned device identifier which it stores and uses for future communication as its device identifier.
Im Folgenden werden die weiteren Slave-Geräte der Reihe nach aktiviert und jedem akti- vierten Slave-Gerät nach der Aktivierung ein Geräteidentifikator zugewiesen, bevor das nächste Slave-Gerät in der Serienschaltung aktiviert wird. In the following, the other slave devices are activated in order and each activated slave device is assigned a device identifier after activation before the next slave device is activated in series connection.
Dies erfolgt gemäß der Reihenfolge der einzelnen Slave-Geräte in der Serienschaltung, beginnend bei demjenigen Slave-Gerät, welches dem Master-Gerät am nächsten ist. This is done in accordance with the order of the individual slave devices in the series circuit, starting with the slave device which is closest to the master device.
Dadurch, dass die einzelnen Slave-Geräte der Reihe nach aktiviert werden, ist auch ausgeschlossen, dass beim Inbetriebnehmen des Bussystems zwei Slave-Geräte gleichzeitig adressiert werden bzw. ein Slave-Gerät bei der Inbetriebnahme des Bussystems ausgelassen wird. The fact that the individual slave devices are activated in sequence, it is also excluded that when commissioning the bus system, two slave devices are addressed simultaneously or a slave device is omitted when commissioning the bus system.
Das vorliegende Verfahren ermöglicht es dadurch, eine Vielzahl von Slave-Geräten in einem Bussystem mit einem Geräteidentifikator zu versehen, der die Position des einzelnen Slave-Geräts kennzeichnet. Dadurch kann auch bei einem Austausch eines der Slave- Geräte sehr einfach das Austausch-Slave-Gerät in Betrieb genommen werden. Vorteilhafte Ausführungsformen und Weiterbildungen ergeben sich aus den Unteransprüchen sowie aus der Beschreibung unter Bezugnahme auf die Figuren. The present method thereby makes it possible to provide a plurality of slave devices in a bus system with a device identifier identifying the position of the individual slave device. As a result, even when replacing one of the slave devices, the replacement slave device can be put into operation very easily. Advantageous embodiments and further developments emerge from the dependent claims and from the description with reference to the figures.
In einer Ausführungsform sind die Slave-Geräte bei Inbetriebnahme des Bussystems deaktiviert. Dadurch können die Slave-Gerät der Reihe nach aktiviert werden und es kann so bei der Inbetriebnahme des Bussystems zu keiner Verwechslung zwischen den einzelnen Slave-Geräten kommen. In one embodiment, the slave devices are disabled at startup of the bus system. As a result, the slave device can be activated in sequence and so it can come during the commissioning of the bus system to no confusion between the individual slave devices.
In einer weiteren Ausführungsform wird das erste Slave-Gerät in der Serienschaltung durch das Master-Gerät aktiviert. Zusätzlich oder alternativ werden die weiteren Slave- Geräte durch das jeweils vorherige Slave-Gerät in der Serienschaltung aktiviert. Dies ermöglicht eine einfache Aktivierung der einzelnen Slave-Geräte, ohne dass das Master- Gerät eine eigene Verbindung zur Aktivierung der einzelnen Slave-Geräte benötigen würde. In a further embodiment, the first slave device in the series circuit is activated by the master device. Additionally or alternatively, the other slave devices are activated by the respective previous slave device in the series circuit. This enables simple activation of the individual slave devices without the master device requiring its own connection for activating the individual slave devices.
In einer Ausführungsform sind die Slave-Geräte dazu ausgebildet, das jeweils nächste Slave-Gerät in der Serienschaltung erst nach dem Erhalten eines Aktivierungsbefehls von dem Master-Gerät zu aktivieren. In einer Ausführungsform wird ein Aktivierungssignal den Slave-Geräten jeweils nur bereitgestellt, bis das jeweilige Slave-Gerät den Geräteidentifikator gespeichert hat. Dadurch kann den Slave-Geräten auf sehr einfache Art signalisiert werden, dass die Inbetriebnahme beendet ist und der normale Betrieb aufgenommen werden soll. In einer weiteren Ausführungsform wird das Aktivierungssignal dem jeweiligen Slave- Gerät über einen Wake-up Eingang des jeweiligen Slave-Geräts bereitgestellt, wobei die Recheneinheit jedes Slave-Gerätes insbesondere sein Aktivierungssignal einlesen können muss. Ein Wake-Up Eingang dient üblicherweise dazu, ein elektronisches Gerät zu wecken bzw. einzuschalten. Wird solch ein Wake-Up Eingang in den Slave-Geräten zum Aktivieren verwendet und kann das Aktivierungssignal von der Recheneinheit ausgewertet werden, können diese in das vorliegende Verfahren integriert werden, ohne dass die Hardware der Slave-Geräte an das Verfahren aufwändig angepasst werden müsste. In one embodiment, the slave devices are configured to activate the next slave device in the series circuit only after receiving an activation command from the master device. In one embodiment, an activation signal is only provided to the slave devices each time until the respective slave device has stored the device identifier. This can be signaled to the slave devices in a very simple way that the commissioning is completed and normal operation is to be recorded. In a further embodiment, the activation signal is provided to the respective slave device via a wake-up input of the respective slave device, wherein the arithmetic unit of each slave device must be able to read in particular its activation signal. A wake-up input is usually used to wake up or turn on an electronic device. If such a wake-up input in the slave devices is used to activate and the activation signal can be evaluated by the computing unit, they can be integrated into the present method, without the hardware of the slave devices would have to be adapted to the process consuming.
In einer weiteren Ausführungsform wird das Verfahren in einem CAN-Bussystem verwen- det. Dies ermöglicht es, das vorliegende Verfahren in einer Vielzahl von Anwendung, z.B. im Automobilbereich, einzusetzen. In einer Ausführungsform sind die Slave-Geräte derart elektrisch in Serie angeordnet, dass die Datenleitungen des CAN-Bussystems ohne Unterbrechung mit jedem der Slave- Geräte gekoppelt sind. Dies ermöglicht die passive Weiterleitung von Daten zwischen dem Master-Gerät und den Slave-Geräten, ohne dass dazu eine dedizierte Logik bzw. Elektronik notwendig wäre, welche die Weiterleitung steuert. In a further embodiment, the method is used in a CAN bus system. This makes it possible to use the present method in a variety of applications, for example in the automotive sector. In one embodiment, the slave devices are electrically connected in series such that the data lines of the CAN bus system are coupled to each of the slave devices without interruption. This allows passive routing of data between the master device and the slave devices without the need for dedicated logic or electronics controlling the routing.
In einer Ausführungsform ist die Slave-Busschnittstelle als CAN-Busschnittstelle ausgebildet. Ferner ist die Aktivierungsschnittstelle als Wake-Up Schnittstelle, insbesondere als Wake-Up Schnittstelle mit TTL-Pegeln, ausgebildet. Werden TTL-Pegel für die Aktivierung genutzt, können Standard-Bauelemente in den Slave-Geräten verwendet werden. In one embodiment, the slave bus interface is designed as a CAN bus interface. Furthermore, the activation interface is designed as a wake-up interface, in particular as a wake-up interface with TTL levels. When TTL levels are used for activation, standard devices can be used in the slave devices.
In einer weiteren Ausführungsform kann ein Neuanlernen (RequestNodelDReassignment) der Geräteidentifikatoren durch das Master-Gerät 2 an alle Slave-Geräte durch das Übermitteln eines spezielles Datensignals über die Busschnittstelle kommandiert werden. Damit bringen sich alle Slave-Geräte in den Initialzustand, so dass die Verfahrensschritte Aktivieren, Übermitteln, Speichern für jeden Slave erneut durchgeführt werden müssen. In another embodiment, re-learning (RequestNodelDReassignment) of the device identifiers may be commanded by the master device 2 to all slave devices by transmitting a special data signal over the bus interface. This brings all slave devices in the initial state, so that the process steps activating, transmitting, saving must be performed again for each slave.
Im Initialzustand ist die Aktivierungsschnittstelle der Slave-Geräte deaktiviert und somit ist die Weiterleitung der Geräteidentifikatoren deaktiviert und die Slave-Geräte sind bereit neue Geräteidentifikatoren zu speichern, ohne diese sofort weiterzuleiten. In the initial state, the activation interface of the slave devices is deactivated and thus the forwarding of the device identifiers is deactivated and the slave devices are ready to store new device identifiers without forwarding them immediately.
In einer weiteren Ausführungsform kann ein Shutdown (RequestShutdown) durch das Master-Gerät an alle Slave-Geräte durch das Übermitteln eines speziellen Datensignals über die Busschnittstelle kommandiert werden. Alle Slave-Geräte antworten so lange zyklisch mit einer Antwort eines Datensignals (ResponseShutdown) an das Master-Gerät bis diese Slave-Geräte im Shutdown sind und die Recheneinheiten der Slave-Geräte stromlos sind. Alternativ zu einem CAN-Bussystem kann in einer Ausführungsform auch ein CANFD (CAN FlexibleDatarate) Bussystem verwendet werden. Dies ist eine neue Variante von CAN. Ferner kann alternativ ein Flexray Bussystem genutzt werden. In a further embodiment, a shutdown (RequestShutdown) can be commanded by the master device to all slave devices by transmitting a special data signal via the bus interface. All slave devices respond cyclically with a response of a data signal (ResponseShutdown) to the master device until these slave devices are in shutdown and the processing units of the slave devices are de-energized. As an alternative to a CAN bus system, in one embodiment, a CANFD (CAN FlexibleDatarate) bus system may also be used. This is a new variant of CAN. Furthermore, alternatively, a Flexray bus system can be used.
Die obigen Ausgestaltungen und Weiterbildungen lassen sich, sofern sinnvoll, beliebig miteinander kombinieren. Weitere mögliche Ausgestaltungen, Weiterbildungen und Implementierungen der Erfindung umfassen auch nicht explizit genannte Kombinationen von zuvor oder im Folgenden bezüglich der Ausführungsbeispiele beschriebenen Merkmalen der Erfindung. Insbesondere wird dabei der Fachmann auch Einzelaspekte als Verbesserungen oder Ergänzungen zu der jeweiligen Grundform der vorliegenden Erfindung hinzufügen. The above embodiments and developments can, if appropriate, combine with each other as desired. Further possible refinements, developments and implementations of the invention also include combinations of. Not explicitly mentioned previously or in the following with respect to the embodiments described features of the invention. In particular, the person skilled in the art will also add individual aspects as improvements or additions to the respective basic form of the present invention.
Das hier dokumentierte Verfahren zur Vergabe von Knoten-IDs wurde bezugnehmend auf das Kommunikationsprotokoll CAN beschrieben. The method for allocating node IDs documented here has been described with reference to the CAN communication protocol.
Der Mechanismus funktioniert in gleicher Weise auch für andere Kommunikationsproto- kolle wie z.B. CAN-FD und FlexRay. Insb. bei FlexRay ist die Implementierung ungleich aufwändiger, da entsprechende notwendige Funktionalität zum Umschalten und The mechanism also works in the same way for other communication protocols, e.g. CAN-FD and FlexRay. Esp. With FlexRay the implementation is unequally more complex, since corresponding necessary functionality for switching and
Umkonfigurieren verschiedener FlexRay-Schedules derzeit nicht durch gängige SW- Architekturen (z.B. AUTOSAR) unterstützt wird. Dennoch kann der Mechanismus durch eigene Treiber abgebildet werden, die zunächst in jedem aktivierten Slave-Gerät ein eigenes Schedule mit dem Master Steuergerät erlauben, bis die Knoten-ID- Vergabe abgeschlossen ist. Nach Abschluss wird auf ein weiteres hinterlegtes Schedule umgeschaltet, welche die Knoten-I D-Vergabe mit dem nächsten Slave nicht stört und der nächste Slave wird aktiviert. Somit ist das beschriebene Verfah- ren ohne Anpassungen auch auf zeitgesteuerte Systeme übertragbar. Reconfigure various FlexRay schedules currently not supported by popular SW architectures (e.g., AUTOSAR). Nevertheless, the mechanism can be represented by its own drivers, which initially allow in each activated slave device its own schedule with the master controller until the node ID assignment is completed. After completion, a switch is made to another stored schedule, which does not disturb the node I D assignment with the next slave and the next slave is activated. Thus, the described method can also be transferred to time-controlled systems without adjustments.
Kurze Beschreibung der Zeichnungen Brief description of the drawings
Die vorliegende Erfindung wird nachfolgend anhand der in den schematischen Figuren der Zeichnungen angegebenen Ausführungsbeispiele näher erläutert. Es zeigen dabei: The present invention will be explained in more detail with reference to the exemplary embodiments indicated in the schematic figures of the drawings. It shows:
Fig. 1 ein Ablaufdiagramm einer Ausführungsform eines erfindungsgemäßen Verfahrens; Fig. 2 ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Master- Geräts; 1 shows a flow chart of an embodiment of a method according to the invention; Fig. 2 is a block diagram of an embodiment of a master device according to the invention;
Fig. 3 ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Slave- Geräts; Fig. 4 ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Bussystems; und 3 is a block diagram of an embodiment of a slave device according to the invention; 4 shows a block diagram of an embodiment of a bus system according to the invention; and
Fig. 5 ein Ablaufdiagramm einer weiteren Ausführungsform eines erfindungsgemäßen Fig. 5 is a flowchart of another embodiment of an inventive
Verfahrens;  process;
Fig. 6 ein Ablaufdiagramm einer weiteren Ausführungsform eines erfindungsgemäßen Fig. 6 is a flowchart of another embodiment of an inventive
Verfahrens.  Process.
In allen Figuren sind gleiche bzw. funktionsgleiche Elemente und Vorrichtungen - sofern nichts Anderes angegeben ist - mit denselben Bezugszeichen versehen worden. In all figures, the same or functionally identical elements and devices - unless otherwise stated - have been given the same reference numerals.
Ausführungsformen der Erfindung Embodiments of the invention
Fig. 1 zeigt ein Ablaufdiagramm einer Ausführungsform eines erfindungsgemäßen Verfahrens. Das erfindungsgemäße Verfahren der Fig. 1 dient zur Vergabe von 1 shows a flow chart of an embodiment of a method according to the invention. The inventive method of FIG. 1 is used for the award of
Geräteidentifikatoren 5 in einem Bussystem 1. Dabei weist das Bussystem 1 ein Master- Gerät 2 und mindestens zwei Slave-Geräte 4-1 - 4-n auf, die mit dem Master-Gerät 2 in einer Serienschaltung gekoppelt sind. Device identifiers 5 in a bus system 1. In this case, the bus system 1, a master device 2 and at least two slave devices 4-1 - 4-n, which are coupled to the master device 2 in a series circuit.
Das Verfahren sieht in einem ersten Schritt S1 das Aktivieren des ersten nicht aktivierten Slave-Geräts 4-1 - 4-n der Serienschaltung von einem Ende der Serienschaltung aus, welches mit dem Master-Gerät 2 gekoppelt ist, vor. In a first step S1, the method provides for activating the first non-activated slave device 4-1 - 4-n of the series circuit from one end of the series circuit which is coupled to the master device 2.
In einem zweiten Schritt S2 sieht das Verfahren das Übermitteln eines in dem Bussystem 1 nicht vergebenen Geräteidentifikators 5 durch das Master-Gerät 2 an das aktivierte Sla- ve-Gerät 4-1 - 4-n vor. In a second step S2, the method provides for the transmission of a device identifier 5 not assigned in the bus system 1 by the master device 2 to the activated slave device 4-1 - 4-n.
In einem dritten Schritt S3 wird der empfangene Geräteidentifikator 5 in dem aktivierten Slave-Gerät 4-1 - 4-n gespeichert. In a third step S3, the received device identifier 5 is stored in the activated slave device 4-1 - 4-n.
Dabei werden die Schritte Aktivieren S1 , Übermitteln S2 und Speichern S3 wiederholt, bis allen Slave-Geräten 4-1 - 4-n ein Geräteidentifikator 5 zugewiesen wurde. Durch das vorliegende Verfahren wird es möglich, die einzelnen Slave-Geräte 4-1 - 4-n der Reihe nach zu aktivieren und ihnen entsprechend ihrer Position in der Serienschaltung einen entsprechenden Geräteidentifikator 5 zuzuweisen. In einer Ausführungsform des Verfahrens sind die Slave-Geräte 4-1 - 4-n bei Inbetriebnahme des Bussystems 1 deaktiviert. Unter deaktiviert ist in diesem Zusammenhang zumindest zu verstehen, dass die Slave-Geräte 4-1 - 4-n keine Kommunikation über das Bussystem 1 durchführen. In einer weiteren Ausführungsform können die Slave-Geräte 4- 1 - 4-n auch in einem Ruhemodus oder Sleep-Mode sein oder abgeschaltet sein, wenn sie deaktiviert sind. The steps of activating S1, transmitting S2 and storing S3 are repeated until a device identifier 5 has been assigned to all slave devices 4-1 - 4-n. The present method makes it possible to activate the individual slave devices 4-1 - 4-n in order and to assign a corresponding device identifier 5 according to their position in the series connection. In one embodiment of the method, the slave devices 4-1 - 4-n are deactivated when the bus system 1 is started up. Under disabled in this context is at least to understand that the slave devices 4-1 - 4-n perform no communication via the bus system 1. In a further embodiment, the slave devices 4-1-4-n may also be in a sleep mode or sleep mode, or turned off when disabled.
In einer Ausführungsform sieht das Verfahren vor, dass das erste Slave-Gerät 4-1 - 4-n in der Serienschaltung direkt durch das Master-Gerät 2 aktiviert wird. Dies ermöglicht es dem Master-Gerät 2, sehr einfach die Inbetriebnahme des Bussystems 1 zu steuern. In one embodiment, the method provides that the first slave device 4-1 - 4-n in the series connection is activated directly by the master device 2. This allows the master device 2, very easy to control the commissioning of the bus system 1.
Es kann in einer Ausführungsform vorgesehen sein, dass nicht das Master-Gerät 2 jedes Slave-Geräte 4-1 - 4-n selbst aktiviert, sondern dass jedes Slave-Gerät 4-1 - 4-n, welches aktiviert wurde, das nächste Slave-Geräte 4-2 - 4-n in der Serienschaltung aktiviert. In einer Ausführungsform des Verfahrens wird den Slave-Geräten 4-1 - 4-n ein Aktivierungssignal 19 immer nur so lange bereitgestellt, bis das jeweilige Slave-Gerät 4-1 - 4-n den Geräteidentifikator 5 gespeichert hat. Das Aktivierungssignal 19 kann dabei insbesondere über einen dedizierten Wake-up Eingang in den Slave-Geräten 4-1 - 4-n bereitgestellt werden. It may be provided in one embodiment that not the master device 2 of each slave device 4-1 - 4-n itself activates, but that each slave device 4-1 - 4-n which has been activated, the next slave Devices 4-2 - 4-n activated in series connection. In one embodiment of the method, the slave devices 4-1 - 4-n are always provided with an activation signal 19 until the respective slave device 4-1 - 4-n has stored the device identifier 5. The activation signal 19 can be provided in particular via a dedicated wake-up input in the slave devices 4-1 - 4-n.
In einer Ausführungsform wird das Verfahren in einem CAN-Bussystem 1 verwendet. In einer solchen Ausführungsform können das Master-Gerät 2 und die Slave-Geräte 4-1 - 4- n jeweils eine CAN-Busschnittstelle aufweisen. Dabei können die Slave-Geräte 4-1 - 4-n in einer Serienschaltung oder auch einer sog. Daisychain angeordnet sein. In one embodiment, the method is used in a CAN bus system 1. In such an embodiment, the master device 2 and the slave devices 4-1 - 4n may each have a CAN bus interface. In this case, the slave devices 4-1 - 4-n can be arranged in a series connection or else a so-called daisy chain.
Dabei sind das Master-Gerät 2 und die Slave-Geräte 4-1 - 4-n in einer Ausführungsform derart in Serie miteinander gekoppelt, dass keine aktiven elektrischen oder elektronischen Bausteine zwischen dem Master-Gerät 2 und dem letzten Slave-Gerät 4-1 - 4-n der Serienschaltung liegen. Ein Signal, welches von einem der Geräte 2 und 4-1 - 4-n auf eine der Signalleitungen des CAN-Bussystems 1 gegeben wird, wird also an allen anderen Geräten 2 und 4-1 - 4-n empfangen. Das Master-Gerät 2 und die Slave-Geräte 4-1 - 4-n können in einer solchen Ausführungsform jeweils mindestens einen CAN-Transceiver und einen CAN-Controller aufweisen, welche die Kommunikation über das CAN-Bussystem 1 steuern. In one embodiment, the master device 2 and the slave devices 4-1 - 4-n are coupled in series in such a way that no active electrical or electronic components are present between the master device 2 and the last slave device 4-1 - 4-n of the series circuit are. A signal which is given by one of the devices 2 and 4-1 - 4-n to one of the signal lines of the CAN bus system 1 is thus received on all other devices 2 and 4-1 - 4-n. In such an embodiment, the master device 2 and the slave devices 4-1 - 4-n can each have at least one CAN transceiver and one CAN controller, which control the communication via the CAN bus system 1.
Ferner kann der Geräteidentifikator 5 in einer solchen Ausführungsform als CAN-ID oder Knoten-ID (in Abhängigkeit der Knoten-ID werden die jeweiligen CAN-IDs definiert) des jeweiligen Slave-Geräts 4-1 - 4-n ausgebildet sein. Wird die vorliegende Erfindung mit einem CAN-Bussystem 1 verwendet, können die einzelnen Geräte 2 und 4-1 - 4-n z.B. Steuergeräte in einem Fahrzeugnetzwerk, z.B. in einem Automobilnetzwerk sein. Beispielsweise kann das Master-Gerät 2 ein Batteriesteuergerät 2 in einem elektrischen Antriebsstrang eines Elektrofahrzeugs sein. Ferner können die Slave-Geräte 4-1 - 4-n Überwachungssteuergeräte 4-1 - 4-n sein, die an einzelnen Zellen einer Traktionsbatterie des Elektrofahrzeugs angeordnet sind. Furthermore, in such an embodiment, the device identifier 5 can be designed as a CAN ID or node ID (depending on the node ID, the respective CAN IDs are defined) of the respective slave device 4-1 - 4-n. When the present invention is used with a CAN bus system 1, the individual devices 2 and 4-1 - 4-n, e.g. Controllers in a vehicle network, e.g. to be in an automobile network. For example, the master device 2 may be a battery control device 2 in an electric drive train of an electric vehicle. Further, the slave devices 4-1 - 4-n may be monitoring controllers 4-1 - 4-n disposed on individual cells of a traction battery of the electric vehicle.
Wurden alle Slave-Geräte 4-1 - 4-n mit Hilfe des vorliegenden Verfahrens in Betrieb genommen, können in der Software des Master-Geräts 2 die jeweiligen CAN-IDs für die unterschiedlichen Applikationen konfiguriert werden. If all slave devices 4-1 - 4-n have been put into operation with the aid of the present method, the respective CAN IDs for the different applications can be configured in the software of the master device 2.
Fig. 2 zeigt ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Master- Geräts 2. FIG. 2 shows a block diagram of an embodiment of a master device 2 according to the invention.
Das Master-Gerät 2 der Fig. 2 weist eine Steuereinrichtung 18 auf, die mit einer Master- Busschnittstelle 15 und mit einer Aktivierungsschnittstelle 16 gekoppelt ist. Über die Aktivierungsschnittstelle 16 kann die Steuereinrichtung 18 ein Aktivierungssignal 17 an ein mit dem Master-Gerät 2 gekoppeltes erstes Slave-Gerät (es kann nur 1 Slave-Gerät an den Master gekoppelt sein) übermitteln. An Slave-Geräte 4-1 - 4-n, die nicht direkt bzw. als erstes der Serienschaltung mit dem Master-Geräte 2 gekoppelt sind, kann das Master-Gerät 2 das Aktivierungssignal in einer Ausführungsform indirekt über ein bereits aktiviertes Slave-Gerät 4-1 - 4-n übermitteln. The master device 2 of FIG. 2 has a control device 18, which is coupled to a master bus interface 15 and to an activation interface 16. Via the activation interface 16, the control device 18 can transmit an activation signal 17 to a first slave device coupled to the master device 2 (only one slave device can be coupled to the master). In slave devices 4-1 - 4-n, which are not coupled directly or as the first of the series circuit with the master devices 2, the master device 2, the activation signal in one embodiment indirectly via an already activated slave device. 4 -1 - transmit 4-n.
In einer Ausführungsform ist die Aktivierungsschnittstelle 16 als eine diskrete digitale Schnittstelle 16 mit TTL-Pegeln ausgebildet. Andere Ausgestaltungen sind ebenfalls möglich. Über die Master-Busschnittstelle 15 kann die Steuereinrichtung 18 Daten auf dem Bussystem 1 kommunizieren. Insbesondere kann die Steuereinrichtung 18 über die Master- Busschnittstelle 15 einen Geräteidentifikator 5 ausgeben und an ein Slave-Gerät 4-1 - 4-n übermitteln. In one embodiment, the activation interface 16 is configured as a discrete digital interface 16 having TTL levels. Other embodiments are also possible. The control device 18 can communicate data on the bus system 1 via the master bus interface 15. In particular, the control device 18 can output a device identifier 5 via the master bus interface 15 and transmit it to a slave device 4-1 - 4-n.
In einer Ausführungsform ist das Bussystem 1 als ein CAN-Bussystem 1 ausgebildet. Ferner ist die Master-Busschnittstelle 15 als CAN-Busschnittstelle 15 ausgebildet. In einer solchen Ausführungsform weist das Master-Gerät 2 einen CAN-Controller und einen CAN-Transceiver auf, um Daten auf dem CAN-Bussystem 1 senden und empfangen zu können. Ferner ist der Geräteidentifikator in einer solchen Ausführungsform z.B. eine CAN-ID in dem CAN-Bussystem 1 . In one embodiment, the bus system 1 is designed as a CAN bus system 1. Furthermore, the master bus interface 15 is designed as a CAN bus interface 15. In such an embodiment, the master device 2 has a CAN controller and a CAN transceiver in order to be able to transmit and receive data on the CAN bus system 1. Furthermore, the device identifier in such an embodiment is e.g. a CAN ID in the CAN bus system 1.
Fig. 3 zeigt ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Slave- Geräts 4-1 . 3 shows a block diagram of an embodiment of a slave device 4-1 according to the invention.
Das Slave-Gerät 4-1 weist eine Recheneinrichtung 22 auf, die mit einer Slave- Busschnittstelle 20 und mit einer Aktivierungsschnittstelle 21 gekoppelt ist. The slave device 4 - 1 has a computing device 22, which is coupled to a slave bus interface 20 and to an activation interface 21.
Die Aktivierungsschnittstelle 21 des Slave-Geräts 4-1 dient dazu, einem weiteren Slave- Gerät 4-2 - 4-n das Aktivierungssignal 17 zu übermitteln, wenn das Master-Gerät 2 nicht mit jedem der Slave-Geräte 4-1 - 4-n direkt gekoppelt ist. Insbesondere kann z.B. das Slave-Gerät 4-1 über die Slave-Busschnittstelle 20 von dem Master-Gerät 2 angewiesen werden, das Aktivierungssignal 17 auszugeben. Dabei kann die Aktivierungsschnittstelle 21 in einer Ausführungsform als eine diskrete digitale Schnittstelle 21 mit TTL-Pegeln ausgebildet sein. The activation interface 21 of the slave device 4-1 serves to transmit the activation signal 17 to another slave device 4-2 - 4-n if the master device 2 is not connected to each of the slave devices 4-1 - 4-n. n is directly coupled. In particular, e.g. the slave device 4-1 are instructed by the master device 2 via the slave bus interface 20 to output the activation signal 17. In this case, in one embodiment, the activation interface 21 can be embodied as a discrete digital interface 21 with TTL levels.
Die Slave-Busschnittstelle 20 kann in einer Ausführungsform als CAN-Busschnittstelle 20 ausgebildet sein und der Recheneinrichtung 22 ermöglichen, Daten mit dem Master-Gerät 2 und anderen Slave-Geräten 4-1 - 4-n auszutauschen. In einer solchen Ausführungsform weist das Slave-Gerät 4-1 einen CAN-Controller und einen CAN-Transceiver auf, um Daten auf dem CAN-Bussystem 1 senden und empfangen zu können. Ferner ist der Geräteidentifikator in einer solchen Ausführungsform z.B. eine CAN-ID in dem CAN- Bussystem 1 . Fig. 4 zeigt ein Blockschaltbild einer Ausführungsform eines erfindungsgemäßen Bussystems 1. Das Bussystem 1 der Fig. 4 ist als ein CAN-Bussystem 1 ausgebildet, in welchem einThe slave bus interface 20 may in one embodiment be configured as a CAN bus interface 20 and allow the computing device 22 to exchange data with the master device 2 and other slave devices 4-1 - 4-n. In such an embodiment, the slave device 4-1 has a CAN controller and a CAN transceiver in order to be able to transmit and receive data on the CAN bus system 1. Furthermore, the device identifier in such an embodiment, for example, a CAN-ID in the CAN bus system. 1 4 shows a block diagram of an embodiment of a bus system 1 according to the invention. The bus system 1 of FIG. 4 is designed as a CAN bus system 1, in which a
Master-Gerät 2 mit einer Vielzahl von Slave-Geräten 4-2 - 4-n gekoppelt ist. In Fig. 4 sind lediglich die Slave-Geräte 4-2, 4-3, 4-4 und 4-n dargestellt. Weitere Slave-Geräte sind durch drei Punkte zwischen Slave-Geräten 4-4 und 4-n dargestellt. Der CAN-Bus der Fig. 4 weist zwei Datenleitungen CAN_H und CAN_L auf. Da es sich bei einem CAN-Bus um ein differentielles Bussystem handelt transportiert eine der beiden Datenleitungen das hohe und die andere das niedrige Signal. Folglich steht die Abkürzung CAN_H für CAN HIGH und die Abkürzung CAN_L für CAN LOW. In dem Master-Gerät 2 und den Slave-Geräten 4-2 - 4-n der Fig. 4 sind die Busschnittstellen 15, 20 und die Aktivierungsschnittstellen 16, 21 jeweils zusammengefasst. Beispielsweise könnten die einzelnen Signale auf unterschiedliche Pins eines Steckers gelegt werden. In Fig. 4 wird neben den Datenleitungen und einer Leitung für das Aktivierungssignal 17 ferner eine VDD5 Leitung zwischen den einzelnen Geräten 2, 4-2 - 4-n geführt. Diese Leitung kann in einer Ausführungsform eine Versorgungsspannung von 5 V führen, die der Master für die Slave-Geräte 4-1 - 4-n aktivieren kann. Master device 2 is coupled to a plurality of slave devices 4-2 - 4-n. In Fig. 4, only the slave devices 4-2, 4-3, 4-4 and 4-n are shown. Other slave devices are represented by three dots between slave devices 4-4 and 4-n. The CAN bus of FIG. 4 has two data lines CAN_H and CAN_L. Since a CAN bus is a differential bus system, one of the two data lines carries the high signal and the other the low signal. Consequently, the abbreviation CAN_H stands for CAN HIGH and the abbreviation CAN_L stands for CAN LOW. 4, the bus interfaces 15, 20 and the activation interfaces 16, 21 are each combined. For example, the individual signals could be applied to different pins of a connector. 4, in addition to the data lines and a line for the activation signal 17, a VDD5 line is further routed between the individual devices 2, 4-2 - 4-n. This line may in one embodiment carry a supply voltage of 5V, which the master may activate for the slave devices 4-1 - 4-n.
In der Slave-Busschnittstelle 20 des Slave-Geräts 4-3 ist dargestellt, wie die Slave- Busschnittstelle 20 ausgeführt sein kann. Es ist zu sehen, dass die eingehenden Datenlei- tungen des CAN-Bussystems 1 direkt mit den ausgehenden Datenleitungen des CAN- Bussystems 1 gekoppelt sind. Das Master-Gerät 2 ist also direkt mit allen Slave-Geräten 4-2 - 4-n gekoppelt, ohne dass aktive Bauelemente in der Signalstrecke liegen würden. Der CAN-Transceiver der Slave-Geräte 4-2 - 4-n kann in einer Ausführungsform mit diesen Datenleitungen gekoppelt sein, um Daten von dem CAN-Bus zu empfangen oder auf diesem auszugeben. In the slave bus interface 20 of the slave device 4-3 is shown how the slave bus interface 20 may be executed. It can be seen that the incoming data lines of the CAN bus system 1 are coupled directly to the outgoing data lines of the CAN bus system 1. The master device 2 is thus directly coupled to all slave devices 4-2 - 4-n without active components would be in the signal path. The CAN transceiver of the slave devices 4-2 - 4-n may in one embodiment be coupled to these data lines to receive or output data from the CAN bus.
Fig. 5 zeigt ein Ablaufdiagramm einer weiteren Ausführungsform eines erfindungsgemäßen Verfahrens, wie es z.B. mit dem Bussystem der Fig. 4 durchgeführt werden kann. In Fig. 5 ist der zeitliche Verlauf der Signale für einen Master und zwei Slaves Slave 1 und Slave 2 dargestellt. Der Master stellt ein Master-Gerät 2 gemäß der vorliegenden Erfin- dung dar. Ferner stellen Slave 1 und Slave 2 jeweils ein Slave-Gerät 4-1 - 4-n gemäß der vorliegenden Erfindung dar. 5 shows a flowchart of a further embodiment of a method according to the invention, as can be carried out, for example, with the bus system of FIG. 4. In Fig. 5 the timing of the signals for a master and two slaves slave 1 and slave 2 is shown. The master provides a master device 2 according to the present invention. Further, slave 1 and slave 2 each represent a slave device 4-1 - 4-n according to the present invention.
Da in Fig. 5 lediglich der Slave 1 aktiviert wird, findet keine Kommunikation mit Slave 2 statt. Die Aktivierung von Slave 2 ist in Fig. 6 dargestellt. Since only the slave 1 is activated in FIG. 5, no communication with slave 2 takes place. The activation of slave 2 is shown in FIG.
Zuerst aktiviert der Master 2 Versorgungsspannung (VDD5 - HIGH) von 5 V über die Leitung VDD5_OUT (siehe Fig. 4). Als nächstes setzt der Master die Leitung WAKE-UP auf einen niedrigen Signalpegel, woraufhin Slave 1 mit dem Bootprozess bzw. dem Start-Up beginnt. Ist Slave 1 gestartet, übermittelt dieser über den CAN-Bus des CAN-Bussystems 1 eine Botschaft, die dem Master signalisiert, dass Slave 1 für die Initialisierung bereit ist (CAN - Ready). Daraufhin übermittelt der Master einen Geräteidentifikator 5 an Slave 1 (CAN - Assign ID). Diese Übermittlung bestätigt der Slave 1 dem Master (CAN - Confirm ID). Damit ist für den Master die Initialisierung des Slave 1 abgeschlossen und der Master setzt die WAKE-UP Leitung wieder auf einen hohen Signalpegel (WAKE-UP HIGH). Der Master überprüft nun noch, ob die Initialisierung von Slave 1 abgeschlossen ist (CAN - Assign finished), was der Slave 1 bestätigt (CAN - Confirm finished). First, the master 2 activates supply voltage (VDD5 - HIGH) of 5V via the line VDD5_OUT (see Fig. 4). Next, the master sets the line WAKE-UP to a low signal level, whereupon slave 1 starts the boot process or start-up. If slave 1 is started, it transmits via the CAN bus of the CAN bus system 1 a message which signals to the master that slave 1 is ready for initialization (CAN ready). The master then transmits a device identifier 5 to slave 1 (CAN Assign ID). Slave 1 confirms this transmission to the master (CAN - Confirm ID). This completes the initialization of slave 1 for the master and the master resets the WAKE-UP line to a high signal level (WAKE-UP HIGH). The master now checks whether the initialization of slave 1 has been completed (CAN - Assign finished), which the slave 1 confirms (CAN - Confirm finished).
In Fig. 6 ist dargestellt, wie im Anschluss an die Initialisierung von Slave 1 der Slave 2 in i- tialisiert wird. FIG. 6 shows how, following initialization of slave 1, slave 2 is initialized.
Dazu sendet der Master dem Slave 1 eine Botschaft über den CAN-Bus (CAN - Start next assign), die diesen veranlasst, das Aktivierungssignal 17 auszugeben (WAKEP-UP - LOW). Die folgende Kommunikation auf dem CAN-Bus findet zwischen Master und dem zu initialisierenden Slave 2 statt. For this purpose, the master sends the slave 1 a message via the CAN bus (CAN - start next assign), which causes them to output the activation signal 17 (WAKEP-UP - LOW). The following communication on the CAN bus takes place between the master and the slave 2 to be initialized.
Die Sequenz ist die gleiche, wie zwischen Master und Slave 1 . The sequence is the same as between master and slave 1.
Slave 2 beginnt mit dem Bootprozess bzw. dem Start-Up. Ist Slave 2 gestartet, übermittelt dieser über den CAN-Bus des CAN-Bussystems 1 eine Botschaft, die dem Master signalisiert, dass Slave 2 für die Initialisierung bereit ist (CAN - Ready). Daraufhin übermittelt der Master einen Geräteidentifikator 5 an Slave 2 (CAN - Assign ID). Diese Übermittlung bestätigt der Slave 2 dem Master (CAN - Confirm ID). Damit ist für den Master die Initialisierung des Slave 2 abgeschlossen. Nun übermittelt der Master wieder an Slave 1 ein Signal (CAN - Stop assign), welches diesen Veranlasst, die WAKE-UP Leitung wieder auf einen hohen Signalpegel (WAKE-UP HIGH) zu setzen. Der Master überprüft nun noch, ob die Initialisierung von Slave 2 abgeschlossen ist (CAN - Assign finished), was der Slave 2 bestätigt (CAN - Confirm finished). Slave 2 starts with the boot process or the start-up. If slave 2 is started, it transmits via the CAN bus of the CAN bus system 1 a message which signals to the master that slave 2 is ready for initialization (CAN ready). The master then transmits a device identifier 5 to slave 2 (CAN Assign ID). Slave 2 confirms this transmission to the master (CAN - Confirm ID). This completes the initialization of slave 2 for the master. Now the master again transmits to slave 1 a signal (CAN - Stop assign), which causes it to set the WAKE-UP line again to a high signal level (WAKE-UP HIGH). The master now checks whether the initialization of slave 2 has been completed (CAN - Assign finished), which the slave 2 confirms (CAN - Confirm finished).
Obwohl die vorliegende Erfindung anhand bevorzugter Ausführungsbeispiele vorstehend beschrieben wurde, ist sie darauf nicht beschränkt, sondern auf vielfältige Art und Weise modifizierbar. Insbesondere lässt sich die Erfindung in mannigfaltiger Weise verändern oder modifizieren, ohne vom Kern der Erfindung abzuweichen. Although the present invention has been described above with reference to preferred embodiments, it is not limited thereto, but modifiable in a variety of ways. In particular, the invention can be varied or modified in many ways without deviating from the gist of the invention.

Claims

Ansprüche claims
1 . Verfahren zum Vergeben von Geräteidentifikatoren (5) in einem Bussystem (1 ) mit einem Master-Gerät (2) und mit diesem in einer Serienschaltung gekoppelten min- destens zwei Slave-Geräten (4-1 - 4-n), mit den Schritten: 1 . Method for assigning device identifiers (5) in a bus system (1) to a master device (2) and to at least two slave devices (4-1 - 4-n) connected in series therewith, comprising the steps of:
Aktivieren (S1 ) des ersten nicht aktivierten Slave-Geräts (4-1 - 4-n) der Serienschaltung von einem Ende der Serienschaltung aus, welches mit dem Master-Gerät (2) gekoppelt ist; Activating (S1) the first non-activated slave device (4-1 - 4-n) of the series circuit from one end of the series circuit coupled to the master device (2);
Übermitteln (S2) eines in dem Bussystem (1 ) nicht vergebenen Geräteidentifikators (5) durch das Master-Gerät (2) an das aktivierte Slave-Gerät (4-1 - 4-n); Transmitting (S2) a device identifier (5) not assigned in the bus system (1) by the master device (2) to the activated slave device (4-1 - 4-n);
Speichern (S3) des empfangenen Geräteidentifikators (5) in dem aktivierten Slave-Gerät (4-1 - 4-n); wobei die Schritte Aktivieren (S1 ), Übermitteln (S2) und Speichern (S3) wiederholt werden, bis allen Slave-Geräten (4-1 - 4-n) ein Geräteidentifikator (5) zugewiesen wurde. Storing (S3) the received device identifier (5) in the activated slave device (4-1 - 4-n); wherein the steps of activating (S1), transmitting (S2) and storing (S3) are repeated until a device identifier (5) has been assigned to all the slave devices (4-1 - 4-n).
2. Verfahren nach Anspruch 1 , wobei die Slave-Geräte (4-1 - 4-n) bei Inbetriebnahme des Bussystems (1 ) deaktiviert sind; und wobei das erste Slave-Gerät (4-1 - 4-n) in der Serienschaltung durch das Master-Gerät (2) aktiviert wird und die weiteren Slave-Geräte (4-1 - 4-n) durch das jeweils vorherige Slave- Gerät (4-1 - 4-n) in der Serienschaltung aktiviert werden. 2. The method of claim 1, wherein the slave devices (4-1 - 4-n) are disabled during commissioning of the bus system (1); and wherein the first slave device (4-1 - 4-n) in the series circuit is activated by the master device (2) and the further slave devices (4-1 - 4-n) by the respective previous slave device Device (4-1 - 4-n) are activated in the series circuit.
3. Verfahren nach einem der vorherigen Ansprüche 1 und 2, wobei ein Aktivierungssignal (17) den Slave-Geräten (4-1 - 4-n) jeweils nur bereitgestellt wird, bis das jeweilige Slave-Gerät (4-1 - 4-n) den Geräteidentifikator (5) gespeichert hat. 3. The method according to any one of the preceding claims 1 and 2, wherein an activation signal (17) the slave devices (4-1 - 4-n) is only provided in each case until the respective slave device (4-1 - 4-n ) has stored the device identifier (5).
4. Verfahren nach Anspruch 3, wobei das Aktivierungssignal (17) dem jeweiligen Slave-Gerät (4-1 - 4-n) über einen Wa- ke-up Eingang (21 ) des jeweiligen Slave-Geräts (4-1 - 4-n) bereitgestellt wird. 4. Method according to claim 3, wherein the activation signal (17) is sent to the respective slave device (4-1 - 4-n) via a load-up input (21) of the respective slave device (4-1 - 4). n) is provided.
5. Verfahren nach einem der Ansprüche 1 bis 4, wobei das Verfahren in einem CAN-Bussystem (1 ) verwendet wird; und wobei die Slave-Geräte (4-1 - 4-n) derart elektrisch in Serie angeordnet sind, dass die Datenleitungen des CAN-Bussystems (1 ) ohne Unterbrechung mit jedem der Slave-Geräte (4-1 - 4-n) gekoppelt sind. 5. The method according to any one of claims 1 to 4, wherein the method is used in a CAN bus system (1); and wherein the slave devices (4-1 - 4-n) are electrically connected in series such that the data lines of the CAN bus system (1) are coupled without interruption to each of the slave devices (4-1 - 4-n) are.
6. Master-Gerät (2) für ein Bussystem (1 ), mit einer Master-Busschnittstelle (15), welche dazu ausgebildet ist, das Master-Gerät (2) über das Bussystem (1 ) mit mindestens zwei in einer Serienschaltung gekoppelten Slave- Geräten (4-1 - 4-n) zu koppeln; mit einer Aktivierungsschnittstelle (16), welche dazu ausgebildet ist, ein Aktivierungssignal (17) an ein mit dem Master-Gerät (2) gekoppeltes Slave-Gerät (4-1 - 4-n) zu übermitteln; mit einer Steuereinrichtung (18), welche dazu ausgebildet ist, beim Inbetriebnehmen des Bussystems (1 ) der Reihe nach jeweils das erste nicht aktivierte Slave-Gerät (4-1 - 4-n) der Serienschaltung von einem Ende der Serienschaltung aus, welches mit dem Master- Gerät (2) gekoppelt, ist zu aktivieren und diesem aktivierten Slave-Gerät (4-1 - 4-n) einen in dem Bussystem (1 ) nicht vergebenen Geräteidentifikator (5) über die Master- Busschnittstelle (15) zu übermitteln, bis alle Slave-Geräte (4-1 - 4-n) aktiviert sind. 6. master device (2) for a bus system (1), with a master bus interface (15), which is adapted to the master device (2) via the bus system (1) with at least two slaves coupled in a series circuit To couple devices (4-1 - 4-n); an activation interface (16) adapted to transmit an activation signal (17) to a slave device (4-1 - 4-n) coupled to the master device (2); with a control device (18), which is designed, when commissioning the bus system (1) in turn in each case the first non-activated slave device (4-1 - 4-n) of the series circuit of one end of the series circuit of which is coupled to the master device (2), to activate and this activated slave device (4-1 - 4-n) in the bus system (1) not assigned device identifier (5) via the master bus interface (15) to transmit until all slave devices (4-1 - 4-n) are activated.
7. Master-Gerät nach Anspruch 6, wobei das Bussystem (1 ) als ein CAN-Bus (1 ) ausgebildet ist; und wobei die Master-Busschnittstelle (15) eine CAN-Busschnittstelle ist. 7. master device according to claim 6, wherein the bus system (1) as a CAN bus (1) is formed; and wherein the master bus interface (15) is a CAN bus interface.
8. Slave-Gerät (4-1 - 4-n) für ein Bussystem (1 ), mit einer Slave-Busschnittstelle (20-1 - 20-n) und mit einer Aktivierungsschnittstelle (21 -1 - 21 -n), welche dazu ausgebildet ist, ein Aktivierungssignal (17) an ein weiteres Slave- Gerät (4-1 - 4-n) zu übermitteln, wobei nach dem Start des Slave-Geräts (4-1 - 4-n) die Aktivierungsschnittstelle kein Aktivierungssignal (17) ausgibt; mit einer Recheneinrichtung (22), welche dazu ausgebildet ist, ein Aktivierungssignal (17) über die Aktivierungsschnittstelle (21 -1 - 21 -n) auszugeben, nachdem die Recheneinrich- tung (22) über die Slave-Busschnittstelle (20-1 - 20-n) einen Geräteidentifikator (5) empfangen hat und wenn die Recheneinrichtung (22) von einem Master-Gerät (2) einen Aktivierungssignalbefehl (19) erhält. 8. Slave device (4-1 - 4-n) for a bus system (1), with a slave bus interface (20-1 - 20-n) and with an activation interface (21 -1 - 21 -n), which is configured to transmit an activation signal (17) to another slave device (4-1 - 4-n), wherein after the start of the slave device (4-1 - 4-n) the activation interface does not receive an activation signal (17 ) outputs; with a computing device (22), which is designed to output an activation signal (17) via the activation interface (21 -1 - 21 -n), after the computing device (22) via the slave bus interface (20-1 - 20 -n) has received a device identifier (5) and when the computing device (22) receives an activation signal command (19) from a master device (2).
9. Slave-Gerät nach Anspruch 8, wobei das Bussystem (1 ) als ein CAN-Bus (1 ) ausgebildet ist; und wobei die Slave-Busschnittstelle (20-1 - 20-n) als CAN-Busschnittstelle (20-1 - 20-n) ausgebildet ist und die Aktivierungsschnittstelle (23-1 - 23-n) als Wake-Up Schnittstelle, ins- besondere als Wake-Up (23-1 - 23-n) Schnittstelle mit TTL-Pegeln, ausgebildet ist; und wobei die Recheneinrichtung (22) dazu ausgebildet ist, diesen Aktivierungssignalbefehl (19) auszuwerten. 9. Slave device according to claim 8, wherein the bus system (1) as a CAN bus (1) is formed; and wherein the slave bus interface (20-1 - 20-n) is designed as a CAN bus interface (20-1 - 20-n) and the activation interface (23-1 - 23-n) as a wake-up interface, in particular special as Wake-Up (23-1 - 23-n) interface with TTL levels, is formed; and wherein the computing device (22) is configured to evaluate this activation signal command (19).
10. Bussystem (1 ), mit einem Master-Gerät (2) nach einem der Ansprüche 6 und 7; mit einer Vielzahl von Slave-Geräten (4-1 - 4-n) nach einem der Ansprüche 8 und 9; wobei die Slave-Geräte (4-1 - 4-n) derart elektrisch in Serie angeordnet sind, dass die Datenleitungen des Bussystems (1 ) ohne Unterbrechung mit jedem der Slave-Geräte (4-1 - 4-n) gekoppelt sind. 10. bus system (1), with a master device (2) according to any one of claims 6 and 7; with a plurality of slave devices (4-1 - 4-n) according to one of claims 8 and 9; wherein the slave devices (4-1 - 4-n) are electrically connected in series such that the data lines of the bus system (1) are coupled without interruption to each of the slave devices (4-1 - 4-n).
PCT/EP2014/075912 2013-12-20 2014-11-28 Method for assigning device identifiers in a bus system, master device, slave device, and bus system WO2015090904A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
DE102013227048.8A DE102013227048A1 (en) 2013-12-20 2013-12-20 Method for assigning device identifiers in a bus system, master device, slave device and bus system
DE102013227048.8 2013-12-20

Publications (1)

Publication Number Publication Date
WO2015090904A1 true WO2015090904A1 (en) 2015-06-25

Family

ID=52014038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2014/075912 WO2015090904A1 (en) 2013-12-20 2014-11-28 Method for assigning device identifiers in a bus system, master device, slave device, and bus system

Country Status (3)

Country Link
DE (1) DE102013227048A1 (en)
FR (1) FR3015825B1 (en)
WO (1) WO2015090904A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923073A (en) * 2021-09-30 2022-01-11 深圳硕日新能源科技有限公司 Method for distributing ID (identity) to CAN (controller area network) bus and CAN bus system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102018210061A1 (en) * 2018-06-21 2019-12-24 Robert Bosch Gmbh I3C slave interface, integrated circuit with an I3C slave interface and method for operating an I3C slave interface

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3736081A1 (en) * 1987-10-24 1989-05-03 Licentia Gmbh Method and device for setting the addresses of subscribers connected to a bus
DE19647668A1 (en) * 1996-11-19 1998-05-28 Bosch Gmbh Robert Slave station, master station, BUS system and method for operating a BUS system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3736081A1 (en) * 1987-10-24 1989-05-03 Licentia Gmbh Method and device for setting the addresses of subscribers connected to a bus
DE19647668A1 (en) * 1996-11-19 1998-05-28 Bosch Gmbh Robert Slave station, master station, BUS system and method for operating a BUS system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JAN POLFLIET ET AL: "CAN for energy efficiency in cars", 13 March 2012 (2012-03-13), XP055168754, Retrieved from the Internet <URL:http://www.can-cia.org/fileadmin/cia/files/icc/13/polfliet.pdf> [retrieved on 20150210] *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923073A (en) * 2021-09-30 2022-01-11 深圳硕日新能源科技有限公司 Method for distributing ID (identity) to CAN (controller area network) bus and CAN bus system
CN113923073B (en) * 2021-09-30 2023-05-16 深圳硕日新能源科技有限公司 Method for distributing ID (identity) to CAN (controller area network) bus and CAN bus system

Also Published As

Publication number Publication date
FR3015825B1 (en) 2018-09-07
FR3015825A1 (en) 2015-06-26
DE102013227048A1 (en) 2015-06-25

Similar Documents

Publication Publication Date Title
EP1332588B1 (en) Data bus, particularly in vehicles
EP2287689A1 (en) Apparatus and method for addressing a slave unit
DE102017123252A1 (en) Software update method and apparatus for vehicle
DE102018111976B3 (en) Light-emitting diode driver, light-emitting diode module and corresponding system
EP2090031A2 (en) Method and arrangement for communication on an lin bus
EP2491492B1 (en) Automation system and method for operating an automation system
DE10225578A1 (en) Activating application-executing device in motor vehicle using controller area network bus, by supplying voltage to protocol controller unit if there is incoming message on bus
EP3298730B1 (en) Bus system and method for assigning addresses of bus components of a bus system
WO2015090904A1 (en) Method for assigning device identifiers in a bus system, master device, slave device, and bus system
DE102021104422A1 (en) Method for operating a communication system, communication system and computing system
DE102009010964B3 (en) Electrical/electronic installation device for use in building, has waking recognition device generating waking signal based on application specific-waking telegram, where telegram uses one-bit-information as waking signal
DE10206657A1 (en) Actuator-sensor interface with extended operation capabilities has an idle state and a special function state into which it can be switched in an event dependent manner
DE102008004798A1 (en) User configuring arrangement for use in bus linked system of industrial switchgear, has module requested by master to begin configuration process, included in bus, where module provides information about configuration of users in bus
EP2587772A1 (en) Method for producing a communication connection between a programming device and an automation technology field device
EP3387799A1 (en) Bus assembly and method for operating a bus assembly
EP3047635B1 (en) Field bus coupler for connecting modules to a field bus and method for addressing such modules
EP2241062B1 (en) Group master communication system and method for serially transmitting data in automation systems
EP1734455B1 (en) Addressing a slave unit in a master slave system
DE102013211655B4 (en) Flexible power supply for an interface element
DE102006019451A1 (en) Interchangeable communication and control device for the transparent processing of data in the current data exchange
EP3439245A1 (en) Data transmission method between a rotary input type encoder and a motor control device or an evaluation unit
WO2016026623A1 (en) Switch unit, ethernet network, and method for activating components in an ethernet network
EP3915227B1 (en) Transmitting/receiving device for a subscriber station of a serial bus system, and method for communication in a serial bus system
EP2911309B1 (en) Radio and method of transmitting information
DE102011083001B4 (en) Subscriber of a communication network and method for deterministic transmission over a communication medium of the communication network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14808897

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14808897

Country of ref document: EP

Kind code of ref document: A1