First, set the D-channel (Case A):
X.31 is the protocol used for data transfer through the ISDN D-channel. If you wish to activate this service, you will first have to request what is called a "TEI" from your phone carrier. For more information on getting X.31, consult your provider (for instance, German Telekom customer information can be reached at 0130-801180).
You will also need an X.31-compatible ISDN board with CAPI 2.0 (capi2032.dll) (e.g., by AVM, Bintec, Diehl, HST, ITK, or NCP). cFos supports X.31 for CAPI version 2.0 and higher. It allows management of several TEIs on different COM ports and/or several logical channels on a single TEI and different COM ports.
Use modem command "ATB13" to configure protocol settings as needed. The following registers will then have to be set before X.31 can be activated:
t = TEI * 2 + 1
"ATS10.14=1" activates X.25 more-data support. This means that cFos will send data blocks with a 'more-data' bit as long as there is still more data remaining in the buffer at the time of transmission.
Default is one bidirectional channel (which is assigned No. 1). This setup should work for approximately nine out of every 10 applications.
Should you need different settings, however, follow these steps:
First, enter the highest and the lowest bidirectional channel numbers (given to you by your ISDN provider) in S32 and S33. Then enter the lowest channel number for incoming calls in S30 and the highest in S31. Set lowest and highest channel numbers accordingly for outgoing calls in S34 and S35. If no specific values are entered for one channel type, all respective registers will automatically be set to '0.'
If you want to use PVCs, S46 has to be set as follows (CAPI 2.0 only):
S46L = Group number
S46H = Logical channel number
First, save the settings described above in the modem profiles (e.g., by using "AT&W1"). That way, you can restore them later by using "ATZ1".
After using "ATZ1" activate the connection to the packet handler via "AT&X1". If you want to modify settings later on, you will have to deactivate this connection by using "AT&X0" before making any changes.
After activation by "AT&X1," you can use "ATD<number>" to set up a logical connection (for PVCs, you are free to pick any number you like).
As for any dial-in connection, Windows DTR drop is used to disconnect.
With register S74.8 set, the connection will also be closed in case of inactivity.
You will have to initialize the connection with "AT&F B13" as described above. Then, logical channel numbers need to be configured.
However, a TEI needs not be specified, as S23 is used as X.75 link address A.
Now, the caller ID of the packet handlers has to be set using "AT&S11=xxx."
After that, set "AT&X1" instead of "AT&X2" to establish a connection to the packet handler. HDLC/X.75 is used as B-channel protocol.
Connecting (to a logical address) is done exactly as for the D-channel (by using "ATD...").
Note: The B-channel connection established by "AT&X2" is subject to charges and should be deactivated by "AT&X0" at the end of each logical connection!
To use Remote Configuration and X.31 together, cFos needs to be loaded on at least two ports.