CAN – Ethernet Gateway
86
©
SYS TEC electronic GmbH 2007 L-1032e_9
ETHCAN_ERR_HWCONNECT_FAILED
This error code is returned by the function
EthCanInitHardware()
only if it was called in blocking mode, i.e. without the declaration of a
callback function. This error code indicates that no connection to the
remote address could be established within the timeout time, which
was given to the parameter structure upon initialization,. The default
timeout is set to
5s
in the header file
EthCan32.h
. If upon
initialization an application specific timeout time was given, then it is
up to the user to make sure the timeout is sufficient for a connection to
be established successfully (depending on the network topology).
If this error code is returned in order to check whether the assigned
parameters, such as IP address and port number, are correct and that
the remote address really is accessible over the Ethernet connection.
ETHCAN_ERR_HWDISCONNECT_FAILED
This error code is returned by the function
EthCanDeinitHardware()
only if it was called in blocking mode. The cause of this is that the
disconnection to the remote address could not be closed within the
timeout time assigned to the parameter structure upon initialization. A
default timeout of
5s
is defined in the header file
EthCan32.h
. If upon
initialization an application specific timeout time was given, then it is
necessary to check whether the timeout is sufficient for a connection
to be disconnected successfully.
ETHCAN_ERR_MAXMODULES
The maximum number of CAN-Ethernet Gateways that can be
supported by the DLL has been reached. No other instances can be
initialized. De-initialize any instances that are no longer required and
then call the init function again.
Summary of Contents for GW-003
Page 5: ...Contents SYS TEC electronic GmbH 2007 L 1032e_9 Index 97 ...
Page 8: ...CAN Ethernet Gateway SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 14: ...CAN Ethernet Gateway 6 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 56: ...CAN Ethernet Gateway 48 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 66: ...CAN Ethernet Gateway 58 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 100: ...CAN Ethernet Gateway 92 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 108: ...Published by SYS TEC electronic GmbH 2007 Ordering No L 1032e_9 Printed in Germany ...