个人工具

UbuntuHelp:HP4150iPaqHowto

来自Ubuntu中文

跳转至: 导航, 搜索

Purpose of this Howto

This Howto will attempt to describe, as clearly as possible, how to setup your notebook or desktop running Ubuntu 7.04 with the MultiSync and Synce so that you can synchronize Evolution Calendar, Tasks and Addressbook items with your HP4150 iPaq handheld device.

Installing the required software

1.#1 Open a terminal window and type the following:

 apt-get install synce synce-serial synce-dccm synce-multisync-plugin librra0 librra0-tools librapi2-tools

2.#2 The install the MultiSync software, as follows:

 apt-get install multisync multisync-tools

The Configuration

1.#1 OK. Now lets see if your machine can see the iPaq device. For this you need open a terminal window, su and to do the following:

tail -f /var/log/messages

2.#2 Whilst watching the messages log file, plug the iPaq USB cradle into a usb port on your notebook or desktop machine and you should see something like this:

 Jul 19 13:06:41 raven-nb kernel: [14639.624000] usb 2-1: new full speed USB device using uhci_hcd and address 4
 Jul 19 13:06:42 raven-nb kernel: [14639.772000] usb 2-1: configuration #1 chosen from 1 choice
 Jul 19 13:06:42 raven-nb kernel: [14639.776000] ipaq 2-1:1.0: PocketPC PDA converter detected
 Jul 19 13:06:42 raven-nb kernel: [14639.776000] usb 2-1: PocketPC PDA converter now attached to ttyUSB0

3.#3 This should tell you exactly on which USB port the iPAQ is detected. Mine was ttyUSB0. Jot this down, you’ll need it later on to get the sync clients to work. 4.#4 Now as root, run the following:

synce-serial-config ttyUSB0

Remember to substitute the ttyUSB0 to the USB port that was displayed in your "messages" log file. 5.#5 Open another terminal as your normal user and not "root". 6.#6 Type in the following:

dccm

Note: If you are using a password for your PDA, type in the following command:

 dccm -p 1234

7.#7 Go back to your "root" terminal you opened previously and type in the following:

synce-serial-start

8.#8 Before we go any further let's test the connection and see if we can see the iPaq and some details. In your "user" terminal run the following command:

synce-pstatus

...and you should get an output that looks similar to the following:

 Version
 =======
 Version:    4.20.1081 (Ozone: Pocket PC 2003 (?))
 Platform:   3 (Windows CE)
 Details:    ""
 
 System
 ======
 Processor architecture: 5 (ARM)
 Processor type:         2577 (StrongARM)
 Page size:              0x10000 
 
 Power
 =====
 ACLineStatus: 01 (Online) 

 Status for main battery
 =========================
 Flag:          1 (High)
 LifePercent:   100%
 LifeTime:      Unknown
 FullLifeTime:  Unknown 
 
 Status for backup battery
 =========================
 Flag:          1 (High)
 LifePercent:   100%
 LifeTime:      Unknown
 FullLifeTime:  Unknown 

 Store
 =====
 Store size: 29691904 bytes (28 megabytes)
 Free space: 27326796 bytes (26 megabytes) 
 
 Memory for storage: 29765632 bytes (28 megabytes)
 Memory for RAM:     29765632 bytes (28 megabytes)

Finishing up!

OK, so we are nearly finished. The only things left now is to setup a trust relationship between the iPaq and your notebook / desktop so that the two can talk to each other and then configure MultiSync to sync with Evolution and your iPaq. Let's go... 1.#1 In your "root" terminal, type in the following:

 synce-matchmaker create

This will create the trust relationship between your notebook/workstation and your iPaq PDA. 2.#2 Now we need to start MultiSync. Type in the following in your "user" terminal:

 multisync

3.#3 Once MultiSync has started, you'll see the following: Figure 1 [1] 4.#4 From the MultiSync application, select / click the "New" button. Then select the "Plugins" tab, then select "Ximian Evolution 2" for your first plugin and then select "SynCE Plugin" for your second plugin as per Figure 2 below: Figure 2 [2] 5.#5 Select the "Options" button next to the "Ximian Plugin" and select the Calendar, Tasks and Addressbook you want to synchronize, as per Figure 3 below: Figure 3 [3] 6.#6 Now click on the OK button and you should see, on the MultiSync application, that your "sync pair" has been created and it's successfully connected to your iPaq as Figure 4 below: Figure 4 [4] Congratulations! You can now sync your iPaq with your desktop/notebook.

Notes

  • This was test on a Toshiba Satelite A100 Notebook and a HP iPaq 4150 (PocketPC 2003) PDA via USB connection.
  • Please note that this method makes use of ppp and ip and therefore needs certain ports opened in your workstation’s firewall, if you are running one. My suggestion is that you temporarily disable your firewall while getting everything up and running. Once everything is working, enable your firewall rules again and make sure you create allow rules for the following ports:

1.#1 From PDA to PC : TCP 5678, 5679 2.#2 From PC to PDA: TCP 990

  • To get the "Re-sync" button as displayed in Figure 4, just click on the "Options" menu and select "Show Resync button".