Re: usb serial programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Assuming your camera is RS232, you can use a simple RS232 daughter card on the Raspberry (about $7 from MCM electronics and others).
I have done this exact thing for communications with an old RS232 device.

Alternative is of course a USB to RS232 adapter and as Greg writes, you just change the target device file (the $7 adapter also creates a /dev/ttyxxx device.

-Bruce
On Jul 21, 2014, at 12:18 PM, Greg KH <greg@xxxxxxxxx> wrote:

> 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...
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux