Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 23:18:23 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        Fred Clift <fclift@verio.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Visor USB Problems
Message-ID:  <200206272318.23984.mistry.7@osu.edu>
In-Reply-To: <20020626151220.N45712-100000@vespa.dmz.orem.verio.net>
References:  <20020626151220.N45712-100000@vespa.dmz.orem.verio.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Yeah, I can get coldsync to work correctly on my machine.  I sorta figure=
d out=20
the problem.  If I launch pilot-link from the usbd.conf it will work for =
a=20
few read/writes, but then it can't read anymore and the Visor times out.

The output created by syslogd when I inserted output statements:
Jun 27 22:12:14 rusty lt-pilot-xfer: usb open
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:1) ...
Jun 27 22:12:14 rusty lt-pilot-xfer: 10:1
Jun 27 22:12:14 rusty lt-pilot-xfer: Writing data (5:24) ...
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:3) ...
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:1) ...
Jun 27 22:12:14 rusty last message repeated 6 times
Jun 27 22:12:14 rusty lt-pilot-xfer: 14:1
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:1) ...
Jun 27 22:12:14 rusty last message repeated 13 times
Jun 27 22:12:14 rusty lt-pilot-xfer: 2:1
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:1) ...
Jun 27 22:12:14 rusty lt-pilot-xfer: Reading data (5:1) ...
Jun 27 22:12:44 rusty lt-pilot-xfer: -1:1
Jun 27 22:12:44 rusty lt-pilot-xfer: usb read error
Jun 27 22:12:44 rusty lt-pilot-xfer: Writing data (5:24) ...
Jun 27 22:12:44 rusty lt-pilot-xfer: Reading data (5:3) ...
Jun 27 22:12:44 rusty lt-pilot-xfer: -1:3
=2E... a few more of the last 4 lines and then fails the Visor will timeo=
ut.

Thanks,

--=20
Anish Mistry

On Wednesday 26 June 2002 05:15 pm, you wrote:
> I have my visor coldsyncing via usb on my 4.6-RC3 box just fine -- have
> you been able to get coldsync to work at all?  If not, start by getting
> that to happen.  The main pain I had was trying to hit the race conditi=
on
> of when ugen0.X is writable - the ugen driver is configured for so shor=
t a
> period of time after the sync button is pressed that I could never do i=
t
> manually.
>=20
> I ended up putting a claus like this in my usbd.conf:
>=20
>=20
>=20
> device "Handspring Visor"
>         vendor 0x082d
>         product 0x0100
>         release 0x0100
> #syncing
>         attach "/usr/local/bin/coldsync -t usb -svv -l /tmp/usb.log -f
> /usr/home/fred/.coldsyncrc -md ${DEVNAME} "
>=20
> #initalize
> #       attach "/usr/local/bin/coldsync -t usb -svv -l /tmp/usb.log -f
> /usr/home/fred/.coldsyncrc -mI ${DEVNAME}"
>=20
> #backup
> #       attach "/usr/local/bin/coldsync -t usb -svv -l /tmp/usb.log -f
> /usr/home/fred/.coldsyncrc -mb /usr/home/fred/palmbak ROM"
>=20
>=20
> You need to do the 'initialze' like one time, and then comment it out a=
nd
> uncomment the syncing line.  From then on out it worked (had to fiddle
> with a bunch of stuff including my coldsyncrc and /usr/local/etc/palms)
>=20
>=20
> Does this help at all?
>=20
>=20
> Fred
>=20
>=20
> On Sat, 22 Jun 2002, Anish Mistry wrote:
>=20
> > I am having some trouble reading data from a Handspring Visor Platinu=
m. =20
What
> > I am trying to do is make the necessary modifications to pilot-link s=
o=20
that
> > it will work with the usb on FreeBSD.  My problem is that I can open =
a
> > connection to the /dev/ugen0.2 endpoint, but whenever I try to call a=
=20
read()
> > it returns with error 5 (Input/Output Error).  I used the coldsync co=
de as=20
a
> > base, but the read keeps failing.  I can post the code, I just wanted=
 to=20
see
> > if there were anyone with a similar problem.  I have checked the=20
permissions
> > on the device nodes and they are fine, the same problem occurs when=20
running
> > as root.
> >
> > What I do:
> > 1) Press the HotSync Button on my crade
> > 2) Run ./pilot-xfer -p usb:/dev/ugen0 --sync /home/amistry/bk
> > 3) Watch it fail
> >
> > Thanks,
> >
> > --
> > Anish Mistry
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-hackers" in the body of the message
> >
>=20
> --
> Fred Clift - fclift@verio.net -- Remember: If brute
> force doesn't work, you're just not using enough.
>=20
>=20
>=20



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206272318.23984.mistry.7>