WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] usb->serial converter + export that serial port in pv Do

To: Andris <andris@xxxxxxxx>
Subject: Re: [Xen-users] usb->serial converter + export that serial port in pv DomU
From: Igor Chubin <igor@xxxxxxx>
Date: Thu, 21 Feb 2008 16:09:27 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 21 Feb 2008 06:09:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47BD798D.70600@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47BD798D.70600@xxxxxxxx>
Reply-to: Igor Chubin <igor@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Do, Feb 21, 2008 at 03:15:57 +0200, Andris wrote:
> Hello all!
> 
> I have Centos 5.1 64bit xen Dom0 and ABIT mobo with no serial ports.
> The task is:
> 
> - connect an external fax modem to Dom0 via USB -> to serial converter cable
> - export that serial port to paravirtualized Gentoo DomU for use with
> Hylafax
> 
> I found the solution:
> http://www.olivetalks.com/2008/01/24/usb-forwarding-on-xen by exporting
> mobo usb PCI device to domU.
> But unfortunately it seems not to be stable setup as noted by author.
> Although I successfully use a similar approach for PCI printer port card
> (Dom0) and HASP device (DomU) in production environment with no problems
> at all.
> Are there differences for USB?
> 
> I connected USB to serial converter cable to my Dom0 machine. Everything
> is detected and ok. I see /dev/ttyUSB0 as my serial port.
> How to export /dev/ttyUSB0 to my DomU?
> I suppose the irq and ioports options in domU config file are not
> applicable to port created by USB converter cable.
> 
> If this setup is impossible for paravirtualized domU, then I can create
> a HVM gentoo DomU.
> What about usb=1 option or serial='/dev/ttyUSB0' option?

You can export it e.g. via network:



Server:

socat TCP4-LISTEN:54321,reuseaddr /dev/ttyUSB0,b115200,nonblock,raw,echo=0 


Client:

socat PTY,link=/dev/vmodem0,b115200,raw,echo=0,waitslave TCP4:127.0.0.1:54321


More information on this you can find on [1] (en) or [2] (ru).

[1] http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt (en)
[2] http://xgu.ru/wiki/serial-over-ip (ru)




> 
> 
> andris
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

-- 
WBR, i.m.chubin


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>