From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Mon, 21 Jul 2014 11:18:28 -0700 Subject: usb serial programming In-Reply-To: References: Message-ID: <20140721181828.GA9397@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Mon, Jul 21, 2014 at 03:19:00AM +0000, Amadeus W.M. wrote: > Not sure if this is the right venue for this question, please direct me to > the right place if it's not. > > I have a C program that opens the serial port /dev/ttyS0 and sends commands > (as strings) back and forth to a pan-tilt-zoom camera. That works very well, > but I want to use the camera with a Raspberry Pi, which of course does not > have a serial port (RS232). One option is to use a RS232 to usb adapter and > rewrite the C code for the usb port. So how do I go about that? Is > usb serial port programming possible and documented anywhere? Nothing to "rewrite", just point your code at /dev/ttyUSB0 instead, and away you go...