Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Which TTY for USB? (http://www.mac-forums.com/forums/os-x-development-darwin/109898-tty-usb.html)

SourSW 05-27-2008 03:04 PM

Which TTY for USB?
 
I'm attempting to write a simple C program that reads input from my USB which I have a serial to USB converter connected to. How do I know which TTY file to open under Dev?

SourSW 05-27-2008 11:46 PM

Update: It seems my whole problem is not identifying which is the correct TTY since it seems my Apple is not recognizing the USB->Serial at all. I've installed Prolific PL2303 driver, however the adapter is still not being seen. I've downloaded QuickTerm and ZTerm and both don't see the connector so I know its not my code. Anyone have any ideas? Granted this is no longer a strict programming question. :\

mac_hobbyist 07-31-2008 01:08 PM

How to use USB/Serial adapter?
 
Usually serial devices are represented by Unix "device files." To find the device file(s) for your USB/Serial adapter, try using commands like these in the Terminal application:

ls -l /dev/tty*
ls -l /dev/cu.*


If you don't find any device files for your USB/Serial adapter, make sure you have installed the software required by your USB/Serial adpater. Often, that kind of support is provided by a "Kernal Extension."


All times are GMT -4. The time now is 03:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.