Tasmota: Wiegand 26 ๋ฆฌ๋” ์ง€์›

์— ๋งŒ๋“  2018๋…„ 08์›” 31์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: arendst/Tasmota

Wiegand 26๋น„ํŠธ ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•˜์—ฌ RFID ๋ฆฌ๋”๊ธฐ ์ง€์›์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๊นŒ?

https://www.letscontrolit.com/wiki/index.php/Wiegand-26

duplicated

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

#2915์—์„œ ์š”์ฒญ๋œ RFID ๋ฆฌ๋”

๋ชจ๋“  3 ๋Œ“๊ธ€

์•„๋งˆ๋„ ๊ฐ€๋Šฅ ;-) ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Œ

#2915์—์„œ ์š”์ฒญ๋œ RFID ๋ฆฌ๋”

NFC ๋ฆฌ๋”์šฉ wiegand ํ”„๋กœํ† ์ฝœ์€ PN532 ๋ฆฌ๋”๊ธฐ์™€ ๊ฐ™์ง€ ์•Š๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.
Wiegand ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ์žˆ๋Š” ์ง€๋ฌธ๊ณผ NFC-Reader ์ฝค๋น„์Šค๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์„ tasmota์—์„œ ๋ณด๊ณ  ์‹ถ๋‹ค. ์•„๋งˆ๋„ pn532์™€ ํ•จ๊ป˜?

์‰ฝ๊ฒŒ ์ฝ”๋”ฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ œ ์ƒ๊ฐ์—๋Š” ๊ฑฐ์˜ espeasy์—์„œ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
์•„๋งˆ๋„ ์–ด๋–ค ๊ฐœ๋ฐœ์ž๋Š” โค๏ธ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๊ณ  ์ค‘์š”ํ•œ ๋ถ€๋ถ„์„ tasmota์— ๋ณต์‚ฌํ•˜์—ฌ ๋ถ™์—ฌ๋„ฃ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜„

github์˜ espeasy-source์— wiegand ๋ผ์ธ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

event->String1 = formatGpioName_input(F("D0 (Green, 5V)"));
event->String2 = formatGpioName_input(F("D1 (White, 5V)"));

github์˜ espeasy-source์— ์žˆ๋Š” ์ธํ„ฐ๋ŸฝํŠธ์—์„œ ๊ฐ„๋‹จํžˆ wiegand ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.

*********************************************************************/
void Plugin_008_interrupt1()
/*********************************************************************/
{
  // We've received a 1 bit. (bit 0 = high, bit 1 = low)
  Plugin_008_keyBuffer = Plugin_008_keyBuffer << 1;     // Left shift the number (effectively multiplying by 2)
  Plugin_008_keyBuffer += 1;         // Add the 1 (not necessary for the zeroes)
  Plugin_008_bitCount++;         // Increment the bit count
}

/*********************************************************************/
void Plugin_008_interrupt2()
/*********************************************************************/
{
  // We've received a 0 bit. (bit 0 = low, bit 1 = high)
  Plugin_008_keyBuffer = Plugin_008_keyBuffer << 1;     // Left shift the number (effectively multiplying by 2)
  Plugin_008_bitCount++;           // Increment the bit count
}
์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰