E+L JavaCanmon
E+L JavaCanmon
E+L JavaCanmon
en
PC 0001-0009M_Z.
Introduction ...................................................................................................................................2
Installation .....................................................................................................................................5
2.1
2.2
2.3
2.4
2.5
2.5.1
Peak................................................................................................................................. 16
2.5.1.1
2.5.1.2
2.5.2
Vector............................................................................................................................... 22
2.5.2.1
2.5.2.2
CanCardX .................................................................................................................... 24
2.5.2.3
2.5.3
2.5.3.1
2.5.4
Sohard ............................................................................................................................. 25
Arcnet interface ............................................................................................................ 25
E+L interfaces.................................................................................................................. 29
2.5.4.1
2.5.4.2
2.5.4.3
2.5.4.4
2.5.4.4.1
Ethernet connection..........................................................................................................44
2.5.4.4.2
BEA--251044-EN-01
E+L JavaCanmon
Introduction
To configure E+L DCS devices, a DOS program named Canmon was developed
8 years ago. With this program the E+L DCS devices were accessed using a freely
selectable CAN interface.
This made it possible to activate various services for modifying the devices settings or for
trouble shooting. Operating systems and computer hardware have progressed
immensely in the past years and older DOS programs can no longer be used sensibly.
DOS Canmon therefore had to be ported to Windows.
The decision was made to use the Java programming language for the new user
interface in order to be independent of hardware or operating system. Java programs run
on almost any hardware with any operating system.
The only problem with a Java program is accessing the hardware interfaces, for instance
CAN cards.
To solve this problem the Canmom application was split into two parts. All hardware
access is performed with a C++ program and all visualisation components are realised
with a Java program.
The communication between the programs is done over the TCP/IP protocol. This
protocol can be used with different interfaces. For example over the Ethernet, wireless
LAN, a serial connection over a COM port or by an internal memory connection (local
loop), when both programs are running on the same PC.
Page 2
BEA--251044-EN-01
E+L JavaCanmon
Overview:
JavaCanmon:
The Java user interface program is named JavaCanmon. The current software version is
called PC 0001-0009U_ZC.
The program requires a PC with a speed of at least 400 mHz and a memory of at least
128 MByte, or even better 256 MByte or more.
The program runs on a PC with the operating systems Win98, Windows Me,
Windows 2000, Windows XP, Windows Vista and Linux.
CanServer:
The C++ part, which accesses the CAN hardware, is called CanServer. It is a TCP/IP
server and responds to TCP/IP commands on port 2234. The current software version is
called PC 0001-0008U_ZA.
The CanServer supports up to 10 different CAN interfaces simultaneously. Several
JavaCanmons can be connected simultaneously. The CanServer regulates the access to
the CAN networks.
The CanServer runs only with Windows, with the operating systems Win98, Windows Me,
Windows 2000, Windows XP and Windows Vista.
CanServer was also ported for Linux. It runs on the DO 81 camera computer as part of
the camera application OL 81 and on the Ethernet interface DI G000/DM 4000 as an
independent application.
With Java+Server both programs are started together. The CanServer is accessed
through local loop (127.0.0.1) by JavaCanmon.
BEA--251044-EN-01
Page 3
E+L JavaCanmon
Page 4
BEA--251044-EN-01
E+L JavaCanmon
Installation
There are several possibilities for installing JavaCanmon. The simplest approach is to
use the installation CD. If the CD is not available, Java Runtime, JavaCanmon and
possibly additional device drivers must be installed by hand.
First the [CAN interface] must be selected with which the PC can access a CAN
network. Please click on the multiselect box with the mouse and select the desired
interface.
Important: The CAN interface needs to be plugged into the PC while the drivers
are configured.
Then press the [JavaCanmon] button and the installation begins. All programs are
copied to the PC, the program calls are entered in the system menu and the program
information is saved in the registry.
A check is made afterwards if the correct Java Runtime version is installed. If this is not
the case, the Java Runtime installation is started automatically.
Depending on the selected interface (Peak, Vector Can-AC2 PCI, E+L USB or COM),
additional device drivers are installed.
BEA--251044-EN-01
Page 5
E+L JavaCanmon
For USB interfaces, own device drivers are required. Windows will request the drivers as
soon as the USB interface is connected. All drivers are found in the directory
C:/el/JavaCanmon.
JavaCanmon is then ready for operation and can be started.
The ICON, Java+Server appears on the desktop.
If you wish to have comfortable access to multilingual E+L device documentation from
JavaCanmon, this data (400 MByte) can be copied to the hard drive by pressing the
button [Copy Documentation].
All files are coped into the directory C:\el\JavaCanmon\pdf.
Page 6
BEA--251044-EN-01
E+L JavaCanmon
In the complete version the entire program is installed. (With registry entries, system
menu entries.)
Unpack the file and run Install.exe or ELInstall.exe.
Install.exe
ELInstall.exe
BEA--251044-EN-01
Page 7
E+L JavaCanmon
[Install JavaCanmon]
Installs JavaCanmon and the driver for the selected CAN interface.
(Peak USB + LPT, E+L USB CAN + USB serial )
The update version contains only those files that have changed. This requires
JavaCanmon to already have been installed on the PC.
Unpack the file and run the update.exe. All files are coped to the directory
C:\el\JavaCanmon.
Page 8
BEA--251044-EN-01
E+L JavaCanmon
In order to determine whether Java Runtime 1.5.0_6 has already been installed, go to
Software in the control panel.
BEA--251044-EN-01
Page 9
E+L JavaCanmon
You can find the current Java Runtime version information from a command window.
Windows Start Run cmd
A command windows appears. Enter: java -version
The Java Runtime Version 1.5.0_6 can also be procured from the official website of
Erhardt+Leimer: www.erhardt-leimer.com.
Page 10
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 11
E+L JavaCanmon
After the installation, JavaCanmon appears in the program menu and two new icons
appear on the desktop.
Icon: Java+Server
Important: If you wish to have access to the CAN network, Java+Server must be
started.
If a connection should be established to an external CanServer, then it is sufficient to just
start the user interface (JavaCanmon).
Page 12
BEA--251044-EN-01
E+L JavaCanmon
DO 2000 emulation:
A DO 2000 emulation with full function capabilities is started.
The following CAN interfaces are supported: CANAC2 card, Peak LPT DI 9010,
Peak USB DI 9030 and E+L USB dongle ZC 4062.
Java+Server:
JavaCanmon and Windows CanServer are started together.
JavaCanmon:
Only JavaCanmon is started. JavaCanmon can also be started more than once on the
PC. You can have several views of device data simultaneously.
TCP/IP CanServer:
Only Windows CanServer is started. External PCs can access connected devices over
the CAN interfaces.
Uninstall JavaCanmon:
JavaCanmon is uninstalled.
Visualisation:
JavaCanmon is now started with the CAN value list visualisation. All other operator
controls are hidden.
BEA--251044-EN-01
Page 13
E+L JavaCanmon
cvl=xxx.xxx.xxx.xxx
Page 14
BEA--251044-EN-01
E+L JavaCanmon
The newest E+L interface generation with Ethernet connection does not require any other
CAN hardware for access to E+L CAN devices. These E+L interfaces contain their own
CAN server. With the Ethernet connection, all device and process data can be read into
the CAN network.
The E+L ZC 4063 USB serial interface was developed for the E+L RK 4310 controller.
With this interface the controller is accessed directly. In addition to the device data of the
RK 4310 control, the data of the CAN devices that are connected to the controller via the
CAN bus can be also read.
Sole limitation:
No CAN process data (sensor values, controller status, ...) can be read.
BEA--251044-EN-01
Page 15
E+L JavaCanmon
2.5.1 Peak
In the directory C:\el\JavaCanmon the Windows driver for the CAN interface from the firm
Peak is found.
The driver is named PCandrv.exe and must be run for installation.
After installation the corresponding CAN hardware must be configured. To do this, the
program CAN hardware, PCan2 is run in the control panel.
Page 16
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 17
E+L JavaCanmon
After the program CAN Hardware, PCan2 has been started, the following window
appears:
Select the hardware Peak Dongle-CAN SJA EPP from the list in this window. The
settings of printer port that is used must now be set as resources. In most cases it is the
IO address 378 and the interrupt 7. The settings can be checked with the Windows
device manager.
Page 18
BEA--251044-EN-01
E+L JavaCanmon
To start the device manager, click on the corresponding button. The device manager
should open.
BEA--251044-EN-01
Page 19
E+L JavaCanmon
In the device manager, select Ports (COM and LPT). Then click the right mouse button
and select Properties in the following window.
The properties windows appears.
Under the port settings activate the resource method Use any interrupt assigned to the
port. Afterwards close all windows with the OK button.
Page 20
BEA--251044-EN-01
E+L JavaCanmon
The USB CAN dongle is plugged into a free USB port. Windows automatically detects the
new hardware and requests a driver. This is found in the directory C:\el\JavaCanmon.
After installation the corresponding CAN hardware must be configured. To do this, the
program CAN hardware, PCan2 is run in the control panel.
BEA--251044-EN-01
Page 21
E+L JavaCanmon
2.5.2 Vector
The company Vector Informatik GmbH supplies various CAN interface components,
which can all be supported by JavaCanmon.
Page 22
BEA--251044-EN-01
E+L JavaCanmon
Select the checkbox Include this location in the search and enter the directory where
you have unpacked the CAN driver. The installation is completed by clicking on the
Next button.
BEA--251044-EN-01
Page 23
E+L JavaCanmon
2.5.2.2 CanCardX
The CanCardX is a PCMCIA interface made by the Vector company. To install the
hardware driver the card in inserted into a free PCMCIA slot. The new hardware should
now be recognised. The matching driver can be found on the installation CD in the
directory d:\Vector\CANCardXDriver.
This CAN driver is very powerful. It supports simultaneous access of various application
programs on the same CAN hardware. JavaCanmon can be operated at the same time
with a different application run by the customer.
Page 24
BEA--251044-EN-01
E+L JavaCanmon
2.5.3 Sohard
Many customer systems are networked over Arcnet. E+L offers a special Arcnet-CAN
gateway with which customers have access to E+L devices using a special protocol.
Normally only the CAN process data (sensor values, controller status, ...) are read out
and the controller operation realised. Using special commands, the Canmon functions
can also be activated.
The Sohard company offers a line of Arcnet interfaces that the CanServer can use to
access the E+L Arcnet gateway.
The required Windows drivers are on the JavaCanmon installation CD in the directory
d:\Sohard.
As soon as the Arcnet hardware (PCMCIA card) is plugged into the PC, Windows asks
for the driver. The following window is displayed:
BEA--251044-EN-01
Page 25
E+L JavaCanmon
Page 26
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 27
E+L JavaCanmon
Page 28
BEA--251044-EN-01
E+L JavaCanmon
Serial cable:
The DI 3000 interface must be connected with a serial cable to a free COM interface. The
cable needs to feature a crossover between TxD and RxD and a GND connection.
RxD
TxD
GND
RxD
TxD
GND
BEA--251044-EN-01
Page 29
E+L JavaCanmon
With a serial ribbon cable the devices can be bootloader software programmed and a fast
download can be carried through.
Bootload programming and fast download are special options that the normal user does
not need. Bootloader programming is carried out in the test bay.
Open the housing and plug the ribbon cable to the JST connector.
After the USB has been plugged, Windows requests the drivers. Two drivers have to be
installed.
Page 30
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 31
E+L JavaCanmon
Page 32
BEA--251044-EN-01
E+L JavaCanmon
Windows now requests the second driver. The installation procedure is the same as for
the first driver.
BEA--251044-EN-01
Page 33
E+L JavaCanmon
Page 34
BEA--251044-EN-01
E+L JavaCanmon
In the device manager both drivers are listed under USB Serial Converter A and USB
Serial Converter B.
Note:
Windows requires a separate installation of the drivers for each USB port. If a USB hub is
used, an installation is also necessary.
Note:
The driver installation can be significantly eased if the program DPInst.exe is started.
The E+L USB device has to be connected for the driver installation.
The program is located in the driver path /ELUsbCan.
The E+L installation programs invoke this program automatically during the JavaCanmon
installation.
BEA--251044-EN-01
Page 35
E+L JavaCanmon
Page 36
BEA--251044-EN-01
E+L JavaCanmon
The E+L ZC 4063 USB serial interface was developed for the E+L RK 4310 controller.
With this interface the controller is accessed directly. In addition to the device data of the
RK 4310 control, the data of the CAN devices that are connected to the controller via the
CAN bus can be also read.
Program download and displaying scan data are also possible.
Sole limitation:
No CAN process data (sensor values, controller status, ...) can be read.
The USB serial interface is plugged to the bootloader connector (JST). The data
communication runs over a serial connection with 56000 KBit.
BEA--251044-EN-01
Page 37
E+L JavaCanmon
Page 38
BEA--251044-EN-01
E+L JavaCanmon
Windows now requests the second driver. The installation procedure is the same as for
the first driver.
BEA--251044-EN-01
Page 39
E+L JavaCanmon
Page 40
BEA--251044-EN-01
E+L JavaCanmon
The second driver was also installed successfully. The hardware can now be used.
In the device manager both drivers are listed under USB Serial Converter A and
USB Serial Converter B.
For the USB Serial Converter B driver the virtual COM port (VCP) must now be activated
in the driver properties.
Right click on the USB Serial Converter B driver and select Properties.
BEA--251044-EN-01
Page 41
E+L JavaCanmon
Note:
If the advanced menu for activation of the virtual COM port is missing for the USB Serial
Converter B driver, then the driver must be uninstalled (driver menu).
After unplugging and plugging the USB cable, the driver is installed again (see above).
Note:
The driver installation can be significantly eased if the program DPInst.exe is started.
The E+L USB device has to be connected for the driver installation.
The program is located in the driver path /ELUsbCan.
The E+L installation programs invoke this program automatically during the JavaCanmon
installation.
Page 42
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 43
E+L JavaCanmon
DI G000
DM 4000
DO 81
Serial console:
Using a terminal program, for instance hyperterminal, a serial connection is created to the
Ethernet interface. A telnet session runs in this window.
With the following commands the addresses can be set.
# ifconfig eth0 10.6.4.1 netmask 255.255.0.0
Important: To permanently save the address the config files tcpipadr, tcpipadr1,
usbadr in the directory /var/el/sys of the E+L device must be modified.
The program settcpip sets the addresses and also saves the values in the directory
var/el/sys.
# settcpip -A0 10.6.4.1
settcpip A0 xxx.xxx.xxx.xx
settcpip A1 xxx.xxx.xxx.xx
Page 44
BEA--251044-EN-01
E+L JavaCanmon
CAN bus:
If a CanServer program is already running in the CAN network, the TCP/IP addresses of
the Ethernet interface can be set with JavaCanmon, a DO 20.../DO 81 control unit or a
set-up keyboard.
Read CAN network. A 7.9 PC0016 device should appear. The TCP/IP addresses
are listed In the parameter list.
Ethernet 0
Ethernet 1
The values can now be set. Activation is carried out by triggering a service
function.
DO 81:
The TCP/IP addresses of a DO 81 camera computer can be set directly on the camera
computer.
To activate the addresses, press the HELP button. Here the service function
Set TCP/IP Address can be activated.
Boot program:
If a DO 81 camera computer is connected, the ESC button can be pressed during the
boot phase. The boot program is then run. In the boot program the individual addresses
of the camera computer can be set, as described for DO 81.
Driver installation:
After plugging in the USB cable, Windows asks to load a driver.
The following windows appear successively:
BEA--251044-EN-01
Page 45
E+L JavaCanmon
Page 46
BEA--251044-EN-01
E+L JavaCanmon
BEA--251044-EN-01
Page 47
E+L JavaCanmon
For Windows a TCP/IP address setting with DHCP is active as a default. The E+L
devices do not have a DHCP server. This means that after about 50 seconds a DHCP
timeout will occur with Windows and the interface sets itself to the default range
169.254.XXX.XXX.
The USB interface of the devices DO 81, DI G000 and DM 4000 have the default TCP/IP
address of 169.254.1.2. This means that the connection to the E+L device will be made
automatically after about 50 seconds without changing the TCP/IP addresses of the
interface.
If you wish to avoid this waiting time, you can switch the TCP/IP address allocation from
DHCP to a fixed address.
To do this, guide the mouse pointer over the interface and click on the right mouse
button. Select the menu item Properties in the pop-up menu.
Page 48
BEA--251044-EN-01
E+L JavaCanmon
Select the element Internet protocol (TCP/IP) and press the button [Properties].
BEA--251044-EN-01
Page 49
E+L JavaCanmon
Page 50
BEA--251044-EN-01