MOUSE

Section: Special files (4)
Updated: February 10, 1996
Index
Return to Main Contents
 

NAME

mouse - ½Ã¸®¾ó ¸¶¿ì½º ÀÎÅÍÆäÀ̽º  

CONFIG

½Ã¸®¾ó ¸¶¿ì½º´Â ½Ã¸®¾ó RS232/V24 ´ÙÀ̾ó¾Æ¿ô ¶óÀο¡ ¿¬°áµÈ´Ù. ¼³¸íÀ» º¸·Á¸é, ttys(4)À»º¸¶ó.  

DESCRIPTION

 

Introduction

The pinout of the usual 9 pin plug as used for serial mice is: ½Ã¸®¾ó ¸¶¿ì½º¿¡ ¾²ÀÌ´Â 9ÇÉ Ç÷¯±×ÀÇ ÇɾƿôÀº ´ÙÀ½°¡ °°´Ù.
ÇÉÀ̸§    ¿ëµµ
2RXData
3TX-12 V, Imax = 10 mA
4DTR+12 V, Imax = 10 mA
7RTS+12 V, Imax = 10 mA
5GNDGround
À§´Â ¸í¼¼ÀÌ´Ù. »ç½Ç»ó, ´ëºÎºÐÀÇ ¸¶¿ì½º¿¡´Â 9 V·Î ÃæºÐÇÏ´Ù.

¸¶¿ì½º µå¶óÀ̹ö´Â RTS¸¦ ³·Ãß°í, À̸¦ ´Ù½Ã ¿Ã¸®¹Ç·Î¼­ ¸¶¿ì½º¸¦ ÀνÄÇÒ ¼ö ÀÖ´Ù. ´ë·« 14msÀÌÈÄ¿¡, ¸¶¿ì½º´Â µ¥ÀÌÅÍ ¶óÀο¡ 0x4D ('M')¸¦ Àü¼ÛÇÒ °ÍÀÌ´Ù. ±×¸®°í 63ms ÀÌÈÄ¿¡, ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ȣȯ 3¹öÆ° ¸¶¿ì½º°¡ 0x33 ('3')À» Àü¼ÛÇÒ °ÍÀÌ´Ù.

The relative mouse movement is sent as dx (positive means right) and dy (positive means down). Various mice can operate at different speeds. To select speeds, cycle through the speeds 9600, 4800, 2400 and 1200 bit/s, each time writing the two characters from the table below and waiting 0.1 seconds. The following table shows available speeds and the strings that select them: »ó´ëÀûÀÎ ¸¶¿ì½º ¿òÁ÷ÀÓÀº dx (positive means right) and dy (positive means down)·Î¼­ º¸³»Áø´Ù. ´Ù¾çÇÑ ¸¶¿ì½º´Â ´Ù¸¥ ¼Óµµ·Î µ¿ÀÛÇÑ´Ù ¼Óµµ¸¦ ¼±ÅÃÇÏ·Á¸é, ÃÊ´ç Àü¼Û ¼Óµµ 9600, 4800, 2400 and 1200ºñÆ® Áß ¼±ÅÃÇÒ ¼ö ÀÖ°í, µÎ ¹®ÀÚ¸¦ ÀÛ¼ºÇϴµ¥
¼Óµµ(ºñÆ®/ÃÊ) ¹®ÀÚ¿­    
9600*q
4800*p
2400*o
1200*n
µ¥ÀÌÅÍ ÆÐŶÀÇ Ã¹¹ø° ¹ÙÀÌÆ®´Â µ¿±âÈ­¸ñÀûÀ¸·Î »ç¿ëµÉ ¼ö ÀÖ´Ù.  

¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ

¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀº 1 ½ºÅ¸Æ® ºñÆ®, 7µ¥ÀÌÅÍ ºñÆ®, Æи®Æ¼ ºñÆ®(¾øÀ½), 1 ½ºÅ¾ ºñÆ®¸¦ 1200 ºñÆ®/ÃÊÀÇ ¼Óµµ·Î »ç¿ëÇÑ´Ù. µ¥ÀÌÅÍ´Â 3¹ÙÄ¡Æ® ÆÐŶÀ¸·Î RxD·Î Àü¼ÛµÈ´Ù. dx¿Í dy ¿òÁ÷ÀÓµéÀº »óÈ£ º¸¿ÏÀûÀ¸·Î Àü¼ÛµÇ°í, lb (rb)´Â ¿ÞÂÊ (¿À¸¥ÂÊ) ¹öÆ°ÀÌ ´­·¯Á³À»¶§ ¼³Á¤µÈ´Ù.
byted6    d5
11lb
rb
dy7
dy6
dx7
dx6
20dx5
dx4
dx3
dx2
dx1
dx0
30dy5
dy4
dy3
dy2
dy1
dy0
 

3-¹öÆ° ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ

¿ø·¡ÀÇ ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ¸¶¿ì½º´Â ¿ÀÁ÷ µÎ°³ÀÇ ¹öÆ°À» °®°í ÀÖ´Ù. ÇÏÁö¸¸, ÀϺΠ¼¼°³ÀÇ ¹öÆ°À» °®´Â ¸¶¿ì½ºµé ¿ª½Ã ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÑ´Ù. °¡¿îµ¥ ¹öÆ°À» ´©¸£°Å³ª, ÇØÁ¦½ÃÄѳõÀ¸¸é, 0 ¿òÁ÷ÀÓÀ» °®´Â ÆÐŶÀ» Àü¼ÛÇϰųª ¾Æ¹«·± ¹öÆ°µµ ´­·¯ÁöÁö ¾Ê¾Ò´Ù´Â °ÍÀ» ¾Ë¸®´Â ÆÐŶÀÌ º¸°íµÈ´Ù. (µû¶ó¼­ ´Ù¸¥ 2¹öÆ°°ú´Â ´Þ¸®, °¡¿îµ¥ ¹öÆ°ÀÇ »óÅ´ °¢ ÆÐŶ³»¿¡¼­ º¸°íµÇÁö ¾Ê´Â´Ù. )  

·ÎÁöÅØ ÇÁ·ÎÅäÄÝ

·ÎÁöÅØ ½Ã¸®¾ó 3¹öÆ° ¸¶¿ì½º´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀÇ ´Ù¸¥ È®ÀåÀ» »ç¿ëÇÑ´Ù. °¡¿îµ¥ ¹öÆ°ÀÌ À§¸¦ ÇâÇϸé, 3¹ÙÀÌÆ® ÆÐŶÀÌ Àü¼ÛµÈ´Ù. °¡¿îµ¥ ¹öÆ°ÀÌ ¾Æ·¡¸¦ ÇâÇϸé, 4¹ÙÀÌÆ®ÀÇ ÆÐŶÀÌ Àü¼ÛµÇ°í, 4¹ø° ¹ÙÀÌÆ®´Â 0x20(ȤÀº ÃÖ¼ÒÇÑ 0x20ºñÆ®·Î ¼³Á¤µÇµµ·Ï ÇÔ) °ªÀ» Áö´Ñ´Ù. ƯÈ÷, ´Ù¸¥ ³ª¸ÓÁö ¹öÆ°µéÀÌ ¾Æ·¡¸¦ ÇâÇÒ¶§, °¡¿îµ¥ ¹öÆ°À» ´©¸£¸é, 0,0,0,0x20À¸·Î º¸°íµÈ´Ù.  

¸¶¿ì½º½Ã½ºÅÛ ÇÁ·ÎÅäÄÝ

Mousesystems ÇÁ·ÎÅäÄÝÀº 1200ºñÆ®/ÃÊÀÇ ¼Óµµ·Î 1 ½ºÅ¸Æ® ºñÆ®, no Æи®Æ¼ ºñÆ®, 2 ½ºÅé ºñÆ®¸¦ ?´? µ¥ÀÌÅÍ´Â 5¹ÙÀÌÆ® ÆÐŶ³»¿¡ RxD·Î º¸³»Áø´Ù. dx´Â µÎ°³ÀÇ º¸¿ÏÀûÀÎ °ªÀÇ ÇÕ°è·Î¼­ Àü¼ÛµÇ°í, fIdy´Â µÎ°³ÀÇ º¸¿ÏÀûÀÎ °ªµéÀÇ µÎ°³ÀÇ ÇÕ°èÀÇ ¹«È¿¸¦ Àü¼ÛÇÑ´Ù. lb (mb, rb)Àº ¿ÞÂÊ(°¡¿îµ¥, ¿À¸¥ÂÊ) ¹öÆ°ÀÌ ´­·¯Á³À»¶§ ¼Ò°ÅµÈ´Ù.
byted7    d6
110
0
0
0
lb
mb
rb
20dxa6
dxa5
dxa4
dxa3
dxa2
dxa1
dxa0
30dya6
dya5
dya4
dya3
dya2
dya1
dya0
40dxb6
dxb5
dxb4
dxb3
dxb2
dxb1
dxb0
50dyb6
dyb5
dyb4
dyb3
dyb2
dyb1
dyb0
¹ÙÀÌÆ® 4¿Í 5´Â ¹ÙÀÌÆ® 2¿Í 3ÀÌ Àü¼ÛµÈ ÈĺÎÅÍ ¹ß»ýÇÑ º¯°æ¿¡ ´ëÇØ ¼³¸íÇÑ´Ù.  

½ã ÇÁ·ÎÅäÄÝ(Sun protocol)

The Sun ÇÁ·ÎÅäÄÝÀº À§ÀÇ 5¹ÙÀÌÆ® ¸¶¿ì½º ½Ã½ºÅÛ ÇÁ·ÎÅäÄÝÀÇ 3¹ÙÀÌÆ® ¹öÀüÀÌ´Ù. ¸¶Áö¸· 2 ¹ÙÀÌÆ®´Â Àü¼ÛµÇÁö ¾Ê´Â´Ù.  

MM ÇÁ·ÎÅäÄÝ

The MM ÇÁ·ÎÅäÄÝÀº 1200 ºñÆ®/ÃÊÀÇ ¼Óµµ·Î 1 ½ÃÀÛ ºñÆ®, 8 µ¥ÀÌÅÍ ºñÆ®,Ãß°¡ Æи®Æ¼ ºñÆ® ±×¸®°í Á¤Áö ºñÆ®¸¦ »ç¿ëÇÑ´Ù. µ¥ÀÌÅÍ´Â 3¹ÙÀÌÆ® ÆÐŶÀ¸·Î RxD¿¡ Àü¼ÛµÈ´Ù.dx¿Í dy´Â ´ÜÀÏ signed °ªÀ¸·Î Àü´ÞµÇ¸ç, »çÀÎ ºñÆ®´Â À½¼ö°ªÀ¸·Î ÁöÁ¤µÈ´Ù. lb (mb, rb)´Â ¿ÞÂÊ(°¡¿îµ¥, ¿À¸¥ÂÊ)¹öÆ°ÀÌ ´­·ÁÁ³À»¶§, ¼³Á¤µÈ´Ù.
byted7    d6
110
0
dxs
dys
lb
mb
rb
20dx6
dx5
dx4
dx3
dx2
dx1
dx0
30dy6
dy5
dy4
dy3
dy2
dy1
dy0
 

FILES

/dev/mouse
ÀϹÝÀûÀ¸·Î »ç¿ëµÇ´Â ½Éº¼¸¯ ¸µÅ©·Î¼­, ¸¶¿ì½º ÀåÄ¡¸¦ °¡¸®Å²´Ù.
 

SEE ALSO

ttys(4), gpm(8)


 

Index

NAME
CONFIG
DESCRIPTION
Introduction
¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
3-¹öÆ° ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
·ÎÁöÅØ ÇÁ·ÎÅäÄÝ
¸¶¿ì½º½Ã½ºÅÛ ÇÁ·ÎÅäÄÝ
½ã ÇÁ·ÎÅäÄÝ(Sun protocol)
MM ÇÁ·ÎÅäÄÝ
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004