0% found this document useful (0 votes)
33 views24 pages

Bus Shunt Revision 1

Uploaded by

Amine Azenkot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views24 pages

Bus Shunt Revision 1

Uploaded by

Amine Azenkot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LIN Bus Shunt

Slave Node Position Detection


Revision 1.0
December 10, 2008; Page 1

LIN
Bus Shunt
Slave Node Position Detection

Revision 1.0

© LIN Consortium, 2008.


LIN is a registered Trademark ®. All rights reserved.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 2

DISCLAIMER
This specification as released by the LIN Consortium is intended for the purpose of informa-
tion only and is provided on an "AS IS" basis only and cannot be the basis for any claims.
The LIN Consortium will not be liable for any use of this Specification. The unauthorized use,
e.g. copying, displaying or other use of any content from this document is a violation of the
law and intellectual property rights.

The LIN Consortium and its members make no representation or assurance that the stan-
dard can be practiced without infringing the intellectual property rights of members of the LIN
consortium or of third parties. Each user of this standard (whether or not a member of the
LIN consortium) bears its own responsibility to determine if its implementation infringes intel-
lectual property rights of third parties, and each user is responsible for acquiring any patent
or other intellectual property rights it may require to produce its products.

In particular, but without limitation, the LIN Consortium has been advised that ELMOS claims
that patents EP 1490772 B1 and US 7,091,876 cover the implementation of this standard.
No right or license to these patents is granted herein, and users must determine for them-
selves how to address these claims by ELMOS.

The LIN Consortium disclaims any and all warranties with respect to the subject matter of
this standard, which is expressly delivered AS IS."

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 3

REVISION HISTORY
Issue Date Remark
st
Revision 1.0 2008-12-10 1 release

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 4

TABLE OF CONTENTS

Disclaimer................................................................................................................... 2
Revision history .......................................................................................................... 3
Table of Contents ....................................................................................................... 4
1 Scope ............................................................................................................... 5
1.1 REFERENCES .................................................................................................. 5
2 Requirements ................................................................................................... 6
3 Bus Shunt Method (BSM) ................................................................................. 7
3.1 CONTENTS OF THIS CHAPTER ............................................................................ 7
3.2 BUS ARCHITECTURE ......................................................................................... 7
3.3 PRINCIPLE ....................................................................................................... 8
3.3.1 Location of the slave node positioning detection..................................... 9
3.4 PHYSICAL LAYER ............................................................................................. 9
3.4.1 Description of the needed components................................................... 9
3.4.2 LIN transceiver for BSM-nodes (principle) .............................................. 9
3.4.3 Differential amplifier (principle).............................................................. 10
3.4.4 Signal acquisition chain (principle)........................................................ 11
3.4.5 Pull-up current sources 1 & 2................................................................ 11
3.4.6 Timing Parameter ................................................................................. 12
3.4.7 DC characteristics................................................................................. 12
3.4.8 Timing of the measurement sequence.................................................. 13
3.4.9 Timing in the SNPD node ..................................................................... 13
3.4.10 Timing including tolerances .................................................................. 14
3.5 SUB FUNCTIONS ............................................................................................ 14
3.6 CONFIGURATION FLOW ................................................................................... 15
3.6.1 Position detection flowchart .................................................................. 16
3.6.2 Measurement position detection flowchart............................................ 17
3.6.3 BSM Setup Flow in Detail ..................................................................... 18
3.7 EXAMPLE OF SETUPS OF A LIN BUS SYSTEM WITH BSM ................................... 21
3.7.1 Calculation of the pre selected slaves for step 5 + 6............................. 21
3.7.2 Reference calculation of a system with 15 Standard- slaves ................ 21
3.7.3 Calculation of a system with 15 BSM- slaves........................................ 22
3.7.4 Calculation of a system with 5 standard- and 10 BSM- slaves............. 23
3.8 LIMITATIONS IN USE ....................................................................................... 24

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 5

1 SCOPE
This document is intended to describe a method for the detection of the position of a particu-
lar slave node in a LIN network with equal built slaves. This does not limit the use of position
detection to the method described here.
The document covers the Bus Shunt Method

1.1 REFERENCES
[1] LIN Specification Package, Revision 2.1, 2006-11-24
[2] Electromagnetic compatibility (EMC)- Part 4-2: Testing and measurement techniques
- Electrostatic discharge immunity test, IEC 61000-4-2: 1995

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 6

2 REQUIREMENTS
The specified methods must provide a means to assign a slave node with a unique node ad-
dress within the particular LIN network, which can be used to configure the nodes according
to LIN 2.1.
Any Slave Node Position Detection method should not violate the LIN Specification. In case
an SNPD method violates the LIN Specification, these violations are described in the follow-
ing chapters with the respective method descriptions. The behavior is described in the chap-
ter “Limitations in Use” of the respective method description.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 7

3 BUS SHUNT METHOD (BSM)

3.1 CONTENTS OF THIS CHAPTER


This chapter gives a guideline for the design of a LIN system with standard slaves and slaves
capable of node position detection via the Bus Shunt Method by only looking into the rules
for the Bus Shunt Method (BSM) part of the system.

3.2 BUS ARCHITECTURE


The following diagram shows a bus architecture using the Bus Shunt Method (BSM).

Figure 3-1: Typical bus architecture

On the left side of the schematic the master node is terminating the LIN bus. Next to it is a
standard LIN node followed by a BSM slave node and so on. The BSM slave nodes and
standard LIN nodes may be arranged in any order. The start of the addressing sequence is
initialized by the master node, with a command sent to the slaves telling them that the ad-
dressing sequence starts with the next break. During the next break each slave starts its own
sequence. The sequence is divided up in switching the slave pull-up resistor and current
sources on and off, measuring the offset current, making a pre-selection, and then at the
end, selection of the last not addressed BSM slave node in the line. Each slave stores its
new NAD and is now addressable over this new NAD. If all slaves have received their new
NAD, the master can now program this information into the SNPD node with a separate pro-
gramming command if NVM is available.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 8

3.3 PRINCIPLE
The Bus Shunt Method (BSM) works as follows:
During a break the current on the LIN Bus depends on the position on the bus. The BSM is
routing the LIN Bus through a shunt on the SNPD node in order to be able to measure the
current of the LIN Bus. In order to have reproducible currents – independent of the supply
voltage, the pull up resistors are switched off and current sources are switched on during this
process in the following matter:
The break is divided into 7 steps, in which the current conditions on the bus change and
the measurements take place:
1. During the first step all current sources and the pull up resistors of the involved SNPD
nodes are switched off. This way only the pull up resistors of nodes not using the
shunt method contributes to the current on the bus line.
2. During the second step each SNPD node measures the current flowing through the
shunt of the SNPD node. The measured current is called Ishunt_1 and is the offset cur-
rent on the bus line.
3. During the third step, a pre selection of the slaves is done, for this, current sources 1
in all SNPD nodes are switched on. All nodes that have been already identified in a
previous cycle keep all their current sources and pull up resistors switched off.
4. During the fourth step, each SNPD node measures again the current on the LIN Bus
flowing through the shunt of the SNPD node. The measured current is called Ishunt_2.
The value of the difference between this current (Ishunt_2) and the offset current (Ishunt_1)
indicates, whether it could be one of the most distant SNPD nodes from the master. If
the difference is below a specific value IDiff the SNPD node is being considered as
one of the last SNPD nodes in line. These SNPD nodes are called “pre-selected”
SNPD nodes.
5. The next step is divided into two actions. First action (A), all not pre-selected SNPD
nodes switch their current sources 1 off. Second action (B), all pre-selected SNPD
nodes switch their current sources 2 on (The current sources 1 of the preselected
SNPD nodes remain switched on. The pull up resistors of all SNPD nodes remain
switched off.)
6. In the sixth step, the current through the SNPD node is measured again. The meas-
ured current is called Ishunt_3. If the difference between this current (Ishunt_3) and the off-
set current (Ishunt_1) is below a specific threshold value IDiff the SNPD node is identified
as the last not addressed SNPD node in the bus line. This SNPD node then stores
the transmitted NAD in to its RAM and the master can now communicate with the
SNPD node using this NAD.
7. During the seventh step, all current sources are switched off and all pull up resistors
of the SNPD nodes are switched on, in order to resume to the normal bus mode.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 9

3.3.1 Location of the slave node positioning detection


Figure 3-2 shows where the SNPD node sequence is located in the message.

Positioning detection

Synch break Synch field Ident Command n Synch break Synch field Ident Command n+1

Figure 3-2: SNPD node positioning detection

3.4 PHYSICAL LAYER

3.4.1 Description of the needed components


The position detection feature added to the normal LIN bus functionality allows a slave to de-
tect if it is the last one in line without an address. The additional hardware resources needed
for that purpose are a shunt resistor between the BUS_IN and a new output pin BUS_OUT of
the slave and a circuitry that allows measuring the current in the bus shunt resistor. For the
injection of a constant current during positioning detection two controlled current sources and
the possibility to switch off standard pull-up are required.

3.4.2 LIN transceiver for BSM-nodes (principle)


The LIN transceiver consists of a transmit and a receive signal path. The receiver path is rep-
resented by a comparator that is comparing the bus signal against a mean reference voltage.
The output of this comparator is the internal signal RXD. The transmit path consists of a low
side driver between the bus line and ground. For a dominant bus signal this driver has to be
activated over the internal TXD signal. Between TXD and the driver transistor additional cir-
cuitry for slew rate control and current limitation has been implemented. In order to comply
with negative bus voltages referred to the local ground potential, a diode has been inserted in
series to the output driver. Additionally a bus pull-up resistor together with a series diode be-
tween the bus line and VSup belongs to the standard LIN transceiver. In a BSM node this pull-
up path is enabled over the internal control_1 signal. For the position detection capability,
two additional current sources and diodes are also included in to the LIN transceiver. These
sources may be enabled over the control signal 1 & 2. Together with the bus shunt resistor
RSHUNT it is possible for a slave node to determine its position on the LIN bus.
Remark: In normal Mode, the parameters of the LIN 2.1 specification are recommended. In
applications, with un-powered nodes it is useful to reduce the value IBUS_no_bat to 1µA, to re-
duce the quiescent current in the system (see LIN Physical Layer Spec. Rev. 2.1).
The following simplified schematic shows the BSM LIN bus transceiver circuitry:

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 10

V_Sub

Control 1

Source 2
Source 1
RPU,LIN
Control 2
Control 3

BUS_IN
Comparator RXD
-Opamp

RSHUNT

BUS_OUT Opamp Analog I

Level shifter
slew rate control
current limitation
TXD

GND

Figure 3-3: Schematic of the BSM transceiver circuitry

3.4.3 Differential amplifier (principle)


The differential amplifier is sampling and amplifying the differential input voltage between
BUS_IN and BUS_OUT. Between these two terminals the shunt resistor is measuring the
bus current. The differential amplifier needs a low offset because of the low voltages across
the shunt. If needed the gain of the amplifier could be temperature compensated, to com-
pensate the temperature coefficient of the shunt resistor.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 11

3.4.4 Signal acquisition chain (principle)


The comparison between the different current levels can be made with sample and hold cir-
cuits and comparators or digitally with an ADC (Analogue to Digital Converter).
The following block diagram (Figure 3-4) shows the needed components for an ADC realiza-
tion:

Bus shunt Differential Input Conversion


resistor amplifier selection ADC control

Clock
BUS_IN Select

Control
SOC

Mode
D
R
SHUNT
ADC[7:0]
Aux-Input EOC
A

V V
BUS_OUT MID REF,ADC

Figure 3-4: Components contributing to the signal path using an A/D converter

The voltage over the shunt resistor is measured via a differential amplifier. In addition to the
output signal of the differential amplifier the ADC maybe used for any additional auxiliary sig-
nals on the chip. The reference voltage of the ADC can be a band gap reference trimmed to
the desired precision. If an SC-Amplifier (Switched Capacitor Amplifier) is used, the conver-
sion process has to be synchronized to the clock signal. This synchronization can be done
automatically by a conversion control block as soon as the differential amplifier is selected as
input source.

3.4.5 Pull-up current sources 1 & 2


The pull-up current sources are intended to generate a predefined pull-up current on the bus
line. For normal bus operation the pull-up current sources are not needed and therefore they
are disabled.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 12

3.4.6 Timing Parameter


no. symbol parameter condition min. typ. max. unit
Bus load conditions
Switching on time of current
1 ton_CS_1 CBUS = 10nF 5 µs
source 1
RBUS = 500 Ω
toff_CS_1 Bus load conditions
Switching off time of current
2 CBUS = 10nF 1 µs
source 1
RBUS = 500 Ω
Bus load conditions
Switching on time of current
3 ton_CS_2 CBUS = 10nF 5 µs
source 2
RBUS = 500 Ω
toff_CS_2 Bus load conditions
Switching off time of current
4 CBUS = 10nF 1 µs
source 2
RBUS = 500 Ω
ton_Rpu Bus load conditions
Switching on time of the
5 CBUS = 10nF 5 µs
pull-up resistor
RBUS = 500 Ω
toff_Rpu Bus load conditions
Switching off time of the
6 CBUS = 10nF 1 µs
pull-up resistor
RBUS = 500 Ω
t_MADC The average value of at least
7 Measurement time ADC 3 measurements are recom- 120 µs
mended
T_MDAC_PD Delay before the ADC
8 10 µs
measurement starts
Propagation delay of detect-
Including the Propagation de-
9 t_PD ing the break and starting 5 µs
lay of the transceiver
the action
t_mid Timing definition of Step 5 Time from begin of Step 5 first
10 first action (A) and action (A) to begin of second 0,45 0,5 0,55 T-Bit
second action (B) action (B). (See Figure 3-5)
Table 3-1: Timing table

3.4.7 DC characteristics
no. symbol parameter condition min. typ. max. unit
1 I_CS_1 Pull-up current source_1 2) 1 1,24 mA
2 I_CS_2 Pull-up current source_2 2) 3,15 3,85 mA
R_shunt Bus shunt resistor in the
3 1) 0,65 1,25 Ω
slave
IDiff Selection and
4 2,3 2,9 mA
Pre- selection
5 R_Slave pull-up resistor in a slave 20 60 KΩ
R_Master pull-up resistor in the
6 900 1100 Ω
master
I_Bus_dom Driving current in domi-
7 2) 40 mA
nant state
Table 3-2: DC Characteristics
1) This resistor could also be located externally

2) The transceiver in the master ECU must be capable to drive at least 40mA for 9 T-Bit after 4 T-Bit of the falling edge
of the break field.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 13

3.4.8 Timing of the measurement sequence


In order to receive a correct behavior of the complete system, all SNPD nodes using the Bus
Shunt Method have to use the same timing. The timing of the different steps is defined in the
following table. The oscillator of the slave has to fulfill the same accuracy as for a slave to
slave communication defined in the LIN specification.

Step Action Start of action [TBIT]


1 Switching off all Pull- Ups and all current sources 1 (Falling edge of
break field)
2 Start offset measurement (I_shunt_1) 2
3 Switching on current source 1 5
4 Start the measurement 1 (I_shunt_2) 6
5 All not pre-selected (first action A) nodes switching off there 9
current source_1 with the falling edge of the TBIT signal.
All pre selected SNPD (second action B) nodes are switching
on their current source 2 with the rising edge of the TBIT sig-
nal.
6 Start the measurement 2 (I_shunt_3) 10
7 Switching off all current sources and switching on the pull-up 14

Table 3-3: Timing of Bus Shunt Method Slave Node Position Detection

3.4.9 Timing in the SNPD node


To secure the sequence, in each BSM slave node the same sequence has to start.

.t_mid

LIN-Bus

Pull-up & pull-up resistor current sources 1&2=off Source 1 = on Pre selected sources 1 & 2 = on only pull-up resistor = on
current sources 1 & 2

Measurements IShunt 1 IShunt 2 IShunt 3

Steps
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7

Synch Break

T Bit
.

Figure 3-5: Timing diagram of the SNPD node

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 14

3.4.10 Timing including tolerances


As defined in the LIN specification [1], section 6.3, a tolerance of the oscillator frequency from slave to
slave is allowed. Therefore, a certain safety margin has to be taken into account when calculating the
timing of the different steps.

Figure 3-6: Timing diagram including tolerances

3.5 SUB FUNCTIONS


The SNPD sub function IDs for the Bus Shunt method are summarized in the table below.
SNPD sub function Description SNPD Sub function ID
All BSM-nodes enter the un-
BSM Initialization 0x01
configured mode
Informing all slaves about the
Next NAD 0x02
next NAD
Store the assigned NADs in to
Store NAD the NVM of the slaves, if avail- 0x03
able
Informing all slaves that the
BSM finished 0x04
procedure is finished

Table 3-4: SNPD Sub Function IDs of the Bus Shunt Method

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 15

Note
With the Bus Shunt Method, the implementation of SNPD sub functions 0x01, 0x02 and 0x04
is mandatory. There is no SNPD response to the BSM sub functions, only addressed slaves
response to a request.

3.6 CONFIGURATION FLOW


Beginning with the BSM- Initialization, all SNPD nodes with BSM capability start their meas-
urement sequence within the next break field.
Beginning with the “BSM initialization”-request SNPD sub function 0x01, all nodes capable of
using the Bus Shunt Method are going into their “BSM- Mode” and start with each break field
the BSM sequence. Within the command “Next NAD” sub function 0x02 all BSM slaves will
be informed about the next NAD. The SNPD node which was the last not addressed node in
the line, takes the NAD in to his RAM and this node can now response to this NAD. The
Master sends now the “Next NAD” sub function 0x02 with the next NAD information and so
on. With the command “Store NAD” sub function 0x03, all slaves with available NVM, store
the NAD information in their NV-Memory. With the command “BSM Finished” sub function
0x04, all slaves stop their BSM sequence and they will not react to the 0x02, 0x03 and 0x04
sub function anymore, until the command “BSM initialization” sub function 0x01 is broad-
casted again. Each node that has been configured (got a NAD) remains passive during the
remaining BSM sequence. With this method the SNPD nodes are successively configured
from the first SNPD node to the last SNPD node (closest to the master). While the address-
ing is ongoing, the master can optionally send other LIN commands, but only those BSM se-
quences with the PDU content is equal to the command “Next NAD” are valid.
.

BSM Optional Optional


other Next NAD other Next NAD
Initialization
LIN massages LIN massages

Optional Optional
Optional BSM
other other
Store NAD Finished
LIN massages LIN massages

.
Figure 3-7: Configuration flow of the Bus Shunt Method

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 16

3.6.1 Position detection flowchart

Break field detected


Start

Start Yes
Measurement No
BSM-Mode
position Set
detection

Yes Yes
Sub 0x02 Keep NAD Sub 0x01

No
No

Yes
Sub 0x03 Store NAD Set
in NVM BSM- Mode
No

Yes
Sub 0x04 Reset
BSM- Mode
No

End

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 17

3.6.2 Measurement position detection flowchart

Start

pull-up = Off
current source 1 = Off Step 1
current source 2 = Off

YES
Slave is already addressed

NO

The slave measures ISHUNT1 Step 2


Calculation of the average value

current source 1 = On
Step 3

The slave measures ISHUNT2 Break field


Calculation of the average value Step 4

Step 5
First action (A) Yes
pull-up = Off
current source 1 = Off I_Diff < I_Shunt_2 - I_Shunt_1
current source 2 = Off

No
Step 5 Step 5
Second action (B)
Waiting for the end of step 6 pull-up = Off
current source 1 = On
current source 2 = On

The slave measures ISHUNT3


Calculation of the average value
Step 6

pull-up = On pull-up = On End of break field


current source 1 = Off current source 1 = Off
current source 2 = Off current source 2 = Off

Yes
Step 7
I_Diff < I_Shunt_3 - I_Shunt_1

No

Store NAD in RAM

End

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 18

3.6.3 BSM Setup Flow in Detail


BSM Initialization
Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


Header + Initial Supplier Supplier Function Function unused
0x3C NAD ID LSB ID MSB ID LSB ID MSB

0x7f 0x06 0xb5 0xff 0x7f 0x01 0x02 0xff


All SNPD slaves with BSM capability start their measurement sequence with the next break
field

Optional: other (standard) LIN Messages

Assign NAD to slave 1


Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


+ Initial Supplier Supplier Function Function New
Header NAD ID LSB ID MSB ID LSB ID MSB NAD
0x3C
0x7f 0x06 0xb5 0xff 0x7f 0x02 0x02 New
NAD for
Slave_1

All SNPD slaves with BSM capability start their measurement sequence within the break
field; after the break field the selected SNPD slave takes the NAD for slave 1

Optional: other (standard) LIN Messages

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 19

Assign NAD to slave n


Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


+ Initial Supplier Supplier Function Function New NAD
Header NAD ID LSB ID MSB ID LSB ID MSB
0x3C
0x7f 0x06 0xb5 0xff 0x7f 0x02 0x02 New NAD
for
Slave_n

All SNPD slaves with BSM capability start their measurement sequence within the break
field; after the break field the selected SNPD slave takes the NAD for slave n

Optional: other (standard) LIN Messages

Assign NAD to slave n+1


Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


+ Initial Supplier Supplier Function Function New NAD
Header NAD ID LSB ID MSB ID LSB ID MSB
0x3C
0x7f 0x06 0xb5 0xff 0x7f 0x02 0x02 New NAD
for
Slave_n+1

All SNPD slaves with BSM capability start their measurement sequence within the break
field; after the break field the selected SNPD slave takes the NAD for slave n+1

Optional: other (standard) LIN Messages

Store NAD in slave (Optional)


Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


Header + Initial Supplier Supplier Function Function unused
0x3C NAD ID LSB ID MSB ID LSB ID MSB

0x7f 0x06 0xb5 0xff 0x7f 0x03 0x02 0xff


All SNPD slaves with BSM capability store their new NAD from the RAM in to the NVM, if
available.

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 20

Optional: other (standard) LIN Messages

Assign NAD Finished


Assign NAD via SNPD Request

NAD PCI SID D1 D2 D3 D4 D5


Header + Initial Supplier Supplier Function Function unused
0x3C NAD ID LSB ID MSB ID LSB ID MSB

0x7f 0x06 0xb5 0xff 0x7f 0x04 0x02 0xff


All SNPD slaves with BSM capability stop their measurement sequence in the break field

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 21

3.7 EXAMPLE OF SETUPS OF A LIN BUS SYSTEM WITH BSM


Remark:
1. The following calculations are done with corner values
2. The transceiver in the master has to allow 40mA for 9 T-Bit times after 4 T-Bit times after the falling edge of the break field.

3.7.1 Calculation of the pre selected slaves for step 5 + 6


To calculate the corner situation it is necessary that we use the maximal threshold level and
the smallest current out of current source 1 for the pre-selection.

Pre selected
slaves
Threshold value Condition Calculation min type max
IDiff2-1 Current source 1 of the number of pre selected slaves
Min = 2,3 mA Min = 1000 µA IDiff
Type = 2,6 mA Type = 1100 µA -------------------------------------- 1 3
Max = 2,9 mA Max = 1240 µA current of current source 1
Table 3-5: Calculation of pre selected slaves

3.7.2 Reference calculation of a system with 15 Standard- slaves


Condition
No. Parameter R_Master = 900 Ω R_Master = 1100 Ω
Vbat = 18V
Standard Nodes = 15
13,5 mA 13,5 mA
R_Slave = 20 kΩ
BSM- Nodes = 0
0 mA 0 mA
1 I_CS_1 = 1,24 mA
I_R_Master 20 mA 16,4 mA
Current in the mas-
I_Bus_DOM 33,5 mA 29,9 mA
ter transceiver

Table 3-6: Calculation of a system with 15 Standard- slaves

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 22

3.7.3 Calculation of a system with 15 BSM- slaves

Condition
No. Parameter R_Master = 900 Ω R_Master = 1100 Ω
Vbat = 18V
Standard Nodes = 0
0 mA 0 mA
Step 3 + 4 R_Slave = 20 kΩ
BSM- Nodes = 15
18,6 mA 18,6 mA
1 I_CS_1 = 1,24 mA
I_R_Master 20 mA 16,4 mA
Current in the mas-
I_Bus_DOM 38,6 mA 35,0 mA
ter transceiver

Standard Nodes = 0
0 mA 0 mA
R_Slave = 20 kΩ
I_CS_1 = 1,24 mA
Step 5 + 6 BSM- nodes = 3 3,72 mA 3,72 mA
1)
2 I_CS_2 = 3,85mA
11,55 mA 11,55 mA
BSM- nodes = 3
1)
I_R_Master 20 mA 16,4 mA
Current in the mas-
I_Bus_DOM 35,27 mA 31,67 mA
ter transceiver
Table 3-7: Calculation of a system with 15 BSM- slaves
1) Maximum Number of pre selected BSM-nodes (see calculation of pre-selected slaves)

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 23

3.7.4 Calculation of a system with 5 standard- and 10 BSM- slaves

Condition
No. Parameter R_Master = 900 Ω R_Master = 1100 Ω
Vbat = 18V
Standard Nodes = 5
4,5 mA 4,5 mA
Step 3 + 4 R_Slave = 20 kΩ
BSM- Nodes = 10
12,4 mA 12,4 mA
1 I_CS_1 = 1,24 mA
I_R_Master 20 mA 16,4 mA
Current in the mas-
I_Bus_DOM 36,9 mA 33,3 mA
ter transceiver

Standard Nodes = 5
4,5 mA 4,5 mA
R_Slave = 20 kΩ
I_CS_1 = 1,24 mA
Step 5 + 6 BSM- nodes = 3 3,72 mA 3,72 mA
1)
2 I_CS_2 = 3,85mA
11,55 mA 11,55 mA
BSM- nodes = 3
1)
I_R_Master 20 mA 16,4 mA
Current in the mas-
I_Bus_DOM 39,77 mA 35,77 mA
ter transceiver
Table 3-8: Calculation of a system with 5 standard and 10 BSM- slaves
1) Maximum Number of pre selected BSM-nodes (see calculation of pre-selected slaves)

Website : [Link] Contact: info@[Link]


LIN Bus Shunt
Slave Node Position Detection
Revision 1.0
December 10, 2008; Page 24

3.8 LIMITATIONS IN USE


The Bus Shunt Method has following constraints and is not fully LIN 2.1 compliant in the fol-
lowing aspects:
1. During the configuration period the transceiver in the master must be capable to drive at
least 40 mA at all allowed supply voltages for 9-TBIT times – 4-TBIT times after the falling
edge of the break field.
2. Ground Shift Reduction. The used number of installed shunts in the system reduces the
overall ground shift tolerance as well as VBAT-Shift exceed the tolerances stated in the ta-
ble below.

Number of Shunts (1.25Ω max) GND Shift tolerance [%VBAT] VBAT Shift tolerance [%VBAT]
0 10 10
1 9.8 9.89
2 9.65 9.8
3 9.49 9.71
4 9.32 9.62
5 9.15 9.53
6 8.97 9.43
7 8.78 9.33
8 8.58 9.22
9 8.38 9.11
10 8.17 9.00
11 7.95 8.88
12 7.72 8.76
13 7.48 8.64
14 7.24 8.51
15 6.98 8.38

Table 3-9: Ground- and VBAT shift Tolerances depending on the number of nodes

Website : [Link] Contact: info@[Link]

You might also like