Author Topic: MINICOM question  (Read 994 times)

0 Members and 1 Guest are viewing this topic.

Offline Marvin_G

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
MINICOM question
« on: February 03, 2013, 06:07:53 pm »
hye guys,i wanted to set baudrate,data bit,partity bit, start bit, and stop bit in MINICOM, how can i do that? please lend me your idea guys. thanks

Offline Mad Penguin

  • #Mad_Penguin_UK
  • Administrator
  • Hero Member
  • *****
  • Posts: 1320
  • Karma: 10017
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: MINICOM question
« Reply #1 on: February 03, 2013, 06:32:21 pm »
Quote
minicom -s
=> Serial Port Setup
=> E
<baud rate> <data bits><parity><stop bit>
(eg; 9600 8N1)
<return>
=> Save setup as dfl
=> Exit
.. this will deposit you into a terminal session ..

I guess I'm showing my age now ...  :'(

Offline Marvin_G

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: MINICOM question
« Reply #2 on: February 06, 2013, 04:31:28 am »
tq so much..if i'm not using minicom, how can i set all these in terminal?

Offline Mad Penguin

  • #Mad_Penguin_UK
  • Administrator
  • Hero Member
  • *****
  • Posts: 1320
  • Karma: 10017
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: MINICOM question
« Reply #3 on: February 06, 2013, 10:44:03 am »
Erm, depends on what you mean by 'terminal' ?!

Do you mean you have an old-style serial console and you're trying to log that on to a serial line ??

If so, check out /etc/init for files tty?.conf, which look something like this;

Code: [Select]
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
            not-container or
            container CONTAINER=lxc or
            container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
exec /sbin/getty -8 38400 tty1
If you want to add a serial line, create a file called ttyS0 (for example, serial console 0) and change the last line as appropriate. You can get more detail re; stop bits / parity etc from "man getty".

To activate the file do;

Code: [Select]
initctl reload ttyS0

Offline Marvin_G

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: MINICOM question
« Reply #4 on: February 07, 2013, 01:07:07 am »
i'm not quite familiar with getty but it seems interesting, but how do i configure the data bits value, parity bits, start/stop bits, and baudrate using it? and how to send command to the serial port also?

Offline Mad Penguin

  • #Mad_Penguin_UK
  • Administrator
  • Hero Member
  • *****
  • Posts: 1320
  • Karma: 10017
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: MINICOM question
« Reply #5 on: February 07, 2013, 09:59:58 am »
Try "man getty" for details (!)

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal