Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.

For my project #4

Open
wants to merge 98 commits into
base: dev
Choose a base branch
from
Open

For my project #4

wants to merge 98 commits into from

Conversation

pachoain
Copy link

@pachoain pachoain commented Jan 9, 2017

Thank you for sharing it !

xiongyihui and others added 30 commits September 3, 2013 20:59
renamed Ndef library to NDEF
[PN532 library]Add HSU driver.
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
added write support for tag emulation, cleanup tagemulation class
luismsilva99 and others added 30 commits March 24, 2014 11:46
Added a working example for Android Host Card Emulation
Adding Write Support For Mifare Ultralight Tags
Add an option to inlist a card with readPassiveTargetID method
this modification makes P2P working on Nexus 5 Android 5.1.
…d SNEP message's major version is different".
Bug fix: Cannot read SNEP data from Android, always got: "The received S...
I added 4Bytes to the default command of `tgInitAsTarget`. These bytes
form the MIUX in TLV format.
Type: 0x02
Length: 0x02
MIUX: MIUX = MIU - 128 in 11Bit (0x03 0x08) == 1024

Issue: #28
Since platforms like Arduino only have 2K of RAM it is wiser to use
a smaller MIU. 256Bytes should be good since it is also the maximum size
for a command to the PN532.
PN532.cpp: Transmits MIUX on connect for LLCP
add delay for Android to response
I'm not 100% why but the older code here only works with older Android phones.  I tried looking the the libnfc code used in the Android services but it was super complicated. I'm guessing that the newer code does more validation checks.

Anyways, this works on all my old phones:
Samsung Nexus 4
Galaxy S3
Galaxy S4
HTC M8 One running WP10
Nexus 5x

I'm going to be testing more phones this weekend but this is a very good start.  The 5x wouldn't even get past the `tgInitAsTarget` before this fix.
Fixing emulation so it emulates 1443-4A card to work with newer phones
The M0 SPI library does not support SPI_CLOCK_DIV8 macro, similar to the Due SPI library, so the clock divider must be set manually.
Merging Support for Arduino M0/M0 Pro
If you run "mifareclassic_formatndef" or "mifareclassic_updatendef" examples with an url longer than 22 character, before this commit your program would enter the if loop between line 638 and line 642, which cause NDEF reader not even able to recognize the formatted card. Also indexing in line 652 and 653 was not correct either. 

I use memory dump example to debug this bug, you can verify it before you change.
Zee Livermorium patch - fix bug - if url length > 22, URI would be wrong
…t end forever.

On snep.h in NDEF library, default timeout value is 0 in function write on snep.h.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.