ABC2011Winter デ部 NFC

7,904 views
7,752 views

Published on

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
7,904
On SlideShare
0
From Embeds
0
Number of Embeds
2,128
Actions
Shares
0
Downloads
113
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

ABC2011Winter デ部 NFC

  1. 1. NearFieldCommunication (@v vakame) appengine Android Curry(Rice) 2011 1 9
  2. 2. NFC 2011 1 9
  3. 3. NFC • NearFieldCommunication • FeliCa RFID • 2011 1 9
  4. 4. NFC ISO14443 FeliCa Mifare TypeB other Suica Edy Taspo NFC (NearFieldCommunication) http://bit.ly/nfc-about 2011 1 9
  5. 5. Gingerbread NFC API 2011 1 9
  6. 6. Gingerbread NFC API 2011 1 9
  7. 7. Gingerbread NFC API 1 2 3 2011 1 9
  8. 8. 2011 1 9
  9. 9. Gingerbread NFC API 2011 1 9
  10. 10. 2011 1 9
  11. 11. • NFC Tag NexusS( ) • Intent • 2011 1 9
  12. 12. android.nfc.NfcAdapter • NFC • … • Intent String action = intent.getAction(); if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action)) { // ID HexString FeliCa IDm intent.getByteArrayExtra(NfcAdapter.EXTRA_ID); // NDEF( ) NdefMessage[] intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); // android.nfc.Tag . @hide API Parcelable tag = intent.getParcelableExtra("android.nfc.extra.TAG"); } 2011 1 9
  13. 13. NDEF • NFC Data Exchange Format • NFC • (Suica, Edy, ) • NDEF 2011 1 9
  14. 14. android.nfc.NdefMessage 2011 1 9
  15. 15. android.nfc.NdefMessage NdefMessage NdefRecord NdefRecord • NdefMessage 1 NdefRecord • 1 2011 1 9
  16. 16. android.nfc.NdefRecord 2011 1 9
  17. 17. android.nfc.NdefRecord NdefMessage NdefRecord NdefRecord MB ME CF SR IL TNF LENGTH INFO(TYPE, PAYLOAD, ID) BODY(TYPE, ID, PAYLOAD) 2011 1 9
  18. 18. • TNF Type Payload • AndroidSDK NFCDemo Text, Uri, SmartPoster • NFC RTD 2011 1 9
  19. 19. • READ • … • NDEF • API Write • @adamrocker • API Suica • @yanzm 2011 1 9
  20. 20. • Web ( ... 1/11 ) http://bit.ly/nfc-abc2011w • http://slidesha.re/abc2011w-nfc 2011 1 9
  21. 21. • NFC Near Field Communication • NDEF NFC Data Exchange Format • MB Message Begin • ME Message End • CF Chunk Flag • SR Short Record • IL ID Length • TNF Type Name Format • RTD Record Type Definition 2011 1 9

×