Re: Serial Ports and Perl

2017-10-27 Thread Martin McCormick
Andy Smith writes: > Hi Martin, > > I have been using it successfully for a long time, but all I do is > read whole lines from the serial device like: > > my $dev = '/dev/ttyUSB0'; > my $port = Device::SerialPort->new($dev); > > $port->baudrate(57600); > $port->write_settings; > > open my $fh

Re: Serial Ports and Perl

2017-10-26 Thread Richard Hector
On 27/10/17 15:38, Martin McCormick wrote: > A perldoc of Device::SerialPort says that lookfor is > supposed to block or hold until a character string emerges from > the port as in /dev/ttyUSB0 or /dev/ttyS1. When I trace the > code, it just loops as fast as it can and never holds to wait fo

Re: Serial Ports and Perl

2017-10-26 Thread Martin McCormick
Andy Smith writes: > Hi Martin, > I have been using it successfully for a long time, but all I do is > read whole lines from the serial device like: > > my $dev = '/dev/ttyUSB0'; > my $port = Device::SerialPort->new($dev); > > $port->baudrate(57600); > $port->write_settings; > > open my $fh,

Re: Serial Ports and Perl

2017-10-26 Thread Fred
On 10/26/2017 05:37 PM, Martin McCormick wrote: The perl list I subscribe to seems to be on the fritz or I would take the question there. I want to write code that receives from a RS-232 port and I just can't seem to get it to do anything. The port I am reading is connected to a scanner

Re: Serial Ports and Perl

2017-10-26 Thread Henning Follmann
On Thu, Oct 26, 2017 at 07:37:07PM -0500, Martin McCormick wrote: > The perl list I subscribe to seems to be on the fritz or I would > take the question there. I want to write code that receives from > a RS-232 port and I just can't seem to get it to do anything. > > The port I am reading i

Re: Serial Ports and Perl

2017-10-26 Thread Andy Smith
Hi Martin, On Thu, Oct 26, 2017 at 07:37:07PM -0500, Martin McCormick wrote: > If anybody has gotten the perl Device::SerialPort to > work, I am interested to know what I am doing or not doing. I have been using it successfully for a long time, but all I do is read whole lines from the seri

Serial Ports and Perl

2017-10-26 Thread Martin McCormick
The perl list I subscribe to seems to be on the fritz or I would take the question there. I want to write code that receives from a RS-232 port and I just can't seem to get it to do anything. The port I am reading is connected to a scanner radio and produces generally short lines of text