X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-29
PTP Procedure Statements Summary
Determining Why a Call Has Been Disconnected
Use SETPARAM 9 to get the reason for the disconnection.
Decoding the Cause and Diagnostic Codes
For the diagnostic codes used by the X25AM process, see Appendix C, D-Series
Supplement for X25AM. X25AM always transmits a cause of 0 whether it is configured
as a DTE or a DCE. Use the following functions to decode the Clear, Reset, and
Restart Cause and Diagnostic codes:
SETPARAM 2:
Set 90 or get the Clear Cause and Diagnostic codes.
SETPARAM 4:
Set or get the Reset Cause and Diagnostic codes.
SETPARAM 5:
Get the Restart Cause and Diagnostic codes.
Counting 64-Byte Segments
Use the following formula to count 64-byte segments sent or received by a subdevice:
Count = count + ((data^byte^count + 63) / 64);
This can be used for calculating network charges. Sixty-four bytes is usually the
dividing line for packet charges. Packets less than or equal to 64 bytes usually cost
less than packets greater than 64 bytes. The count consists of two double word values,
the number of 64-byte blocks sent, and the number of 64-byte blocks received.
Use SETPARAM 21 to get the counts.
PTP Procedure Statements Summary
The following PTP procedure statements are described below: CLOSE, CONTROL,
OPEN, READ, SETMODE, SETPARAM, WRITE, and WRITEREAD.
CLOSE
If this is the last close for the subdevice and it is configured as an SVC, PTP clears the
call.
Note. CLOSE and CONTROL procedures are only used with an SVC. They are not needed for
a PVC connection.
CALL CLOSE (filenum)