From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FxQWb-0006kZ-C4 for garchives@archives.gentoo.org; Mon, 03 Jul 2006 15:39:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k63Fcl9T000901; Mon, 3 Jul 2006 15:38:47 GMT Received: from kivasystems.com (mail.kivasystems.com [204.14.67.10]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k63Fcktk027679 for ; Mon, 3 Jul 2006 15:38:47 GMT Received: from localhost (localhost [127.0.0.1]) by kivasystems.com (Postfix) with ESMTP id 01662C23308 for ; Mon, 3 Jul 2006 11:38:45 -0400 (EDT) Received: from kivasystems.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00539-04 for ; Mon, 3 Jul 2006 11:38:41 -0400 (EDT) Received: from [192.168.1.102] (65-78-2-2.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [65.78.2.2]) by kivasystems.com (Postfix) with ESMTP id 029E7C232E3 for ; Mon, 3 Jul 2006 11:38:40 -0400 (EDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Content-Type: multipart/alternative; boundary=Apple-Mail-4--312254878 Message-Id: <12D4A4C9-AE66-4908-AA8E-E60B375A6554@kivasystems.com> From: Joshua ChaitinPollak Subject: Re: [gentoo-embedded] ftdi ft232r programming howto Date: Mon, 3 Jul 2006 11:38:40 -0400 To: gentoo-embedded@lists.gentoo.org X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at kivasystems.com X-Archives-Salt: b72f2219-0203-4af6-be9f-a5b140a5c822 X-Archives-Hash: d6f6accee715f18715457642c39f09ec --Apple-Mail-4--312254878 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 3, 2006, at 10:25 AM, andreas.sumper@cnsystems.at wrote: > > Hi list! > > Has anybody ever tried to communicate through a ft232r, which is a > usb to rs232 converter? > I read through the documentation of ftdi (www.ftdichip.com) but all > I found, was the documentation for windows. > I want to make this converter work on an embedded linux box, > running a 2.6.14 kernel, including the module (ftdi_sio) > I see the device (/dev/ttyUSB0) but, how can I configure it > (buffers, transfer speed, ...) and how can I read from the device > and write to the device. > If you are using C, just use it exactly like you would use a serial port and it will work fine. If you see ttyUSB0 already, I'm sure everything is working correctly, but just to be sure, you need the usbserial portion of the kernel and the correct USB to serial drivers compiled into the kernel, or as a module. -Josh -- Joshua ChaitinPollak Software Engineer Kiva Systems --Apple-Mail-4--312254878 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Jul 3, 2006, = at 10:25 AM, andreas.sumper@cnsystems.at wrote:


Hi list! =

Has anybody ever tried to = communicate through a ft232r, which is a usb to rs232 converter? =
I read through the = documentation of ftdi (
www.ftdichip.com) but all I found, = was the documentation for windows.
I want to make this converter work on an embedded = linux box, running a 2.6.14 kernel, including the module = (ftdi_sio)
I see the = device (/dev/ttyUSB0) but, how can I configure it (buffers, transfer = speed, ...) and how can I read from the device and write to the = device.


If you are using C, = just use it exactly like you would use a serial port and it will work = fine.

If you see = ttyUSB0 already, I'm sure everything is working correctly, but just to = be sure, you need the usbserial portion of the kernel and the correct = USB to serial drivers compiled into the kernel, or as a = module.

-Josh


=
--=A0
Joshua ChaitinPollak
Software = Engineer
Kiva Systems


= --Apple-Mail-4--312254878-- -- gentoo-embedded@gentoo.org mailing list