ALT Linux hardware support
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: hardware@altlinux.ru
Subject: Re: [Hardware] Настройка serial портов из init
Date: Mon, 17 Jan 2005 16:36:51 +0300
Message-ID: <20050117133651.GA7584@master.mivlgu.local> (raw)
In-Reply-To: <41EBBC33.5060604@altlinux.com>

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

On Mon, Jan 17, 2005 at 04:22:59PM +0300, Anton Farygin wrote:
> Ilia Menchikh wrote:
> 
> >Доброе время суток!
> >
> >Хочется странного, а именно, настраивать четность, стоп-бит из 
> >init-scripts. man setserial на этот счет молчит как партизан. Сейчас 
> >после запуска minicom настраиваем и выходим, но после перезагрузки все 
> >теряется. Как сделать без извратов?
> >
> >(про getty в курсе, но к задаче не подходит)
> >
> >Задача следующая - на сервере по ком портам приходят данные которые 
> >обрабатываются самописным демоненком на perl.
> > 
> 
> Самый простой способ - программа в пять строк на C.

Ну, работа с termios вряд ли уложится в пять строк... а вот что мешает
засунуть настройку порта в тот же демон на perl - непонятно (perldoc
POSIX; /Termios).

> Про setserial я не в курсе.

setserial предназначен для других целей - им выполняется настройка
параметров аппаратуры (port/irq/...).  А в данном случае нужен stty.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-01-17 13:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-17 10:59 Ilia Menchikh
2005-01-17 13:22 ` Anton Farygin
2005-01-17 13:36   ` Sergey Vlasov [this message]
2005-01-17 13:37   ` Ilia Menchikh
2005-01-17 13:41 ` Anton Obidin
2005-01-17 19:38 ` Denis Ovsienko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050117133651.GA7584@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=hardware@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.hardware


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git