1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
.\" t
.\" roff.\" Copyright
.\" This manpage is Copyright (C) 1996 Michael Haardt.
.\" Updates Nov 1998, Andries Brouwer
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 1996,1997,1998
.\" ISHIKAWA Mutsumi,TAKAHASHI Mutsuji
.\" all rights reserved.
.\" Translated Tue Feb 14 00:47:44 JST 1997
.\" by ISHIKAWA Mutsumi <ishikawa@linux.or.jp.jp>
.\" and TAKAHASHI Mutsuji <muz@ilp.iijnet.or.jp>
.\"
.\" Japanese Version Last Modified Sun Jan 11 03:55:54 1998
.\" by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
.\" Updated & Modefied Sat Feb 27 1999 by Shouichi Saito
.\"
.\" WORD: serial mouse ꥢޥ
.\" WORD: interface ե
.\" WORD: RS232/V24 RS232/V24
.\" WORD: dialout line 륢ȥ饤
.\" WORD: pinout ԥ
.\" WORD: Microsoft-compatible ޥեȸߴ
.\"
.TH MOUSE 4 1996-02-10 "Linux" "Linux Programmer's Manual"
.SH ̾
mouse \- ꥢޥե
.SH
ꥢޥ RS232/V24 륢ȥ饤³롣
RS232/V24 륢ȥ饤 ˤĤƤ
.BR ttyS (4)
ȤΤȡ
.SH
.SS
ꥢޥǻȤ̤ 9 ԥץ饰ΥԥϰʲǤ:
.TS
center;
r c l.
pin name used for
2 RX Data
3 TX -12 V, Imax = 10 mA
4 DTR +12 V, Imax = 10 mA
7 RTS +12 V, Imax = 10 mA
5 GND Ground
.TE
ϻͽǤꡢºݤϤۤȤɤΥޥǤ 9 V ǽʬǤ롣
.PP
ޥɥ饤Ф RTS (low)ƤӾ夲뤳ȤˤäơޥǧǤ
롣褽 14 ms 塢ޥϥǡ饤 0x4D (\(aqM\(aq)
63ms ȡޥեȸߴ 3ܥޥ 0x33 (\(aq3\(aq) 롣
.PP
ޥŪʰưϡ\fIdx\fP()\fIdy\fP()Ȥ롣
ƼΥޥϰۤʤäԡɤǤ롣ԡɤˤϡ
ɽΣʸäƤ 0.1 ԤĤȤǡ9600, 4800, 2400, 1200
bit/s ٤롣
ʲɽǤǽʥԡɤȤ뤿ʸƤ롣
.TS
center;
l l.
bit/s string
9600 *q
4800 *p
2400 *o
1200 *n
.TE
ǡѥåȤ 1 ХȤƱȤΤѤǤ롣
.SS "ޥե ץȥ(Microsoft Protocol)"
\fBޥե\fPץȥϡ1200 bits/sec Υԡɤǡ1
ȥӥå(1 start bit)7 ǡӥå(7 data bits)ѥƥ
1 ȥåץӥå(1 stop bit)Ǥ롣
ǡ RxD 3 ХȤΥѥåȤȤ롣\fIdx\fP \fIdy\fP
ư 2 ɽ졢()Υܥ줿ˤ \fIlb\fP
(\fIrb\fP)åȤ롣
.TS
center;
r c c c c c c c.
byte d6 d5 d4 d3 d2 d1 d0
1 1 lb rb dy7 dy6 dx7 dx6
2 0 dx5 dx4 dx3 dx2 dx1 dx0
3 0 dy5 dy4 dy3 dy2 dy1 dy0
.TE
.SS "3ĥܥ ޥե ץȥ(3-button Microsoft protocol)"
Υޥեȥޥ 2 ĤΥܥʤ3 ĥܥ
Υޥǥޥեȥץȥʪ¸ߤ롣Υܥ
ޤȤȤϡưǥܥƤʤȤѥå
뤳Ȥ롣(ä¾ĤΥܥȰ㤤Υܥ
Υơϡ줾ΥѥåȤäʤ)
.SS "ƥå ץȥ(Logitech protocol)"
ƥå ꥢ 3ĥܥޥϡޥե ץȥȤ
ۤʤäĥƤ롣:ΥܥƤʤȡ嵭 3ХȤ
ѥåȤ롣ΥܥƤȡ4ХȤΥѥåȤ
롣裴ХȤ 0x20 ͤäƤ(뤤ϡʤȤ 0x20
ӥåȤåȤƤ) â¾ΥܥƤʤ֤ǡ
Υܥȡ0,0,0,0x20 롣
.SS "ޥƥॺ ץȥ(Mousesystems protocol)"
\fBޥƥॺ\fPץȥϡ1200 bits/secǡ1 ȥӥåȡ
8 ǡӥåȡѥƥʤ2 ȥåץӥåȤǤ롣
ǡϡRxD 5 ХȤΥѥåȤȤ롣\fIdx\fP 2 Ĥ
2 ¤Ȥ졢\fIdy\fP 2 Ĥ 2 ¤
Ȥ롣(桢)Υܥ줿ˤ\fIlb\fP
(\fImb\fP, \fIrb\fP) ꥢ롣
.TS
center;
r c c c c c c c c.
byte d7 d6 d5 d4 d3 d2 d1 d0
1 1 0 0 0 0 lb mb rb
2 0 dxa6 dxa5 dxa4 dxa3 dxa2 dxa1 dxa0
3 0 dya6 dya5 dya4 dya3 dya2 dya1 dya0
4 0 dxb6 dxb5 dxb4 dxb3 dxb2 dxb1 dxb0
5 0 dyb6 dyb5 dyb4 dyb3 dyb2 dyb1 dyb0
.TE
4,5 ХȤˤϡ 2,3 ХȤ줿ѹҤ롣
.SS " ץȥ(Sun protocol)"
\fB\fP ץȥϡ嵭 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