Installation guide

Linux Installation
Manual • Doc. No.: C.2001.21 / Rev. 3.0 •
© 2000-2007 esd gmbh
CAN-API Installation
Page 74 of 112
4.1.3.3 Configuration
All user configurable stuff concerning EtherCAN can be found in the file
/etc/esd-plugin
.
List of available keywords in
/etc/esd-plugin
(with 0 < x < 4):
Keyword Description Default Value
PeerName[x]
host name or IP-address of EtherCAN server -
Net[x]
CAN net number assigned to EtherCAN server with
above
PeerName[x]
50 + x
ConnTimeout[x]
Time to wait until connection to the EtherCAN server is
established. If timeout exceeds,
canOpen()
returns
NTCAN_SOCK_CONN_TIMEOUT.
2500 ms
CmdTimeout[x]
Timeout for special commands send from client to
EtherCAN-server.
2500 ms
KeepAliveTime[x]
If there is no CAN traffic, client sends a keep-alive
message to server. If sending the keep-alive message
fails, the connection to the server is disconnected and the
EtherCAN client will try to reconnect the server.
2500 ms
TCPNoDelay[x]
0: Nagle algorithm active (i.e.: Coalesce a number of
TCP messages and send them all at once)
1: Nagle algorithm off (i.e.: Immediately send TCP
messages without any inhibit)
1
Table 16:
Configuration keywords
Example 1:
EtherCAN configured as CAN net 30 and all other parameters in default setting.
PeerName[1]= "10.0.16.58"
Net[1]= 30
Example 2:
EtherCAN configured as CAN net 20 and, with increased timeouts, because it is located
outside the company network.
PeerName[0]= "134.66.177.1"
Net[0]= 20
KeepAliveTime[0]= 10000 # increase keep-alive timeout
ConnTimeout[0]= 25000 # increase connection timeout
CmdTimeout[0]= 5000 # increase command timeout