LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2011, 01:54 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
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?
 
Old 11-22-2011, 08:17 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.

Last edited by frankbell; 11-22-2011 at 08:19 PM.
 
Old 11-23-2011, 10:19 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 535

Original Poster
Rep: Reputation: 30
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?
 
Old 11-25-2011, 07:16 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPP: Chat script failed (FreeBSD 8.0) JZL240I-U *BSD 27 03-08-2011 02:55 AM
ppp chat script failed Hacker X Linux - General 31 07-05-2006 10:03 PM
unautomate PPP chat script dosnlinux Linux - Newbie 3 08-03-2005 01:24 PM
need help with chat script... Linux~Powered Programming 2 03-05-2005 12:42 AM
X-Chat script to enter a command every minute eam Programming 2 08-30-2004 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration