LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2009, 03:13 PM   #1
atziazas
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Chat command line / communicating with GSM modem / sending instructions


Hi,

I have a Compulab EM-270X device, running Angstrom Linux 2.6.26. The device has a Telit chip which takes a SIM card and I want to send some AT instructions.

I need to send the instruction: AT#BND=3

to the modem to make it change its settings from Europe to U.S. in order for my AT&T sim card to connect to the network.

From poking around in /etc/ppp I found various files like gprs-connect and gprs-options that use the "chat" command to communicate with the modem which I believe it's the /dev/ttyS1.

How do I use "chat" or any other tool to send those instructions to the modem?

I have never used the "chat" command line and the man pages sort of confused me.

Here's my gprs-connect:

TIMEOUT 60
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO CARRIER'
'' 'AT'
OK AT+CGDCONT=1,"IP","wap.cingular","0.0.0.0",0,0
OK ATD*99***1#
CONNECT ''

And my gprs-options:

/dev/ttyS1
115200
defaultroute
ipcp-accept-local
ipcp-accept-remote
user "WAP@CINGULARGPRS.COM"
connect "/usr/sbin/chat -v -f /etc/ppp/gprs-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/gprs-disconnect"
 
Old 06-24-2009, 10:59 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,932

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by atziazas View Post
Hi,

I have a Compulab EM-270X device, running Angstrom Linux 2.6.26. The device has a Telit chip which takes a SIM card and I want to send some AT instructions.

I need to send the instruction: AT#BND=3

to the modem to make it change its settings from Europe to U.S. in order for my AT&T sim card to connect to the network.

From poking around in /etc/ppp I found various files like gprs-connect and gprs-options that use the "chat" command to communicate with the modem which I believe it's the /dev/ttyS1.

How do I use "chat" or any other tool to send those instructions to the modem?

I have never used the "chat" command line and the man pages sort of confused me.
Why don't you shove the command in the gprs-connect script, and let it enter it for you? Or you could just type in "echo "AT#BND=3" > dev/ttyS1" at a command line....
 
Old 06-25-2009, 03:58 PM   #3
atziazas
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
I did that. And I restarted the device. I also did an "echo 0 > /sys/devices/platform/gprs/pwr_on" then an echo 1 > ... etc.

Nothing happens. I am not sure how to get it to talk to me. Any ideas?
 
  


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
basic command line instructions Spike Spiegel Linux - Newbie 3 10-28-2008 02:34 PM
Pass command line instructions during install? Clayton8 Linux - Newbie 7 11-07-2007 04:15 AM
Sending mail from command line matiasquestions Linux - Software 5 01-22-2006 12:51 PM
communicating with the command line Timothypir2 Programming 6 10-01-2005 04:38 PM
command line instructions homecomp Linux - General 0 02-21-2004 04:14 PM


All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration