readme

来自「linux操作系统下的红外驱动的测试程序」· 代码 · 共 105 行

TXT
105
字号
Irattach - Attaches the Linux-IrDA stack to a specified device     Copyright (c) 2000 Dag Brattli <dagb@cs.uit.no>,      All Rights Reserved.          This program is free software; you can redistribute it and/or      modify it under the terms of the GNU General Public License as      published by the Free Software Foundation; either version 2 of      the License, or (at your option) any later version.       This program is distributed in the hope that it will be useful,     but WITHOUT ANY WARRANTY; without even the implied warranty of     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the     GNU General Public License for more details.      You should have received a copy of the GNU General Public License      along with this program; if not, write to the Free Software      Foundation, Inc., 59 Temple Place, Suite 330, Boston,      MA 02111-1307 USAirattach is used to bind the Linux-IrDA stack to a device driver. So thisis something you must do in order to use IrDA on your Linux machine.irattach must be run as root or installed setuid root, as it requires rootprivilegesUsage: irattach <dev> [-d dongle] [-s]where       <dev>        usually the name of a tty, but can also be a FIR device       -d dongle    attaches a dongle driver (see below for more info)       -s           starts discovery of remote IrDA devicesDongles:The currently known dongles are:tekram      Tekram IrMate IR-210B dongleesi         Extended Systems JetEye PC (ESI-9680) dongleactisys     ACTiSYS IR-220L dongleactisys+    ACTiSYS IR-220L+ donglegirbil      Greenwich GIrBIL donglelitelink    Parallax LiteLink dongleairportold_belkin  Belkin (old) SmartBeam dongleModules:If you have compiled the IrDA stack as modules (recommended), then you willneed to add these entries to your /etc/modules.conf file# IrDA over a normal serial port, or a serial port compatible IrDA portalias tty-ldisc-11 irtty# IrCOMM (for printing, PPP, Minicom etc)alias char-major-161 ircomm-tty# To be able to attach some donglesalias irda-dongle-0 tekramalias irda-dongle-1 esialias irda-dongle-2 actisysalias irda-dongle-3 actisysalias irda-dongle-4 girbilalias irda-dongle-5 litelinkalias irda-dongle-6 airportalias irda-dongle-7 old_belkin# To use the NSC driver on a Thinkpad laptopoptions nsc-ircc dongle_id=0x09alias irda0 nsc-irccExamplesAttach the IrDA stack to the second serial port and start discovery$ ./irattach /dev/ttyS1 -sAttach the IrDA stack to the first serial port where you have an ACTiSYSdongle and start discovery$ ./irattach /dev/ttyS0 -d actisys -sAttach the IrDA stack to the NSC FIR (4Mbps) device driver on a Thinkpadlaptop. You must also add some entries to /etc/conf.modules (see above)$ ./irattach irda0 -s 1Device entries you will need to use IrCOMM:mknod /dev/ircomm0 c 161 0mknod /dev/ircomm1 c 161 1mknod /dev/irlpt0 c 161 17mknod /dev/irlpt1 c 161 17Afterwards, then "ll /dev/ir*" should look like this:crw-r--r--    1 root     161,   0 Dec 22 14:15 /dev/ircomm0crw-r--r--    1 root     161,   1 Nov  5 08:36 /dev/ircomm1crw-r--r--    1 root     161,  16 Nov  5 08:36 /dev/irlpt0crw-r--r--    1 root     161,  17 Nov  5 08:36 /dev/irlpt1                                  Dag Brattli (Wed Jan 19 11:25:17 2000)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?