Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 05-17-2003, 02:06 PM   #1
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.

[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:

exec chat 						\
	TIMEOUT		5				\
	ECHO 		ON				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nERROR\r'			\
	ABORT		'\nNO ANSWER\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.

Old 04-30-2004, 08:31 PM   #2
Registered: Mar 2004
Posts: 72

Rep: Reputation: 15
set your APN

You must set your APN in

for example for Vodafone (Italy) is

However look this site
Have fun!


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

All times are GMT -5. The time now is 04:22 AM.

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