User manual
23
Note: The CHAPI DHV11 device cannot be configured using the legacy ‘
parameter
’
configuration method. The CHAPI DHV11 device is configured as follows (in this example
the logical name for the device is TXA. Note that this name is only valid in this
configuration file context, and does not define how the device appears in the OS running
on CHARON, which is defined by that OS based on how it recognizes the emulated
hardware):
load chapi TXA dll=chapi_dhv11.dll
set TXA address=<address> vector=<vector> trace_level=<level>
set TXA line_dll[x]=<serial library dll file>
set TXA line_cfg[x]=<name of the port to load>
set TXA line_is_terminal[x]=<do we need force XON/XOFF flow control>
set TXA line_param[x]=”<string of parameters for the line>”
Where :
• x – is a number of configured line ( can be in range [0, MAX_CONTROLLER_LINES - 1] )
• line_dll[x] – DLL file name to load CHAPI serial line port implementation from – can be omitted –
CHAPI_SERIAL.DLL will be used by default;
• line_cfg[x] – name of the port to load, can be:
• moxa – MOXA NPort 5210 port
• tcpip –TCP/IP port
• com – standard PC COM port
The 'line_cfg[x]' parameter can be omitted – 'tcpip' will be used by default;
• line_is_terminal[x] – must be set to true to force XON/XOFF flow control
• line_param[x] – a string that contains the parameters for the line. They can be:
• In case of a MOXA NPort 5210 port:
• ip=<NPort5210 IP address>;
• port=<RS232 port of a NPort5210>, (1, 2, …);
• In case of a TCP/IP port:
• port=<IP port for connection to or listen to>;
• application=”<application to start>”;
• ip=<IP address to connect to>. If this parameter is present, the line will try to connect
to this IP address. If this parameter is not present, the line will accept connections
• In case of a standard COM port:
• com=<COM port number>, (1, 2, …)










