wee_chang2002 has asked for the wisdom of the Perl Monks concerning the following question:
then i just run:use Device::SerialPort; $port = new Device::SerialPort ( "/dev/ttyS0"); $port->baudrate(9600); $port->databits(7); $port->stopbits(1); $port->parity("odd");
can anyone tell me what is wrong??[root@linux5 root]# perl -c tt.pl tt.pl syntax OK [root@linux5 root]# perl -W tt.pl (in cleanup) Can't call method "setcflag" on an undefined valu +e at /usr/lib/perl5/site_perl/5.8.0/Device/SerialPort.pm line 541 dur +ing global destruction.
update (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: send command to RS232, then get data from RS232
by hossman (Prior) on Dec 25, 2002 at 08:26 UTC | |
|
Re: send command to RS232, then get data from RS232
by pg (Canon) on Dec 25, 2002 at 18:25 UTC | |
|
Re: send command to RS232, then get data from RS232
by ibanix (Hermit) on Dec 25, 2002 at 18:12 UTC | |
|
Re: send command to RS232, then get data from RS232
by wee_chang2002 (Initiate) on Dec 26, 2002 at 04:08 UTC | |
by ibanix (Hermit) on Dec 26, 2002 at 05:54 UTC | |
|
Re: now, get new problam :P
by wee_chang2002 (Initiate) on Jan 03, 2003 at 08:15 UTC |