From allbery@vpn45.ece.cmu.edu  Thu Jun 28 15:36:43 2001
Return-Path: <allbery@vpn45.ece.cmu.edu>
Received: from vpn45.ece.cmu.edu (ANNEX-1.ECE.CMU.EDU [128.2.136.1])
	by hub.freebsd.org (Postfix) with ESMTP id 990A737B406
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Jun 2001 15:36:40 -0700 (PDT)
	(envelope-from allbery@vpn45.ece.cmu.edu)
Received: (from allbery@localhost)
	by vpn45.ece.cmu.edu (8.11.3/8.11.1) id f5SMaX702647;
	Thu, 28 Jun 2001 18:36:33 -0400 (EDT)
	(envelope-from allbery)
Message-Id: <200106282236.f5SMaX702647@vpn45.ece.cmu.edu>
Date: Thu, 28 Jun 2001 18:36:33 -0400 (EDT)
From: "Brandon S. Allbery KF8NH" <allbery@vpn45.ece.cmu.edu>
Reply-To: allbery@vpn45.ece.cmu.edu
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ugen usable only from "attach" or by usbd trickery; timing issue?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28494
>Category:       kern
>Synopsis:       ugen usable only from "attach" or by usbd trickery; timing issue?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 28 15:40:01 PDT 2001
>Closed-Date:    Thu Sep 02 01:33:00 GMT 2004
>Last-Modified:  Thu Sep 02 01:33:00 GMT 2004
>Originator:     Brandon S. Allbery KF8NH
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Carnegie Mellon University Electrical & Compuer Engineering, Computing Facilities
>Environment:
System: FreeBSD vpn45.ece.cmu.edu 4.3-RELEASE FreeBSD 4.3-RELEASE #2: Thu May 10 14:58:58 EDT 2001 root@pyanfar.ece.cmu.edu:/usr/src/sys/compile/PYANFAR i386

	coldsync 2.1.2

>Description:
	Establishing communication with a Handspring Visor via USB is not
	reliable.  The expected method (start hotsync program, initiate
	hotsync on Visor) fails most of the time; the following sequence,
	however, works most of the time:

	1. kill usbd
	2. run hotsync program
	3. initiate hotsync on Visor
	4. wait 5-10 seconds
	5. restart usbd

	The failure mode is that the Visor is detected by usbd and the ugen
	driver is associated with it, but there is no data transferred and
	when the Visor times out the ugen read fails with an I/O error.

	Reportedly invoking the hotsync program via an "attach" in usbd.conf
	works as expected.  This is somewhat suboptimal when performing
	relatively rare operations such as restoring a backup.  It also
	suggests that there may be a timing issue involved, where the connect
	will only succeed if it takes place sufficiently soon after the
	ugen driver is associated with the Visor.

	Other USB devices seem to work as expected (e.g. USB keyboard and mouse)
	but this is expected because the devices are activated (if needed) via
	"attach" statements.  ugen should be more general.

>How-To-Repeat:
	- Obtain a Handspring Visor or (probably) one of the USB Palm devices.
	- Install ports/palm/coldsync (pilot-link doesn't know how to use ugen)
	  and configure it appropriately.
	- Attempt to connect to the Visor:

	    vpn45:4996 Z$ coldsync -ms
	    Please press the HotSync button.
	      (it just sits here until the Visor times out the connect)
	    usb read: Input/output error
	    slp_read: read: Input/output error
	    Error during cmp_read: (1) Error in system call or library function.
	    Error: Can't connect to Palm.

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->n_hibma 
Responsible-Changed-By: n_hibma 
Responsible-Changed-When: Sat Jun 30 06:44:08 PDT 2001 
Responsible-Changed-Why:  
USB is my baby. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28494 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Aug 27 22:38:34 GMT 2004 
State-Changed-Why:  
Is this still a problem with recent versions of FreeBSD? 


Responsible-Changed-From-To: n_hibma->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Aug 27 22:38:34 GMT 2004 
Responsible-Changed-Why:  
With permission of assignee, reset assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28494 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Sep 2 01:32:46 GMT 2004 
State-Changed-Why:  
Submitter's email address bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28494 
>Unformatted:
