ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ilya Palagin <tux@fioc.kz>
To: community@altlinux.ru
Subject: Re: [Comm] где линух ест буквы на ком порту? ?-)
Date: Thu, 08 May 2003 18:18:50 +0700
Message-ID: <3EBA3D1A.5080608@fioc.kz> (raw)
In-Reply-To: <20030508105700.69134c8c.olli@rbauto.ru>

Oleg K. Artemjev wrote:
> 
> Вопрос пока открыт. На виндах все работает. На linux - `естся' часть символов. 
> Вопрос, как обычно, - кто виноват и что делать? ?-)
> 
> 
>>>Есть рекомендованная (найденная где-то в сети =) ) строка для съема
>>>логов с АТС LG Starex VSPi:
>>>stty 1200 clocal -parenb -parodd cs8 -cstopb -icanon < /dev/ttyS0
>>>В данный момент съем происоходит с потерей символов.
> 
> 
>>Вот тут странный момент - в виндах 98x (ver 4.10.2222) я настроив свойства com port в properties
>>иконки my_coputer и одновременно в гипертерминале выставив те же 1200 8n1 (при этом указав в обоих
>>случаях, что контроля потока нет вовсе - ни Xon/Xoff ни Hardware) получаю логи без поедания символов. 
>>Вопрос - как средствами minicom или stty (или другого софта) добиться тех же результатов? Выставив в 
>>minicom те же 1200 8n1 я получаю строки частично поеденные - с пропущенными символами. :/
> 
> 
> 
>>>на данный момент делается из скрипта перезапускаемого init через inittab:
>>>#!/bin/sh
>>>echo $$ > /var/run/LGStarexVSP.ttyS0.cat.pid
>>>stty 1200 clocal -parenb -parodd cs8 -cstopb -icanon < /dev/ttyS0
>>>cat /dev/ttyS0 >> /var/log/LG-Starex-VSP.ttyS0.office.output1\&2
> 
> 
> Вопрос звучит так: что надо сделать вместо этого чтобы работало и где кушаются символы в данный момент.
> То есть я не понимаю почему они вообще пропадают и кто их может есть. :|
> 
Я читаю данные с Siemens Hicom 130 вот такими командами:

1.Выставить режим порта
/bin/stty -F /dev/ttyS0 2400 cread clocal cs8  -cstopb -inlcr -icrnl 
-icanon -echo

2.Сохранять данные
cat /dev/ttyS0 >> /var/log/pbx.log

Рецепт сей был получен методом проб, ошибок, заимствованием из других 
рецептов и чтением манов. Может, сгодится и для LG?




      reply	other threads:[~2003-05-08 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-29 11:09 [Comm] съем логов с АТС с ком порта Oleg K. Artemjev
2003-04-30 10:53 ` Oleg K. Artemjev
2003-05-08  6:57   ` [Comm] где линух ест буквы на ком порту? ?-) Oleg K. Artemjev
2003-05-08 11:18     ` Ilya Palagin [this message]

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=3EBA3D1A.5080608@fioc.kz \
    --to=tux@fioc.kz \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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