Subject: Re: Problems with Handspring Visor Platinum
To: None <netbsd-users@netbsd.org, current-users@netbsd.org>
From: Bernd Sieker <bsieker@freenet.de>
List: netbsd-users
Date: 08/06/2001 13:16:56
This is a multi-part message in MIME format.
--------------BFB99533D50543D4E64C23C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On 01.08.01, 20:09:23, David Brownlee wrote:
> On Wed, 1 Aug 2001, Jared D. McNeill wrote:
> 
> > On Wed, 1 Aug 2001, Bernd Sieker wrote:
> > > Unfortunately however, I cannot start the synching software before I
> > > press the button, because it only tells me ttyU0 ("ucom0") is not
> > > configured which is true, since USB devices are configured at run-time
> > > and the Handspring HotSync-Cradle only attaches when the button is
> > > pressed.
> >
> > I know this is slightly off-topic, but I think it would be nice to have a
> > generic interface (shared between at least the usb, pcmcia, and cardbus
> > subsystems) to be able to run scripts upon device insertion and removal.
> > Not only could you run the palm software automatically on attachment of
> > 'ucom0', but also one could configure / unconfigure ethernet adapters as
> > well as set the volume on sound cards.
> >
> > IIRC, the usb subsystem has hooks for this (usbd?), but I'm not sure if
> > anything uses them or not.
> 
> 	A modified evrsion of the FreeBSD 'kevent' code is in the process
> 	of being imported into NetBSD, which should cover this and many
> 	other issues.
> 
> 	In the meantime the software at the NetBSD end could be modified
> 	to have an option to sit in a loop for N seconds retrying every
> 	20th of a second or similar...

I have implemented a crude patch to the pi_serial_open function of the
pilot-link package (which also affects pilot-link-libs) which does
just that.

At the moment it retries to open the port again after a 50 millisecond
delay for a total time of 5 seconds. It works quite well with my Visor
Platinum, and I expect it to work with the Prism and Edge as well,
since they all use Handspring's version of PalmOS 3.5.2.

The drawback is that it only says "Press the hotsync button now"
_after_ it has successfully opened the port. To change this all
applications would have to be changed, and I only changed enough to
just make it work. Start the syncing program (pilot-xfer e. g.), and
within 5 seconds, press the button on the cradle.

I hope it does not break hotsyncing with the older models (Visor and
Visor Deluxe).

I'd be glad if some more people (with both old and new Visor handhelds
and also Palm Inc. devices) could test the new pkg.

I attach the modified pkgsrc of pilot-link.

> 
> -- 
> 		David/absolute		-- www.netbsd.org: No hype required --
> 

-- 
Bernd Sieker

NetBSD:  The Source is out there.
		-- Greywolf
--------------BFB99533D50543D4E64C23C7
Content-Type: application/x-gzip;
 name="pilot-link.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="pilot-link.tar.gz"

H4sIADN6bjsAA+w9a3PayLL71foVs8RVa2JLQhKCBBvKGEjijWNTNtnN1t1bPkIaQAe9jiT8
OLn577d7JIHEw9hBy9buMpUgzUxPT09Pd09PayTrrm0HomdabshbpjMWf8g/kXKpWlXJD4RI
VVXCK6RSfI0zpKooSrmiKrIEYLJarfxA1D+AloU0CULNJ+SHPvUd4wm4+xGl1jYI2m7S5+e/
9ctN3jLw3PmXq1WlXIZ7SZGV8m7+t5GWzv819dzADF3/MZc+pFKpUik/Mf9l0PmKWkL9B1gA
UxUV5r+US+9r0j98/kX9LvBdNxS98TDwdXFeHrg/m8Bd+kPTUv3vOKFv0iCvPtbpv6woM/sv
qQBWrpTVnf5vI7VR8UVIHNxpoT6iAcuJn7QxHZgWFSVBLou90YT8PHGI/IZIUk2RarJK5FJJ
SkMKKEuuAw0k8VdqRPBVIr2plco15c0U3jCD0HQGLgA+ifjPZs0/Ii1f/2FByLGP9et/GfS/
VFVVWYIdAOq/pFR2+r+NpDmuAy7AaXwVHBr2A0Nw/WEtcQ12ivg3Tgv6nywCOfbxgv1/uaTi
/r8sy7v931bSyvnPMQ7wzPmXKhVJrigV5v9VdvO/lfTk/OcUB1i7/qts/6+WpZJSqsoIVipV
d+v/NtK6/X8iDzsn4O+ZntT/nOIA6/QfSmf2X0L7X5GrO/9/Kymab17T2G58cdv+drptjwH7
AKgu2bZX5gH1FYGAKcb2zqb8+enp9T+fOMDL9/+qWtnF/7aSdvv/f3Zaqf+Juc+hD9T/8mr9
r1YleW79V6uKstP/baT9Sxqe3bRrJJnvozsCC3y0RpcqYnrd/rel2aTz4JF9juN5nkwD/6YD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