LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-13-2004, 10:53 AM   #1
Xanadu
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
Unhappy want to talk to serial modem


I've just installed RH9, I have also installed a PCMCIA gprs card (option globetrotter), linux has recognised it and set it up on ttyS18.

I DO NOT wish to use the card to dial out, or allow someone to dial in.

I very simply wish to send it a few AT commands, specifically I want to retrieve an SMS message from the SIM, this can be done with AT commands.

I think this must be very simple, however every how-to I look at seems to assume you want to use the modem to dial out / in (funny that). I'm seeing applications out there like smsd and mgetty - but surely I don't need an application to do this??
 
Old 12-13-2004, 11:10 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
You can do this without an application by echoing commands to the modem's serial port (ttyS18) while running
Code:
tail -f
get the results back.

But I recommend using minicom, an application specifically designed to talk to serial modems at the AT command level. At the least, you can use this to interactively test a sequence of AT commands to see if what you get is the expected result or not, before scripting them.

Chat is another program that might be useful to you; it lets you set up a “conversation” with your modem, telling it which AT commands to give, what results to expect, and what action to take when it gets a wrong result. It will also let you hand over the SMS message to another program, eg. to save it to a file or email it to you.
 
Old 01-03-2005, 08:09 AM   #3
Xanadu
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Original Poster
Rep: Reputation: 0
minicom / serial modem

That really helped, I realised my Globetrotter was not correctly configured, this link helped http://www.pharscape.org/index.php?o...9#_Toc83808113

I'm looking for something like minicom, but without the terminal emulation - ie so I can directly talk to the modem. If I start minicom as a sub process and write and read to that I get loads of terminal control characters

I've tried directly eg. echo "AT" > /dev/modem but that doesn't do anything ... any ideas?
 
Old 01-12-2005, 03:44 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
Something you might try (that I've just come across) is xwisp.py. (sf.net/projects/xwisp)

It's intended for programming PIC microcontrollers, but it has a term command that claims to give you a direct interface to the serial port. In theory, this might let you talk to the modem without AT commands.

You might also try using wisp.exe under wine or freedos; it definitely won't produce ANSI escape commands
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RH doesn't detect my Serial modem connected to a PCI Serial card ricky_ds Linux - Hardware 1 08-17-2006 02:37 PM
can i set rs6000 to talk to laptop thru serial captaindoogles Linux - Hardware 0 10-28-2005 01:35 PM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 10:04 AM
modem talk... anyone? rohan208 Programming 4 07-14-2004 02:38 PM
Network Navigator won't talk to my modem rdaves@earthlink.net Linux - Networking 4 06-16-2001 11:50 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration