Serial port support on Linux

126 views
Skip to first unread message

Harry

unread,
Sep 15, 2011, 1:37:18 PM9/15/11
to Sedona Framework
Hi,

I noticed there is no serial port support on Linux, only Windows. Is
there any source available? Or I need to write my own?

Thanks,
Harry

Matthew

unread,
Sep 15, 2011, 3:15:27 PM9/15/11
to sedo...@googlegroups.com
This is not currently part of the open source (as you observed).

You would need to write your own if you really need it.  If you do create native support for serial on unix, please think about contributing the code to the project by submitting it to us.

Thanks,
matthew

Patrick Cunningham

unread,
Sep 15, 2011, 4:01:09 PM9/15/11
to sedo...@googlegroups.com
You could start with the win32 code (src.zip\serial\native\win32\serial_SerialPort_win32.c).  Then look at the termios.h API and substitute the appropriate Linux calls for anything that is specific to win32. 

Here are some references that should help:

http://pubs.opengroup.org/onlinepubs/007908799/xsh/termios.h.html
http://pubs.opengroup.org/onlinepubs/007908799/xsh/open.html
http://pubs.opengroup.org/onlinepubs/009695399/functions/tcgetattr.html
Reply all
Reply to author
Forward
0 new messages