my Zaurus SL-C3000 and SL-C3100
http://www.users.on.net/~hluc/myzaurus/
49 of 212
16/09/2007 12:23
Now, on to the Zaurus side of the configuration. Run the PC Link tool from the Settings tab and
select
PC Link Setting
, then select
Connection USB-TCP/IP (advanced)
. Now just connect the
USB cable (USB mini-B into Zaurus, USB A into Laptop or PC). The Windows machine should detect
a new device at this point, a SL series Ver3 (NDIS 5) network adaptor, and you should be able to
configure it. By default, the Zaurus would be assigned an IP address of 192.168.129.201. Assign an
IP address in the same range to this new network adaptor, eg 192.168.129.101. You should now be
able to ping both ways unless you have a firewall blocking it or DDE service is not enabled. If you
want the Zaurus to be able to access the internet as well, you could enable internet sharing on your
Windows PC (assuming it has internet connectivity and you trust Microsoft security). If you do that,
Windows will reset the IP address of your Zaurus NDIS driver to 192.168.0.1 but you can change it
back to whatever value you had given it before, ie 192.168.129.101
On the Zaurus side, you need to run the following commands to setup a route to your windows box:
# su
# route add -host 192.168.129.101 usbd0
# route delete -net 192.168.129.0/24 usbd0
# route add default gw 192.168.129.101
Now that the route is configured, you should be able to ping servers by their IP addresses. In order
to resolve the hostnames, you need to configure /etc/resolv.conf on your Zaurus with the DNS that
is used on your Windows box. Assuming your DNS is 192.168.10.1, do the following:
# echo "nameserver 192.168.10.1" > /etc/resolv.conf
You can also automate the above on the Zaurus by modifying /etc/hotplug/usbd.func and adding
the following to the end of the usbd_net_if_up() function
if [ "$DHCPC" = "no" ]; then
GATEWAY=192.168.129.101
DNS=192.168.10.1
route add -host $GATEWAY usbd0
route delete -net `echo $GATEWAY|cut -d. -f1,2,3`.0/24 usbd0
route delete default
route add default gw $GATEWAY
echo "nameserver $DNS" > /etc/resolv.conf
fi
Using IrDa for networking:
Since the Zaurus has an infra-red port (IrDA), you can use it for networking as well provided you
also have an IrDA port on your PC or laptop that you can configure to use PPP over IrDA (IrCOMM
or IrNet). This method of networking your Zaurus would give you the slowest network speed and
you usually would not use it if the other options were available to you. But if your CF slot and USB
port are tied up with other things, then using IrDA for networking might be something viable.
For this to work, you would need to first choose whether to use IrCOMM or IrNet drivers. Then you
would need to make sure the chosen driver is enabled on both your Zaurus and your PC or Laptop.
For IrDA connectivity, one machine has to be the host and the other the client. I will describe how
to make Zaurus the host and the other PC or Laptop the client. The roles can also be easily
reversed. I also did not bother with security since both machines would have to be physically in
close range to each other in order for this to work.
IrCOMM
The IrCOMM driver is by default already installed on the Zaurus and most Linux machines that have
IrDA enabled. However, you would need to install a driver for Windows. On Windows 2000, for
example, you will need to disable Image Transfer and install an IrCOMM driver (IrCOM2k). The
following site describes how to setup IrCOMM on Windows2000:
http://www.stud.uni-hannover.de/~kiszka/IrCOMM2k/English/manual.html
. Once you have installed