| поискавой системы для электроныых деталей |
|
AN4430 датащи(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 датащи(HTML) 31 Page - STMicroelectronics |
|
31 / 42 page ![]() DocID025722 Rev 1 31/42 AN4430 How to use ST NFC package to implement HW enhanced features 41 At this stage physical tag is supposed to be available in the NFC field. The anti-collision, RATS, PPS sequences are already done and the Tag is accessible in read or write mode. To select the TAG and set it in an accessible mode Android Application sends to the tag an Application To Select command defined in 7816-4 specification. To do so, the Tag rawTag can be mapped to an IsoDep android object in order to send a synchronous ATS command to the physical tag. The defined command is sent to the tag by using the private static NfcTagTypes decodeTagType (Tag pTag) { NfcTagTypes lType = NfcTagTypes.NFC_TAG_TYPE_UNKNOWN; List<String> lTechList = Arrays.asList(pTag.getTechList()); String nfcTechPrefixStr = "android.nfc.tech."; // Try the Ndef technology Ndef lNdefTag = Ndef.get(pTag); if (lNdefTag != null) { if (lNdefTag.getType().equals(Ndef.NFC_FORUM_TYPE_1)) { lType = NfcTagTypes.NFC_TAG_TYPE_1; } else if (lNdefTag.getType().equals(Ndef.NFC_FORUM_TYPE_2)) { lType = NfcTagTypes.NFC_TAG_TYPE_2; } else if (lNdefTag.getType().equals(Ndef.NFC_FORUM_TYPE_3)) { lType = NfcTagTypes.NFC_TAG_TYPE_3; } else if (lNdefTag.getType().equals(Ndef.NFC_FORUM_TYPE_4)) { if (lTechList.contains(nfcTechPrefixStr+"NfcA")) { lType = NfcTagTypes.NFC_TAG_TYPE_4A; } else if (lTechList.contains(nfcTechPrefixStr+"NfcB")) { lType = NfcTagTypes.NFC_TAG_TYPE_4B; } } } else { // Try the IsoDep technology IsoDep lIsoDepTag = IsoDep.get(pTag); if (lIsoDepTag != null) { if (lTechList.contains(nfcTechPrefixStr+"NfcA")) { lType = NfcTagTypes.NFC_TAG_TYPE_4A; } else if (lTechList.contains(nfcTechPrefixStr+"NfcB")) { lType = NfcTagTypes.NFC_TAG_TYPE_4B; } } else { // Try the underlying technologies if (lTechList.contains(nfcTechPrefixStr+"NfcA")) { lType = NfcTagTypes.NFC_TAG_TYPE_A; } else if (lTechList.contains(nfcTechPrefixStr+"NfcB")) { lType = NfcTagTypes.NFC_TAG_TYPE_B; } else if (lTechList.contains(nfcTechPrefixStr+"NfcF")) { lType = NfcTagTypes.NFC_TAG_TYPE_F; } else if (lTechList.contains(nfcTechPrefixStr+"NfcV")) { lType = NfcTagTypes.NFC_TAG_TYPE_V; } } } return lType; } |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |