lmahdi / as3-arduino-connector

Automatically exported from code.google.com/p/as3-arduino-connector
0 stars 0 forks source link

List of COMs in Mac OSx #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Great Project! Absolutely love it.

I'm trying to create AS3 driver for an ISO 15693 RFID reader running on a 
virtual COM port. I have created a small app that works on windows (with small 
minor issue that I'm trying to fix, which i won't discuss in this issue). 

I need to get this app to work in OSX but the issue is:

The serial device is named: "/dev/tty.SLAB_USBtoUART"

and getComPorts() uses

if (i.nativePath.search("/dev/tty.usb") > -1)

I would assume it would work if it were

if (i.nativePath.search("/dev/tty.") > -1)

how would i modify that ?

Original issue reported on code.google.com by mirza.ce...@gmail.com on 2 Jan 2012 at 11:05

GoogleCodeExporter commented 8 years ago
This project is designed for Arduinos and Arduino Compatibles...  So all of the 
modern Arduinos will show up as /dev/tty.usb*

Since your project has a little different scope, you may want to simply extend 
the ArduinoConnector class and override that function.  You would do that in 
the same manner as any other class you may have written.

Alternatively, you can check out check out all ActionScript code via SVN and 
bake your own ANE.  You can watch a video on how to make your own ANE on my 
blog : 
http://quetwo.com/2011/11/03/creating-a-windows-air-native-extension-with-eclips
e-part-3/ 

Original comment by Nicholas...@gmail.com on 3 Jan 2012 at 12:38

GoogleCodeExporter commented 8 years ago
Thanks, all sorted now :) Also could you show us how to create an ANT script to 
work on OSX ?

Regards

Mirza Ceyzar

Original comment by mirza.ce...@gmail.com on 6 Jan 2012 at 4:01

GoogleCodeExporter commented 8 years ago
All Good, found the thread on your blog :)

Original comment by mirza.ce...@gmail.com on 9 Jan 2012 at 1:14

GoogleCodeExporter commented 8 years ago
Great to hear.  I don't have any good ANT scripts I can share for OSX, but I'm 
sure you can find some with a quick google search.

Original comment by Nicholas...@gmail.com on 9 Jan 2012 at 4:04