| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN4430 bảng dữ liệu(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 bảng dữ liệu(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; } |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |