From owner-freebsd-hackers Thu Jun 27 20:21:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mta01.fuse.net (mx1.fuse.net [216.68.2.90]) by hub.freebsd.org (Postfix) with ESMTP id 1DAD937B405 for ; Thu, 27 Jun 2002 20:21:11 -0700 (PDT) Received: from rusty.am-productions.yi.org ([216.196.152.218]) by mta01.fuse.net (InterMail vM.5.01.03.01 201-253-122-118-101-20010319) with ESMTP id <20020628031731.MEKT21788.mta01.fuse.net@rusty.am-productions.yi.org>; Thu, 27 Jun 2002 23:17:31 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Anish Mistry To: Fred Clift Subject: Re: Visor USB Problems Date: Thu, 27 Jun 2002 23:18:23 -0400 User-Agent: KMail/1.4.1 References: <20020626151220.N45712-100000@vespa.dmz.orem.verio.net> In-Reply-To: <20020626151220.N45712-100000@vespa.dmz.orem.verio.net> Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206272318.23984.mistry.7@osu.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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