Solving connection problems

There are a variety of reasons why the connection between the device and your computer is not working. On this page you will find the most common ones, including solutions to get things working.

Password protected devices

If you have a password protected WM5 device, you must first provide the password on your computer before you can actually make connections to the device. You can use [wiki:SynceTools/SynceKpm SynCE-KPM] (KDE) or SynCE-trayicon (Gnome) for this.

With Windows Mobile 6 devices, you will be prompted to enter your password on the device itself whenever you connect the device to the computer.

As long as you did not type in the password in SynCE-KPM / SynCE-trayicon (WM5 devices) or on the device itself (WM6 devices), you will not be able to receive any information from the device.

Ubuntu hardy with older (< 2.6.24-19) kernel

In kernels with version number < 2.6.24-19 the kernel module for communication between the device and your computer does not yet contain the required patches. You can check your kernel version with the command uname -a. In order to get the communcation working for these older kernels, you must install the patched driver following the steps below.

Make sure that you have the device disconnected.

Unload the current modules:

sudo rmmod rndis_host cdc_ether usbnet

Now we have to delete the old drivers, such that the kernel will not reload them next time:

sudo rm /lib/modules/`uname -r`/kernel/drivers/net/usb/{rndis_host,cdc_ether,usbnet}.ko

Now we have to get and compile the new drivers:

sudo apt-get install usb-rndis-source cdbs
sudo module-assistant auto-install usb-rndis

This should have installed the patched kernel drivers.

ipaq kernel driver trying to setup connection

If you connec the device and synce-pls does not work and you know that the device is in RNDIS mode (see the main Ubuntu page), you can check the output of the command dmesg for lines containing ttyUSB. If that is the case, please disconnect the device and run

sudo rmmod ipaq

After that you can blacklist the ipaq driver, in order to prevent it from incorrectly claiming the RNDIS device by adding the line:

blacklist ipaq

to the file /etc/modprobe.d/blacklist

After you have done this, try to reconnect the device again.

AppArmor blocking connection

With the current version of Ubuntu, it appears that app-armor is blocking certain calls needed for setting up the connection with the device. Until we have figured out how to solve this, please disable app-armor for the moment. Best is even to uninstall it for the moment.

You can recognize app armor interfering by looking in the output of dmesg for lines like the following:

#
[22047.566855] type=1503 audit(1252952968.277:21): operation="inode_permission" requested_mask="r::" denied_mask="r::" fsuid=0 name="/usr/share/synce-hal/dhclient.conf" pid=30254 profile="/sbin/dhclient3"
#
[22047.566882] type=1503 audit(1252952968.277:22): operation="inode_create" requested_mask="a::" denied_mask="a::" fsuid=0 name="/var/run/dhclient-synce-eth1.lease" pid=30254 profile="/sbin/dhclient3"
#
[22054.032774] type=1503 audit(1252952974.746:23): operation="inode_create" requested_mask="a::" denied_mask="a::" fsuid=0 name="/var/run/dhclient-synce-eth1.lease" pid=30254 profile="/sbin/dhclient3"

If you see the above lines, then please remove app armor and try connecting the device again.

An Alternative to Remove app-armor would be to put the app-armor profile for /sbin/dhclient3 in complain mode (tested on Ubuntu 9.04). To archive this one would type :

 sudo aa-complain /sbin/dhclient3

Network manager trying to handle the connection

In case you are running network manager, it could see the new RNDIS device and try set it up. When networkmanager does this, it could interfere with the stuff SynCE needs to send to the device. In case you are running network manager and you have problems with connecting your device, you can disable network manager for the RNDIS device as follows.

Type the following command in a terminal:

/sbin/ifconfig -a | grep 80:00:60:0f:e8:00  | cut -d " " -f 1

then add the next line to /etc/network/interfaces:

iface <interface of your device> inet dhcp

where <interface of your device> is the output of the previous command.

This will make Gnome Network Manager ignore the interface. Then restart the networking with the command:

sudo /etc/init.d/networking restart

Firewall blocking the connection

Another thing to check out when you are having connection problems is your firewall configuration (if, of course, you are using a firewall). For instance, if you are using Ubuntu's default ufw you can check out whether it is running and what the rules are by issuing the following command:

sudo ufw status

If the firewall is running it might be blocking your connections. You might want to disable it completely by running

sudo ufw disable

and if it is, indeed, the source of your problems add a rule to allow connections from your PocketPC device:

sudo ufw allow from 169.254.2.0/24 to any

and it should do the trick.

SynceInstallation/Ubuntu/ModernDevice/ConnectionProblems (last edited 2010-01-11 15:09:28 by JaerderSousa)