It's just a tty, write to it via /dev/cuaX <div><br></div><div>-j<br><br><div class="gmail_quote">On Fri, Aug 26, 2011 at 1:13 AM, Robby <span dir="ltr"><<a href="mailto:robwasab@gmail.com">robwasab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I don't know if I'm asking the wrong question, but in short, I want to create a program that writes to a serial port on my macbook (OS X) using gcc. <div>
<br></div><div>I've been googling for hours on end and can't find any powerful libraries specifically tailored for mac.</div>
<div><br></div><div>but, because mac is unix, its pretty compatible with linux stuff?</div><div>I found a library that was tested/compiled under gcc, but some of its functions refer to </div><div>USB0          as 0</div>
<div>
USB1          as 1</div><div>USB2          as 2</div><div><br></div><div>but in mac land, all i get under /dev is a bunch of tty stuff, and I'm aiming for a usb-serial convert that's called tty.usbserial###. And i have no idea how that even relates to the above. </div>

<div><br></div><div>Does anybody have any experience with writing code that talks to serial ports in c or c++, at a glance it seems like there would be a dead shot YES, but after looking there really isn't anything standardized like cout, but i could be an idiot. </div>

<div><br></div><div>p.s. what is the difference between cu.usbserial and tty.usbserial?</div><div><br></div>
<br>_______________________________________________<br>
Noisebridge-discuss mailing list<br>
<a href="mailto:Noisebridge-discuss@lists.noisebridge.net">Noisebridge-discuss@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss" target="_blank">https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss</a><br>
<br></blockquote></div><br></div>