Roverok / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

PN531 hangs third time it is attempted to open on MacOSX Tiger #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using a PN531 and repeatedly opening and closing a connection to the same 
device on MacOSX 10.4.11, libusb-1.0.6, libusb-compat-0.1.3. Have to 
unplug the device and reattach. Either device or USB subsystem seems to 
get into odd state.

Same problem does not occur on Solaris 10 or Windows XP.

Original issue reported on code.google.com by roger.br...@gtempaccount.com on 17 Dec 2009 at 4:56

GoogleCodeExporter commented 9 years ago
I believe I have a solution for my purposes: 

I have added a "usb_reset()" call following the "usb_claim_interface()" 
in "dev_pn531_connect()".

Original comment by roger.br...@gtempaccount.com on 17 Dec 2009 at 10:32

GoogleCodeExporter commented 9 years ago
Nope, that is not a good solution as you can't use the handle following 
usb_reset.

I have instead put the "usb_reset()" in the "dev_pn531_disconnect()" before the 
call 
to "usb_close()". 

Original comment by roger.br...@gtempaccount.com on 17 Dec 2009 at 10:57

GoogleCodeExporter commented 9 years ago
what revision are you at? usb_reset() is already called by 
pn53x_usb_disconnect() in
the current version...

Original comment by fnargwibble on 18 Dec 2009 at 1:26

GoogleCodeExporter commented 9 years ago
Thanks. Close then.

Original comment by roger.br...@gtempaccount.com on 18 Dec 2009 at 7:38

GoogleCodeExporter commented 9 years ago
This issue was addressed in rev 234: 
http://code.google.com/p/libnfc/source/detail?r=234

Original comment by fnargwibble on 20 Dec 2009 at 11:43