LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to connect GPRS modem in linux? (https://www.linuxquestions.org/questions/linux-software-2/how-to-connect-gprs-modem-in-linux-777153/)

meeramukundan 12-21-2009 12:17 AM

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

cardy 01-04-2010 11:19 AM

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

meeramukundan 01-06-2010 04:02 AM

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

cardy 01-06-2010 12:06 PM

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


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