Skip to contentSkip to conversation

Specifing Hays Extended Command Set in PPP 2.4.1

DISCUSSION Frank Krauss 2 participants 3 messages Jun 8, 2004 – Jun 10, 2004 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

Hello everyone,

I'm attempting to specify a value in a CHAT Script for an AT command that has a & in it.

This is because it is a Hays Extended Command Set value. For example:
"" ATX1&S1E1Q0

Whenever I specify this type of command in a String, I get the following message:

Can't get terminal parameters: inappropriate IOCTL for device

If I remove the command with the & in it, the rest of the command runs fine. I know that the command itself is good since when I run it under MINCOM, the entire stmt runs fine.

The reason that I have to enter this type of command is because I'm attempting to get a US Robotics Sportster External 56K Fax Modem to work under Linux and I need to specify this type of Command in my Chat Script.

My DIP Switch setting are as follows:

   1. Up          5. Up 
   2. Up          6. Up
   3. Up          7. Up

4. Down 8. Down

My Environment is the following:

   1.  Computer is a Pentium II.
   2.  Distribution is Caldera 2.3
   3.  Kernel is 2.4.22
   4.  PPP is 2.4.1

Would someone be able to tell me what my mistake is or how I can get around this problem?

Yours truly,

Frank Krauss

#1 lore raw
Quoted 8 lines · Frank Krauss

Hello everyone,

I'm attempting to specify a value in a CHAT Script for an AT command that has a & in it.

This is because it is a Hays Extended Command Set value. For example:
"" ATX1&S1E1Q0

Quoted 8 lines

Whenever I specify this type of command in a String, I get the following message:

Can't get terminal parameters: inappropriate IOCTL for device

If I remove the command with the & in it, the rest of the command runs fine. I know that the command itself is good since when I run it under MINCOM, the entire stmt runs fine.

"" 'ATX1&S1E1Q0'

Try putting it in quotes. The shell is probably interpreting the & rather than its being sent to the chat script ( give the chat script the -v option, make sure that you have
local2.*;daemon.* /var/log/ppplog
in /etc/syslog.conf and see what is actually sent to the modem)

#2 lore raw
In reply to Frank Krauss

Hello Bill,

Thank you very much for your feedback.

That was exactly my problem. I had to put anything that had special characters within Single Quotes. Then It worked perfect.

Just for your Information, concerning this particular Modem, I had to specify the exact same string as my first set of AT commands as was created by the MINICOM program when it iniatializes the Modem. When I specified that String as my first one, the Modem is now working great with PPP/CHAT.

Thank you again for your great information.

Yours truly,

Frank

===========================

Quoted 31 lines · Bill Unruh
Quoted 8 lines · Frank Krauss

Hello everyone,

I'm attempting to specify a value in a CHAT Script for an AT command that has a & in it.

This is because it is a Hays Extended Command Set value. For example:
"" ATX1&S1E1Q0

Quoted 8 lines

Whenever I specify this type of command in a String, I get the following message:

Can't get terminal parameters: inappropriate IOCTL for device

If I remove the command with the & in it, the rest of the command runs fine. I know that the command itself is good since when I run it under MINCOM, the entire stmt runs fine.

"" 'ATX1&S1E1Q0'

Try putting it in quotes. The shell is probably interpreting the & rather than its being sent to the chat script ( give the chat script the -v option, make sure that you have
local2.*;daemon.* /var/log/ppplog
in /etc/syslog.conf and see what is actually sent to the modem)

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html