nfc - smart cards contactless reset apdu -
i developing nfc application very, customized linux kernel running in pos device such this tps300 contact-less nfc cards. has inbuilt libraries communicating nfc cards. have researched on nfc , have learnt nfc reset command, supposed respond reply reset. question is, command carried out via normal apdu command-respond method or reset hardware-based command? asking because libraries mentioned above have no explicit reset command method cards, or programme either, , (up moment) have found no apdu command resetting nfc card. know of hardware method, via signal reset terminal of nfc card. there explicit apdu command resetting card or customized os take care of resetting me? if command exists, it? , how applied contact-less nfc cards?
the atr
(answer reset) typically sought issuing special commands nfc controller (reader). apdu
term that's used refer command/response exchanges nfc card (picc). give compare against check out documentation of acr122u, 1 of popular usb readers on market. leverages pcsc usb driver (ccid) that's mutual operating systems (evolved interfacing smart card controllers) makes easy utilize on windows, mac, or linux. here's flowchart of it:
the pcsc interface has several commands, starts reader api connect
. contact smart cards, equates setting reset
line high. contactless (nfc) cards, equates turning on nfc field (rf energy pulse). if there card present, connect
phone call homecoming atr
response.
looking beneath pcsc layer , ccid driver, can see how reader api connect
phone call constructed. here's snippet of code nfcpy project, open source stack nfc:
def reset_mode(self): if (self.ic, self.fw) == ("pn533", "1.48"): self.command(0x18, [1]) self.write(array("b", [0, 0, 255, 0, 255, 0])) # ack time.sleep(0.010)
the pn533 nfc controller (from nxp) within acr122u reader. command 0x18
instructs nfc controller turn on rf field , effort atr response tag present. 1 time atr
found, apdu
exchanges can begin. such interrogating card description info:
rsp = self.dev.in_list_passive_target("106a", ""); // nfc-a type cards
so reply questions explicitly:
is there explicit apdu command resetting card or customized os take care of resetting me? - in case of pcsc, reader apiconnect
call. talking straight nfc controller, there might instruction in_list_passive_target
command pn533. if command exists, it? - search through linux setup in pos , see if there's ccid driver or pcsc daemon running. if not, you'll need find driver beingness used talk pos nfc controller. should able determine equivalent command powerfulness on rf field. and how applied contact-less nfc cards? - there many types of nfc cards getting atr
mutual across them all. nfc smartcard contactless-smartcard
No comments:
Post a Comment