Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  | Правила  

Компьютерный форум OSzone.net » Linux и FreeBSD » Железо во FreeBSD » параметры COM port'a

Ответить
Настройки темы
параметры COM port'a

Аватара для Sirko9

Ветеран


Сообщения: 1676
Благодарности: 226


Конфигурация

Профиль | Цитировать


как настроить параметры ком порта во FreeBSD версия 6,** (точно не помню)?

-------
Дякуйте Богу за прожитий день. За спожитий хліб, за здоров`я, і ласки які Він нам посилає.


Отправлено: 01:49, 22-02-2009

 

Аватара для lxa85

Необычный


Contributor


Сообщения: 4462
Благодарности: 994

Профиль | Сайт | Отправить PM | Цитировать


Быть может это ?
26.2.5 Serial Port Configuration

The ttydN (or cuadN) device is the regular device you will want to open for your applications. When a process opens the device, it will have a default set of terminal I/O settings. You can see these settings with the command

# stty -a -f /dev/ttyd1

When you change the settings to this device, the settings are in effect until the device is closed. When it is reopened, it goes back to the default set. To make changes to the default set, you can open and adjust the settings of the “initial state” device. For example, to turn on CLOCAL mode, 8 bit communication, and XON/XOFF flow control by default for ttyd5, type:

# stty -f /dev/ttyd5.init clocal cs8 ixon ixoff

System-wide initialization of the serial devices is controlled in /etc/rc.d/serial. This file affects the default settings of serial devices.

To prevent certain settings from being changed by an application, make adjustments to the “lock state” device. For example, to lock the speed of ttyd5 to 57600 bps, type:

# stty -f /dev/ttyd5.lock 57600

Now, an application that opens ttyd5 and tries to change the speed of the port will be stuck with 57600 bps.

Naturally, you should make the initial state and lock state devices writable only by the root account.

-------
- Я не разрешаю тебе быть плохой! Потому что плохие люди совершают плохие поступки. А это нехорошо!
(Из наставлений 5 летней девочки своей младшей сестре)

Это сообщение посчитали полезным следующие участники:

Отправлено: 14:35, 02-03-2009 | #2



Для отключения данного рекламного блока вам необходимо зарегистрироваться или войти с учетной записью социальной сети.

Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля.



Компьютерный форум OSzone.net » Linux и FreeBSD » Железо во FreeBSD » параметры COM port'a

Участник сейчас на форуме Участник сейчас на форуме Участник вне форума Участник вне форума Автор темы Автор темы Шапка темы Сообщение прикреплено

Похожие темы
Название темы Автор Информация о форуме Ответов Последнее сообщение
Expansion Port 3 Sparkster Ноутбуки 1 14-04-2008 05:35
Com port Guest Microsoft Windows 2000/XP 8 30-10-2007 18:31
http port vilisz Хочу все знать 6 21-06-2006 15:45
Port Mapping elbrusik Сетевые технологии 2 27-02-2006 09:34
Port forwarding Guest Сетевые технологии 3 03-02-2004 13:06




 
Переход