Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use nfc_initiator_poll_target with Sub-B types (B2SR, BI, B2CT) #495

Open
lodi-g opened this issue Jun 21, 2018 · 2 comments
Open

Comments

@lodi-g
Copy link

lodi-g commented Jun 21, 2018

How to reproduce:

  • Clone the repository
  • Edit lines 104-112 to
const nfc_modulation nmModulations[6] = {
    { .nmt = NMT_ISO14443A, .nbr = NBR_106 },
    { .nmt = NMT_ISO14443B, .nbr = NBR_106 },
    { .nmt = NMT_ISO14443B2SR, .nbr = NBR_106 },
    { .nmt = NMT_FELICA, .nbr = NBR_212 },
    { .nmt = NMT_FELICA, .nbr = NBR_424 },
    { .nmt = NMT_JEWEL, .nbr = NBR_106 },
};
const size_t szModulations = 6;
  • Build
  • Start examples/nfc-poll

Expected behavior:

./examples/nfc-poll uses libnfc 1.7.1
NFC reader: ACS / ACR122U PICC Interface opened
NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations)
[...]

Actual behavior:

./examples/nfc-poll uses libnfc 1.7.1
NFC reader: ACS / ACR122U PICC Interface opened
NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations)
nfc_initiator_poll_target: Invalid argument(s)

This is IMHO related to #257 .
Same background infrmations as #257.

@lodi-g lodi-g changed the title Can't use nfc_initiator_poll_target with NMT_ISO14443B2SR Can't use nfc_initiator_poll_target with Sub-B types (B2SR, BI, B2CT) Jun 27, 2018
@lodi-g
Copy link
Author

lodi-g commented Jun 27, 2018

After further investigation it appears this bug happens whenever you use a sub-b type:

  • B2SR
  • B2CT
  • BI

Probably related to #439?


I use an ACR122U, thus the driver is acr122_usb and the chip is a pn53x (confirmed by running nfc-list with LIBNFC_LOG_LEVEL=3).

It looks like the PN53X doesn't support Sub-B tags?

@lodi-g
Copy link
Author

lodi-g commented Jul 5, 2018

@doegox Maybe would you happen to know something about that?

So far what I'm doing is an ugly is_tag_present function which is called every 750ms. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant