User`s guide

142 DC 900-1340I
BSC Programmers Guide
5.4.2.4 Request Status Report
Use the dlWrite function with the pOptArgs.usProtCommand field set to
DLI_PROT_GET_STATUS_REPORT to request the current link status. The status report
returned by
dlRead is a snapshot of the links hardware and software condition. The
dlRead status report response (the pOptArgs.usProtCommand field is set to
DLI_PROT_GET_STATUS_REPORT by the DLI) is a twelve-word report containing the current
link status as shown in Ta ble 5 –10 .
Link status indicates whether the link is on, off, or starting. Starting indicates that a con-
nection command was received, but the link did not start because it did not receive the
data set ready (DSR) or data carrier detect (DCD) signal (depending on the modem
control option, Section 6.15 on page 168) from the local modem because the remote
station is not active. A line is off until it is started and the signal has been received from
the remote station.
The current operation mode settings shown below indicate the current state of the line.
The current operation mode has meaning only after the line is enabled.
idle no data transfer activity on the line
DSR off awaiting the DSR signal. This mode is encountered only
when using the HDX-1 or FDX-1 modem control options.
transmit transferring data to a remote station
receive receiving data from a remote station
safe awaiting a Safe Store Acknowledge command from the cli-
ent application
unsafe previously in safe mode, but the remote station aborts the
transmission with an EOT.
bidding bidding for the line but no acknowledgment received
dial transmit sending the autodial string to the modem