Thanks for the reply (and sorry for the disclaimer -- nothing I can do
about that I'm afraid)

Chat looks like the way to go, however, I can't seem to get it to work
OK.

A completed conversation using minicom goes like this:

At+cmgs="<phoneNumberhere", 145
> Test Message
> <Control+z> <cr>
+CMGS:1

The '>' at the beginning of the 2 lines are outputted by the system, as
is the +CMGS:1.

Can any one point me in the right direction ???

Ta,

Jamie

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek Jennings
Sent: 08 September 2004 14:09
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Sending AT commands programmatically

On Wednesday 08 September 2004 13:52, Jamie Kerwick wrote:
> Hi there,
>
> I have been tasked with figuring out how to send a series of AT 
> commands using a script to a modem plugged into our Linux server.
> Can someone give me some clues on how I might go about this ??
>
> The background to this is that we have a premicell (nokia gsm modem 
> type
> thing) that we want to use to send emails, sent to a specific address,

> as text messages. We've figured out how to send the sms using AT 
> commands. Getting the email redirected to a script I can do fine, its 
> simply sending the AT commands to the modem that's the problem.
>
> Ta,
>
> Jamie
>
SNIP - Enormous mail disclaimer

echo "text message" > /dev/modem

or

echo "text message" > /dev/ttyS0

should do the trick.

You might also like to read up on 'chat' It will allow you to automate a
'conversation' with your modem.


derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org




************** E-mail Disclaimer **************
This e-mail message is confidential and for use by the addressee only.  If you are not 
the intended addressee, please reply to the sender and then delete the message from 
your computer.

Please note that any views or opinions presented in this e-mail are those of the 
author and do not necessarily represent the views or opinions of The Benenden 
Healthcare Society Limited.

You should check this e-mail and any attachments for the presence of viruses.  The 
Benenden Healthcare Society Limited accepts no liability for any damages caused by any 
virus transmitted my this e-mail or its attachments.

The Benenden Healthcare Society Limited is an incorporated friendly society, 
registered under the Friendly Societies Act 1992, registered number 480F.  The 
Society’s contractual business (the provision of tuberculosis benefit) is authorised 
by the FSA.  The remainder of The Society’s business is undertaken on a discretionary 
basis.  The Society is subject to FSA requirement for prudential management.

Registered Office Address: The Benenden Healthcare Society Limited,
Holgate Park Drive, York. YO26 4GG.  
Tel: 0870 7545 700  Fax: 0870 7545 822
www.benenden.org.uk

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to