Networking Forums

Networking Forums > Computer Networking > Linux Networking > Serial communication

Reply
Thread Tools Display Modes

Serial communication

 
 
frances.albanese@gmail.com
Guest
Posts: n/a

 
      03-13-2008, 04:51 PM
Hi,
I need to establish an automatic communication on a serial line with a
gsm. I'm wondering whether it is possible to issue some commands in a
script fashion so that I have not to put commands by hand every time I
need to send a SMS, for instance. I'd like not to spend too much time
making a C program.
What I need it is a method to feed a serial terminal (like cu or
minicom) with scripted command, skipping the interactive mode.

Thanks
 
Reply With Quote
 
 
 
 
ERACC
Guest
Posts: n/a

 
      03-13-2008, 08:49 PM
On Thu, 13 Mar 2008 10:51:01 -0700, frances.albanese wrote:

[...]
> What I need it is a method to feed a serial terminal (like cu or
> minicom) with scripted command, skipping the interactive mode.


I would and do use c-kermit for this. Do a web search for "c-kermit".

Gene (e-mail: gene \a\t eracc \d\o\t com)
--
Mandriva Linux release 2007.1 (Official) for i586
Got Rute? http://www.anrdoezrs.net/email-25465...sbn=0130333514
ERA Computers & Consulting - http://www.eracc.com/
Preloaded PCs - eComStation, Linux, FreeBSD, OpenServer & UnixWare
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      03-14-2008, 04:41 AM
On 2008-03-13, (E-Mail Removed) <(E-Mail Removed)> wrote:
>
>
> Hi,
> I need to establish an automatic communication on a serial line with a
> gsm. I'm wondering whether it is possible to issue some commands in a
> script fashion so that I have not to put commands by hand every time I
> need to send a SMS, for instance. I'd like not to spend too much time
> making a C program.
> What I need it is a method to feed a serial terminal (like cu or
> minicom) with scripted command, skipping the interactive mode.
>
> Thanks


echo hello > /dev/ttyS0
or
exec 3>/dev/ttyS0
echo hello >&3

If you need to wait for a response from the device, you could use chat
or expect.
 
Reply With Quote
 
Holger Petersen
Guest
Posts: n/a

 
      03-14-2008, 11:47 AM
(E-Mail Removed) writes:

>Hi,


Ho!

>I need to establish an automatic communication on a serial line with a
>gsm. I'm wondering whether it is possible to issue some commands in a
>script fashion


>What I need it is a method to feed a serial terminal (like cu or
>minicom) with scripted command, skipping the interactive mode.


What about minicom?

http://www.google.de/linux?hl=de&q=m...nG=Suche&meta=

good luck, Holger
 
Reply With Quote
 
frances.albanese@gmail.com
Guest
Posts: n/a

 
      03-14-2008, 04:21 PM
Using expect worked very well (I was able to collect and process data
easily scripting in tcl language).

Thanks a lot
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial communication diagnostic application_Linux Nutty Linux Networking 4 10-14-2006 01:28 AM
Minicom serial communication Xilinx board Kristof Loots Linux Networking 0 01-17-2005 01:49 PM
serial port communication Pilatus Linux Networking 4 11-10-2003 02:44 PM
modem is required for serial communication? Matthew Louden Windows Networking 4 10-06-2003 09:05 AM
modem is required for serial communication? Matthew Louden Windows Networking 4 10-06-2003 09:05 AM



1 2 3 4 5 6 7 8 9 10 11