第四回月次セミナー(公開版)

1,962 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

第四回月次セミナー(公開版)

  1. 1. SDK for FeliCa & Adobe® AIR®/Adobe® Flash® PaSoRi
  2. 2. RFID Radio Frequency IDentification
  3. 3. http://www.sony.co.jp/Products/felica/casestudy/
  4. 4. http://www.sony.co.jp/Products/felica/consumer/download/felicaportsoftware.html
  5. 5. - FeliCaProxy FeliCahttp://www.sony.co.jp/Products/felica/consumer/download/felicaportsoftware.html
  6. 6. 1.FeliCaProxy2.FeliCa R/W3.FeliCa open4.Polling5.6. R/W7.FeliCaProxy
  7. 7. ✓FeliCaProxyService FeliCa DLL Proxy✓FeliCa FeliCaProxy
  8. 8. private static const PORT:int = 10250;private var fc:FeliCaControl = new FeliCaControl();public function doPolling():void{! //! fc.open(PORT);}
  9. 9. ✓✓
  10. 10. //FeliCaProxy//private function doRWHold():void{! //! var request:FeliCaSessionRequest = new FeliCaSessionRequest();! request.type! ! ! = FeliCaSessionRequest.HOLD;! request.lockTimeout! this.lockTimeout;! =! request.unlockTimeout! = this.unlockTimeout;! fc.access(request);}
  11. 11. ✓ open✓
  12. 12. //R/W//private function doRWOpen():void{! //! fc.access(new FeliCaOpenReaderWriterAutoRequest());}
  13. 13. ✓ Polling✓FeliCa FFFFh →
  14. 14. //R/Wopen//private function doRWOpen():void{! //! var request:FeliCaPollingAndGetCardInformationRequest =! ! new FeliCaPollingAndGetCardInformationRequest();! request.systemCode = "FFFF";! fc.access(request);}
  15. 15. ✓Polling✓IDm( ID ) PMm(
  16. 16. //Pollingprivate function pollingComplete(evt:FeliCaStatusEvent):void{! var response:FeliCaPollingAndGetCardInformationResponse =! ! evt.object as FeliCaPollingAndGetCardInformationResponse;! this.idm = response.idm;! this.pmm = response.pmm;! trace("IDm:" + response.idm);! trace("PMm:" + response.pmm);}
  17. 17. http://www.toppan-tl.co.jp/sp/nfc.html
  18. 18. FeliCa http://www.toppan-tl.co.jp/sp/nfc.html
  19. 19. http://www.toppan-tl.co.jp/sp/nfc.html
  20. 20. Nexus S
  21. 21. Activity
  22. 22. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="info.moaikids.android.nfc.twitter" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="10" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:icon="@drawable/icon" android:label="@string/app_name"android:debuggable="true"> <activity android:name=".NfcTwitter" android:label="@string/app_name" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.nfc.action.TECH_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/filter_nfc" /> </activity> </application> <uses-feature android:name="android.hardware.nfc" android:required="true" /></manifest> xml/filter_nfc.xml<?xml version="1.0" encoding="utf-8"?><resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <tech-list><tech>android.nfc.tech.NfcF</tech></tech-list></resources>
  23. 23. http://www.google.com/wallet/

×