FarSync Drivers | ![]() |
![]() |
---|
When the FarSync driver is loaded, additional tty devices are created in /dev, these devices are named in the form
tty_hdlcX where X is the port number
The port numbers for any given card can be determined by using the following command:
[kevinc@dash kevinc]$ more /proc/farsync
FarSync WAN Driver version 1.09-02
3 Cards found
hdlc0-hdlc1: FarSync T2U IRQ10, 2 ports, State: Running
hdlc2-hdlc2: FarSync DSL-S1 IRQ5, 1 ports, State: Running
hdlc3-hdlc6: FarSync T4U IRQ9, 4 ports, State: Running
Total number of ports = 7
Total number of async connects = 1
[kevinc@dash kevinc]$
This shows that there are three cards installed. The first card has two ports, so therefore it's tty devices will be called /dev/tty_hdlc0 and /dev/tty_hdlc1
There are two parts to the Linux PPP Daemon, that is some user applications and some Kernel modules. Therefore in order to use the Linux PPP Daemon you must have included the PPP support in the Kernel and have the applications installed. If they are not already present in your system, then you may find them in an RPM archive on your Linux Distribution CD's. If not then you can download the latest source from
There are many HowTos to help get you you running with the PPP Daemon. We have provided example Options files and scripts to start and stop the Daemon. When the FarSync product has been installed these will be found in the /etc/ppp directory, as follows:
options.tty.hdlcX
ppp-on
ppp-off
There are many options to the Linux pppd command, and these are well documented on the pppd Man page. However, as pppd has been most often used with asynchronous devices, e.g dialup modems, the most critical option to use is the "sync" option. This will tell the pppd that the device is a synchronous device and modifies the protocol accordingly. The example options.tty_hdlc0 file contains
sync
persist
In debugging your ISP connection you may wish to add the following parameters to this file
debug
nodetach
This will then show a PPP decode of the protocol in the window in which you invoked the ppp-on script.
To start a pppd session on
hdlc0 port, for example, you should first edit the /etc/ppp-on script and select the correct
operational parameters. Please note that the script sets the parameters in
slightly different ways depending on if the port is an SHDSL or normal Farsync
port. For SHDSL ports you will need to modify the following line
/sbin/farutil $1 set media shdsl
datarate 2304000 termtype remote annex b backoff 6 vpi 8 vci 35
Normal FarSync port parameters are set with the following command
/sbin/farutil $1 set media x21 clock 64000
When you have set the required parameters you can then invoke the script with the following command
/etc/ppp/ppp-on hdlc0
To stop a pppd session you should use the /etc/ppp/ppp-off script. This is particularly required if you are using an SHDSL port. The script is invoked as follows:
/etc/ppp/ppp-off hdlc0
The supplied scripts and options files should be used as templates and customised as required. If you are operating several pppd sessions that all have different operational parameters then you may need several ppp-on/ppp-off scripts.
Copyright © 2001-2010 FarSite Communications Ltd. |
![]() |
---|