WO2005053236A1 - Auto-configured lin bus nodes - Google Patents

Auto-configured lin bus nodes Download PDF

Info

Publication number
WO2005053236A1
WO2005053236A1 PCT/IB2004/003887 IB2004003887W WO2005053236A1 WO 2005053236 A1 WO2005053236 A1 WO 2005053236A1 IB 2004003887 W IB2004003887 W IB 2004003887W WO 2005053236 A1 WO2005053236 A1 WO 2005053236A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
lln
bus
modules
current
Prior art date
Application number
PCT/IB2004/003887
Other languages
French (fr)
Inventor
Henri Vanderhenst
Original Assignee
Melexis Nv
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 Melexis Nv filed Critical Melexis Nv
Publication of WO2005053236A1 publication Critical patent/WO2005053236A1/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/40032Details regarding a bus interface enhancer
    • 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/403Bus networks with centralised control, e.g. polling
    • 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/40234Local Interconnect Network LIN
    • 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/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Definitions

  • the invention relates to electronic devices and more specifically to electronic devices used within systems conforming to the L N Bus standard.
  • LLN Bus is a name given to an open protocol defined for use in communicating between a number of distributed modules. Many applications of the LLN Bus are targeted specifically at the automotive industry.
  • each module contains an interface circuit, usually implemented as a single integrated circuit, which interfaces to the common signal conductor or bus and handles the protocols associated with the messages and the required responses.
  • Each module in a system has a unique identity, LD, within the system, which enables a bus master to communicate with a selected module or a group of modules within the system.
  • LD unique identity
  • all the modules within a LLN Bus system are connected in parallel. That is they share a bus across which all messages and communications are sent and received.
  • Each module has a pull up resistor and an active pull down transistor. Message initiation is asynchronous and message collisions are resolved by arbitration means. Since a pull down or active state, will take precedence over a pull up, or recessive state, any transmitting module seeing an active state when transmitting a recessive state knows that another module is transmitting. Under such circumstances the module transmitting the active state takes precedence and any other modules must cede the bus and try again later. Each module is assumed to be preconfigured before installation with its own unique LD.
  • the electronic interface between the bus and the modules is altered.
  • the system incorporates extended capability modules capable of being configured wherein each extended capability module has two connections to the bus, the normal modules having only one connection to the bus.
  • the bus is made discontinuous at each extended capability module and one connection is made to each side of the discontinuity.
  • Extended capability modules are thus connected in a daisy chain configuration whilst normal modules are connected to the bus as before.
  • the extended capability modules maintain signal continuity along the bus but introduce a nominal (approximately one ohm) series resistance per extended capability module. Ln such a system all the modules are identical and so in a specific application the position of the module within the daisy chain defines the loads and sensors connected to said module.
  • Extended capability modules are manufactured in a non-configured state but can be configured after installation. Ln a non-configured state a module has no identification (LD) and cannot be selectively communicated with.
  • LD identification
  • all non-configured extended capability modules respond to a configuration request message transmitted onto the bus by a bus master, by tiirning off their pull down transistors and forcing a current through their pull up transistor onto the common signal conductor. These forced currents will flow along the common signal conductor to the bus master which has its pull down transistor turned on.
  • every non-configured extended capability module except one will see a voltage across the nominal one ohm series resistance introduced at each extended capability module. The exception is the module furthest from the master as defined by the daisy chaining connections.
  • This non-configured extended capability module is thus uniquely identified and enables itself for programming of an LD within the system. The procedure can be repeated until all non-configured extended capability modules are configured with an LD.
  • a reconfigurable extended capability module said reconfigurable module having means for being configured with an LD and also having embedded within it at the manufacturing stage a unique Identification Code, CLN, for use during a configuring operation.
  • CLN unique Identification Code
  • Non-configured reconfigurable modules which are not currently selected monitor the current through their series resistors to determine that a selected module is responding.
  • Each non-configured reconfigurable module maintains a position counter. The position counter is incremented each time a voltage is detected across the series resistor of a module indicating that the selected module responding with a forced current is further from the master than the module incrementing its counter. The position counter within any non-configured reconfigurable module will not be incremented when that non-configured extended capability module is itself the selected device.
  • Once an non-configured reconfigurable module has been selected it is no longer considered non-configured and remains unresponsive to further configuration requests and with its position counter fixed showing its position in the daisy chain.
  • Once all non-configured extended capability modules have been selected each will have a position counter showing a unique position for that module within the daisy chain. This unique position counter value can be used to select a module and configure it for use in the system.
  • a LLN bus system comprising a plurality of modules linked to a LLN bus along which electronic data or instructions can be sent to and from each said module, a number of said modules being non-configured and having a unique code associated therewith but having no unique identification address associated therewith, said system further including configuration means which interrogates said modules and detects the unique code of said non-configured modules, said configuration means selecting one non- configured module to act as a current sink and selecting every other non-configured module in turn, to act as a current source, the selected current source module forcing a current onto the bus, which is conducted to the current sink module wherein each said non-configured module further comprises means for detecting said current and a counter which is incremented or decremented on each occasion the module detects said current flowing between a selected current source and the current sink.
  • each non-configured module is a slave node.
  • each said non-configured module is a reconfigurable module having means for being configured with an LD and also having embedded within it at the manufacturing stage a fixed unique Chip Identification Code (CLN) for use during a configuring operation.
  • CLN Chip Identification Code
  • each said non-configured module is a module compatible with the LLN Bus Standard.
  • each said module is connected to the LIN bus by a pair of LLN Bus interface pins, said LLN bus interface pins being connected by a series resistor.
  • the pair of LLN bus interface pins are connected to the bus such that the pins are connected on either side of a discontinuity in the bus.
  • the series resistor is a 1 ohm or similar value resistor. In this manner the modules may be connected as a daisy chain of slave nodes on the LLN Bus.
  • Preferably said modules may detect the flow of current along the bus by monitoring a voltage drop across their series resistors.
  • said module further comprises a pull up resistor and additionally a current source for forcing a pull up current onto one of the bus interface pins.
  • said module further comprises a transistor for sinking said pull up current.
  • said pull up current is of a magnitude of 80-100 milliamps, such as to generate 80-100 millivolts across a one ohm resistor.
  • said reconfigurable modules are connected in a daisy chain manner and standard LLN Bus arbitration rules apply for selecting modules from the daisy chain.
  • said pull up current only flows whilst said module is selected.
  • said module further comprises a random code generator for generating a random code of a plurality of bits in length to identify the module as an alternative to the CLN code.
  • the number of bits in the code is chosen to minimize the possibility of two modules having the same random code.
  • said LLN Bus system comprises a plurality of non-configured reconfigurable modules connected together in a daisy chain manner. Additionally, a plurality of standard LLN bus modules may also be connected to the bus. n order to configure each of the non-configured reconfigurable modules in a desired manner it is necessary to identify the position of each of the non-configured reconfigurable modules on the bus.
  • the bus master interrogates all non-configured reconfigurable modules which each respond by transmitting a reply consisting of their unique code.
  • standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected. This module will act as a current sink.
  • the bus master then re-interrogates all non-configured reconfigurable modules, all of which except the sink module respond by transmitting a reply consisting of their unique code.
  • standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
  • This module will now act as a current source.
  • the selected source module then forces a current onto the bus, which is conducted to the sink module.
  • Non-configured reconfigurable modules positioned between the source and the sink detect the flow of this current through their series resistors and increment or decrement their counters accordingly. This is then repeated until each module, except the current sink module, has been selected to act as the current source module.
  • each modules counter is incremented on each occasion that a current is detected in its series resistor flowing in a first direction and decremented on each occasion that a current is detected in its series resistor flowing in a second direction, said second direction being opposite to said first direction.
  • the position counter on particular non-configured reconfigurable module is not incremented or decremented when the particular non-configured reconfigurable module is itself the source module.
  • the position counter of each module holds a unique value indicative of its position in the daisy chain.
  • the counter will show a positive count value for those modules on one side of the sink module and a negative count value for those modules on the other side of the sink module.
  • the unique position counter value can then be used to select a module and configure it for use in the system.
  • the position in the chain can be used by the bus master to configure each module by allocating an LD to each module as a function of its position within the daisy chain.
  • the benefit of this system is that only one module forces current on to the bus at a time. This simplifies the task of determining that a current is flowing by reducing the accuracy required for this measurement.
  • the forced current can be higher than the currents normally associated with the bus since the current sinking ability of a slave module can be higher than the current sinking ability of a master module as defined under LLN bus rules. A larger forced current has the benefit of being easier to detect.
  • a method of configuring a LLN Bus system comprising a plurality of non-configured reconfigurable modules each having a unique code associated therewith but having no unique identification address associated therewith, the modules being connected in a daisy chain manner comprising the steps of: interrogating all non-configured modules; selecting one module from the daisy chain to act as a current sink; selecting another non-configured module from the daisy chain, to act as a source module, the selected current source module forcing a current onto the bus, which is conducted to the current sink module; and repeating the above step until each non-configured module, other than the current sink module, has been selected wherein each module detects said current when not selected and increments or decrements a counter accordingly.
  • the method of the second aspect of the invention may be used in conjunction with a system according to the first aspect of the invention and may incorporate any features of the first aspect of the present invention as desired or appropriate.
  • the bus master may interrogate all non- configured reconfigurable modules which each respond by transmitting a reply consisting of their unique code, hi such circumstances, standard LLN bus arbitration rales apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
  • the bus master may re-interrogate all non- configured reconfigurable modules, all of which except the sink module respond by transmitting a reply consisting of their unique code. Ln such circumstances standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
  • Non-configured reconfigurable modules positioned between the source and the sink may detect the flow of current through their series resistors and increment or decrement their counters accordingly.
  • each modules counter is incremented on each occasion that a current is detected flowing in a first direction and decremented on each occasion that a current is detected flowing in a second direction, said second direction being opposite to said first direction.
  • the counter in each module will thus hold a unique value indicative of the position of the module within the daisy chain.
  • the counter will show a positive count value for those modules on one side of the sink module and a negative count value for those modules on the other side of the sink module.
  • the unique position counter value can then be used to select a module and configure it for use in the system.
  • the position in the chain can be used by - li the bus master to configure each module by allocating an LD to each module as a function of its position within the daisy chain.
  • Figure 1 is a block diagram of a reconfigurable module according to the present invention showing its interface with a series resistance
  • Figure 2 shows a plurality of such reconfigurable modules connected to a common signal line; and Figure 3 illustrates how the position of each module within the daisy chain is determined.
  • a reconfigurable module comprises a normal LLN bus interface pin spilt into a LLN_H pin, 101, and a LLNJ pin, 102, connected by a series resistor Rac, 103, of typically 1 ohm.
  • the module further comprises a pull up resistor 104 and a pull up current source lac, 105, which can be activated during auto- configuration. During normal communication this current source is always off and has therefore no influence.
  • This current source has a typical value of 80 - 100mA,
  • FIG. 1 shows an example of a daisy-chained LLN bus for auto-configuration.
  • the master module, 201 is located at one end of the bus.
  • the modules 1 to n, 211, ..., 21n are slave nodes with auto-configuration capability.
  • the modules are daisy- chained by connecting the LLN_H pin, 101, on one module to the LLNJL pin, 102, on an adjacent module, in the case shown in figure 2, the module adjacent and to the right.
  • Modules n+1, ... are standard slave modules, not reconfigurable modules according to the invention and as such they can be connected anywhere on the LLN bus. There may be any desired combination of reconfigurable slave modules and standard slaves connected to the bus, including slaves connected in a tree structure as long as the reconfigurable slave modules are connected in a daisy chain.
  • the reconfigurable modules can have following auto-configuration states:
  • Unaddressed the node is not identified (i.e. the node has not assigned an LD and can thus not be assessed for normal messages requiring the LD of a node).
  • Selected the node has been selected during the on-going auto-configuration interrogation message. It will switch to the addressed state at the end of the message.
  • Identified the node has received his proper LD (which is written in eeprom) and can be accessed for all application messages.
  • the module has a unique chip identification number (CLN) code built in at manufacture. This code can be any code, except a code consisting of all zeros. Ln practice this code consists of data defining batch No., wafer No and die position on the wafer. Typically the CLN has a total of 48 bits (6 bytes) of unique code.
  • the software running on the master must be able to send the frame items (Uart bytes) in a different way than for the regular frames.
  • the auto-configuration system makes use of the user defied extended frame message (Id 0x3 E).
  • the advantages of this use of the extended frame message are that it leaves the regular LLN identifiers untouched and available, the number of bytes is free and can thus be optimized for each message, and the byte containing the error flag can be located at the end of the frame, after the checksum (to allow for signaling of checksum errors, by the master as well as the slaves).
  • Figure 3 illustrates how the auto-configuration of said reconfigurable modules is achieved.
  • the bus connects a master node 300 with nine reconfigurable slave modules, 301 - 309. Standard slave modules have no effect on the reconfiguration process and are not shown but may be connected to the bus at any point in accordance with the LLN standard rules.
  • Each of the reconfigurable slave modules is selected in turn by the master node 300. Ln the example the order is 304, 303, 306, 308, 302, 309, 305, 307, 301 and the modules are selected in order of their CLN codes.
  • the first selected module 304 is selected to be a current sink module and will turn on its pull down transistor during the relevant portion of the auto- configuration to sink any current applied to the bus.
  • Each subsequently selected module is selected to act, in turn, as a current source during the relevant portion of the auto-conf ⁇ guration.
  • each module positioned between the selected current source module and the current sink module is able to detect the flow of current through their series resistors 103. upon detecting such a current each of these modules subsequently either increments or decrements their internal counters. The position counters are incremented or decremented depending on the direction of current flow. In figure 3, current flow from left to right results in increment of the counters and current flow from right to left results in decrement of the counters. This is repeated until each module other than the current sink module 304 has been selected as the current source module.
  • each module counter After each selection of a different current source module are shown in figure 3. It can be clearly seen that when the configuration process is completed, the internal counter (PosCnt) of each slave module holds a value indicative of its position in the daisy chain. This value is used to identify each module so that it may be suitably configured for its intended application. The value held in the position counter will be positive or negative dependant upon the position of a module relative to the position of the sink module.
  • modules 301-303 are positioned to the left of the current sink module 304 and thus have a positive count value.
  • Modules 305-309 are positioned to the right of the current sink module 304 and have negative count values.
  • the module position in the chain can be calculated from the count value. If the module was not the sink module and has a positive count value then the count value is equal to the module position within the daisy chain. If the module was the sink module then the module position within the chain is the count value plus one. If the count value is negative, then the module position is equal to the count value plus the total number of modules.
  • the total number of modules may be deduced by counting the total number of completed cycles in the auto configuration sequence.
  • the CLN code (which is stored in eeprom) can also be replaced by a random generated code of x bits.
  • the right value for x is calculated to minimize the risk of different modules within the daisy chain having identical codes.
  • a random code generator is incorporated into the module. At the beginning of an auto-configuration sequence each module creates a random generated code to act as a CLN.
  • the counters will be automatically correct since the currents flowing along the bus from each source module to the sink module will not interfere with each other.
  • the advantage of this embodiment is that there is no need for non-volatile memory to be incorporated into the module and thus the auto-configuration sequence can be run on each power on/reset.
  • the first selected module can be selected to be a current source module and the remaining modules may be selected in turn to be current sink modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Bus Control (AREA)

Abstract

A LIN bus system comprises a plurality of modules (300-309) linked to a LIN bus along which electronic data or instructions can be sent to and from each said module (300-309). A number of said modules are non-configured and have a unique code associated therewith but have no unique identification address associated t herewith. The LIN bus system includes configuration means which interrogates said modules (300-309) and detects the unique code of said non-configured module. The configuration means the selects one non-configured module (300) to act as a current sink and further selects every other non- configured module 301-309 in turn, to act as a current source. The selected current source module (301-309) forces a current onto the bus, which is conducted to the current sink module (300). Each unselected non-configured module (301-309) detects said current and in response to the detection of said current increments or decrements a counter acc ording to the direction of the current flow. After all the modules (301-309) have been selected, the counter value of each module will be unique.

Description

AUTO-CONFIGURED LLN BUS NODES The invention relates to electronic devices and more specifically to electronic devices used within systems conforming to the L N Bus standard.
LLN Bus is a name given to an open protocol defined for use in communicating between a number of distributed modules. Many applications of the LLN Bus are targeted specifically at the automotive industry.
In LLN Bus applications each module contains an interface circuit, usually implemented as a single integrated circuit, which interfaces to the common signal conductor or bus and handles the protocols associated with the messages and the required responses.
Each module in a system has a unique identity, LD, within the system, which enables a bus master to communicate with a selected module or a group of modules within the system.
As originally defined, all the modules within a LLN Bus system are connected in parallel. That is they share a bus across which all messages and communications are sent and received. Each module has a pull up resistor and an active pull down transistor. Message initiation is asynchronous and message collisions are resolved by arbitration means. Since a pull down or active state, will take precedence over a pull up, or recessive state, any transmitting module seeing an active state when transmitting a recessive state knows that another module is transmitting. Under such circumstances the module transmitting the active state takes precedence and any other modules must cede the bus and try again later. Each module is assumed to be preconfigured before installation with its own unique LD.
Such an assumption places demands on the manufacturers, installers and most particularly on those repairing a system to correctly configure every module before installation. An extension to the system protocol providing a method of configuring a module with an LD after installation was thereby proposed and implemented by Bosch and Philips amongst others and has been favorably received.
In such a system the electronic interface between the bus and the modules is altered. In particular, the system incorporates extended capability modules capable of being configured wherein each extended capability module has two connections to the bus, the normal modules having only one connection to the bus.
The bus is made discontinuous at each extended capability module and one connection is made to each side of the discontinuity. Extended capability modules are thus connected in a daisy chain configuration whilst normal modules are connected to the bus as before. The extended capability modules maintain signal continuity along the bus but introduce a nominal (approximately one ohm) series resistance per extended capability module. Ln such a system all the modules are identical and so in a specific application the position of the module within the daisy chain defines the loads and sensors connected to said module. Extended capability modules are manufactured in a non-configured state but can be configured after installation. Ln a non-configured state a module has no identification (LD) and cannot be selectively communicated with. To overcome this limitation, all non-configured extended capability modules respond to a configuration request message transmitted onto the bus by a bus master, by tiirning off their pull down transistors and forcing a current through their pull up transistor onto the common signal conductor. These forced currents will flow along the common signal conductor to the bus master which has its pull down transistor turned on. By this means every non-configured extended capability module except one will see a voltage across the nominal one ohm series resistance introduced at each extended capability module. The exception is the module furthest from the master as defined by the daisy chaining connections. This non-configured extended capability module is thus uniquely identified and enables itself for programming of an LD within the system. The procedure can be repeated until all non-configured extended capability modules are configured with an LD.
This scheme has a number of limitations. The normal performance of the bus is degraded by the introduction of the series resistances. The series resistance within an extended capability module is normally implemented within an integrated circuit and the tolerance of such resistors is wide. The forced currents are all sunk via the bus master, which has maximum current capabilities and a current limiting capability defined within the specification. The value of the forced current used to identify and enable one module for configuration must be small and carefully selected and controlled. The voltages developed across the series resistor within a module are also small and must be measured with high accuracy. The reliability of such systems may be reduced under conditions of electrical interference or noise. The performance of such systems may also be restricted to limited temperature and voltage ranges and may only be reliable under workshop conditions. A better solution has been proposed in our co-pending International Patent
Application WO2004/049642 wherein there is provided a reconfigurable extended capability module said reconfigurable module having means for being configured with an LD and also having embedded within it at the manufacturing stage a unique Identification Code, CLN, for use during a configuring operation. In this solution, during a configuration sequence the bus master transmits a configuration request and all non-configured reconfigurable modules respond by transmitting a reply consisting of their CLN. Standard LLN bus arbitration rules apply, with active states winning over recessive states. One non-configured reconfigurable module will thus win the arbitration and become the 'selected module'. The selected module only then forces a current through the pull up resistor.
Non-configured reconfigurable modules which are not currently selected monitor the current through their series resistors to determine that a selected module is responding. Each non-configured reconfigurable module maintains a position counter. The position counter is incremented each time a voltage is detected across the series resistor of a module indicating that the selected module responding with a forced current is further from the master than the module incrementing its counter. The position counter within any non-configured reconfigurable module will not be incremented when that non-configured extended capability module is itself the selected device. Once an non-configured reconfigurable module has been selected it is no longer considered non-configured and remains unresponsive to further configuration requests and with its position counter fixed showing its position in the daisy chain. Once all non-configured extended capability modules have been selected each will have a position counter showing a unique position for that module within the daisy chain. This unique position counter value can be used to select a module and configure it for use in the system.
The benefit of the above system is that only one module is forcing current at a time thus simplifying the task of determining that a current is flowing by reducing the accuracy required for the measurement. Accordingly, the permitted tolerances of the individual components are also less onerous. However, the master unit specification imposes an upper limit on the current that can be forced through the series resistors and this consequently limits the magnitude of the voltage drop across the series resistors. It is thus an object of the invention to provide an improved scheme for configuring modules that is compatible with the LLN bus standard.
According to a first aspect of the present invention there is provided a LLN bus system comprising a plurality of modules linked to a LLN bus along which electronic data or instructions can be sent to and from each said module, a number of said modules being non-configured and having a unique code associated therewith but having no unique identification address associated therewith, said system further including configuration means which interrogates said modules and detects the unique code of said non-configured modules, said configuration means selecting one non- configured module to act as a current sink and selecting every other non-configured module in turn, to act as a current source, the selected current source module forcing a current onto the bus, which is conducted to the current sink module wherein each said non-configured module further comprises means for detecting said current and a counter which is incremented or decremented on each occasion the module detects said current flowing between a selected current source and the current sink.
Preferably said configuration means is the bus master, and each non- configured module is a slave node. Preferably each said non-configured module is a reconfigurable module having means for being configured with an LD and also having embedded within it at the manufacturing stage a fixed unique Chip Identification Code (CLN) for use during a configuring operation.
Preferably, each said non-configured module is a module compatible with the LLN Bus Standard. Preferably, each said module is connected to the LIN bus by a pair of LLN Bus interface pins, said LLN bus interface pins being connected by a series resistor. Most preferably the pair of LLN bus interface pins are connected to the bus such that the pins are connected on either side of a discontinuity in the bus. Preferably the series resistor is a 1 ohm or similar value resistor. In this manner the modules may be connected as a daisy chain of slave nodes on the LLN Bus.
Preferably said modules may detect the flow of current along the bus by monitoring a voltage drop across their series resistors.
Preferably said module further comprises a pull up resistor and additionally a current source for forcing a pull up current onto one of the bus interface pins. Preferably said module further comprises a transistor for sinking said pull up current. Preferably said pull up current is of a magnitude of 80-100 milliamps, such as to generate 80-100 millivolts across a one ohm resistor. Preferably said reconfigurable modules are connected in a daisy chain manner and standard LLN Bus arbitration rules apply for selecting modules from the daisy chain. Preferably said pull up current only flows whilst said module is selected.
Ln an alternative embodiment said module further comprises a random code generator for generating a random code of a plurality of bits in length to identify the module as an alternative to the CLN code. The number of bits in the code is chosen to minimize the possibility of two modules having the same random code.
Preferably said LLN Bus system comprises a plurality of non-configured reconfigurable modules connected together in a daisy chain manner. Additionally, a plurality of standard LLN bus modules may also be connected to the bus. n order to configure each of the non-configured reconfigurable modules in a desired manner it is necessary to identify the position of each of the non-configured reconfigurable modules on the bus.
Preferably, the bus master interrogates all non-configured reconfigurable modules which each respond by transmitting a reply consisting of their unique code.
Preferably, standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected. This module will act as a current sink.
Preferably, the bus master then re-interrogates all non-configured reconfigurable modules, all of which except the sink module respond by transmitting a reply consisting of their unique code. Preferably, standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected. This module will now act as a current source. Preferably, the selected source module then forces a current onto the bus, which is conducted to the sink module. Non-configured reconfigurable modules positioned between the source and the sink detect the flow of this current through their series resistors and increment or decrement their counters accordingly. This is then repeated until each module, except the current sink module, has been selected to act as the current source module.
Preferably, each modules counter is incremented on each occasion that a current is detected in its series resistor flowing in a first direction and decremented on each occasion that a current is detected in its series resistor flowing in a second direction, said second direction being opposite to said first direction. Preferably, the position counter on particular non-configured reconfigurable module is not incremented or decremented when the particular non-configured reconfigurable module is itself the source module.
In this manner after each module in the daisy chain has been selected in turn, the position counter of each module holds a unique value indicative of its position in the daisy chain. The counter will show a positive count value for those modules on one side of the sink module and a negative count value for those modules on the other side of the sink module.
The unique position counter value can then be used to select a module and configure it for use in the system. Preferably the position in the chain can be used by the bus master to configure each module by allocating an LD to each module as a function of its position within the daisy chain. The benefit of this system is that only one module forces current on to the bus at a time. This simplifies the task of determining that a current is flowing by reducing the accuracy required for this measurement. Additionally, the forced current can be higher than the currents normally associated with the bus since the current sinking ability of a slave module can be higher than the current sinking ability of a master module as defined under LLN bus rules. A larger forced current has the benefit of being easier to detect.
According to a second aspect of the present invention there is provided a method of configuring a LLN Bus system comprising a plurality of non-configured reconfigurable modules each having a unique code associated therewith but having no unique identification address associated therewith, the modules being connected in a daisy chain manner comprising the steps of: interrogating all non-configured modules; selecting one module from the daisy chain to act as a current sink; selecting another non-configured module from the daisy chain, to act as a source module, the selected current source module forcing a current onto the bus, which is conducted to the current sink module; and repeating the above step until each non-configured module, other than the current sink module, has been selected wherein each module detects said current when not selected and increments or decrements a counter accordingly. The method of the second aspect of the invention may be used in conjunction with a system according to the first aspect of the invention and may incorporate any features of the first aspect of the present invention as desired or appropriate. In order to select a sink module the bus master may interrogate all non- configured reconfigurable modules which each respond by transmitting a reply consisting of their unique code, hi such circumstances, standard LLN bus arbitration rales apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
In order to select a source module the bus master may re-interrogate all non- configured reconfigurable modules, all of which except the sink module respond by transmitting a reply consisting of their unique code. Ln such circumstances standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
Non-configured reconfigurable modules positioned between the source and the sink may detect the flow of current through their series resistors and increment or decrement their counters accordingly. Preferably, each modules counter is incremented on each occasion that a current is detected flowing in a first direction and decremented on each occasion that a current is detected flowing in a second direction, said second direction being opposite to said first direction. The counter in each module will thus hold a unique value indicative of the position of the module within the daisy chain. The counter will show a positive count value for those modules on one side of the sink module and a negative count value for those modules on the other side of the sink module.
The unique position counter value can then be used to select a module and configure it for use in the system. Preferably the position in the chain can be used by - li the bus master to configure each module by allocating an LD to each module as a function of its position within the daisy chain.
Ln order that the invention be more clearly understood, one embodiment will now be described further herein and with reference to the accompanying drawings in which: -
Figure 1 is a block diagram of a reconfigurable module according to the present invention showing its interface with a series resistance;
Figure 2 shows a plurality of such reconfigurable modules connected to a common signal line; and Figure 3 illustrates how the position of each module within the daisy chain is determined.
Referring now to figure 1 a reconfigurable module comprises a normal LLN bus interface pin spilt into a LLN_H pin, 101, and a LLNJ pin, 102, connected by a series resistor Rac, 103, of typically 1 ohm. This enables modules to be connected as a daisy chain of slave nodes on the LLN bus. The module further comprises a pull up resistor 104 and a pull up current source lac, 105, which can be activated during auto- configuration. During normal communication this current source is always off and has therefore no influence. This current source has a typical value of 80 - 100mA,
During the auto-configuration procedure the voltage across the resistor Rac is monitored by amplifier means, 107. The LLN pull up resistor, 104, can also be switched off during the auto-configuration process. Figure 2 shows an example of a daisy-chained LLN bus for auto-configuration.
The master module, 201, is located at one end of the bus. The modules 1 to n, 211, ..., 21n, are slave nodes with auto-configuration capability. The modules are daisy- chained by connecting the LLN_H pin, 101, on one module to the LLNJL pin, 102, on an adjacent module, in the case shown in figure 2, the module adjacent and to the right.
Modules n+1, ... are standard slave modules, not reconfigurable modules according to the invention and as such they can be connected anywhere on the LLN bus. There may be any desired combination of reconfigurable slave modules and standard slaves connected to the bus, including slaves connected in a tree structure as long as the reconfigurable slave modules are connected in a daisy chain.
The reconfigurable modules can have following auto-configuration states:
• Unaddressed: the node is not identified (i.e. the node has not assigned an LD and can thus not be assessed for normal messages requiring the LD of a node). • Selected: the node has been selected during the on-going auto-configuration interrogation message. It will switch to the addressed state at the end of the message.
• Addressed: the node has been addressed during the auto-configuration procedure. It is waiting the end of the auto-configuration procedure to get assigned his node LD.
• Identified: the node has received his proper LD (which is written in eeprom) and can be accessed for all application messages. A module that has never been identified has LD=0 written in non-volatile memory NVM, such a module will enter the unaddressed state after power on/reset. Additionally, a module that is not in the identified state will enter the unaddressed state after power on/reset. The module has a unique chip identification number (CLN) code built in at manufacture. This code can be any code, except a code consisting of all zeros. Ln practice this code consists of data defining batch No., wafer No and die position on the wafer. Typically the CLN has a total of 48 bits (6 bytes) of unique code.
No special hardware is required for the master. Any micro-processor equipped with a regular full duplex Uart, associated with a standard Lin physical interface circuit (such as the TH8082 available from Melexis) can be used. The software running on the master must be able to send the frame items (Uart bytes) in a different way than for the regular frames.
The auto-configuration system makes use of the user defied extended frame message (Id 0x3 E). The advantages of this use of the extended frame message are that it leaves the regular LLN identifiers untouched and available, the number of bytes is free and can thus be optimized for each message, and the byte containing the error flag can be located at the end of the frame, after the checksum (to allow for signaling of checksum errors, by the master as well as the slaves). Figure 3 illustrates how the auto-configuration of said reconfigurable modules is achieved. The bus connects a master node 300 with nine reconfigurable slave modules, 301 - 309. Standard slave modules have no effect on the reconfiguration process and are not shown but may be connected to the bus at any point in accordance with the LLN standard rules.
Each of the reconfigurable slave modules is selected in turn by the master node 300. Ln the example the order is 304, 303, 306, 308, 302, 309, 305, 307, 301 and the modules are selected in order of their CLN codes.
The first selected module 304 is selected to be a current sink module and will turn on its pull down transistor during the relevant portion of the auto- configuration to sink any current applied to the bus. Each subsequently selected module is selected to act, in turn, as a current source during the relevant portion of the auto-confϊguration.
When a module is acting as a current source it forces a current on to the bus where it is then conducted along the bus to the current sink module 304. Each module positioned between the selected current source module and the current sink module is able to detect the flow of current through their series resistors 103. upon detecting such a current each of these modules subsequently either increments or decrements their internal counters. The position counters are incremented or decremented depending on the direction of current flow. In figure 3, current flow from left to right results in increment of the counters and current flow from right to left results in decrement of the counters. This is repeated until each module other than the current sink module 304 has been selected as the current source module.
The values held in each modules counter after each selection of a different current source module are shown in figure 3. It can be clearly seen that when the configuration process is completed, the internal counter (PosCnt) of each slave module holds a value indicative of its position in the daisy chain. This value is used to identify each module so that it may be suitably configured for its intended application. The value held in the position counter will be positive or negative dependant upon the position of a module relative to the position of the sink module. In figure 3, modules 301-303 are positioned to the left of the current sink module 304 and thus have a positive count value. Modules 305-309 are positioned to the right of the current sink module 304 and have negative count values.
The module position in the chain can be calculated from the count value. If the module was not the sink module and has a positive count value then the count value is equal to the module position within the daisy chain. If the module was the sink module then the module position within the chain is the count value plus one. If the count value is negative, then the module position is equal to the count value plus the total number of modules. The total number of modules may be deduced by counting the total number of completed cycles in the auto configuration sequence.
In an alternative embodiment the CLN code (which is stored in eeprom) can also be replaced by a random generated code of x bits. The right value for x is calculated to minimize the risk of different modules within the daisy chain having identical codes. In such embodiments, a random code generator is incorporated into the module. At the beginning of an auto-configuration sequence each module creates a random generated code to act as a CLN.
If however the situation should arise that two modules have identical codes, this can be overcome. Lf two modules have identical codes, both will be selected simultaneously and they will both activate their current source. If both modules are on the same side there are two alternatives by which this can be dealt with. Firstly, the selected module closest to the sink module will detect a current flowing through its resistor and therefore will recognize that it is not the only module selected and will consequently react as if not selected. Secondly and alternatively, an error flag can by generated either by the sink module or by the selected module closest to the sink module, the effect of the error flag being to restart the procedure.
If the two selected current source modules are on opposite sides of the current sink module the counters will be automatically correct since the currents flowing along the bus from each source module to the sink module will not interfere with each other. The advantage of this embodiment is that there is no need for non-volatile memory to be incorporated into the module and thus the auto-configuration sequence can be run on each power on/reset.
In further alternative embodiments, the first selected module can be selected to be a current source module and the remaining modules may be selected in turn to be current sink modules. These embodiments would otherwise function as described above. It is of course to be understood that the invention is not intended to be restricted to the details of the above embodiments which is described by way of example only.

Claims

Claims
1. A LLN bus system comprising a plurality of modules linked to a LLN bus along which electronic data or instructions can be sent to and from each said module, a number of said modules being non-configured and having a unique code associated therewith but having no unique identification address associated therewith, said system further including configuration means which interrogates said modules and detects the unique code of said non-configured modules, said configuration means selecting one non-configured module to act as a current sink and selecting every other non-configured module in turn, to act as a current source, the selected current source module forcing a current onto the bus, which is conducted to the current sink module wherein each said non-configured module further comprises means for detecting said current and a counter which is incremented or decremented on each occasion the module detects said current flowing between a selected current source and the current sink.
2. A LLN bus system as claimed in claim 1 wherein said configuration means is the bus master, and each non-configured module is a slave node.
3. A LLN bus system as claimed in claim 1 or claim 2 wherein each said non- configured module is a reconfigurable module having means for being configured with an LD and also having embedded within it at the manufacturing stage a fixed unique Chip Identification Code (CLN) for use during a configuring operation.
4. A LLN bus system as claimed in any preceding claim wherein each said module is connected to the LLN bus by a pair of LIN Bus interface pins, said LLN bus interface pins being connected by a series resistor.
5. A LLN bus system as claimed in claim 4 wherein the pair of LLN bus interface pins are connected to the bus such that the pins are connected on either side of a discontinuity in the bus.
6. A LLN bus system as claimed in any preceding claim wherein the modules are connected as a daisy chain of slave nodes on the LLN Bus.
7. A LLN bus system as claimed in any preceding claim wherein said modules detect the flow of current along the bus by monitoring a voltage drop across their series resistors.
8. A LLN bus system as claimed in any one of claims 4 to 7 wherein said modules further comprise a pull up resistor and a current source for forcing a pull up current onto one of the bus interface pins.
9. A LLN bus system as claimed in claim 8 wherein said modules further comprise a transistor for sinking said pull up current.
10. A LLN bus system as claimed in any preceding claim wherein said modules further comprise a random code generator for generating a random code of a plurality of bits in length to identify the module as an alternative to the CLN code.
11. A LLN bus system as claimed in claim 10 wherein the number of bits in the code is chosen to minimize the possibility of two modules having the same random code.
12. A LLN bus system as claimed in any preceding claim wherein a plurality of standard LLN bus modules are also connected to the bus.
13. A method of configuring a LLN Bus system comprising a plurality of non- configured reconfigurable modules each having a unique code associated therewith but having no unique identification address associated therewith, said modules being connected in a daisy chain manner, the method comprising the steps of: interrogating all non-configured modules; selecting one module from the daisy chain to act as a current sink; selecting another non-configured module from the daisy chain, to act as a source module, the selected current source module forcing a current onto the bus, which is conducted to the current sink module; and repeating the above step until each non-configured module, other than the current sink module, has been selected wherein each module detects said current when not selected and increments or decrements a counter accordingly.
14. A method of configuring a LLN Bus system as claimed in claim 13 wherein in order to select a sink module the bus master interrogates all non-configured reconfigurable modules which each respond by transmitting a reply consisting of their unique code.
15. A method of configuring a LLN Bus system as claimed in claim 14 wherein standard LLN bus arbitration rules apply, wherein active states win over /053236
- 21 - recessive states, and one non-configured reconfigurable module is thus selected.
16. A method of configuring a LLN Bus system as claimed in claim 15 wherein in order to select a source module the bus master re-interrogates all non- configured reconfigurable modules, all of which except the sink module respond by transmitting a reply consisting of their unique code.
17. A method of configuring a LLN Bus system as claimed in claim 16 wherein standard LLN bus arbitration rules apply, wherein active states win over recessive states, and one non-configured reconfigurable module is thus selected.
18. A method of configuring a LLN Bus system as claimed in claim 17 wherein non-configured reconfigurable modules positioned between the source and the sink detect the flow of current through their series resistors and increment or decrement their counters accordingly.
19. A method of configuring a LLN Bus system as claimed in any one of claims 13 to 18 wherein each modules counter is incremented on each occasion that a current is detected flowing in a first direction and decremented on each occasion that a current is detected flowing in a second direction, said second direction being opposite to said first direction.
20. A method of configuring a LLN Bus system as claimed in any one of claims 13 to 19 wherein the unique position counter value is used to select a module and configure it for use in the system.
21. A method of configuring a LLN Bus system as claimed in claim 20 wherein the position in the chain is used by the bus master to configure each module by allocating an LD to each module as a function of its position within the daisy chain.
22. A method of configuring a LLN Bus system as claimed in any one of claims 13 to 21 wherein the unique code is a fixed chip identification code (CLN).
23. A method of configuring a LLN Bus system as claimed in any one of claims 13 to 22 wherein the unique code is random code generated by a random code generator in response to interrogation.
24. A method of configuring a LLN Bus system as claimed in any one of claims 13 to 23 wherein the method is used in conjunction with a system according to any one of claims 1 to 12.
PCT/IB2004/003887 2003-11-27 2004-11-26 Auto-configured lin bus nodes WO2005053236A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
GB0327593.0 2003-11-27
GB0327593A GB0327593D0 (en) 2003-11-27 2003-11-27 Auto-configured lin bus nodes

Publications (1)

Publication Number Publication Date
WO2005053236A1 true WO2005053236A1 (en) 2005-06-09

Family

ID=29797926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2004/003887 WO2005053236A1 (en) 2003-11-27 2004-11-26 Auto-configured lin bus nodes

Country Status (2)

Country Link
GB (1) GB0327593D0 (en)
WO (1) WO2005053236A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160559B2 (en) 2012-05-16 2015-10-13 Infineon Technologies, Ag System and method to address devices connected to a bus system
WO2018099705A1 (en) * 2016-11-30 2018-06-07 Siemens Aktiengesellschaft Command and reporting system for automation
US11442736B2 (en) * 2017-05-24 2022-09-13 Wago Verwaltungsgesellschaft Mbh Determination of data bus subscribers of a local bus
EP4312409A1 (en) * 2022-07-25 2024-01-31 Melexis Technologies NV Protocol for autoconfiguration of communication network
EP4312408A1 (en) * 2022-07-25 2024-01-31 Melexis Technologies NV Method of autoconfiguration of communication network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003094001A1 (en) * 2002-05-02 2003-11-13 Elmos Semiconductor Ag Method for addressing the users of a bus system by means of identification flows
WO2004049642A1 (en) * 2002-11-26 2004-06-10 Melexis Nv Auto-configured lin bus nodes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003094001A1 (en) * 2002-05-02 2003-11-13 Elmos Semiconductor Ag Method for addressing the users of a bus system by means of identification flows
WO2004049642A1 (en) * 2002-11-26 2004-06-10 Melexis Nv Auto-configured lin bus nodes

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160559B2 (en) 2012-05-16 2015-10-13 Infineon Technologies, Ag System and method to address devices connected to a bus system
US9672181B2 (en) 2012-05-16 2017-06-06 Infineon Technologies Ag System and method to address devices connected to a bus system
DE102013008308B4 (en) 2012-05-16 2023-10-05 Infineon Technologies Ag System and method for addressing devices connected to a bus system, in particular a LIN bus
WO2018099705A1 (en) * 2016-11-30 2018-06-07 Siemens Aktiengesellschaft Command and reporting system for automation
US11442736B2 (en) * 2017-05-24 2022-09-13 Wago Verwaltungsgesellschaft Mbh Determination of data bus subscribers of a local bus
EP4312409A1 (en) * 2022-07-25 2024-01-31 Melexis Technologies NV Protocol for autoconfiguration of communication network
EP4312408A1 (en) * 2022-07-25 2024-01-31 Melexis Technologies NV Method of autoconfiguration of communication network

Also Published As

Publication number Publication date
GB0327593D0 (en) 2003-12-31

Similar Documents

Publication Publication Date Title
EP1566022B1 (en) Auto-configured lin bus nodes
CN209642692U (en) Equipment, main equipment and from equipment
US20060088044A1 (en) Node for a bus network, a bus network and a method for configuration of the network
US8180940B2 (en) Method and system for transmission of cyclic and acyclic data over a transmission channel that takes into account real-time capability
US9007951B2 (en) Self synchronizing data communication method and device
US8750351B2 (en) Configuration of bus transceiver
EP1022878B1 (en) Data transmission system
JP4892170B2 (en) LIN buses, especially LIN buses in motor vehicles
US8112554B2 (en) Method and devices for transmitting data on a data line between a control device and at least one decentralized data processing device
JP5723062B2 (en) Method and apparatus for serial data transmission adjusted to memory size
US20200176976A1 (en) Method for operating a sensor arrangement in a motor vehicle on the basis of a dsi protocol
US20130311691A1 (en) System and Method to Address Devices Connected to a Bus System
US11084435B2 (en) Control device and control system
US11159369B2 (en) Automatic initialization routine in an automation system
CN114747183B (en) Conflict detector for subscriber stations of a serial bus system and method for communication in a serial bus system
WO2005053236A1 (en) Auto-configured lin bus nodes
US10880115B2 (en) Method for performing a data communication
JP4968169B2 (en) Communication system and communication method
CN108632242B (en) Communication device and receiving device
US7065621B2 (en) System and method for implementing a hidden address in a communication module
US20220353108A1 (en) Slave device, bus system, and methods
JP2019097088A (en) Serial communication system
CN113661688A (en) Circuit for connecting a measuring transducer
CN114270783A (en) Method for identifying the position of a bus subscriber
CN114270327A (en) Method for identifying the position of a bus subscriber

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase