LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-21-2009, 12:17 AM   #1
meeramukundan
LQ Newbie
 
Registered: Dec 2009
Location: India
Distribution: Fedora11
Posts: 9

Rep: Reputation: 0
How to connect GPRS modem in linux?


Hi,
I want to connect a GSM/GPRS modem using serial port with my PC that uses fedora11 .
I am using minicom as terminal emulator and have done the required serial port settings.But I am not able to sent AT commands from minicom terminal as I am not getting cursor in the terminal

Can anyone tell me whether I have to install/edit any files before making the connection?
How to connect to Internet using GPRS modem.?

Thanks
Meera
 
Old 01-04-2010, 11:19 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
Can you provide more information about your setup and what you have done so far.

The following would be useful:

Number of serial ports on the machine your using
Model and Make of the GSM modem
Any setup you have already done.


If you only have 1 serial port then it should be detected as the device /dev/ttyS0

When you run minicom I believe that by default it looks at the device /dev/modem which is normally a symlink to your modem device. It may be the case that this file does not exist on your system. If it does not then I would suggest linking it to the first serial tty device using the command below.

Quote:
ln -s /dev/ttyS0 /dev/modem
Then run minicom again this may allow you to access the device.

Regards

Lee
 
Old 01-06-2010, 04:02 AM   #3
meeramukundan
LQ Newbie
 
Registered: Dec 2009
Location: India
Distribution: Fedora11
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,

Thanks lee for your help.

The set up done is:
Modem connected to the serial port after giving supply using adapter(7.5V DC 100mA) and inserting SIM.
port settings given is
/dev/ttyS0 (COM port used)
115200 , 8N1 ,no flow control
No other set up have done.I just want to send AT commands to the modem.
The modem used is of the make Siemens MC35i,but i am not able to download its user manual.
I have tried for various baud rates,but still i am not getting cursor in the minicom to type AT commands neither getting an "ok" message from the modem.
Any other set up need to be done?
Any help...

Regards,
Meera
 
Old 01-06-2010, 12:06 PM   #4
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
Hi Meera

It sounds like you have things setup. Have you set minicom to use the device /dev/ttyS0 to talk to the modem.

You can check this from inside minicom. At the point where your trying to enter the AT commands do the following
Quote:

Press and hold CTRL and o
(thats the letter o not the number zero)

This should bring up the configuration menu for minicom.
From this select Serial port setup

This should bring up this menu

+-----------------------------------------------------------------------+
| A - Serial Device : /dev/modem |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : Yes |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-----------------------------------------------------------------------+

These are the defaults on fedora 11.

If option A is as set above /dev/modem run the command below to show what /dev/modem is pointing at. If its set to /dev/ttyS0 then minicom should be setup to point at the correct serial port.


ls -l /dev/modem

Regards

Lee

Last edited by cardy; 01-06-2010 at 12:07 PM.
 
  


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
failed to connect net on fedora 10 with airtel gprs with nokia n73 modem krisdkol Linux - Newbie 0 06-20-2009 11:57 PM
Howto connect GPRS on linux philipvarghese Linux - Networking 10 04-13-2009 07:51 AM
openvpn fails to connect to its server over a gprs modem ppp connection nass Linux - Networking 0 05-07-2008 03:41 PM
USB GPRS Modem on redhat linux chamalsl Red Hat 3 07-16-2007 09:11 PM
USB GPRS modem dongle for linux? wilho Linux - Wireless Networking 0 04-12-2005 01:23 AM

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

All times are GMT -5. The time now is 03:47 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