From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFW2U-0001ns-9A for qemu-devel@nongnu.org; Thu, 17 Jan 2008 09:48:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFW2T-0001nK-6o for qemu-devel@nongnu.org; Thu, 17 Jan 2008 09:48:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFW2S-0001nE-WC for qemu-devel@nongnu.org; Thu, 17 Jan 2008 09:48:17 -0500 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFW2S-00088T-6r for qemu-devel@nongnu.org; Thu, 17 Jan 2008 09:48:16 -0500 Received: from implementation.famille.thibault.fr (dhcp-16-192.uk.xensource.com [172.31.16.192]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m0HEl6vO014969 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 17 Jan 2008 06:47:09 -0800 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.68) (envelope-from ) id 1JFW1K-00042e-Dc for qemu-devel@nongnu.org; Thu, 17 Jan 2008 15:47:06 +0100 Date: Thu, 17 Jan 2008 14:47:06 +0000 From: Samuel Thibault Subject: Re: [Qemu-devel] Re: [PATCH] USB serial device Message-ID: <20080117144706.GE4264@implementation.uk.xensource.com> References: <20080111002312.GE4304@implementation> <20080111110923.GB4223@implementation.uk.xensource.com> <20080113015556.GO4299@implementation> <20080113185930.GE4309@implementation> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit andrzej zaborowski, le Thu 17 Jan 2008 15:09:54 +0100, a écrit : > On 13/01/2008, Samuel Thibault wrote: > > Samuel Thibault, le Sun 13 Jan 2008 01:55:56 +0000, a écrit : > > > Here is an updated version, that takes parameters, so as to be able to > > > notably provide the product ID. > > Can you provide a patch to the .texi docs some time, to document these > parameters and an example usb_add line to get the dongle detected > under linux? Sure, here it is. Samuel --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch Index: qemu-doc.texi =================================================================== RCS file: /sources/qemu/qemu/qemu-doc.texi,v retrieving revision 1.179 diff -u -p -r1.179 qemu-doc.texi --- qemu-doc.texi 14 Jan 2008 22:09:11 -0000 1.179 +++ qemu-doc.texi 17 Jan 2008 14:46:37 -0000 @@ -525,6 +525,10 @@ Pass through the host device identified @item host:vendor_id:product_id Pass through the host device identified by vendor_id:product_id (Linux only). +@item serial:[vendorid=@var{vendor_id}][,productid=@var{product_id}]:@var{dev} +Serial converter to host character device @var{dev}, see @code{-serial} for the +available devices. + @end table @end table @@ -1562,7 +1566,7 @@ as necessary to connect multiple USB dev USB devices can be connected with the @option{-usbdevice} commandline option or the @code{usb_add} monitor command. Available devices are: -@table @var +@table @code @item @code{mouse} Virtual Mouse. This will override the PS/2 mouse emulation when activated. @item @code{tablet} @@ -1583,6 +1587,16 @@ above but it can be used with the tslib coordinates it reports touch pressure. @item @code{keyboard} Standard USB keyboard. Will override the PS/2 keyboard (if present). +@item @code{serial}:[vendorid=@var{vendor_id}][,product_id=@var{product_id}]:@var{dev} +Serial converter. This emulates an FTDI FT232BM chip connected to host character +device @var{dev}. The available character devices are the same as for the +@code{-serial} option. The @code{vendorid} and @code{productid} options can be +used to override the default 0403:FF00. For instance, +@example +usb_add serial:productid=FA00:tcp:192.168.0.2:4444 +@end example +will connect to tcp port 4444 of ip 192.168.0.2, and plug that to the virtual +serial converter, faking a Matrix Orbital LCD Display (USB ID 0403:FA00). @end table @node host_usb_devices --ew6BAiZeqk4r7MaW--