| Çϵå¿þ¾î :: ibutton. Çϵå¿þ¾î :: iButtonÀº DS2480 ½Ã¸®¾ó À§Á¬À» ÅëÇØ DALSEMI IBUTTONS¿ÍÀÇ ´ëȸ¦ Çã¿ëÇÏ´Â PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Çϵå¿þ¾î :: ibutton. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Brian Warner
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~scott/Hardware-iButton-0.03/lib/Hardware/iButton/Connection.pm
Çϵå¿þ¾î :: ibutton. ű×
Çϵå¿þ¾î :: ibutton. ¼³¸í
Çϵå¿þ¾î :: iButtonÀº DS2480 ½Ã¸®¾ó À§Á¬À» ÅëÇØ DALSEMI IBUTTONS¿Í ´ëÈ ÇÒ ¼öÀÖ´Â PERL ¸ðµâÀÔ´Ï´Ù. Çϵå¿þ¾î :: iButtonÀº DS2480 Serial WidgetÀ» ÅëÇØ DALSEMI iButtons¿Í ´ëÈ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. Synopsis Çϵå¿þ¾î »ç¿ë :: ibutton :: Connection; $ c = »õ Çϵå¿þ¾î :: ibutton :: connection "/ dev / ttys0"; @b = $ c-> scan (); foreach $ b (@b) {print "°¡Á· :", $ b-> family (), "ÀÏ·Ã ¹øÈ£ :", $ b-> Á÷·Ä (), "n"; Àμâ "ID :", $ b-> id (), "n"; # id = °¡Á·. ½Ã¸®¾ó. CRC Àμâ "REG0 :", $ b-> readreg (0), "n"; }ÀÌ ¸ðµâÀº DS1411K ¹× DS 9097u¸¦ Æ÷ÇÔÇÏ¿© DS2480À» »ç¿ëÇÏ´Â DS2480À» »ç¿ëÇÏ´Â ¸ðµç °ÍÀÇ "È°¼º"Á÷·Ä ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ iButtons¿¡ ´ëÈÇÕ´Ï´Ù. »ç¿ëÇÒ ¼öÀÖ´Â ÀåÄ¡ ¸ñ·ÏÀ» ÀÛ¼ºÇÏ°í ·¹Áö½ºÅ͸¦ ÀÐ°í ¾µ ¼ö ÀÖ½À´Ï´Ù. ¿¬°á °´Ã¼´Â Çϵå¿þ¾î :: ibutton :: ConnectionÀÔ´Ï´Ù. ÁÖ¿ä »ç¿ëÀÚ°¡ º¼ ¼öÀÖ´Â ¸ñÀûÀº Çϵå¿þ¾î :: ibutton :: Device °´Ã¼ÀÇ ¸ñ·ÏÀ» Á¦°øÇÏ´Â °ÍÀÔ´Ï´Ù. À̵éÀº °¡Á· Äڵ尡 ÇØ´ç ÀåÄ¡ÀÇ ±â´É¿¡ °íÀ¯ ÇÑ Æ¯¼öÇÑ ¸Þ¼Òµå¸¦ Á¦°øÇÏ´Â °ÍÀ¸·Î ¾Ë·ÁÁø ÈÄ¿¡ ÇÏÀ§ Ŭ·¡ ½Ì µÉ ¼ö ÀÖ½À´Ï´Ù. ±×·± ´ÙÀ½ ÇØ´ç ÀåÄ¡´Â Çϵå¿þ¾î :: ibutton :: device :: DS1920, exeributtons ¹× ¼Ö´õ ¸¶¿îÆ® ÅÍÄ¡ ¸Þ¸ð¸® ÀåÄ¡´Â °¢°¢ °íÀ¯ ÇÑ 64 ºñÆ® ¹øÈ£·Î ½Äº°µË´Ï´Ù. ÀÌ°ÍÀº ºÎÇ° ¹øÈ£ (°á°úÀûÀ¸·Î ±â´É)¸¦ ÁöÁ¤ÇÏ´Â "°¡Á· ÄÚµå"ÀÇ 8 ºñÆ®·Î ºÐ¸®µÇ¾î ÀÖÀ¸¸ç, 48 ºñÆ®ÀÇ ÀåÄ¡ ID (Dallas Inseures°¡ Àü ¼¼°èÀûÀ¸·Î °íÀ¯ ÇÑ °Í), CRCÀÇ 8 ºñÆ®¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ÀÌ ÆÐÅ°Áö ·ÎÀÌ ID¸¦ Åë°úÇϸé "0123456789ab"¿Í °°Àº Hex ¹®ÀÚ¿À» »ç¿ëÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Perl.
Çϵå¿þ¾î :: ibutton. °ü·Ã ¼ÒÇÁÆ®¿þ¾î