实在不想装这个模块,那么你在程序操作串口前用 system 调用一下如下命令:
system("stty -F /dev/ttyS0 19200");
2009/11/5 钟声 <gh00920307@gmail.com>
ubuntu ttys0 默认是9600
open my $ser,'>','/dev/ttyS0';
能发送信息,但我单片机是19200
但不知道怎么配置
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---
没有评论:
发表评论