in reply to Difficulties with Device::SerialPort

Complete shot in the dark, but make sure you have appropriate permissions set on the /dev/ttyS0 files. That has bitten me in the past...

-Scott

  • Comment on Re: Difficulties with Device::SerialPort

Replies are listed 'Best First'.
Re^2: Difficulties with Device::SerialPort
by EvanK (Chaplain) on Sep 07, 2005 at 16:01 UTC
    already thought of that, i even tried running the script as root.

    it seems to have no problem with me print()ing to the serial port, but reading in any data, it's as if the module doesnt even see the port is there.
    # it seems to have no problem here print SERIAL $IM{'POL'}; # but HERE... read(SERIAL,$data,$BUFFER);

    __________
    Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
    - Terry Pratchett