Starting A Connection


From SynCE-Wiki

Windows Mobile 2005 Support: Installing SynCE, Connecting Your Device, Using SynCE, Troubleshooting

Contents

Install software

You must have the Subversion versions of libsynce, librapi2 and odccm installed correctly. For instructions on how to do this, please visit Building SynCE with Windows Mobile 2005 support from Subversion.

NOTE: make sure that udev -> hald -> dbus-daemon (ps aux | grep -E "hald|dbus-daemon|udevd") are all running. If you run into problems with odccm running, but not seeing your device (even though dmesg shows the kernel seeing it), this might be your issue.

Start odccm

odccm should be started as your root user. This can be done by executing:

sudo odccm

On at least some models of phone, the device must be in suspend mode (with the screen off) before plugging it in to the USB connection.

Start synce-gnome

Note: Despite this being called synce-gnome, this is not Gnome-specific.

This can be started as your normal user.

cd synce-gnome-0.10.0/src
python test.py

Or, if you installed from Subversion:

cd synce-gnome/src
python test.py

Note: Gentoo and Debian users need to install python-dbus and notify-python for this to work.

Start a connection

NOTE: your device must be set to use RNDIS, instead of the legacy USB serial sync mode. (At least on my iPAQ) this is done by:

- touch Start,
- touch Settings,
- select the Connections tab at the bottom,
- touch on "ActiveSync Mode", 
- select "RNDIS Sync Mode",
- touch on OK. 

If the sync mode was changed, your device will perform a soft reset.

Once odccm is started, you then must start a connection to your device. Just plug in your device and it will be detected by odccm.

If you have odccm running in a console window you will see something like the following:

** (process:13124): DEBUG: running mainloop
** (process:13124): DEBUG: PDA network interface discovered! udi='/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00', device='rndis0'
** (process:13124): DEBUG: device_info_received: registering object path '/org/synce/odccm/Device/_7A37B965_2F39_EAE1_17C6_9D5F3FD484DC_'

Note: if you get the "interface discovered"-message, but not the "registering object"-message, you might want to check your firewall settings.

If synce-gnome is running correctly then a notification bubble will tell you a device has been connected.

Test connection

Once you have started a connection you can test it using the pls command:

pls

You should receive an output like:

Directory               2006-03-01 11:00:16  My Pictures/
Directory               2006-03-01 11:00:20  My Music/
Directory               2006-03-01 11:00:20  My Videos/
Directory               2006-03-01 11:00:20  UAContents/
Directory               2006-03-01 11:00:22  My Midlets/
Directory               2006-03-01 11:01:18  Frames/
Directory               2006-06-20 23:41:24  Notes/

Success

Congratulations- you have successfully connected your device up to your computer and SynCE is able to communicate with it. Next Steps:

Using SynCE