0

I am manually dialing remote machines using my serial modem via the linux command line. I am automating the process, hence not using any dialing tools (I've already tried most of them - none are sufficient).

I can make connections successfully - however when I turn on the verbose option on my modem ("AT V1"), the output and input of my device seems to be interspersed with excessive newlines. I'm sending commands to my modem with "echo 'command' > /dev/ttyS0", then listening on another terminal with "cat /dev/ttyS0". The newlines steadily increase in number, and are also sent to the serial connection, making it impossible to enter a username or password, or any other data. Eventually the connection is terminated due to multiple failed login attempts.

I captured the entire sequence as an example and pasted it here: http://pastebin.com/j8Fc236m

tjbp
  • 193
  • 3
  • 6
  • How is your serial port configured? Is this an external modem? Are you running `getty` or similar on that port? Have you read the [HOWTO](http://tldp.org/HOWTO/Modem-HOWTO.html)? Which dialers have you tried and what problems did you have? – Dennis Williamson Aug 05 '10 at 05:09
  • Thanks for the suggestions - your first was the key - I hadn't configured my port correctly. – tjbp Aug 05 '10 at 11:18

1 Answers1

0

Check "man stty" and investigate various character conversion settings.

tjbp
  • 193
  • 3
  • 6
  • 1
    Please add the particular configuration change that fixed this problem. It may be useful to someone who comes along later and has a similar problem. – Dennis Williamson Aug 05 '10 at 13:23