ChinaUnix.net
相关文章推荐:

linux串口缓存区大小

比如说: #include 编译正常通过 如果改为: #include 就提示找不到文件~~~~ 这么麻烦呀~~~ 有什么办法能阻止这样的错误不? 谢谢了!!!

by GodPig - C/C++ - 2009-01-08 09:48:30 阅读(30170) 回复(65)

相关讨论

我用putty远程登陆一台开ssh服务的linux机器.联结时候出现如下: the server's host key is not cached in the registry . you have no guarantee that the server is the computer you think it is. the server's rsa2 key fingerprint is : ssh-rsa 1024 34:43:45:d4:..... if you trust this host, hit yes to add the key to pietty's cache and carry on connecting . if you want to carry on connecting just once ,without...

by 我菜我怕谁 - 系统管理 - 2006-01-24 16:37:30 阅读(2009) 回复(1)

#include #include #include #include #include #include #include #include #include #include #define BUFSIZE 1024 int read_and_print(int fd, int sec, int usec) { int rc,l,i; char buf[BUFSIZE+1]; fd_set set; struct timeval tv; if (sec || us...

by 666666hello - C/C++ - 2006-08-22 12:06:39 阅读(1316) 回复(1)

为什么我总打不开我的串口,代码如下???? fd = open( "/dev/ttyS1", O_RDWR); if (-1 == fd){ /* 不能打开串口一*/ perror(" 提示错误!"); exit(0); }

by bluesprit980203 - C/C++ - 2005-08-21 19:16:17 阅读(1176) 回复(2)

打印机 有时候没反应!有反应的时候打印的东西很少如:8 乐 8。 每次不同。还有只有关机的时候才会打印一大堆问号! 现在好乱哦。可能是串口没有设置。 这句sprintf(buf, "stty -F %s 9600 cs8 raw -parenb -cstopb", comdev); system(buf);我用上了不行,,,怎么设置阿?? :em16:

by yjqyml - Linux论坛 - 2005-08-11 11:02:36 阅读(562) 回复(0)

linux中如何实现不断将串口读到的数据写到一个文件中? 最好能帮忙提供一个小例子,不胜感谢!

by 元鹤 - 内核/嵌入技术 - 2005-06-22 13:01:46 阅读(988) 回复(0)

老兄们. 那个知道arp表失效时间莫认是多少??? 怎么更改此时间. 谢谢了!

by dahai01 - Linux论坛 - 2005-09-13 16:02:47 阅读(1044) 回复(4)

linux已经安装完毕,而且安装了部分软件,现在想改分大小,有什么办法么?或者有什么工具?

by xubt - 系统管理 - 2005-08-05 20:28:06 阅读(3312) 回复(8)

我在windows下寫網頁、 上在拷貝到linux下,會造成 目錄或文件大小寫改變 各位有沒有碰到過這種情況 如何解決!

by cryboy2001 - 服务器应用 - 2004-12-08 08:23:24 阅读(830) 回复(2)

本人在linux下写串口通讯的时候遇到一些问题,请大家指教 我发送的内容是一个结构体,但是发送的时候会有停顿 例如,用一个循环语句给串口发,每隔2秒发送一次,在发送的过程中并不是每2秒就发一次,而是积累到一定大小后再发送出去,每次发送的大小只有12个字节 不知道哪里没有设置对,希望大家说说

by chealim - C/C++ - 2009-06-08 17:08:26 阅读(1476) 回复(3)

最近在做一个串口网口通讯程序,在ARM板上实现串口、网口数据转换,ARM板上有串口、网口 通讯过程是这样的,PC机上串口发送数据给ARM板,ARM板接收到串口数据后,从网口回传给PC,相反的,PC机上网口发送数据给ARM板,ARM板接收到网口数据后,从串口回传给PC。 过程大致就这样PC->ARM->PC 有哪位大侠做过的,可以指导下,有源码的话发我参考下,我邮箱是[email]pkjin88@163.com[/email] [ 本帖最后由 pkjin88 于 2009-4-28 10:56 ...

by pkjin88 - C/C++ - 2009-04-28 16:40:02 阅读(4572) 回复(5)