Always Use strict and warnings!
# I tried each of the below my $port = Device::SericalPort->new ...Lin +es of Code. #my $port = Device::SerialPort->new("/dev/cu.usbserial"); #my $port = Device::SerialPort->new("/dev/tty.usbserial"); #my $port = Device::SerialPort->new("/dev/ttys0");
You should use the same device name that works in your other scripts.
#$port->write_settings || undef $port;
Why did you commment this out? Try uncommenting this.
Although I've used Device::SerialPort successfully in the past, I now strongly recommend IO::Termios on *NIX systems instead - see my post Lower-Level Serial Port Access on *NIX.
In reply to Re: Cannot write to, or read from, the SerialPort
by haukex
in thread Cannot write to, or read from, the SerialPort
by macdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |