IXXAT LIN2CAN Api Manual
LIN2CAN IXXAT Gateway PDF Api Manual (31 pages)
Text of IXXAT LIN2CAN Api Manual
IXXAT LIN2CAN HMS Technology Center Ravensburg GmbH
Helmut-Vetter-Straße 2
88213 Ravensburg
Germany
Tel.: +49 751 56146-0
Fax: +49 751 56146-29
Internet: www.hms-networks.de
E-Mail: [email protected]
Support
For problems or support with this product or other HMS products please
request support at www.ixxat.com/support.
Further international support contacts can be found on our webpage
www.ixxat.com
Copyright
Duplication (copying, printing, microfilm or ot
L2C-API Manual, Version 1.6
1
Introduction .................................................................................... 5
2
LIN-CAN-RS232 Gateway API (L2CAPI) ........................................ 6
2.1 Basic structure ........................................................................ 6
2.2 Creating the API object ........................................................... 6
2.3 Overview of interfaces ............................
L2C-API Manual, Version 1.6 1 Introduction
The LIN2CAN Gateway API (in short: L2CAPI) serves as an interface for the
configuration and controlling of the LIN2CAN Gateway hardware and for the
access to the LIN message traffic. All functions of the LIN2CAN device can be
used in own programs with the LIN2CAN gateway API. Specific test applications
or PC based network simulations can be realized. (For further information read
the LIN2CAN Gateway
LIN-CAN-RS232 Gateway API (L2CAPI)
6
L2C-API Manual, Version 1.6
2 LIN-CAN-RS232 Gateway API (L2CAPI)
2.1 Basic structure
The structure of the API is similar to that of a COM object. The API is sub-divided
into interfaces and has a reference counter used for releasing the API. If an
interface is requested, the counter is increased by one. If an interface is no
longer required, it must be released with Release. If the counter reaches 0, the
L2CAPI object is
LIN-CAN-RS232 Gateway API (L2CAPI) 7
L2C-API Manual, Version 1.6
2.3 Overview of interfaces
The API implements the following interfaces:
• ILIN2CAN_API_Ctrl
Serves to connect the API with the device or to disconnect the
connection and query the connection status.
• ILIN2CAN_GeneralConfig2
Serves to query or make the basic settings of the device such as
name, LIN baud rate and startup operation.
• ILIN2CAN_GatewayConfig2
Serves to make the settings th
LIN-CAN-RS232 Gateway API (L2CAPI) 8
L2C-API Manual, Version 1.6
2.4 Interface IUnknown
The interface provides the following methods:
• HRESULT QueryInterface([in] REFIID riid, [out] LPVOID *ppvObj)
With QueryInterface, one of the interfaces listed in 2.3 can be
queried. The call is the same as for L2CAPI_CreateInstance, the only
difference being that here no new instance of the class is created, but
a pointer of the required interfaces is returned. By c
LIN-CAN-RS232 Gateway API (L2CAPI) 9
L2C-API Manual, Version 1.6
2.5 Interface ILIN2CAN_API_Ctrl
This interface provides the following methods:
• Connect([in] PCHAR pszName, [in] PCHAR pszMode)
With Connect the API is connected to the device by the stated
interface. The name of the interface to be used is given in pszName
e.g. “COM1” or “COM2”. In pszMode, “baud=115200 parity=N data=8
stop=1” must always be transmitted. If the connection was
LIN-CAN-RS232 Gateway API (L2CAPI) 10
L2C-API Manual, Version 1.6
2.6 Interface ILIN2CAN_GeneralConfig2
This interface implements the following methods:
• GetDeviceName([out] PSTRING psDeviceName)
• SetDeviceName([in] PSTRING psDeviceName)
Get/SetDeviceName serves to give the device a name. 16 characters
are permitted including “\0”.
• GetVersionInformation([out] PL2C_VersionInformation pVersionInfo);
GetVersionInformation queries the version inf
LIN-CAN-RS232 Gateway API (L2CAPI) 11
L2C-API Manual, Version 1.6
• GetSystemTime([out] PDWORD pdwSystemTime);
• SetSystemTime([in] DWORD dwSystemTime);
These functions serve to set and query the system time of the device.
The system time is a counter value in millisecond steps that is used
for the timestamp of the LIN messages of the message queue.
• GetLinMessageConfig ([out] PL2C_MessageConfig pMsgConfig);
• SetLinMessageConfig ([in] PL2C_Messag
LIN-CAN-RS232 Gateway API (L2CAPI) 12
L2C-API Manual, Version 1.6
2.7 Interface ILIN2CAN_GatewayConfig2
Here the following settings can be made:
• GetCANConfig([out] PL2C_CAN_Config pCANConfig);
• SetCANConfig([in] PL2C_CAN_Config pCANConfig);
This defines the setting of the CAN controller. The following structure
is used:
struct
{
DWORD dwBaudrate;
L2C_CANTransceiverMode nTransceiverMode;
}L2C_CANConfig, *PL2C_CANConfig;
The following baud rates in
IXXAT Gateway Owners Instructions:
| Device Model | Type of Document | Pages | Size | Views | Downloads | Updated |
|---|---|---|---|---|---|---|
CME/PN |
16 | 629 | 151 | 26-04-2026 | ||
CME/PN |
16 | 135 | 32 | 09-08-2026 | ||
CANbridge |
31 | 151 | 25 | 13-09-2026 | ||
CAN@net NT 400 |
30 | 350 | 67 | 08-06-2026 | ||
CANio 250 |
25 | 102 | 25 | 14-07-2026 | ||
CANblue II |
66 | 1452 | 291 | 22-07-2026 |