我用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...
#include
为什么我总打不开我的串口,代码如下???? fd = open( "/dev/ttyS1", O_RDWR); if (-1 == fd){ /* 不能打开串口一*/ perror(" 提示错误!"); exit(0); }
打印机 有时候没反应!有反应的时候打印的东西很少如:8 乐 8。 每次不同。还有只有关机的时候才会打印一大堆问号! 现在好乱哦。可能是串口没有设置。 这句sprintf(buf, "stty -F %s 9600 cs8 raw -parenb -cstopb", comdev); system(buf);我用上了不行,,,怎么设置阿?? :em16:
本人在linux下写串口通讯的时候遇到一些问题,请大家指教 我发送的内容是一个结构体,但是发送的时候会有停顿 例如,用一个循环语句给串口发,每隔2秒发送一次,在发送的过程中并不是每2秒就发一次,而是积累到一定大小后再发送出去,每次发送的大小只有12个字节 不知道哪里没有设置对,希望大家说说
最近在做一个串口网口通讯程序,在ARM板上实现串口、网口数据转换,ARM板上有串口、网口 通讯过程是这样的,PC机上串口发送数据给ARM板,ARM板接收到串口数据后,从网口回传给PC,相反的,PC机上网口发送数据给ARM板,ARM板接收到网口数据后,从串口回传给PC。 过程大致就这样PC->ARM->PC 有哪位大侠做过的,可以指导下,有源码的话发我参考下,我邮箱是[email]pkjin88@163.com[/email] [ 本帖最后由 pkjin88 于 2009-4-28 10:56 ...