googlearchive / chrome-nfc

Chrome App NFC Library
Other
213 stars 69 forks source link

set_buzzer(true) fails #14

Closed beaufortfrancois closed 9 years ago

beaufortfrancois commented 10 years ago

When setting self.acr122_set_buzzer(true,, the USB Reader cannot be found anymore and self.acr122_reset_to_good_state returns 2184 ;(

jethroguce commented 9 years ago

what does set buzzer does? i'm also having the same issue,

5:56.030 Enumerated 1 devices
chrome-nfc.js:787 [Object]
chrome-nfc.js:810 23:45:56.061 claimed
chrome-nfc.js:1891 23:45:56.086 >0000FF00FF00
chrome-nfc.js:1843 23:45:56.096 <000000000000FF028100
chrome-nfc.js:1082 [FIXME] acr122_reset_to_good_state: rc = 2184
chrome-nfc.js:1891 23:45:56.105 >62000000000000010000
chrome-nfc.js:1843 23:45:56.121 <800200000000000081003B00
chrome-nfc.js:1086 [FIXME] icc_power_on: rc = 2184
chrome-nfc.js:1088 [DEBUG] icc_power_on: turn on the device power
chrome-nfc.js:1891 23:45:56.236 >6B050000000000000000FF00520000
chrome-nfc.js:1843 23:45:56.385 <830200000000000081006300
chrome-nfc.js:1256 [ERROR] acr122_reset_to_good_state() returns 2730
chrome-nfc.js:1256 (anonymous function)chrome-nfc.js:1103 (anonymous function)chrome-nfc.js:957 (anonymous function)
chrome-nfc.js:619 NFC.device.open() = 2730
app.js:157 test []
app.js:132 Uncaught TypeError: Cannot read property 'productId' of undefined
beaufortfrancois commented 9 years ago

I just fixed it in https://github.com/GoogleChrome/chrome-nfc/commit/6c6698201e89ffb81f9a0ec4673633fe53eca318

acr122_set_buzzer(true) and self.acr122_set_buzzer(false) should not raise errors anymore.