Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2006, 12:54 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 20

Rep: Reputation: 0
PPP Chat - optional / non-critical commands

I am running embedded linux on a single-board-controller, version:
BusyBox v0.60.5 (2005.09.26-02:02+0000) Built-in shell (ash)

This device connects to the internet via a GSM modem. We use the chat system to send a pile of commands to the modem. We have however been provided with some older modems that don't support all the commands. Until we get them all replaced by the supplier, is it possible to let PPP Chat continue if a particular command is not supported. I want to be able to add a command that will be sent to the modem, but won't abort on error (i.e. for the older modems):


connect "chat -v -t 10 -f /etc/ppp/"
'+\p+\p+\pAT' 'OK'
'ATE0' 'OK'
'ATH' 'OK'
'AT+CSQ' ''
'ATD*99***1#' 'CONNECT'

Old 10-22-2006, 09:57 PM   #2
Registered: May 2006
Location: Karachi, Pakistan
Posts: 140

Rep: Reputation: 15
Probably the easiest way is to use a shell script or even a perl script that will call the chat program at appropriate places, then react according to the expected reply.
There are a number of perl "chat scripts" available that can give you the basic ideas. Google for them!


chat, modem, ppp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 library & pppd, chat return codes ruchika Linux - Networking 1 03-08-2011 02:50 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
problems with ppp and chat.... slack---line Linux - Networking 3 05-27-2004 10:10 AM
chat ppp jimjim Linux - Networking 5 09-26-2002 11:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

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