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?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With