LinuxQuestions.org
Help answer threads with 0 replies.
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 02-26-2014, 03:01 AM   #1
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian
Posts: 257

Rep: Reputation: 24
screen: Something keeps typing "AT+GCAP" to my terminal


I'm trying to use a usb-to-serial connection for an UART device on Mint linux. I setup the terminal by doing "# screen /dev/ttyADM0 115200". That's it, I get a nice serial connection to the device where I can interact with it. But when initializing the serial connection with the given command, something types in the "AT+GCAP" string to my terminal and hits newline/enter (sends the command over). This happens a couple of times only at the very beginning after starting the screen session, then it stops. I've also seen a few lines like "~x~" veing typed.

What is causing this behavior? I find it a nuisance since it interferes with the device I'm using.
 
Old 02-26-2014, 03:54 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by displace View Post
I'm trying to use a usb-to-serial connection for an UART device on Mint linux. I setup the terminal by doing "# screen /dev/ttyADM0 115200". That's it, I get a nice serial connection to the device where I can interact with it. But when initializing the serial connection with the given command, something types in the "AT+GCAP" string to my terminal and hits newline/enter (sends the command over). This happens a couple of times only at the very beginning after starting the screen session, then it stops.
it looks as though Ubuntu's/Mint's modem manager does that to check if there is a modem connected, and if so, to see what capabilities (e.g. fax, answering machine) it supports:
http://stackoverflow.com/questions/1...-modem-go-away
http://ubuntuforums.org/showthread.php?t=2056285

If you don't use actual modems, you might even try to uninstall the modem manager. I did so for my desktop PC - not because modem manager caused me trouble, but only because I was quite sure I didn't need it.

Quote:
Originally Posted by displace View Post
I've also seen a few lines like "~x~" veing typed.
That's the escape sequence to bring the modem from data mode into command mode.

[X] Doc CPU
 
1 members found this post helpful.
Old 02-26-2014, 04:50 AM   #3
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian
Posts: 257

Original Poster
Rep: Reputation: 24
Thank you, I believed it was the screen program that was misbehaving. This worked:
Quote:
# sudo stop modemmanager
# echo manual | sudo tee -a /etc/init/modemmanager.override
 
  


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
[SOLVED] cant make a file executable by terminal typing "chmod +x layerfx.py" froylan Ubuntu 3 07-26-2012 02:41 PM
typing "S" to go to login screen in ubuntu 3.0.0-17-generic levimaen Linux - Newbie 4 04-05-2012 12:54 PM
[SOLVED] "Insert" & "Delete" key returns "~" in a terminal. sharky Linux - General 15 04-26-2011 08:36 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 09:32 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 AM.

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