1 .\" $FreeBSD: src/sbin/i386/cxconfig/cxconfig.8,v 1.5.2.4 2001/08/16 11:35:43 ru Exp $
7 .Nd channel options management utility for Cronyx-Sigma adapter
11 .Op Ar <channel> Op Ar <option>...
15 utility is used for configuring the channel options of
16 the Cronyx-Sigma adapter.
18 To change channel options the channel should be free: the corresponding
19 network interface in ``down'' state, the asynchronous terminal device
22 Generally, the channel options are set up during the operating
23 system startup, for example from the
27 Note, that not all options have a sense for every particular
28 case, and an attempt to set some of them can hang up the channel or
31 The following option is available:
32 .Bl -tag -width indent
34 Display full information.
39 Set the receiver baud rate to the number given.
40 The maximal value is 256000 bits/sec.
41 In the synchronous mode the receiver baud rate is significant
42 only when DPLL mode is used.
44 Set the transmitter baud rate to the number given.
45 The maximal value is 256000 bits/sec.
46 In the synchronous mode the transmitter baud rate is significant
47 only in the case of the internal clock source.
48 If receiver and transmitter have equal data rate, then it could
49 be set by specifying only the numerical argument.
51 Set the asynchronous channel mode.
52 .It "hdlc, bisync, bsc, x.21, x21
53 Set the synchronous channel mode: HDLC, Bisync (BSC) or X.21.
55 Set the link-level protocol: PpP/HDLC. The built-in simplified synchronous PPP
56 implementation is used (see RFC-1548, RFC-1549).
58 Set the link-level protocol: Cisco/HDLC (see RFC-1547).
59 This protocol is intended for compatibility with old models of Cisco routers,
60 and with early versions of
63 The extensive usage of this protocol is not recommended.
65 Use the external link-level protocol suite (for
68 .It "+keepalive, -keepalive"
69 Enable the automatic line state control sub-protocol.
70 This setting is not significant when the external link-level protocol is used.
71 .It "+autorts, -autorts"
72 Enable the automatic RTS signal control.
73 When enabled, the RTS signal goes up only when both halves of
74 the receiver ring buffer are free and ready for receive,
75 and goes down when one or both buffers are busy.
76 .It "port=rs232, port=rs449, port=v35
77 Set the zero channel hardware interface type.
81 .It "nrz, nrzi, manchester"
82 Set the data line signal encoding.
85 encoding the zero bit is transmitted by the zero signal
86 level, the one bit - by the positive signal level.
89 encoding the zero bit is transmitted by the change of
90 the signal level, the one bit - by the constant signal level.
93 encoding the zero bit is encoded as 01 value,
94 the one bit - as 10 value.
96 Enable the digital phase locked loop mode (DPLL).
97 When enabled, the receiver timing clock signal
98 is derived from the received data.
100 Set the local loopback mode.
101 .It "+extclock, -extclock"
102 Set the timing clock source of synchronous channels. There are
103 two possible variants:
110 mode is the most common method for connecting
111 external modem hardware. In this mode the external timing
112 signal is received on TXCIN pin of the connector, and it is
113 used as a synchronization clock for transmitting data (TXD).
117 mode the transmitted data (TXD)
118 are synchronized using the internal on-board timing generator,
119 the internally generated timing signal is driven on the TXCOUT
120 pin, and the signal on the TXCIN pin is ignored. This mode
121 is used for direct terminal-to-terminal communication,
122 e.g. for connecting two computers together in a synchronous mode
123 via relatively short cable. This method should also be used
124 for testing channels with an external loopback connector.
126 FIFO threshold level setup for receiver and transmitter.
128 Hardware RTS/CTS flow control FIFO threshold setup.
130 Enable/disable interrupts on CTS (Clear To Send) signal setup (0 to 1 transition).
131 .It "+ctsdown, -ctsdown"
132 Enable/disable interrupts on CTS (Clear To Send) signal clear (1 to 0 transition).
134 Enable/disable interrupts on CD (Carrier Detect) signal setup (0 to 1 transition).
135 .It "+cddown, -cddown"
136 Enable/disable interrupts on CD (Carrier Detect) signal clear (1 to 0 transition).
138 Enable/disable interrupts on DSR (Data Set Ready) signal setup (0 to 1 transition).
139 .It "+dsrdown, -dsrdown"
140 Enable/disable interrupts on DSR (Data Set Ready) signal clear (1 to 0 transition).
142 .Sh "Asynchronous mode options"
145 Select character size: 5, 6, 7 or 8 bits.
147 Parity mode: odd or even.
148 .It "+ignpar, -ignpar
149 Disable/enable parity detection.
151 Disable parity bit generation.
153 Force parity: even - 0, odd - 1.
154 .It "stopb1, stopb1.5, stopb2
155 Use 1 or 1.5 or 2 stop bits per character.
157 Use the DSR input signal as receiver enable/disable.
159 Use the CTS input signal as transmitter enable/disable.
161 Drive the RTS output signal as transmitter ready.
163 Set the remote loopback mode.
165 Enable the embedded transmit commands mode.
167 Enable the hardware XON/XOFF flow control support.
169 Use the hardware IXANY mode support.
171 Detect the spec. characters SCHR1 and SCHR2 in the receive data.
172 .It "+flowct, -flowct"
173 Receive the flow control spec. characters as data.
175 Detect the spec. characters in range SCRL..SCRH in the receive data.
177 Detect the spec. characters SCHR3 and SCHR4 in the receive data.
178 .It "parintr, parnull, parign, pardisc, parffnull
179 Action on parity errors:
181 .Bl -tag -width parffnullxxx -compact
185 Generate the receiver error interrupt
187 Input the NUL character
189 Ignore the error, receive as good data
193 Input the sequence <0xFF, NUL, character>
195 .It "brkintr, brknull, brkdisc
196 Line break state action:
198 .Bl -tag -width parffnullxxx -compact
202 Generate the receiver error interrupt
204 Input the NUL character
206 Ignore the line break state
209 Translate received NL characters to CR.
211 Translate received CR characters to NL.
213 Ignore received CR characters.
215 Translate transmitted CR characters to NL.
217 Translate transmitted NL characters to CR.
219 Process (don't process) the characters, received with errors,
220 for special character/flow control matching.
222 Enable the LNEXT character option: the character following
223 the LNEXT character is not processed for special character/flow
225 .It "+istrip, -istrip"
226 Strip input characters to seven bits.
228 The XON flow control character value.
230 The XOFF flow control character value.
232 The SCHR3 spec. character value.
234 The SCHR4 spec. character value.
236 The spec. character range (inclusive).
238 The LNEXT spec. character value.
240 .Sh "HDLC mode options"
243 The minimum number of flags transmitted before a frame is started.
245 No frame address recognition.
246 .It "addrlen1, addrlen2"
247 Address field length: 1 or 2 bytes.
249 Addressing mode: 4x1 bytes or 2x2 bytes.
250 Registers RFAR1..RFAR4 should contain the address to be matched.
251 .It "+clrdet, -clrdet"
252 Enable/disable clear detect for X.21 protocol support.
254 Use the DSR input signal as receiver enable/disable.
256 Use the CTS input signal as transmitter enable/disable.
258 Drive the RTS output signal as transmitter ready.
260 Enable/disable the frame checksum generation and checking.
261 .It "crc-16, crc-v.41
262 Select the CRC polynomial: CRC-16 (x^16+x^15+x^2+1)
263 or CRC V.41 (x^16+x^12+x^5+1).
264 .It "fcs-crc-16, fcs-v.41
265 Frame checksum preset: all zeros (CRC-16) or all ones (CRC V.41).
266 .It "+crcinv, -crcinv"
267 Invert (ie. CRC V.41) or don't invert (ie. CRC-16) the transmitted frame checksum.
268 .It "+fcsapd, -fcsapd"
269 Pass the received CRC to the host at the end of receiver data buffer.
270 .It "idlemark, idleflag
271 Idle mode: idle in mark (transmit all ones) or idle in flag (transmit flag).
273 Enable/disable sending pad characters before sending flag when coming out
276 The number of synchronous characters sent (0..4).
277 .It "syn=0xaa, syn=0x00
279 .It "rfar1=#, rfar2=#, rfar3=#, rfar4=#
280 Frame address registers for address recognition.
283 Set up the channel 7 of the adapter Sigma-400 under
285 Physical 4-wire leased line with Zelax+ M115 short-range modems.
286 Synchronous mode, 128000 bits/sec, interface RS-232,
287 protocol PpP/HDLC without keepalive support, NRZI encoding,
288 DPLL mode, no flow control:
290 cxconfig cx7 128000 hdlc ppp -keepalive nrzi -cts +dpll -extclock
291 ifconfig cx7 158.250.244.2 158.250.244.1 up
294 Set up the channel 0 of the adapter Sigma-100 under
296 Attachment to the near computer by short cable, internal clock source.
297 Synchronous mode, 256000 bits/sec, interface RS-232,
298 protocol Cisco/HDLC with keepalive support:
300 cxconfig cx0 hdlc 256000 cisco +keepalive -extclock
301 ifconfig cx0 200.1.1.1 200.1.1.2 up
304 Set up the channel 1 of the adapter Sigma-840 under
306 Synchronous 64 kbit/sec leased line, external clock source.
307 Synchronous mode, interface V.35, external protocol suite:
309 cxconfig cx1 hdlc ext
310 ifconfig cx1 193.124.254.50 193.124.254.49 multicast up
313 Set up the channel 0 of the adapter Sigma-840 under
315 Attachment to the Cisco-4000 router by null-modem cable, internal clock source.
316 Synchronous mode, 64000 bits/sec, interface RS-232,
317 protocol PpP/HDLC with keepalive support and flow control,
318 LCP and IPCP protocols (see RFC-1548 and RFC-1332) debug tracing enabled:
320 cxconfig cx0 hdlc 64000 port=rs232 ppp +keepalive -extclock +cts
321 ifconfig cx0 100.0.0.2 100.0.0.1 debug up
324 .Bl -tag -width /dev/cronyx -compact
326 the special device file for adapter options management