Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 18:36:33 -0400 (EDT)
From:      "Brandon S. Allbery KF8NH" <allbery@vpn45.ece.cmu.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/28494: ugen usable only from "attach" or by usbd trickery; timing issue?
Message-ID:  <200106282236.f5SMaX702647@vpn45.ece.cmu.edu>

next in thread | raw e-mail | index | archive | help

>Number:         28494
>Category:       misc
>Synopsis:       ugen usable only from "attach" or by usbd trickery; timing issue?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 28 15:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

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




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