Treo 300 Success!
- From: Adam C Powell IV <hazelsct mit edu>
- To: GNOME Pilot <gnome-pilot-list gnome org>, pilot-link Development List <pilot-link-devel pilot-link org>
- Subject: Treo 300 Success!
- Date: Sun, 23 Mar 2003 13:38:52 -0500
Hooray! It works! But there's trouble in libpisock/usb.c, read on...
The kernel is 2.4.20 + Greg's latest patch. It actually locked my
machine once when I tried pilot-xfer while gpilotd was running, like
David is seeing with the Treo90 -- two LEDs on my laptop were flashing,
but I couldn't do anything.
pilot-link is 0.11.7, and gnome-pilot is 0.1.71, patched so gpilotd uses
vendor_id and product_id (see my last patch to gnome-pilot-list), and
patched so gpilotd's pilot_connect() uses pi_accept() instead of
pi_accept_to() (attached). Figured out the latter bit because
pilot-xfer was working (uses libpisock's pilot_connect which calls
pi_accept), but gplotd wasn't (its own pilot_connect uses pi_accept_to).
But of course this is a workaround, not a fix...
So a bit more digging led me to pi_usb_accept(), which is always
returning a "Connection timed out" error when the timeout is set to
greater than zero -- and not waiting at all to do so (even when I
hard-coded a timeout of 30); I'm afraid I don't have the time now to
hack on that. There's an occasional "Unable to bind to pilot" error
with pi_accept() as well (about 1 in 20 attempts), but not always as
with pi_accept_to(). When I get "Unable to bind to pilot", the Treo
locks, but unplugging and re-plugging the USB into the laptop gets it back.
Oh -- and made the embarassing mistake of "restoring" my old Pilot's
data to the new one the first time gnome-pilot synced. I had previously
beamed the data over, and had made tons of changes in the last month.
(Fortunately I caught it after it only wiped out my ToDos -- I would
have been in trouble if the last few weeks worth of contacts had been lost.)
To prevent this from happening to someone else, it might be nice to have
the restore dialog inform the user that it will overwrite lots of stuff
on the Palm if "OK" is clicked... Just a thought. Of course, any patch
I come up with for 0.1.71 is irrelevant, now that everyone's using
2.0.1. :-(
Anyway, thanks to everyone for all the help along the way!
--
-Adam P.
GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6
Welcome to the best software in the world today cafe!
<http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>
--- gnome-pilot-0.1.71/gpilotd/gpilotd.c~ Thu Dec 12 08:53:21 2002
+++ gnome-pilot-0.1.71/gpilotd/gpilotd.c Sun Mar 23 09:02:46 2003
@@ -182,10 +182,9 @@
return 0;
}
- sd = pi_accept_to (listen_sd, NULL,0, device->timeout);
+ sd = pi_accept (listen_sd, NULL,0);
if (sd == -1) {
- g_warning ("pi_accept_to: %s", strerror (errno));
- g_warning ("pi_accept_to: timeout was %d secs", device->timeout);
+ g_warning ("pi_accept: %s", strerror (errno));
if (error)
*error = 2;
pi_close(listen_sd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]