开发者

asynchronous serial transmission C

开发者 https://www.devze.com 2022-12-20 11:51 出处:网络
So i\'m working on a program, wich is vaguely going to resemble Br@y\'s Terminal, but running from the commandline in linux

So i'm working on a program, wich is vaguely going to resemble Br@y's Terminal, but running from the commandline in linux

It will do asynchronous transmission, out the serial (Com) port. Now i think the Header/library i need for this is the termios.h

Now i've only used posix a little before and i;m finding it 开发者_如何学JAVArather heavy going digging though manpages/specifactions http://www.opengroup.org/onlinepubs/007908799/xsh/termios.h.html\

Does anyone know of any good guides to termios? I would google it myself (i've tired) but i don't understand the content enough to know if a guide is good. Am i using the right library,even?


There's a wiki book available that covers termios. Yes you are using the right library. It's the only way to manipulate the device to talk over the serial line as it controls it. There is a brief introduction to termios in this blog. Here is another wiki book on serial programming under Linux.

Hope this helps, Best regards, Tom.

0

精彩评论

暂无评论...
验证码 换一张
取 消