Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-2008, 06:51 PM
frances.albanese@gmail.com
 
Posts: n/a
Serial communication

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
  #2 (permalink)  
Old 03-13-2008, 10:49 PM
ERACC
 
Posts: n/a
Re: Serial communication

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
  #3 (permalink)  
Old 03-14-2008, 06:41 AM
Bill Marcum
 
Posts: n/a
Re: Serial communication

On 2008-03-13, frances.albanese@gmail.com <frances.albanese@gmail.com> 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
  #4 (permalink)  
Old 03-14-2008, 01:47 PM
Holger Petersen
 
Posts: n/a
Re: Serial communication

frances.albanese@gmail.com 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
  #5 (permalink)  
Old 03-14-2008, 06:21 PM
frances.albanese@gmail.com
 
Posts: n/a
Re: Serial communication

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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:16 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Cards | Credit Cards | Corset | Actress | Arturo Perez Reverte



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114