Several files need minor modifications to add iSeries instrument support to an application.
If you are using a local serial port rather than an Ethernet serial port adapter to communicate with the iSeries device you would specify thedrvAsynSerialPort.dbd file instead.
drvAsynSerialPortConfigure("L0",
"/dev/ttyS0", 0, 0, 0)
asynSetOption("L0", 0, "baud",
"9600")
asynSetOption("L0", 0, "bits",
"7")
asynSetOption("L0", 0, "parity",
"odd")
asynSetOption("L0", 0, "stop",
"1")
asynSetOption("L0", 0, "clocal",
"N")
asynSetOption("L0", 0, "crtscts",
"N")
asynOctetSetInputEos("L0", 0,
"\r")
asynOctetSetOutputEos("L0", 0,
"\r")
For a serial port connected through and Ethernet serial port adapter the
commands might look like:
drvAsynIPPortConfigure("L0",
"192.168.9.90:4003", 0, 0, 0)
asynOctetSetInputEos("L0", 0,
"\r")
asynOctetSetOutputEos("L0", 0,
"\r")