LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-16-2011, 10:42 AM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question possible reasons for cryptic characters in Minicom output


I'm using Minicom 2.3:

Code:
[root@ ~]# minicom -v
minicom version 2.3 (compiled Oct 22 2009)
Copyright (C) Miquel van Smoorenburg.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version
2 of the License, or (at your option) any later version.

[root@ ~]#
..under OpenSUSE:

Code:
[root@ ~]# uname -a
Linux pc 2.6.31.5-0.1-default #1 SMP 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux
[root@ ~]#

The problem is that if I try to connect to one specific radio device over it's console port, I see only cryptic characters in Minicom output:

Example 1:

Quote:
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Oct 24 2009, 03:01:06.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

PS7=05S =1T!P4C1E!A0




Welcome to minicom 2.3
Example 2:

Quote:
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Oct 24 2009, 03:01:06.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0

I have tried with every baud rate under "Serial port setup". According to documentation this radio device has 19200 8N1 "no data flow control" RS232 setup by default. The pinout is correct because I see the DE9<->USB adapter Tx and Rx LEDs blinking if a press any key on my keyboard.

Are there any other reasons/situations other than wrong speed that one can see a cryptic characters in Minicom output?
 
Old 09-16-2011, 03:43 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Those look (at least the second example) to be AT commands, strings that are used to configure serial modems. Have you checked in the Minicom configuration to make sure you have disabled all AT commands for these particular devices? By default, Minicom will attempt to send the device various AT commands to configure it during the connection, which in this case won't do anything but clutter the screen with annoying text.
 
Old 09-18-2011, 01:10 PM   #3
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MS3FGX View Post
Those look (at least the second example) to be AT commands, strings that are used to configure serial modems. Have you checked in the Minicom configuration to make sure you have disabled all AT commands for these particular devices? By default, Minicom will attempt to send the device various AT commands to configure it during the connection, which in this case won't do anything but clutter the screen with annoying text.
indeed Under "Modem and dialing" configuration I have a following "Init string":

Code:
~^M~AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M
..which is exactly the one printed by Minicom. Thanks for pointing this out! However, how could this modem init string sent by Minicom interfere the serial communication? I mean even if I empty the "Init string", how could this help to establish serial communication with this radio device I mentioned? Because I don't mind the modem initialization sequence printed- the main goal is to establish a communication with the radio device over console port but I'm out of ideas because the speed and other parameters seem to be correct and two-way communication works, but still I don't get the command prompt of the radio device
 
Old 09-18-2011, 01:42 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Sending an unexpected string of seemingly random characters to a device is not a good way to start communications with it; there is no telling how it will react.
 
Old 09-19-2011, 02:05 AM   #5
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MS3FGX View Post
Sending an unexpected string of seemingly random characters to a device is not a good way to start communications with it; there is no telling how it will react.
I tried with "19200 8N1"(no "Hardware Flow Control" and no "Software Flow Control") settings and using the empty modem "init string", but still nothing If I press any key on my keyboard, I see both Rx and Tx led blink on my DE9<->USB RS232 adapter. Any other suggestions, what might be the problem?
 
  


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
Minicom showing intermittent console output thro' /dev/ttyUSB0 port varunb Linux - Newbie 4 10-04-2011 06:54 AM
Omit specified characters from the output of a command Kenny_Strawn Programming 6 11-19-2010 04:07 AM
QEMU output through minicom bulls_i3 Linux - General 0 11-03-2010 07:12 PM
[SOLVED] Remove characters from grep output intz Programming 9 05-04-2010 06:03 AM
C: Weird characters on output notsoevil Programming 3 06-23-2003 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:40 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
Open Source Consulting | Domain Registration