Home > Mobile Devices > Serial Port Connection with GSM Mobile on Ubuntu

Serial Port Connection with GSM Mobile on Ubuntu

Connecting Devices:

Desktop PC, GSM Mobile

Operating System:


Hyperterminal Utility:

Minicom is another one but suitable is you are interested in scripting, kermit could me used through minicom

Connection commands:

>Set modem type none

>Set line /dev/ttyS*

>Set speed 9600

>Set flow rts/cts

>Set flow xon/xoff

>Set stop-bits 2


As soon as you enter, aconnection would be established

Test Connection:

Run basic AT Commands to test and verify connection



If you receieve OK from the device that verifies the connection is alive

Closing  Connection:

Press Shift and release then press Control then release and now press C

Write the Script:

filename.sh  ; for shell script

<start of file>

set modem type none

set line /dev/ttyS0

if Fail exit 1

set speed 9600

set flow rts/cts

set flow xon/xoff

set parity-bits even

set stop-bits 2

<end of file>

@>kermit command prompt> take filename.sh

Dial instead of Connect

Instead for connect replace it with ATDA telephone#;

@>kermit command prompt> take filename.sh

would instruct the device to dial a number automatically

Categories: Mobile Devices
  1. April 13, 2008 at 5:06 pm

    A much better software on Linux for hardware debugging is cutecom (http://cutecom.sourceforge.net/). Its much more usable than normal terminal programs. I believe there is a ubuntu package( http://packages.ubuntu.com/feisty/comm/cutecom) of the QT3 version. I did manage to compile the newer version on Debian though.

    There is an equivalent on Windows called Bray++ (http://bray.velenje.cx/avr/terminal/), which is actually much better than hyperterminal or anything else actually. Although it is very difficult to find it, as the site is normally down 😦

  1. April 13, 2008 at 5:14 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: