Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

STTY help

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
PQPGuy
n00b
n00b
Posts: 31
Joined: Mon Sep 04, 2017 1:28 pm

STTY help

  • Quote

Post by PQPGuy » Fri Sep 29, 2017 4:11 pm

All,

I'm new to serial devices, and I want to migrate from a Windows-based serial terminal to either minicom or moserial. To do so, I need to mimic the settings of that Windows terminal. These settings are:

Flow Control Support: manual - RTS / DTR can be set or reset manually. CTS / DSR lines are displayed, but not used for synchronization. They are all unset, in my particular case.
Communication mode: Send/Receive
Baud rate: 115200
Parity: None
Parity Error Char: Ignore
Data Bits: 8
Stop Bits: 1

What is the coresponding stty command for this?

My serial device is FT232RL.

Many thx.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Fri Sep 29, 2017 5:32 pm

You should set those parameters within minicom as minicom would overwrite any setting that you set.
In fact I think when the serial port is closed, many of the settings are reset...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 29, 2017 8:31 pm

PQPGuy,

Your FT232RL is a USB to Serial converter. When your kernel support is in place, it will appear as /dev/ttyUSB*.
Normally, only root can set serial port parameters. Add yourself to the group that your /dev/ttyUSB* is in.
Here, its uucp.

Whatever the serial port is, set that up in minicom. Minicom will remember the settings.

Connect the serial port Tx and Rx lines together. This is called loopback.
Anything that you type into minicom will be echoed back to you.
Once that works, you can try talking to another device.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
PQPGuy
n00b
n00b
Posts: 31
Joined: Mon Sep 04, 2017 1:28 pm

  • Quote

Post by PQPGuy » Fri Sep 29, 2017 10:49 pm

eccerr0r, NeddySeagoon,

This is what confuses me. On Windows, the serial device works with these and only these settings (see above). Thus, the only choice, as I see it, is to mimic them in minicom which I don't know well enough.

Many thanks.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Sep 30, 2017 12:30 am

In minicom, you use command-o and then use arrow keys to select serial port setup.

The "command" sequence could be control-a, esc, or meta- (alt-) depending on how your minicom is set up. If you're running straight in an xterm, likely alt-o will work; but it may be control-a o, or esc o depending on your terminal or settings. You may be able to force using your meta key by starting minicom with -m .

In any case minicom will print out what mode it is when you first start it up, if it says "Press Meta-Z for help on special keys" and meta-z works, then you should be able to also use meta-o.

Now if you're running in gnu screen...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Sep 30, 2017 9:06 am

PQPGuy,

minicom won't start unless it can find your serial port.
Its start screen is

Code: Select all

Welcome to minicom 2.7

OPTIONS: I18n 
Compiled on Jun 12 2017, 18:19:11.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys
CTRL-A Z (two separate keypresses shows

Code: Select all

Welco+-------------------------------------------------------------------+
     |                      Minicom Command Summary                      |
OPTIO|                                                                   |
Compi|              Commands can be called by CTRL-A <key>               |
Port |                                                                   |
     |               Main Functions                  Other Functions     |
Press|                                                                   |
     | Dialing directory..D  run script (Go)....G | Clear Screen.......C |
     | Send files.........S  Receive files......R | cOnfigure Minicom..O |
     | comm Parameters....P  Add linefeed.......A | Suspend minicom....J |
     | Capture on/off.....L  Hangup.............H | eXit and reset.....X |
     | send break.........F  initialize Modem...M | Quit with no reset.Q |
     | Terminal settings..T  run Kermit.........K | Cursor key mode....I |
     | lineWrap on/off....W  local Echo on/off..E | Help screen........Z |
     | Paste file.........Y  Timestamp toggle...N | scroll Back........B |
     | Add Carriage Ret...U                                              |
     |                                                                   |
     |             Select function or press Enter for none.              |
     +-------------------------------------------------------------------+
Its playing at popup windows :)
You need

Code: Select all

cOnfigure Minicom..O
so press 'o'
This gets you

Code: Select all

             +-----[configuration]------+                                  
            | Filenames and paths      |                                  
            | File transfer protocols  |                                  
            | Serial port setup        |                                  
            | Modem and dialing        |                                  
            | Screen and keyboard      |                                  
            | Save setup as dfl        |                                  
            | Save setup as..          |                                  
            | Exit                     |                                  
            +--------------------------+ 
Down arrow to

Code: Select all

Serial port setup 
and press return/enter and you set all the things from your original post.

Code: Select all

OPTI+-----------------------------------------------------------------------+
Comp| A -    Serial Device      : /dev/ttyUSB0                              |
Port| B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
Pres| D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 115200 8N1                                |
    | F - Hardware Flow Control : Yes                                       |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+
You need entries A, E, F and G.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sat Sep 30, 2017 9:32 am

I personally found minicom very clunky. Fortunately, screen did the trick for me.
So you may want to try this:
screen /dev/ttyUSB0 115200
or something along the lines of this:
screen /dev/ttyUSB0 115200,cs8,-cstopb
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic