libnfc icon indicating copy to clipboard operation
libnfc copied to clipboard

Read/Write ISO14443B-2 ST SRx card

Open kevXZY opened this issue 6 years ago • 3 comments

Hello

I'm able to detect the card. I can read the UID but noting else.

Any ideas ?

Thank you

kevXZY avatar Jun 08 '18 11:06 kevXZY

See #436

You must first init an B tag, and then you can use sub-b types like B2SR for SRx.

lodi-g avatar Jun 27 '18 10:06 lodi-g

@lodi-g Could you explain what you mean ?

You must first init an B tag, and then you can use sub-b types like B2SR for SRx.

doudz avatar Feb 11 '20 12:02 doudz

@lodi-g Could you explain what you mean ?

You must first init an B tag, and then you can use sub-b types like B2SR for SRx.

It's been a while, but here's a sample that was working for a B2SR tag.

static bool is_tag_present(void) {
    nfc_target ant[1];
    nfc_modulation nm = {.nmt = NMT_ISO14443B, .nbr = NBR_106};
    nfc_initiator_list_passive_targets(pnd, nm, ant, 1);

    nfc_target ant2[1];
    nfc_modulation nm2 = {.nmt = NMT_ISO14443B2SR, .nbr = NBR_106};
    int res = nfc_initiator_list_passive_targets(pnd, nm2, ant2, 1);

    return res == 1;
}

You can read more in issue #439

lodi-g avatar Feb 11 '20 16:02 lodi-g