Re: Serial port through USB help
Re: Serial port through USB help
- Subject: Re: Serial port through USB help
- From: "Jeffrey J. Early" <email@hidden>
- Date: Mon, 07 May 2007 18:01:33 -0700
- Thread-topic: Serial port through USB help
You probably just need to write code to access a serial port. The drivers
for the USB to Serial device typically just make it look like an ordinary
serial port.
Check out the sample code here:
http://developer.apple.com/samplecode/SerialPortSample/index.html
You should see the serial port show up in your "/dev" folder -- it will
either be labeled with the prefix "cu." or "tty.". I think the sample code I
linked to above actually runs through this.
on 5/7/07 5:48 PM, Vince Ackerman at email@hidden wrote:
> My project in a nutshell: I need to control a Pan Tilt Zoom camera
> through the USB port. I've got a USB to Serial RS485 device with a
> software driver. I plan on controlling the device with 2 wire Pelco
> D protocol. I'm a Newbie so pardon the dumb questions.
>
>
> I've been doing a lot of reading of the Apple Doc's but seem to be
> going around in a circle. I'm a bit unclear on where to start: Do I
> need to look into writing code that accesses the USB port or since
> the USB to serial device is handling the conversion to serial, do I
> stay with just coding to write out a serial port and pretend the
> serial port is already there...
>
>
> I'm serial, I don't know where to start.
>
>
> Could one of you kind sirs please give me a direction to look to get
> started? I have some C code to do the Pelco-D protocol but not sure
> how to access the pipe out the USB/Serial port.
>
>
> Thanks
>
>
> Vince
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden