User Tools

Site Tools


hardware:medion_p4410

Faking ActiveSync on Linux

Requirements:

Following kernel modules:

Linux Kernel Configuration: Device Drivers —> USB support —> USB Serial Converter support
<M> USB Serial Converter support
...
<M>   USB PocketPC PDA Driver

fur, librapi2 and synce-hal

Connecting the device

Make sure:

  • ppp_generic is loaded (if compiled as module) and /dev/ppp exists
  • fuse is loaded (if compiled as module) and /dev/fuse exists
  • that the D-Bus Messagebus Daemon and the HAL Daemon are running
  • the device is switched on
  • the directory /etc/ppp/peers/ exists
! test -d /etc/ppp/peers/ &&
mkdir -p /etc/ppp/peers/

After the device is connected and switched on, dmesg output should show something like this:

usb 3-2: new full speed USB device using uhci_hcd and address 10
usb 3-2: configuration #1 chosen from 1 choice
ipaq 3-2:1.0: PocketPC PDA converter detected
usb 3-2: PocketPC PDA converter now attached to ttyUSB0

If the device was connected successfully 'pstatus' output should be similar to:

Version
=======
Version:    5.0.1400 (Unknown)
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:          8 (Charging)
LifePercent:   52%
LifeTime:      879
FullLifeTime:  Unknown

Status for backup battery
=========================
Flag:          255 (Unknown)
LifePercent:   0%
LifeTime:      Unknown
FullLifeTime:  Unknown

Store
=====
Store size: 16678912 bytes (15 megabytes)
Free space: 16471348 bytes (15 megabytes)

Memory for storage: 16777216 bytes (16 megabytes)
Memory for RAM:     45993984 bytes (43 megabytes)

Mounting the device

mkdir /mnt/pna &&
chown kratz00:kratz00 /mnt/pna

As user kratz00 do this, to mount the filesystem on the pna:

Fur /mnt/pna

From “cat /proc/mounts”

...
Fur /mnt/pna fuse.Fur rw,nosuid,nodev,user_id=1000,group_id=1000 0 0
...

“ls -l /mnt/pna/My\ Flash\ Disk/navigation/” output:

-rwx------ 1 kratz00 kratz00   15872 2007-11-30 16:28 audioin.dll
-rwx------ 1 kratz00 kratz00   82432 2007-10-19 14:35 audiomanager.exe
-rwx------ 1 kratz00 kratz00   15361 2007-10-19 13:19 config.xml
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:28 fmt
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:28 Font
-rwx------ 1 kratz00 kratz00   92160 2007-11-30 16:28 gpstmc.dll
-rwx------ 1 kratz00 kratz00    8192 2007-11-30 16:32 gpstmc.pil
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:28 gui
-rwx------ 1 kratz00 kratz00 1664512 2007-11-30 16:29 Help.exe
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:28 menu
-rwx------ 1 kratz00 kratz00 5345792 2007-11-30 16:29 mnavdce.exe
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:28 multimedia
-rwx------ 1 kratz00 kratz00      64 2006-10-01 13:00 navdata.pf
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 poi
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:32 remotectrl
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 res
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 roadicon
-rwx------ 1 kratz00 kratz00 1716736 2007-11-30 16:29 Setting.exe
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:31 Skin480x272
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 Speech
-rwx------ 1 kratz00 kratz00  138752 2007-11-30 16:29 ssp.exe
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 StateMachine
-rwx------ 1 kratz00 kratz00     156 2007-11-30 16:29 streetdirector_orig.reg
-rwx------ 1 kratz00 kratz00  738816 2007-11-30 16:29 svoxdll.dll
-rwx------ 1 kratz00 kratz00   73728 2007-11-30 16:29 tsd_zlib.dll
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 TTI
drwx------ 2 kratz00 kratz00       0 2007-11-30 16:29 TTS
-rwx------ 1 kratz00 kratz00 1278464 2007-11-30 16:29 vocon3200api.dll
-rwx------ 1 kratz00 kratz00   19968 2007-11-30 16:29 vocon3200rsrc.dll

Umounting the device

fusermount -u /mnt/pna
hardware/medion_p4410.txt · Last modified: 2010/01/13 20:39 by kratz00