tw
—
TW-523 X-10 ?ǥХ????ɥ饤??
tw
?ϡ?X-10 Inc.
?β????ѥ????ȥ????????ʤȶ??˻??Ѥ??롢
TW-523
?Ÿ??饤?ե??????Υɥ饤?ФǤ???
X-10 ?ץ??ȥ????ϡ?Radio Shack ?? ``Plug 'n Power(tm)'' ??
???????졼?? ``Lightmaker(tm)'' ???ޤࡢ
¿???β????ѥ????ȥ????륷???ƥ??ȸߴ??????????ޤ???
???Υɥ饤?Ф?
read
() write
()
select
()
?Υ????ƥॳ?????ݡ??Ȥ??ޤ???
?ɥ饤?Ф?ʣ???Υץ????????ɤ߽??Ǥ????褦??ư??ޤ??????ºݤˤ?
ʣ?????ɤ????ץ?????????????ʣ???ν??ߥץ????????????????ˤ?
??̣??̵?????⤷???ޤ?????
?ޤ??????Ǥϡ?
?ºݤˤդ??ĤΥץ???????Ʊ?????????褦?Ȥ????ȡ?
???????֤ˤʤ???ǽ?????????ޤ? (tw_sc
?Τʤ??? sc_pkt
??¤?Τ???Ʊ???Υ?????????¤?ˤ??????ΤǤ?)??
?????? write
()
???ƤӽФ???3
?Х??ȤΥǡ????ѥ??åȤ????????뤳?Ȥˤ??äƤʤ????ޤ???
?ǽ??ΥХ??Ȥ? 4
?ӥåȤΥϥ????????? (0=A ???? 15=P
?ޤ?)??2 ?Х????ܤ? 5 ?ӥåȤ? unit/key
?????? (0= ???˥å? 1 ???? 15= ???˥å? 16
?ޤǡ? 16= ?????˥åȥ??ա?31=
???ơ??????ꥯ??????) ?Ǥ??? 3
?Х????ܤϡ?Ϣ³????
?֤????????????????????ѥ??åȤο??????ꤷ?ޤ????̾???
X-10 Inc. ??ʸ???? ???????äƤ????ͤ? 2
?Ǥ?????¾???ͤ??Ȥ뤳?Ȥ??Ǥ??ޤ???
write
()
?θƤӽФ??Ϥ??줾?줬Ǥ?դΥǡ???Ĺ
(?Х??ȿ?) ???????Ǥ??ޤ?????
?ɤθƤӽФ??Ǥ??????ҤȤĤΥѥ??åȤ????????????ޤ?????
?Դ????ʥѥ??åȤ?³???Ƶ?????
write
()
?ƤӽФ????????˥ǡ??????????ޤǥХåե??????ޤ???
Ϣ³???? write
()
?θƤӽФ????Ф??Ƥϡ?X-10 Inc.
??ʸ???ˤ??????äơ?3
?????????δֳ֤?
?Ȥ????ޤ????ɥ饤?Ф? 1 ?????????? 3
???ӥåȤ??????褦???????Ƥ??? X-10 Inc.
??ʸ???ȰۤʤꡢȾ?????????? 1
?ӥåȤ??Ĥ????????ޤ????? ?????? TW523 ??
?Ÿ??饤?????????̤?????Ʊ?????????Ƥ??ʤ??????Ǥ??????????ä?
3
????ή?ξ????Ÿ??????ӥ??Ǥϥɥ饤?Ф????ޤ?ư??ʤ???ǽ?????????ޤ???
?ۤȤ??ɤν????ǤϤ??Υɥ饤?Ф???ư????
2 ?????Ÿ??????Ѥ??Ƥ??ޤ???
?????? read
()
?ǹԤ??ޤ??? ?ɥ饤?Фϡ?3
ʸ???????????ѥ??åȤ????????ޤ???
???줾???Υѥ??åȤǡ??ǽ???ʸ???ϥե饰???????ꡢ2
???ܤ?ʸ???? 4 ?ӥåȤ? ?ϥ?????????
(0-15)??3 ???ܤ?ʸ???? 5 ?ӥåȤ? key/function
?????? (0-31) ??
?????ե饰?ϰʲ????̤??Ǥ???
- #define TW_RCV_LOCAL 1 /*
??????????ž?????˥ѥ??åȤ????夷?ޤ???
*/
- #define TW_RCV_ERROR 2 /*
????/???줿?ѥ??åȤ????夷?ޤ???
*/
select
()
?????ƥॳ?????ϡ??̾??̤ꡢ?ɤ??뤳?ȤΤǤ????ǡ?????¸?ߤ??Ƥ??뤫?ɤ?????
?Τ????뤿?ᡢ???Ѳ?ǽ?Ǥ???
- /dev/tw?
- TW523 ?ǥХ??????ü??ե?????
Eugene W. Stark ⟨stark@cs.sunysb.edu⟩