From owner-freebsd-questions@FreeBSD.ORG Sat Feb 6 18:25:43 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8021B106566B for ; Sat, 6 Feb 2010 18:25:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4102C8FC14 for ; Sat, 6 Feb 2010 18:25:42 +0000 (UTC) Received: from r55.edvax.de (port-92-195-104-232.dynamic.qsc.de [92.195.104.232]) by mx01.qsc.de (Postfix) with ESMTP id 34B9A3D9A5; Sat, 6 Feb 2010 19:25:41 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o16IPeCr001492; Sat, 6 Feb 2010 19:25:40 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 6 Feb 2010 19:25:40 +0100 From: Polytropon To: Mike Clarke Message-Id: <20100206192540.bb4ce11b.freebsd@edvax.de> In-Reply-To: <201002061511.11639.jmc-freebsd2@milibyte.co.uk> References: <201002061511.11639.jmc-freebsd2@milibyte.co.uk> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Detecting cards in USB card reader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 18:25:43 -0000 On Sat, 6 Feb 2010 15:11:11 +0000, Mike Clarke wrote: > Although this gets round the > problem I can't help feeling uncomfortable about attempting to write to > raw devices and was wondering if there was any suitable usbconfig or > HAL incantation which could be used to achieve the desired effect in a > safer looking way. I can understand this. Maybe accessing the "SCSI layer" of the card reader can help? If % camcontrol reset all will cause the same effect (of creating the correct nodes in /dev), you can be more precise (e. g. just reset da0); see % man camcontrol for further (and maybe more elegant) details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...