LinuxQuestions.org
Visit Jeremy's Blog.
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 08-13-2010, 03:11 PM   #1
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
Executing AT Commands on USB Modem


I have a USB modem on a Debian install that I want to be able to use AT commands to diagnose, specifically for obtaining signal strength (RSSI). I know the command for this is AT+CSQ but I cannot seem to get the interface for issuing AT commands to work.

The modem is using /dev/ttyACM0 and when I try to use minicom, I type in AT commands and nothing is echoed to the screen (Yes, echo is turned on). Maybe I just don't know how to use minicom correctly.

Any assitance is appreciated.
 
Old 08-13-2010, 04:03 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I will guess you need to start with modemtool since com1 isn't how the modem is connected.
 
Old 08-13-2010, 04:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Is minicom configured to use /dev/ttyACM0?
Are all the settings correct i.e. baud rate, start,stop bits, parity etc?
 
Old 08-13-2010, 05:46 PM   #4
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Is minicom configured to use /dev/ttyACM0?
Are all the settings correct i.e. baud rate, start,stop bits, parity etc?
Yes, except I get the indication that the modem is setup with a speed of 921200 which isn't an option in the minicom config. Can this be set somewhere else?
 
Old 08-14-2010, 07:58 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
What is the make/model of your USB MODEM and post the output of the lsusb command.
 
Old 08-15-2010, 12:57 PM   #6
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
What is the make/model of your USB MODEM and post the output of the lsusb command.
The modem is a Pantech UMW190 like this one.

http://www.phonenews.com/verizon-lau...al-modem-8868/

lsusb results in the following output:

Bus 002 Device 003: ID 106c:3716 Curitel Communications, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
 
Old 08-15-2010, 06:03 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
I found some info that should help you get going. According to the following the baudrate 460800.
http://ubuntu-ky.ubuntuforums.org/sh....php?p=8820174
 
Old 08-17-2010, 10:03 AM   #8
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
I found some info that should help you get going. According to the following the baudrate 460800.
http://ubuntu-ky.ubuntuforums.org/sh....php?p=8820174
Thanks but the modem is working. What I need is a way to access the AT command interface to the modem, specifically to periodically obtain the received signal strength. BTW, I am using Debian on an embedded device so there is no desktop--only command line.
 
Old 08-17-2010, 10:18 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Try minicom again using a baudrate of 460800.
 
Old 08-17-2010, 11:51 AM   #10
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Try minicom again using a baudrate of 460800.
I finally did get it working in minicom with a baud rate of 921600. The issue was that the modem will not repond to AT inquiries while it's actually connected. I guess I should have figured that out sooner.

I'd still like to be able monitor the signal strength (using the AT command AT+CSQ) while the modem is connected. Does anyone know if this is possible?
 
  


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
commands to be used for LINUX USB modem cvr Linux - Embedded & Single-board computer 1 06-18-2010 01:39 AM
How commands are executing ? gsiva Linux - Server 1 07-21-2009 09:48 AM
Executing commands at a specified time Siva4Linux Linux - Wireless Networking 7 02-21-2007 06:49 AM
Executing commands in Konsole... meteotrade Linux - General 5 10-20-2003 07:34 PM
Executing commands on startup viciousfish Linux - General 5 06-28-2002 03:15 PM


All times are GMT -5. The time now is 12:54 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