Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the serial port number on Mac OS X?

I have just started experimenting with Serproxy and Arduino to get some serial data into Flash Builder/Flex. Serproxy seems to work fine and seems to connect to whatever port is specified. However, I am not able to see or read any data from the serial port using ActionScript. This is odd, because the Arduino should be printing data on a loop.

The only thing I can think of is that I am not setting the correct serial port number. I have been trying to figure out how to find out what number should be set, that is, 5331, 5332, 5333, etc.

How do I find out the port number? Is there a way to do this using Terminal on OS X maybe?

like image 733
Bob-ob Avatar asked Sep 03 '12 21:09

Bob-ob


People also ask

How do I find the port number of a serial port?

To find the serial port number, open the Device Manager (press the Windows key , type in Device Manager, then press Enter). Then click Ports (COM & LPT). Look for USB Serial Port (COM#). Your serial port number is indicated by the number.

Do Macs have COM ports?

Apple equips its Macs with Thunderbolt ports that are compatible with USB-C. A new MacBook Pro comes with either two or three of these ports, depending on the model you pick. A new MacBook Air has a pair. A 24-inch iMac comes with two Thunderbolt/USB 4 ports; some models also include two USB-C ports.

How do I find my USB port name on Mac?

port names...? They are just USB ports on the USB bus, but you can see what is on the ports by going to: Apple / About This Mac / More Info and selecting USB in the Hardware section.


1 Answers

You can find your Arduino via Terminal with

 ls /dev/tty.* 

then you can read that serial port using the screen command, like this

screen /dev/tty.[yourSerialPortName] [yourBaudRate] 

for example:

screen /dev/tty.usbserial-A6004byf 9600 
like image 142
Sr.Richie Avatar answered Oct 11 '22 13:10

Sr.Richie