Communication via USB with Mac

Hi there, I'm new to the forum and this is my first post.

I've been reading my way around this topic since a week and wasn't able to find a solution for my problem and am hoping for your help:

I would like to set up sensors on my arduino (which is no problem) and then send measured data from the arduino to my Mac and process them there.

And this is where the problem lies: I would like to write to write a basic program that reads everything that is send to a specific usb-port from my arduino. I would like to use the POSIX library and/or basic lybraries (libserial didn't work for me due to the lac of documentation :( ).

Does anybody know an easy way to do so? Currently I'm using the gnu-compiler + makefiles to compile my work. Does it get easier using x-code? Does anybody have experience with this?

Thanks for your help.

I have a Mac. I uploaded the sketch ASCIItable (one of the examples). Noticing that the port in my case happened to be /dev/cu.usbmodemfd1431 I opened a Console window and typed:

cat /dev/cu.usbmodemfd1431

Then the output from the sketch appears in the window. To put it into a file:

cat /dev/cu.usbmodemfd1431 > foo.txt

Then you could open that file and process whatever is in it.

You could use gcc on the Mac to make a simple program that opened that device and did “whatever” with it. Xcode is very powerful, but there may be a bit of a learning curve to using it.

You can also try the RealBasic to make your program. I had used it geting data from arduino. It's more easy than work with Xcode

If you're in to .NET (Visual Basic) you could also try to use the System.IO and Mono. Worked great for me with C# and Serial writing.


Hope I could help, morymac