LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? (https://www.linuxquestions.org/questions/programming-9/is-a-usbtty-usb-serial-port-treated-the-same-as-tty-normal-serial-port-in-c-843930/)

spudgunner 11-12-2010 12:51 PM

Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C?
 
I'm currently looking to have a C program communicate with an Arduino board. The Arduino board shows up as "USBtty0" (or any other USBtty in general). I have been trying to figure out how to communicate with this, but all the C programming stuff I've found so far only talks about standard serial ports (tty). Can I treat a USB serial port (USBtty) like a normal serial port (tty) in my C program?

Thanks

michaelk 11-12-2010 01:19 PM

Yes, USB serial adapters are programmed just like the real thing.


All times are GMT -5. The time now is 10:38 PM.