Starting A Connection (old)
From SynCE-Wiki
Contents |
Install software
You must have the Subversion versions of libsynce, librapi2 and vdccm installed correctly. For instructions on how to do this, please visit Building SynCE with Windows Mobile 2005 support from Subversion.
Start vdccm
VDCCM should be started as your normal user. This can be doing by executing:
vdccm -s 40
or, if you want a very verbose output, execute:
vdccm -s 40 -f -d 5
The -s 40 in the command means that it will send keepalives every 40th second. 40 seconds is the default for ActiveSync.
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 a connection
Once VDCCM is started, you then must start a connection to your device. This will change ActiveSync on your device from saying Connecting to Connected. This command must be run as your normal user:
triggerconnection 169.254.2.1
This command starts a connection to your device which has the IP address 169.254.2.1.
Attention: You need to disable the password protection of your device, otherwise further steps won't work. You can see if password protection is enabled, by looking at the vdccm verbose output after the triggerconnection command. You should see a line saying "now, the info package arrives" followed by a hex dump. If the last four bytes of this hex dump are not zero (0x00), then a password is set. If you continue now, the device will disconnect immediately after issuing the pls mentioned in the next step. If you see no output from vdccm at all make sure your port 990 is open for incoming connections on your rndis interface.
Test connection
Once you have started a connection using triggerconnection 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:
