Linux.com

Feature

Sync your Pocket PC with Linux

By Pat Lampert on August 24, 2005 (8:00:00 AM)

Share    Print    Comments   

You can use a Pocket PC with Linux, but the integration of a device such as Hewlett-Packard's iPaq with Linux software such as Evolution requires add-on software. If you wish to use a Windows CE device with Linux you will need to install SynCE, a set of open source tools. You can download the software from SourceForge.net.

This article is adapted from the newly published book Deploying Linux on the Desktop .

After you install and configure the program, you can use SynCE by first establishing a connection (a.k.a. syncing) with your Windows CE device, then using the tools provided to copy files to and from the device and perform other operations.

For this article, I used a Compaq 3700 series iPaq Pocket PC. As you will find on the SynCE Web site, there are special steps you may need to take depending on the device you are using. In my case it was quite straightforward.

Installation and configuration

The software you need for a simple connection with your Windows CE device consists of a single package: synce-0.9.1. You can download a tar archive of the most current version or an RPM of a slightly older version. SynCE also offers optional kits for synchronizing your address book and other options.

Once SynCE is installed you need to configure it. The instructions vary depending on the type of Windows CE device you are using, the version of Linux, and what type of port you are using. Follow the guidelines on the project's site.

Because I was using an iPaq with a USB connector I had to follow some special instructions. First I used modprobe to enable the iPaq USB serial module:

$ /sbin/modprobe ipaq

Next, I had to configure SynCE to use the proper USB port. I was connecting to USB port 0, so I used the command:

# synce-serial-config ttyUSB0

Finally, I started up the daemon that detects connections:

# synce-serial-start
synce-serial-start is now waiting for your device to connect

User setup

Once you've configured the hardware devices to communicate with each other, you need to set up any user that will be syncing with your device to run the dccm command. You can add the command to the user's .login file if you want to. You should then be able to start a manual sync using the Windows CE ActiveSync icon on your Pocket PC.

If you have difficulties with a USB connection, a SourceForge SynCE Web page is very helpful. Also examine or tail the file /var/log/messages for errors from the synce-serial-start and dccm commands.

SynCE tools

After you have successfully established a sync connection between your Windows CE device and your Linux desktop, you can use a variety of command line tools to perform various operations with your device:

  • pstatus allows you to obtain status on your connection and information about the device you have connected.
  • pls allows you to obtain a listing of the files on your device.
  • pmkdir creates a directory (or folder) on your device.
  • pcp copies files to and from the device.
  • prun runs a program on the device from your Linux machine.
  • synce-install-cab installs a .cab file on the device.

After you have completed your work, remove the device from its cradle or connector and the sync will disconnect.

Share    Print    Comments   

Comments

on Sync your Pocket PC with Linux

Note: Comments are owned by the poster. We are not responsible for their content.

Windows

Posted by: Anonymous Coward on August 25, 2005 03:01 PM
On Linux you have to login to root and modprobe it to load the kernel module and read Linux.com articles on how to set up an iPaq.

On Windows you just plug it in the USB and it works. Well, never tried, but I assume that...

#

Re:Windows

Posted by: Anonymous Coward on August 25, 2005 03:54 PM
True, but we are talking about PocketPC, from Microsoft. Last I checked, they don't seem to like us Linux users very much.

That's the reason I use a Palm based system, because that works better in Linux then windows, plug in the Palm. Start the Palm application ( most Linux systems have that installed already ) and press the Sync button.

For pocketpc I understand the connection troubles, I just wonder why Symbian didn't document there syncing so it could get just as easy on Linux. I mean, geeks buy gadgets, so Linux support should make money.<nobr> <wbr></nobr>:)

#

Re:Windows

Posted by: Anonymous Coward on August 29, 2005 03:21 PM
I added the following lines to my<nobr> <wbr></nobr>/etc/inittab with fairly good results:


# WindowsCE/PPC pseudo-getty

ce:2345:respawn:/usr/bin/synce-serial-start


So far it seems to work extremely well, with one caveat: the PDA needs to be left unplugged for a minute or two in order for the pppd daemon to recognize that the PDA is gone. I haven't pulled the source down yet, but my first hunch is that there's some kind of delay in the lcp echo requestor before pppd takes it off-line.

#

Re:Windows

Posted by: Anonymous Coward on April 27, 2006 07:19 AM
false, on windows you have to be logged in as an administrator user, (security risk to run a machine as "administrator / root" which is why that step is important) install drivers for the device (in my case an ipaq) install the sync software, purchase and install outlook, word, and any other software whose data you wish to sync to your PDA, THEN it's "plug in the usb cable and go" =)

#

pocket pc with linux

Posted by: Anonymous Coward on August 25, 2006 04:24 PM
hi
i've pocket pc with linux OPIE 1.2.1
and can't sync it with my windows xp desktop
any idea?

#

Sync your Pocket PC with Linux

Posted by: Anonymous [ip: 206.255.109.97] on November 08, 2007 11:43 PM
I'd also like to be able to sync my Opie Ipaq with XP.. cant get away from XP at work, which syncing with my desktop there pulling outlook contacts, appointments, the calendar...all of that. Surely someone has done it.

#

Re: Sync your Pocket PC with Linux

Posted by: Anonymous [ip: 86.128.100.122] on February 15, 2008 10:07 AM
Have you tried using a free Funambol server along with outlook plugins? I use ScheduleWorld - it works beautifully, and keeps my iPaq, my work PC (windows), and my home pc (Suse) synced perfectly, and also updates my google calendar for me too.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya