2009年2月20日

串口通讯的python模块——pySerial

摘要: pySerial Overview This module encapsulates the access for the serial port. It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (... 阅读全文

posted @ 2009-02-20 10:36 starspace 阅读(18631) 评论(0) 推荐(1) 编辑

perl串口通信实例

摘要: 使用串口通信,在备机端使用如下脚本检测来自主机的心跳信号,一旦未接受次数超过指定记数,备机认为主机DOWN机,自动设置为主机的网络参数,顶替主机提供服务。 # ! perl -w use strict; use Win32 :: SerialPort; my $port = ' COM2 ' ; # serail port name registried in... 阅读全文

posted @ 2009-02-20 10:32 starspace 阅读(1840) 评论(0) 推荐(0) 编辑

导航