attach <hw_type> <label> <mtu>

Configure a hardware interface and open it for use by the system. Detailed instructions for each driver are in the Attach Commands chapter of [tbd]. An on-line interactive way to obtain a summary of the parameters required for a given device is to issue a partial attach command (e.g., attach asy) to produces a message giving the complete command format. The above is the common form of the command. The common fields are:

The following sections expand on the command in detail because the remaining parameters vary for <hw_type> and Operating System platform.

attach asy <io_addr> <vector> <mode> <label> <bufsize> <mtu> [<speed>] [<flags>] Configure and attach a standard RS-232 or USB asynchronous serial device. For unix platforms the device is managed by the operating system and for DOS platforms using the National 8250, 16450, or 16550(A) chip or equivalent may be used. Additional driver information is provided:

The generalized version (valid on DOS platform) is as follows:

The UNIX version of "attach asy" is slightly different from the DOS version, such that:

attach axip <label> <mtu> <address> [<callsign>] This RFC1226 compatible pseudo device is used to establish a point-to-point tunnel between two systems over IP. This feature permits the AX.25 network to jump over Internet in a manner similar to digipeating. Suitable software configured on the other end include jnos, [tbd]. This interface requires a compile option of #define AXIP and answers port 93 in the jnos stack.

An example:

attach bpq init <vec> <stream> OR attach bpq <port> <label> [<mtu> [<callsign>]] The JNOS BPQ driver reduces memory and processing time used by nodedrv4.com to send packets between JNOS and bpqcode.

  1. The "attach bpq init" sub-command attaches the bpq_host TSR driver, which is accessed via software interrupt <vec> (in hex) for BPQ stream <stream> (in decimal). "attach bpq init" may only be called once.

  2. The second form of the "attach bpq" sub-command is called once per <port>. It associates a BPQ <port> number with an interface name <label>. <mtu> may not exceed 256, and defaults to the ax.25 paclen value. <callsign> defaults to the ax25 mycall value, and establishes the callsign used by this BPQ port.

attach kiss <asy_iface_label> <port> <label> [mtu] This device establishes a second feature over an already established "asy" device. An example might look like first an 'attach asy 03f8 4 ax25 port1 512 256 9600' followed by an 'attach kiss port1 1 port2'. Again - the TNC must be initialized prior to attaching it.

attach netrom This command must preceed the 'start netrom' command if it is used. >deprecated jnos2.0: This command is automatically executed when the netrom server is started with the 'start netrom' command.<

attach packet <softintr#> <label> <maxqueue> <mtu> [ipaddress] This is [tbd] [ipaddress] NOTE that the packet driver is often loaded as a TSR in config.sys or autoexec.bat. It is the driver that must be supplied with information such as hardware IRQ, i/o address, and software IRQ. Example: 'attach packet 0x7e eth0 5 1500'

attach [ssc | escc]... Use escc if the Z85230 chip is installed, otherwise use scc. Specify only one 'easy' or one 'init' command, followed by as many 'mode' commands as required to completely define the card.

attach escc <board label> baycom|drsi|opto <base address> <interrupt number> [t<timing channel>] Is the "easy" form of the command (obviously).

attach escc <board label> <#chips> init <base address> <spacing between SCC chip base addresses> <offset to channel A control register> <offset to channel B control register> <offset from each channels control register to data register> <address of INTACK/Read Vector port. (0 to read from RR3A/RR2B)> <CPU interrupt vector number> <clock frequency (PCLK/RTxC) prefix with "p" for PCLK> <optional hardware type> <optional parameter for special hardware> <optional t<tick chan> specification to use a channel to improve timing> is the "init" form of the command.

attach escc <board label> <SCC channel number to attach, 0/1 for first chip A/B><mode> <label> <maximum transmission unit, bytes> <interface speed, e.g, "1200". prefix with "d" when an external divider is available to generate the TX clock.> <buffer size> <optional callsign used on radio channel> <optional s flag to specify software-derived DCD detection> is the "mode" form of the command.

Example follows: (see sccg8fsl.txt and scc.c, in JNOS src zipfile, for more info)

attach scc scc0 drsi 300 7
attach scc scc0 1 init 300 16 2 0 1 0 7 p4915200 8
attach scc scc0 0 ax25 vhfa 235 d1200 512 k5arh-3 s
attach scc scc0 1 ax25 vhfb 235 d1200 512 k5arh-2 s

attach tun <label> <mtu> <devid> This device supports TCP/IP traffic to the host by interconnecting stacks on unix type platforms. Beyond the host lies the Internet thru a bridge in the configuration adopted for this wiki as a standard. To reach the LAN and Internet the host stack must forward packets - see LAN configuration in HostConfiguration.

attach (last edited 2007-12-09 04:13:47 by GeorgeVerDuin)