LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-22-2006, 12:54 PM   #1
Critcho
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):

E.g.

connect "chat -v -t 10 -f /etc/ppp/gprs.chat"

gprs.chat:
Code:
ABORT "NO CARRIER"
ABORT "ERROR"
''
'+\p+\p+\pAT' 'OK'
'ATE0' 'OK'
'ATH' 'OK'
-ABORT "ERROR"
'AT*E2RESET' ''
ABORT "ERROR"
'AT+CSQ' ''
'AT+CGDCONT=1,"IP","MY.SERVER.COM"' 'OK'
'ATD*99***1#' 'CONNECT'

Cheers,
Critcho
 
Old 10-22-2006, 09:57 PM   #2
petersum
Member
 
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!
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 AM.

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