Gopel Electronic USB 3072 User manual

Product Specification
USB 3072
basicLIN 3072
LIN Interfaces
User Manual Version 1.2
GOEPEL electronic GmbH
Goeschwitzer Str. 58/60
D-07745 Jena
Phone: +49-3641-6896-597
Fax: +49-3641-6896-944
E-Mail: [email protected]
http://www.goepel.com
Get the total Coverage!

Issue: June 2010
© 2010 GOEPEL electronic GmbH. All rights reserved.
The software described in this manual as well as the manual itself are supplied under license and
may be used or copied only in accordance with the terms of the license.
The customer may make one copy of the software for safety purposes.
The contents of the manual is subject to change without prior notice and is supplied for information
only.
Hardware and software might be modified also without prior notice due to technical progress.
In case of inaccuracies or errors appearing in this manual, GOEPEL electronic GmbH assumes
no liability or responsibility.
Without the prior written permission of GOEPEL electronic GmbH, no part of this documentation
may be transmitted, reproduced or stored in a retrieval system in any form or by any means
as well as translated into other languages (except as permitted by the license).
GOEPEL electronic GmbH is neither liable for direct damages nor consequential damages from
the company’s product applications.
Printed: 10.06.2010
All product and company names appearing in this manual are trade names or registered trade names of their respective owners.

Table of Contents
USB 3072/ basicLIN 3072 – User Manual I
1INSTALLATION..............................................................1-1
1.1 HARDWARE INSTALLATION ...................................................1-1
1.2 DRIVER INSTALLATION........................................................1-2
2HARDWARE ...................................................................2-1
2.1 DEFINITION .....................................................................2-1
2.2 TECHNICAL SPECIFICATION ..................................................2-4
2.2.1
Dimensions ............................................................2-4
2.2.2
Properties ..............................................................2-4
2.3 CONSTRUCTION ................................................................2-5
2.3.1
General..................................................................2-5
2.3.2
Addressing.............................................................2-5
2.3.3
Communication Interfaces.......................................2-6
2.3.4
Assembly ...............................................................2-8
2.3.5
Connector Assignments...........................................2-9
2.3.6
LED Indication......................................................2-10
2.4 DELIVERY NOTES.............................................................2-11
3CONTROL SOFTWARE....................................................3-1
3.1 PROGRAMMING VIA G-API...................................................3-1
3.2 PROGRAMMING VIA DLL FUNCTIONS.......................................3-1
3.2.1
Windows Device Driver ...........................................3-2
3.2.1.1 Driver_Info.........................................................3-4
3.2.1.2 DLL_Info ............................................................3-5
3.2.1.3 Write_FIFO.........................................................3-6
3.2.1.4 Read_FIFO .........................................................3-7
3.2.1.5 Read_ FIFO_Timeout...........................................3-8
3.2.1.6 Write_ COMMAND...............................................3-9
3.2.1.7 Read_ COMMAND .............................................3-10
3.2.1.8 Xilinx_ Download...............................................3-11
3.2.1.9 Xilinx_ Version ..................................................3-12
3.3 PROGRAMMING WITH LABVIEW ..........................................3-13
3.3.1
LabVIEW via G-API...............................................3-13
3.3.2
LLB using the Windows Device Driver.....................3-13
3.4 FURTHER GOEPEL SOFTWARE ...........................................3-13
3.5 USB CONTROLLER CONTROL COMMANDS...............................3-14
3.5.1
USB Command Structure.......................................3-14
3.5.2
USB Response Structure........................................3-14
3.5.3
USB Commands....................................................3-14


Installation
USB 3072/ basicLIN 3072 – User Manual 1-1
1Installation
1.1 Hardware Installation
Generally hardware installation for USB 3072/ basicLIN 3072 means
exchanging the transceiver modules.
Please make absolutely certain that all of the installation procedures
described below are carried out with your system switched off.
If it is necessary to exchange transceiver modules, the corresponding
device is to be opened according to its conditions.
Doing this, pay attention to the general rules to avoid electrostatic
charging. Transceiver modules must never be removed or mounted
with the power switched on! In addition, the right alignment is
absolutely required (see Assembly).

Installation
1-2 USB 3072/ basicLIN 3072 – User Manual
1.2 Driver Installation
For proper installation of the GOEPEL electronic USB drivers on your
system, we recommend to execute the GUSB driver setup.
To do that, start the
GUSB-Setup-*.exe
setup program (of the
supplied CD, “*” stands for the version number) and follow the
instructions.
At present, the available device driver only supports Windows®
2000/ XP systems.
If you want to create your own software for the boards, you possibly
need additional files for user specific programming (
*.LLB
,
*.H
).
These files are not automatically copied to the computer and have to
be transferred individually from the supplied CD to your development
directory.
The USB interface uses the high-speed data rate according to the
USB2.0 specification (if possible, otherwise full-speed).
After driver installation, you can check whether the modules are
properly embedded by the system.
The following picture shows the successful embedding of one
USB 3072/ basicLIN 3072 device with three controllers:
Please note that the Device Manager shows ALL USB controllers.
Figure 1-1:
Display of Device Manager

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-1
2Hardware
2.1 Definition
USB 3072 LIN boards are GOEPEL electronic GmbH communication
boards with USB 2.0 interface.
These boards are used in general control technology, e.g. for
applications in automotive technology.
Please note: Downloading the Xilinx FPGA is absolutely required for
operating the USB 3072 board (see Xilinx_Download in the
Windows Device Driver section).
For operating USB 3072 you need the GOEPEL electronic USB rack
which can cover up to 16 GOEPEL electronic USB boards.
In this case, power supply comes from the built-in power supply
unit.
Figure 2-1:
USB 3072

Hardware
2-2 USB 3072/ basicLIN 3072 – User Manual
basicLIN 3072 is a GOEPEL electronic GmbH stand-alone device based
on a USB 3072 communication board to be connected to a PC or
laptop. It was in particular developed for applications out of complex
test systems.
The external power supply allows the use of this device for data
acquisition and the inspection of signals in motor vehicles.
Power supply with 8..25 VDC (and approx. 500 mA at 12 V) is effected
via the two ext. Power Supply females (red = plus/ blue= minus) at
the device’s rear side (opposite to the LIN interfaces connector).
These females are used to supply the internal logic. In addition, the
blue female is connected with the GND connections of the USB and
LIN interfaces.
Figure 2-2:
basicLIN 3072

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-3
Resources of USB 3072/ basicLIN 3072:
♦3 LIN interfaces of Version 2.0b
♦As an option, every interface can also be designed as a K-Line
interface
♦Extended trigger functions with one trigger input and output
per interface to the frontal plug connector or the backplane
♦For each LIN interface USB 3072/ basicLIN 3072 has an own 32
bit microcontroller (TriCore TC1765, 40MHz)
♦Visualisation of the controller states by LEDs arranged at the
front panel (two LEDs per controller, see LED Indication)
♦High flexibility through pluggable transceiver modules
In this User Manual, Controller means ALWAYS one of the
microcontrollers assigned to each LIN interface
(with the exception of the “LIN Controller” designation on the front
panel of a USB 3072 board, which refers to the entire board).
In case a basicLIN 3072 device does not provide enough resources for
your applications, there is a GOEPEL electronic USB Rack available to
cover up to 16 GOEPEL electronic USB boards.
Then the power supply comes from a built-in power supply unit with
230V or 115V connector at the rack’s rear side.

Hardware
2-4 USB 3072/ basicLIN 3072 – User Manual
2.2 Technical Specification
(width x height x depth):
♦USB 3072: 4 HP mm x 130 mm x 185 mm
♦basicLIN 3072: 145 mm x 70 mm x 220 mm
The dimensions stated for USB 3072 refer to an installed board.
The characteristics of USB 3072/ basicLIN 3072 are as follows:
Symbol Parameter Min. Typ. Max. Unit Remarks
Ext. Power Supply Power supply for internal logic 8 25 V
VBAT Battery voltage 12 27 V for LIN
Transmission rate 22 kBaud
External trigger input 3.3 50 V
External trigger output 5 V
The external trigger inputs can also be used to feed in an external
clock signal (see also the 0x51 LIN Monitor – Time Stamp Configuration
Firmware command).
2.2.1 Dimensions
2.2.2 Properties

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-5
2.3 Construction
USB 3072 boards or basicLIN 3072 devices have three LIN interfaces
of version 2.0b. (As an option, also K-Line is possible).
Each LIN interface is supported by an own microcontroller.
On the board the USB information is distributed among the controllers.
32Bit µC
Tricore 1765
LIN
Transceiver-
module
LIN 1
UBat 1
ext. Triggeroutput 1
ext. Triggerinput 1
LIN-Interface 1
LIN-Interface 2
LIN-Interface 3
Hub
Wake 1
USB -1
USB -2
USB -3
LIN
USB
USB
ext. Power supply
8..25 VDC
Figure 2-3: Block diagram USB 3072
Please use the delivered USB cables to connect USB 3072/
basicLIN 3072 devices to the PC’s USB interface.
Other cables may be inapplicable.
Addressing an individual USB 3072/ basicLIN 3072 device when
operating several USB 3072/ basicLIN 3072 at the same computer takes
place exclusively according to the serial numbers of their LIN
controllers (see Control Software): The LIN controller with the
LEAST serial number is always the device with the number 1.
To improve clarity, we recommend to arrange the individual
USB 3072 devices in the USB rack in the order of ascending serial
numbers of their LIN controllers (or to connect the individual
basicLIN 3072 devices in the same order to the computer)
2.3.1 General
2.3.2
Addressing

Hardware
2-6 USB 3072/ basicLIN 3072 – User Manual
Up to 3 x LIN-Interface Version 2.0 or
Up to 3 x K-Line Interface (ISO 9141)
The following figure shows the output circuitry of a USB 3072 board
between the transceiver modules and the frontal plug connector:
Figure 2-4: Detail of USB 3072 Output Circuit Diagram
If it is necessary to change transceiver modules, take care that the
square pins (Pin1) of the socket and the transceiver module lie about
each other.
2.3.3 Commu-
nication Interfaces

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-7
LIN:
The transceivers are designed as plug-in modules. Generally, the
TJA1020 is used for this type of transceicer.
For the standard design of the transceiver modules, it is possible to
change over between Master and Slave configuration per software
using the relays Rel9 for LIN1, Rel10 for LIN2 or Rel11 for LIN3.
The pull-up resistors for LIN are located on the transceiver modules.
Via the VBat contacts the power supply of the transceiver modules is
connected. According to the LIN specification, this power supply is to
be carried out via a reverse-connect protection diode and a support
capacitor (so the VBat voltage is fed by VBAT in 1..VBAT in 3).
The voltage fed at the power supply (voltage) pin should not exceed
the transceiver’s scope (for example, the upper VBAT voltage limit is
27 V for TJA1020).
The VBAT out 1..VBAT out 3 connections are monitoring outputs to
measure the real voltage at the transceiver, possibly to compare this
voltage with the LIN signal level.
For special control and measuring tasks, the communication boards
are provided with a hardware trigger output and input for each LIN
interface.
Their function description can be taken from the LIN Commands
section of the GOEPEL Firmware documentation.
In addition, USB 3072 boards offer the possibility to separate the LIN
communication bus from the corresponding test object (device or unit
under test) via the relays 1..3.
The relays 4..6 allow the interconnection of the three LIN interfaces to
a common bus on the board (see Figure 2-4).
K-Line:
The transceivers are designed as plug-in modules. Generally, the
L9637 of ST is used for this type of transceicer.
Via the VBAT in1..VBAT in3 contacts, the supply voltage of the
transceiver modules is connected. The voltage fed at the power supply
(voltage) pin should not exceed the transceiver’s scope (for example
for L9637, the upper VBAT voltage limit is 36 V).
To bridge the reverse polarity diode for VBat for LIN, the VBAT voltage
can be fed via VBAT out 1..VBAT out 3.

Hardware
2-8 USB 3072/ basicLIN 3072 – User Manual
Figure 2-5 shows schematically the component side of a USB 3072
board.
Transceiver-
module LIN3
ON
DIP 3
ON
DIP 2
ON
DIP 1
µC 3
µC 2
µC 1
XS 1
Transceiver-
module LIN2
Transceiver-
module LIN1
1
1
1
Figure 2-5: Component side of USB 3072
The configuration elements of Figure 2-5 are explained in the
following table:
LIN1 Transceiver module for LIN1/K-Line1
LIN2 Transceiver module for LIN2/K-Line2
LIN3 Transceiver module for LIN3/K-Line3
DIP1…3 DIP switches of USB 3072 boards for configurating the microcontrollers
Do not change the settings!
2.3.4 Assembly

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-9
Type: DSub 25 poles socket
The signals of the LIN interfaces can be accessed via this connector at
the communication board’s front side with the following assignment:
No. XS1 pin Signals name Remarks
1 14 LIN1/ K-Line1 LIN-(K-Line) Bus line1
2 2 LIN2/ K-Line2 LIN-(K-Line) Bus line2
3 15 LIN3/ K-Line3 LIN-(K-Line) Bus line3
4 1 Trig out1 Trigger output 1
5 17 Trig out2 Trigger output 2
6 5 Trig out3 Trigger output 3
7 18 VBAT out1 Measuring output for supply voltage of
Transceiver 1 OR Supply voltage input for
Transceiver 1 without reverse polarity diode
8 4 VBAT out2 Measuring output for supply voltage of
Transceiver 2 OR Supply voltage input for
Transceiver 2 without reverse polarity diode
9 20 VBAT out3 Measuring output for supply voltage of
Transceiver 3 OR Supply voltage input for
Transceiver 3 without reverse polarity diode
10 8 - not assigned
11 21 - not assigned
12 7 - not assigned
13 23 Gnd Ground potential
14 11 Wake1 Transceiver Wake input 1
15 24 Wake2 Transceiver Wake input 2
16 10 Wake3 Transceiver Wake input 3
17 3 VBAT in1 Supply voltage input for Transceiver 1 via
reverse polarity diode
18 16 VBAT in2 Supply voltage input for Transceiver 2 via
reverse polarity diode
19 6 VBAT in3 Supply voltage input for Transceiver 3 via
reverse polarity diode
20 19 Trig in1 Trigger input 1
21 9 Trig in2 Trigger input 2
22 22 Trig in3 Trigger input 3
23 12 - not assigned
24 25 - not assigned
25 13 - not assigned
For LIN, the PINs 14/ 15/ 16 may be connected with the WAKE lines
(depending on the transceiver).
USB Interface
You find the USB-B-Socket (with USB standard assignment) for the
USB 2.0 interface opposite to the LIN interfaces connector side of
USB 3072.
2.3.5 Connector
Assignments

Hardware
2-10 USB 3072/ basicLIN 3072 – User Manual
The LEDs arranged at the front panel of a USB 3072 board indicate
the current operating state of the controllers assigned to the LIN
interfaces (also called “LIN Ports”).
One green LED and one red LED belong to each LIN interface.
The arrangement is shown in the following figure:
LIN Port2
LIN Port3
LIN Port1
The LED states are explained in the table:
2.3.6 LED
Indication
Figure 2-6:
LED Indication
green LED red LED Remarks
Permanently ON Controller not running
Error cause (probably):
Xilinx download not executed
Alternately blinking Bootloader software runs
Error cause (probably):
Software reset not executed
OFF Firmware runs
ON
(shortly) OFF Firmware runs executing firmware
commands

Hardware
USB 3072/ basicLIN 3072 – User Manual 2-11
2.4 Delivery Notes
USB 3072/ basicLIN 3072 devices are delivered as follows:
♦3x LIN interface
As an option, each interface can also be designed as a K-Line
interface.
In addition to the interface, the type of the corresponding LIN/ K-Line
Transceiver as well as the required Functionalities for each interface
must be selected.
For operating USB 3072 boards you need the GOEPEL electronic USB
rack which can cover up to 16 GOEPEL electronic USB boards.
In this case, power supply comes from the built-in power supply
unit.


Control Software
USB 3072/ basicLIN 3072 – User Manual 3-1
3Control Software
There are three ways to integrate USB 3072/ basicLIN 3072 hardware in
your own applications:
♦Programming via G-API
♦Programming via DLL Functions
♦Programming with LabVIEW
3.1 Programming via G-API
The G_API (GOEPEL-API) is the favored user interface for this
GOEPEL hardware.
You can find all necessary information in the
G-API
folder of the
delivered CD.
3.2 Programming via DLL
Functions
Programming via DLL Functions is possible also in future for existing
projects which can not be processed with the GOEPEL electronic
programming interface G-API.
We would be pleased to send the GOEPEL Firmware documentation to
you on your request. Please get in touch with our sales department in
case you need that.
The GUSB_Platform expression used in the following function
description stands for the name of a GOEPEL electronic USB driver.
For the used structures, data types and error codes refer to the
headers – you find the corresponding files on the supplied CD.
In this User Manual, Controller means always the microcontroller
assigned to the corresponding LIN/ K-Line interface of a USB 3072/
basicLIN 3072 device. An own USB Controller providing the USB 2.0
interface is assigned to each of these Controllers.
On the other hand, USB Controller means ALWAYS the controller
providing the USB 2.0 interface of the USB 3072/ basicLIN 3072 device.

Control Software
3-2 USB 3072/ basicLIN 3072 – User Manual
The DLL functions for programming using the Windows device driver
are described in the following sections:
♦Driver_Info
♦DLL_Info
♦Write_FIFO
♦Read_FIFO
♦Read_FIFO_Timeout
♦Write_COMMAND
♦Read_COMMAND
♦Xilinx_Download
♦Xilinx_Version
3.2.1 Windows
Device Driver
This manual suits for next models
1
Table of contents
Other Gopel Electronic Recording Equipment manuals