From: "Dmitry E. Oboukhov" <node@avanto.mpei.ac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] COM-port & bash
Date: Sat, 28 Dec 2002 15:45:50 +0300
Message-ID: <3E0D9CFE.4090601@avanto.mpei.ac.ru> (raw)
In-Reply-To: <3E0D9115.7040601@avanto.mpei.ac.ru>
Dmitry E. Oboukhov wrote:
> есть такая задачка:
> есть некий девайс на ком-порту,
> протокол обмена чисто текстовый в ASCII,
> из программы на С/С++ я вроде нашел
> руководство как работать с портами - там все вроде прозрачно....
>
> чего хочется:
> 1. установить скорость/параметры обмена
> 2. написать несколько тестовых скриптов чтобы поработать с
> девайсом на уровне
> 1 сat file > /dev/ttyS0
> 2 cat /dev/ttyS0 > file1
>
> где в file находится запрос к устройству,
> а в filе1 - ответ от него
>
> чтобы принятые от девайса данные не терялись
> между шагами 1 и 2, и чтобы скорость/параметры
> обмена не надо было менять при каждом обращении
> к скрипту...
>
> можно такое организовать ?
>
> где можно установить скорость/параметры порта с которыми
> он будет открываться при вводе команд
> cat /dev/ttyS0 > file
> и
> cat file > /dev/ttyS0
>
> куда в какой man смотреть ?
>
нашел:
Serial-HowTo
&
man setserial
похоже больше ничего не нужно...
сегодня вечерком поковыряяюсь....
next prev parent reply other threads:[~2002-12-28 12:45 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-28 11:55 Dmitry E. Oboukhov
2002-12-28 12:18 ` Бессонов Ян
2002-12-28 12:45 ` Dmitry E. Oboukhov [this message]
2002-12-28 12:48 ` Бессонов Ян
2002-12-28 12:54 ` Dmitry E. Oboukhov
2002-12-28 13:21 ` Бессонов Ян
2002-12-28 13:30 ` Dmitry E. Oboukhov
2002-12-28 13:51 ` Бессонов Ян
2002-12-28 13:55 ` Dmitry E. Oboukhov
2002-12-28 14:05 ` Dmitry E. Oboukhov
2002-12-28 14:19 ` Dmitry E. Oboukhov
2002-12-28 15:05 ` Dmitry E. Oboukhov
2002-12-28 15:09 ` Бессонов Ян
2002-12-28 15:21 ` Dmitry E. Oboukhov
2002-12-28 15:32 ` Yura Kalinichenko
2002-12-28 15:59 ` Dmitry E. Oboukhov
2002-12-29 8:21 ` Yura Kalinichenko
2002-12-30 7:49 ` Dmitry E. Oboukhov
2002-12-28 15:05 ` Бессонов Ян
2002-12-28 15:18 ` Dmitry E. Oboukhov
2002-12-28 15:21 ` Бессонов Ян
2002-12-28 15:34 ` [Comm] Ура! оно заработало! man stty !!! Dmitry E. Oboukhov
2002-12-28 15:42 ` Sergey Bolshakov
2002-12-28 16:08 ` Dmitry E. Oboukhov
2002-12-28 16:16 ` Sergey Bolshakov
2002-12-28 16:31 ` Dmitry E. Oboukhov
2002-12-28 16:44 ` Sergey Bolshakov
2002-12-29 14:16 ` Vitaly Lugovsky
2002-12-29 14:55 ` [Comm] Re[2]: " ASA
2002-12-29 15:09 ` Vitaly Lugovsky
2002-12-30 7:54 ` Dmitry E. Oboukhov
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=3E0D9CFE.4090601@avanto.mpei.ac.ru \
--to=node@avanto.mpei.ac.ru \
--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