i just can't get this figured out.
i have a device, that reports ascii data via a typical (DB-9) serial port. i
set up Win32::SerialPort in the following method:
$comm = Win32::SerialPort->new($port) or die "Close any application using
$port\n";
$comm->baudrate($baud); $comm->databits($dbits);
$comm->stopbits($sbits); $comm->parity($parity);
the following code works, but only for a relatively small amount of data
$comm->lookclear;
$comm->write("rl\r");
sleep 10;
$rcvd=$comm->input;
(... and then write $rcvd to a file ...)
for ~3K worth of serial data or less, $rcvd contains what i expect it to. but
when there is a larger amount, say 7-8K of serial data, the variable $rcvd is
empty. and my typical application could have excess of 100K
id really prefer to send the received data from the device directly to a file,
rather than thru a temporary variable. obviuosly "input" is not the right
command, but im having a hard time figuring out what else to do.
thank you for any help
rob
--Rob
Programmers have been likened to modern day Sorcerers. Well, I'm the Mickey
Mouse apprentice who spawned an infinite number of zombie broom processes, and
got in big trouble when the Sorcerer came back.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs