| поискавой системы для электроныых деталей |
|
AN4430 датащи(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 датащи(HTML) 32 Page - STMicroelectronics |
|
32 / 42 page ![]() How to use ST NFC package to implement HW enhanced features AN4430 32/42 DocID025722 Rev 1 IsoDep.tranceive(byte[]) command. Application then waits for the corresponding answer (answer codes are listed and defined in both 7816-4 specification and in M24SR datasheet). private static final byte[] NdefSelectAppliFrame = new byte[] { (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x00, (byte) 0x07, (byte) 0xD2, (byte) 0x76, (byte) 0x00, (byte) 0x00, (byte) 0x85, (byte) 0x01, (byte) 0x01}; // request ATS public int requestATS() { byte[] transcieveAnswer = new byte[] { (byte) 0x01 }; if (isoDepCurrentTag == null) isoDepCurrentTag = IsoDep.get(this.currentTag); if (isoDepCurrentTag == null) { return 0; } int cpt = 0; while (( transcieveAnswer[0] == 1 || transcieveAnswer[0] == (byte)0xAA) && cpt <= 1) { try { if (!isoDepCurrentTag.isConnected()) { isoDepCurrentTag.connect(); } //isoDepCurrentTag.setTimeout(20); transcieveAnswer = isoDepCurrentTag.transceive(NdefSelectAppliFrame); if (transcieveAnswer[0] == (byte) 0x90 && transcieveAnswer[1] == (byte) 0x00) { return 1; } else { cpt++; return 0; } } catch (TagLostException e) { // TODO Auto‐generated catch block e.printStackTrace(); throw new RuntimeException("fail", e); } catch (IOException e) { // TODO Auto‐generated catch block e.printStackTrace(); throw new RuntimeException("fail", e); } } return 0; } // End of ATS request |
|
ссылки 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 |