toshitaka91164 / mfocGUI_v29

15 stars 19 forks source link

Using arduino pn532 as reader in uart ? #1

Open Pascal66 opened 8 years ago

NullYing commented 8 years ago

I had forked and I had added this function

Pascal66 commented 8 years ago

I 'll try and test it today ! thank you !

Pascal66 commented 8 years ago

got it @NullYing But it doesnt find my pn532 with my usb arduino skecth. and no exmaple skecth on your v30rar. What must I do to make it recognize the pn532 as reader ?

NullYing commented 8 years ago

insert your pn532 and then open the software,it will auto recognize your pn532,if your driver no problem

NullYing commented 8 years ago

and i use serial port to connect my pn532.it probably don't work in usb arduino skecth

NullYing commented 8 years ago

i haven't usb arduino skecth for test

Pascal66 commented 8 years ago

So it detect your pn532 as uart, and mine is detected as com3: with the ftdi from usb but no by mfoc Source code is included ? It can't be diffcult to adtapt

NullYing commented 8 years ago

detect device is libnfc,if you use nfc-list and it can recognize your pn532,the software can be adapt

NullYing commented 8 years ago

I use the CP2102 module to transform usb , it's also work

Pascal66 commented 8 years ago

what's my nfc-list give but nothing on mfocgui:

debug   libnfc.config   key: [device.name], value: [Duino532I2C]
debug   libnfc.config   key: [device.connstring], value: [pn532_uart:COM3]
debug   libnfc.config   Unable to open directory: C:/Users/Pascal/Desktop/Nfc/libnfc-build/config/devices.d
unknown libnfc.general  log_level is set to 3
debug   libnfc.general  allow_autoscan is set to true
debug   libnfc.general  allow_intrusive_scan is set to false
debug   libnfc.general  1 device(s) defined by user
debug   libnfc.general    #0 name: "Duino532I2C", connstring: "pn532_uart:COM3"
nfc-list uses libnfc 1.7.1
debug   libnfc.driver.pn532_uart        Attempt to open: COM3 at 115200 baud.
debug   libnfc.bus.uart_win32   Serial port speed requested to be set to 115200 baud.
debug   libnfc.chip.pn53x       Diagnose
debug   libnfc.chip.pn53x       Timeout value: 500
debug   libnfc.bus.uart_win32   TX: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00
debug   libnfc.chip.pn53x       SAMConfiguration
debug   libnfc.chip.pn53x       Timeout value: 1000
debug   libnfc.bus.uart_win32   TX: 00 00 ff 03 fd d4 14 01 17 00
debug   libnfc.driver.pn532_uart        Read ACK
debug   libnfc.bus.uart_win32   Timeouts are set to 1000 ms
debug   libnfc.bus.uart_win32   ReadFile
debug   libnfc.bus.uart_win32   RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.bus.uart_win32   Timeouts are set to 1000 ms
debug   libnfc.bus.uart_win32   ReadFile
debug   libnfc.bus.uart_win32   RX: 00 00 ff 00 00```
NullYing commented 8 years ago

Did you put the card on the pn532,and tryed to read it by mfocgui?

Pascal66 commented 8 years ago

Tried with card and without card, still no reader recognized :( need to see the source to know where my arduino doesnt answer to your mfocuino

Pascal66 commented 8 years ago

@NullYing I have an error now : nfc_disconnect not found in mfcocGUI.exe after recompiling libnfc

NullYing commented 8 years ago

It isn't fit mfocgui with the newest version libnfc. Same function must be update in the mfcgui code.