It appears you have not yet registered with our community. To register please click here...

 
 
         
 
     
QuickLinks
  
Home of the Converged PDA - Phone    
 
Go Back  PDAPhoneHome.com > Palm PDAPhones > Samsung SPH-i500 > sync to Linux

Reply
 
PDAPhoneHome  
 
Old 10-04-2003, 02:47 AM
     
  #1 (permalink)  
Converged
Join Date: 12-14-2001
Posts: 58
 

sync to Linux

I'm running Red Hat 9. Previously, I used the built in pilot-xfer program with my i300, writing to /dev/pilot, but now with the usb interface things have changed.

Anyone using linux to sync their i500? Suggestions?

Thanks.
Gary
 
lerhaupt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-04-2003, 01:58 PM
     
  #2 (permalink)  
Newly Converged
Join Date: 10-04-2003
Location: Santa Clara, CA
Posts: 23
 

You should look into Coldsync, which claims to support USB devices. I haven't tried this myself, just did a quick Google search and found it.

http://www.coldsync.org/

-Jason
 
jtownsend is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2003, 08:07 PM
     
  #3 (permalink)  
Converged
Join Date: 12-14-2001
Posts: 58
 

Has anyone tried a USB to serial converter? If I can get this to work, I can go back to my old sync method?
 
lerhaupt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-05-2003, 08:27 PM
     
  #4 (permalink)  
jcs
Newly Converged
Join Date: 08-16-2003
Posts: 8
 

Re: sync to Linux

Quote:
Originally posted by lerhaupt
Anyone using linux to sync their i500? Suggestions?
i'm synching to an openbsd machine with coldsync, but through the internet. i didn't really try to get local synching through usb working.

i'm writing some conduits for the mail and calendar to sync with my local mail client (mutt) and calendar system located on the server. i just run 'coldsync -ms' on the server and do a hotsync on the i5 through the internet.

kind of slow, but very useful being able to sync from anywhere.
 
jcs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2003, 11:44 PM
     
  #5 (permalink)  
Registered User
Join Date: 05-11-2003
Location: Atlanta, GA
PDAPhone: Samsung i500
Carrier: Sprint
Posts: 184
 

You could sync the i500 via serial. The i500 interface supports BOTH serial and USB -- there are plenty of posts on this forum about it. There is no i500 serial cable sold for it, but the (somewhat pricey) i300 serial cable works, I'm told. I'll know first hand later this week when mine arrives in the mail.

I'm syncing to a Win95 machine (fast, cheap, out of control) that I will upgrade to Linux in a few months, so I definitely want serial working as a slow fallback, and then once the Linux machine is up I can look into USB.

Syncing via the net / over-the-air only works if you have your machine exposed directly on the net at all times (or a hole in your firewall) which may be OK for a BSD box but no way am I doing that with a Windows machine

Currently I'm still carrying my old Handspring Visor around with me because I can't sync my primary home machine to the i500 yet. Soon, my pretty ...
 
ChrisC is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2003, 12:03 AM
     
  #6 (permalink)  
TMR
Converged
Join Date: 07-07-2003
Location: Central Indiana
Posts: 97
 

Just an FYI...

I sync to a windows NT (no USB support) machine using the i300 serial cable.

Works flawlessly.

TMR
 
TMR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2003, 12:55 AM
     
  #7 (permalink)  
Newly Converged
Join Date: 11-24-2003
Posts: 5
 

Sync with i500 cradle

OK everyone, don't buy another i300 serial cable. You can sync with the i500 cradle, yep. I just did it after two straight days and nights of trying different things. Here are the basics (I run Gentoo, so I am not sure exactly how this works on the more popular distros like Redhat, but if there is enough interest, I will install and figure it out if the following guidelines don't work).

First I used kernel-2.6.0-test9-mm5. Where you see my kernel version, you should substitute your kernel version. I think any kernel > 2.4.21 will do because it has the critical visor module which makes this work. So if you don't know whether or not you have this module, look in /lib/modules/2.6.0-test9-mm5/ for:

2.6.x
kernel/drivers/usb/serial/usbserial.ko
kernel/drivers/usb/serial/visor.ko

2.4.x kernel series
kernel/drivers/usb/serial/usbserial.o
kernel/drivers/usb/serial/visor.o

If you have these you should be good to go. The one thing that got me was that I didn't have Serial Generic selected when I compiled my kernel. Execution of the following command:

grep USB \ /usr/src/linux-2.6.0-test9-mm5/.config | \
grep -v "not set"

should show at least the following:

# USB Serial Converter support
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_VISOR=m

If not then you will have to role (correction - should be roll) your own kernel to add this support. Redhat rpm kernels usually have everything compiled, so there shouldn't be a need to role your own kernel for Redhat. If you need help though check google. If you still can't get it, post a reply and I will try to help you. By the way, if you recompile the kernel, remember that you will have to reboot, one of the only reasons I ever reboot Linux.

Second here are my program versions.

jpilot-0.99.5
pilot-link-0.11.8

I emerged (compiled from source for Gentoo) the above programs. Now execute:

modprobe visor
lsmod

This should show many modules to include:

Module Size Used by
visor 17004 0
usbserial 30188 1 visor
...
usbcore 122548 5 visor,usbserial,uhci_hcd

If your system is set up similar to mine then you can do the following after you sit the phone in the cradle:

more /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.0-test9-mm5 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:12.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=02(comm.) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=04e8 ProdID=6601 Rev= 0.00
S: Manufacturer=SAMSUNG Electronics Co.,Ltd.
S: Product=SAMSUNG CDMA Technologies
S: SerialNumber=

C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

Notice the Samsung CDMA as the product.

Now hit the sync button on the cradle, and look at the following nodes:

If you are NOT running usbdevfs:
/dev/ttyUSB0
/dev/ttyUSB1

If you ARE running usbdevfs (a wise choice.):
/dev/usb/tts/0
/dev/usb/tts/1

Now make a link for your Palm pilot depending on the which of the above you see. This will show up red if you are using colorized ls because the target may not exist. If you are using devfs:

cd /dev
ln -s usb/tts/1 pilot

If not then:

cd /dev
ln -s ttyUSB1 pilot

Here is what mine looks like after I hit the hotsync button:

ls -al /dev/pilot

lr-xr-xr-x 1 root root 9 Nov 24 23:36 /dev/pilot -> usb/tts/1

ls -al /dev/usb/tts/

total 0
drwxr-xr-x 1 root root 0 Dec 31 1969 .
drwxr-xr-x 1 root root 0 Dec 31 1969 ..
crw-rw---- 1 root usb 188, 0 Dec 31 1969 0
crwxrwxrwx 1 root usb 188, 1 Dec 31 1969 1

You may have to hit sync a couple of times to check for all the devices and files. Also when the sync is active you can rerun the following command to see the device is now a Palm:

more /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.0-test9-mm5 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:12.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 7 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0830 ProdID=0001 Rev= 1.00
S: Manufacturer=Palm, Inc.
S: Product=Palm Handheld
S: SerialNumber=SPHX3FF26779
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbserial
E: Ad=01(O) Atr=02(Bulk) MxPS= 16 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 16 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

If you do not see the nodes, or you do not see the nodes appear on their own:

mknod /dev/ttyUSB0 c 188 0
mknod /dev/ttyUSB1 c 188 1
or
mkdir /dev/usb/tts
mknod /dev/usb/tts/0 c 188 0
mknod /dev/usb/tts/1 c 188 1

Now in the pilot app, in File > Preferences > Settings, set serial port to /dev/pilot. This should pretty much do it.

Now press sync in jpilot, then sync on the Palm. It should work, but the setup can be so different between Linux versions that I cannot guarantee it will work. Like I said above I got it to run under Gentoo Linux with the app and kernel versions listed above. Hope this leads you in the right direction and keeps you from spending extra money.

Last edited by icecube : 12-02-2003 at 11:07 AM.
 
icecube is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2003, 10:46 PM
     
  #8 (permalink)  
Newly Converged
Join Date: 11-24-2003
Posts: 5
 

One more thing about setting up syncing with the i500 base. After another two days of trying to install apps, I decided to run strace on an installation using pilot-xfer -i [app].prc. I had some successes but many failures. I also had the jpilot serial rate set very high, 57600 or greater, and the install failed there as well. Because terminal output is slow, the strace slowed down the transfer enough to let it succeed. So I decided to change the serial rate in jpilot to 38400. An viola, app installation worked. Don't know exactly how to set the rate for pilot-xfer but now that jpilot works, I probably won't use pilot-xfer except for Palm database maintenance, not installation. Hope this also helps someone.
 
icecube is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-26-2003, 01:46 PM
     
  #9 (permalink)  
Registered User
Iceman's Avatar
Join Date: 02-22-2003
Location: Minnesota
Posts: 427
 

Thanks for the great writeup! Um, it's "roll your own", not "role your own". The reference is to rolling you own "cigarettes" using Zig-zag paper and your choice of tobacco.
 
Iceman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-09-2003, 01:36 PM
     
  #10 (permalink)  
Newly Converged
Join Date: 11-24-2003
Posts: 5
 

I have now gotten jpilot to sync at a serial rate of H460800. As a matter of fact is seems to be more stable at this speed. I got this to work when I upgraded my kernel to 2.6.0-test10-mm1. I knew I had serial problems with 2.6.0-test9-mm5 because my UPS monitoring software couldn't connect to the Belkin UPS via the serial port. It now can and it seems that serial support has stabilized for the moment.
 
icecube is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-28-2003, 12:07 AM
     
  #11 (permalink)  
Newly Converged
Join Date: 12-09-2003
Posts: 25
 

Has anyone running Linux been able to mount the CD under Linux? I can't seem to read it. It could just be a bad CD, I suppose -- I have no problem reading other CDs intended for Windows.

(I mostly just want to get a copy of the goodies included with the CD, I don't need the sync software, I'm using pilot-link for that.)

Daniel
 
quinlan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-28-2003, 04:31 PM
     
  #12 (permalink)  
Newly Converged
Join Date: 10-05-2003
Location: Phoenix, Az
Posts: 19