Melexis USB LIN master
Version 2.0
Table of Contents
1. General description ............................................................................................................................. 3
2. Hardware ............................................................................................................................................. 3
3. Software............................................................................................................................................... 3
3.1. Installation of the LIN master ........................................................................................................ 4
3.1.1. Installing the USB driver......................................................................................................... 4
3.1.2. Installing the LIN master application software ....................................................................... 6
3.2. LIN commander ............................................................................................................................ 7
3.2.1. Lin Schedules and LIN Sequences ........................................................................................ 9
3.2.2. Log window ............................................................................................................................ 9
3.2.3. Start working with the LIN commander .................................................................................. 9
3.2.4. Reprogramming of Melexis modules using the LIN Master ................................................. 10
4. Appendix A: Possible LIN baudrates................................................................................................. 11
5. References ........................................................................................................................................ 13
6. Disclaimer .......................................................................................................................................... 13
Rev. 004
Page 2 of 13
Application note
Oct/06
Melexis USB LIN master
Version 2.0
1. General description
The Melexis USB LIN master can be used for all applications requiring a LIN master. It is designed to
support the automatic configuration algorithms as they are defined by the LIN consortium. The Melexis
Lin master is fully configurable by software through the USB port and supports all practical baud rates
on the LIN bus.
This user manual describes the LIN master revision 2 (Fast loader). This LIN master is backwards
compatible with LIN master revision 1.
2. Hardware
The LIN master consists of a microcontroller connected to the TH8061 physical layer interface of
Melexis. It can be connected to the PC using the USB port. The LIN bus and power supply can be
connected through connectors at one side of the device. There are 5 control LEDs:
1. PC connected: indicates that the PC is connected and the USB link is active.
2. PC communication: indicates that there is communication between the PC and the master.
3. M2S: indicates that a message with data field send by the master is travelling over the bus.
4. S2M: indicates that a message with data field send by a slave is travelling over the bus.
5. Vbus: indicates that the LIN bus is powered and that messages can be send.
The internal microcontroller and LEDs are powered by the USB bus. When the USB plug is connected,
communication with the microcontroller over the USB line is possible. The LIN bus itself is not
powered by the USB interface. Therefore an extra power supply has to be foreseen. The LIN bus
voltage will be 1 diode voltage lower than the external power supply. As soon as the power supply is
above 8V, the green LED will be on. When the LIN voltage is lower than 7V, the internal
microcontroller will still send the requested LIN message to the physical layer. Because of the fact that
the physical layer is not powered according to the LIN specifications, the signals on the LIN bus will
not be valid. But the fact that the LIN voltage is out of spec does not block the functionality of the
master. Even when the LIN voltage is out of spec, the microcontroller drives the physical interface of
the LIN bus.
After connecting the USB cable, the microcontroller is powered. All 5 LEDs will be on for
approximately 10 seconds. After those 10 seconds, some of the LEDs will flash and only the PC
connected LED will be on. If the external power is connected, the green Vbus LED will be on too. From
now on, all LEDs will react on PC and LIN messages.
Pinout of the different connectors:
- Red banana connector = battery voltage 12V typical.
- Black banana connector = ground
- Yellow banana connector = LIN bus
3. Software
This chapter describes the necessary steps to install the device drivers and all the software necessary
to communicate with the LIN master.
All software is written for Windows XP Pro. It might be possible that is it working under other versions
of windows, but this cannot be guaranteed.
Rev. 004
Page 3 of 13
Application note
Oct/06
Melexis USB LIN master
3.1. Installation of the LIN master
This chapter describes the necessary installations to do to be able to work with the LIN master.
Note that
both software and device drivers installations are required
in order to work with the
device and
must be done before the first time you connect the LIN Master
to the PC. Also, to be
able to successfully accomplish these installations you need
administrative rights
on the PC.
Version 2.0
3.1.1. Installing the USB driver
Insert the CD into your PC
1. An autorun popup screen will appear
2. Click on the “Install USB driver” button to start the installation
3. A welcome window will appear. Click “Next” button to continue
4. You’ll see a window with the license agreement and a few installation windows popping up.
Accept the license and ignore all the windows.
Rev. 004
Page 4 of 13
Application note
Oct/06
Melexis USB LIN master
Version 2.0
5. At the end, this window tells that the installation is done successfully
The correct drivers are installed. From now on, the LIN master can be accessed via a virtual COM
port. Note that the first time the device is connected to a particular USB port, an automatic virtual COM
port installation is performed and a unique COM port number is assigned. Check the device manager
of Windows XP to get the number of the COM port the LIN master is connected to (start->settings-
>control panel->system->hardware->device manager->Ports (COM & LPT)).
Rev. 004
Page 5 of 13
Application note
Oct/06