Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ACC HDLC/LAP-B (ABM) User's Guide > Chapter 3 Using HDLC/LAP-B (ABM) Protocol

Request Specific Processing

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Control Requests (E1/T1 card only)

All control writes to this protocol share a common format as shown in Figure 3-1 “Control Request Format”. Control writes are issued to the card using the zcntl() API call.

Figure 3-1 Control Request Format

Control Request Format

The first four bytes are defined as a header:

Control Code

Defines the action to be taken by this request.

Control Length

The length of the data for this control request. This data immediately follows the header.

Packet Length

Some protocols allow packet data (data to be transmitted over the wire) to be passed to a control write following the control request data. For this protocol, these two bytes must be zero because the protocol does not allow packet data within a control write.

Control Codes

This protocol allows the following Control Codes:

5 CW_STATS

Send ST25L2STAT status message

This control write triggers the protocol to send a ST25L2STAT status message. For the format of this message, see the section on “Status and Error Messages”. Control length must be zero.

6 CW_REVCODE

Send ST25REVCD status message

This control write triggers the protocol to send a ST25REVCD status message. For the format of this message, see the section on “Status and Error Messages”. Control length must be zero.

7 CW_TIMERS

Set timers

The protocol's timers may be changed from their configured values using this control write. This request should be used with caution because the values configured with this request will not be restored if the card is reset by ZCOM.

The control request data consists of three pairs of bytes. Each pair of bytes consists of a Resolution and a Value. The legal values for Resolution are as follows:

0 = don't set
1 = 10msec
2 = 100msec
3 = 1sec
4 = 10sec.

Note that these values are different from the values used for the resolutions when configuring a terminal. The Values are used directly. A zero Value will disable the timer if the resolution is non-zero.

The first pair of bytes applies to T1, the second pair is ignored (should be set to zero) and the third pair apply to T3/T4. See Figure 3-2 “Protocol Timers”.

Figure 3-2 Protocol Timers

Protocol Timers
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000 Hewlett-Packard Development Company, L.P.