LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   what are these messages from the chat script? (https://www.linuxquestions.org/questions/linux-networking-3/what-are-these-messages-from-the-chat-script-914858/)

shams 11-22-2011 01:54 AM

what are these messages from the chat script?
 
Hi,
My modem is external USB 2.0 Fax dial up modem, and use the chat script in debian squeeze to connect to my isp, the chat script can establish a connection successfully, i check the connection with:
Quote:

bash -c "tail -f /var/log/messages"
there are time to time these messages:
Quote:

Nov 22 11:41:58 user chat[4548]: alarm
Nov 22 11:41:58 user chat[4548]: send (AT^M)
Nov 22 11:41:58 user chat[4548]: expect (OK)

Nov 22 11:48:49 user chat[5097]: alarm
Nov 22 11:48:49 user chat[5097]: Failed

Nov 22 11:49:21 user chat[5173]: abort on (BUSY)
Nov 22 11:49:21 user chat[5173]: abort on (NO CARRIER)
Nov 22 11:49:21 user chat[5173]: abort on (VOICE)
Nov 22 11:49:21 user chat[5173]: abort on (NO DIALTONE)
Nov 22 11:49:21 user chat[5173]: abort on (NO DIAL TONE)
Nov 22 11:49:21 user chat[5173]: abort on (NO ANSWER)
Nov 22 11:49:21 user chat[5173]: abort on (DELAYED)
Nov 22 11:49:21 user chat[5173]: send (ATZ^M)
Nov 22 11:49:21 user chat[5173]: expect (OK)

Nov 22 11:50:06 user chat[5173]: alarm
Nov 22 11:50:06 user chat[5173]: send (AT^M)
i check the chat process with:
Quote:

ps aux | grep chat
root 5031 0.0 0.0 1796 504 pts/0 S 11:43 0:00 sh -c /usr/sbin/chat -v -f /etc/chatscripts/inse
root 5032 0.0 0.0 1732 428 pts/0 S 11:43 0:00 /usr/sbin/chat -v -f /etc/chatscripts/inse
Is it normal the chat script should run as a process or close after establish a connection, and what are above messages?

frankbell 11-22-2011 08:17 PM

The short version is that they are commands to the modem, more or less derived from the Hayes command set.

http://en.wikipedia.org/wiki/Hayes_command_set

Afterthought: I used to know some of the AT commands by heart back in the BBS days.

shams 11-23-2011 10:19 AM

thanks for reply, i know these are commands to modem by chat script, but question is why after connection chat should send these commands to modem, and is chat should run after connection established or just should exit?

frankbell 11-25-2011 07:16 PM

It's been a long time since I've had to deal with this, but, if I remember, every time you send or receive something across the modem connection, there has to be an accompanying command to the modem so it knows what to do with or in response to the data.

Back to your other question, one would not normally expect a chat session to close spontaneously after the connection is made, but *&^&^$0***$88&^%[NO CARRIER].

In other words, it can happen due to interference, faulty equipment, or other legitimate reasons.

Perhaps someone with more recent experience with AT commands will help us out here.


All times are GMT -5. The time now is 11:01 AM.