usb serial programming

Greg KH greg at kroah.com
Mon Jul 21 14:18:28 EDT 2014


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...



More information about the Kernelnewbies mailing list