LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-17-2003, 01:06 PM   #1
motyl
LQ Newbie
 
Registered: May 2003
Location: Galway, Ireland
Distribution: Redhat 9
Posts: 19

Rep: Reputation: 0
Red face IRDA modem does work, but pppd can't use it (it hangs when sending AT commands)


Hi gurus, help really needed here.
I had no problems on redhat 8, but now, after installation of redhat 9 something strange happens.

I was able to install IRDA quite easily and it seems to be working (irdadump obviously communicates with the modem, lsmod command lists all necessary irda modules, K68 app for uploading of files to a phone works also). The only problem is pppd.

Code:
[root@marsla03 peers]# pppd call gprs
 
sending AT
Connect script failed
I thought there could be some misconfiguration in gprs-connect-chat script that is called to establish the connection so I tried to add few debug messages. Here is how it looks now:

Code:
exec chat 						\
	TIMEOUT		5				\
	ECHO 		ON				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nERROR\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nNO CARRIER\r'		\
	ABORT		'\nNO DIALTONE\r'		\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
	SAY		"\nsending AT\n"	\
	''		\rAT				\
	TIMEOUT		12				\
	SAY		"Press CTRL-C to close the connection at any stage!"	\
	SAY		"\ndefining PDP context...\n"	\
	SAY		"\nsending ATH\n"	\
	OK		ATH				\
	SAY		"\nsending ATE1\n"	\
	OK		ATE1				\
	SAY		"\nsending 'AT+CGDCONT=1,"IP","internet","",0,0'\n"	\
	OK		'AT+CGDCONT=1,"IP","internet","",0,0'	\
	SAY		"\nsending ATD*99#\n"	\
	OK		ATD*99#				\
	TIMEOUT		22				\
	SAY		"\nwaiting for connect...\n"	\
	CONNECT		""				\
	SAY		"\nConnected." \
	SAY		"\nIf the following ppp negotiations fail,\n"	\
	SAY		"try restarting the phone.\n"
As you see, the script will fail on first AT command.
Any ideas what could be wrong? It's communicating with /dev/ircomm0 device. Could the problem be here? How can I test if this device actually works? I tried minicom but I'm somehow unable to use it

Any help would be greately appreciated.

THANKS GURUS!
 
Old 04-30-2004, 07:31 PM   #2
fransemail
Member
 
Registered: Mar 2004
Posts: 72

Rep: Reputation: 15
set your APN

You must set your APN in
AT+CGDCONT=1,"IP","[YOUR APN]"

for example for Vodafone (Italy) is web.omnitel.it

However look this site www.easyconnect.linuxuser.hu
Have fun!
 
  


Reply


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
irda - GPRS - pppd - DNS problem, need help! lucastic Linux - Networking 2 11-02-2011 12:11 AM
Sending AT commands to a SMS modem narmida Linux - Hardware 2 09-24-2009 01:05 PM
Why my IrDa connection hangs (stops) morko Linux - Laptop and Netbook 0 04-07-2005 02:36 PM
pppd on server / modem hangs up on client. justwantin Slackware 1 03-06-2004 02:33 PM
Digiboard accel4r sending modem commands to terminal lansman Linux - Newbie 0 04-06-2003 09:58 AM


All times are GMT -5. The time now is 07:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration