User`s guide

5: BSC 2780/3780 DLI Functions
DC 900-1340I 121
Each option number corresponds to a software-selectable option of the BSC 2780/3780
software. The configuration value is used to set that option. Table 6–1 on page 156 lists
the available options and values for the BSC 2780/3780 protocol.
Note
The Configure Link command can be used at any time during link
operation. However, changing some option values while a link is
running may result in unusual errors. Table 6–1 on page 156 indi-
cates the options which can be changed while a link is running.
An unsuccessful Configure Link command can return one of the following error codes
in the
dlRead pOptArgs.iICPStatus field (see Appendix D for error handling):
DLI_ICP_ERR_LINK_ACTIVE
The link is already started.
DLI_ICP_ERR_BAD_MODE
The function request is not available for the requested
access mode.
DLI_ICP_ERR_BAD_PARMS
The parameter value(s) used for the function call are
illegal.
5.4.1.5 Start Link Command
Use the dlWrite function with the pOptArgs.usProtCommand field set to
DLI_PROT_SEND_BIND and the pOptArgs.usICPCommand field set to DLI_ICP_CMD_BIND to start
a link after issuing a Stop Link command (Section 5.4.1.6). After receiving this com-
mand, the BSC 2780/3780 software turns on the DTR modem control signal and pre-
pares the link to transmit and receive data according to the current configuration
settings. After a link starts, data transmission can begin on the line.
For blocking I/O, a successful Start Link command returns zero, but you must call
dlRead to receive the DLI_PROT_RESP_BIND_ACK response indicating that the
BSC 2780/3780 software has received a data set ready (DSR) signal (or a DCD signal,