Wiegand 26๋นํธ ํ๋กํ ์ฝ์ ์ฌ์ฉํ์ฌ RFID ๋ฆฌ๋๊ธฐ ์ง์์ด ๊ฐ๋ฅํฉ๋๊น?
์๋ง๋ ๊ฐ๋ฅ ;-) ํ์ฌ ์ง์๋์ง ์์
#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
}
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
#2915์์ ์์ฒญ๋ RFID ๋ฆฌ๋