| 전자부품 데이터시트 검색엔진 |
|
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 |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |