SDK for FeliCa & Adobe® AIR®/
Adobe® Flash®   PaSoRi
RFID Radio Frequency IDentification
http://www.sony.co.jp/Products/felica/casestudy/
http://www.sony.co.jp/Products/felica/consumer/download/felicaportsoftware.html
-    FeliCaProxy                FeliCa




http://www.sony.co.jp/Products/felica/consumer/download/felicaportsoftware.html
1.FeliCaProxy

2.FeliCa              R/W

3.FeliCa              open

4.Polling
5.
6.              R/W
7.FeliCaProxy
✓FeliCaProxyService FeliCa DLL
                            Proxy
✓FeliCa
 FeliCaProxy
private static const PORT:int = 10250;
private var fc:FeliCaControl = new FeliCaControl();

public function doPolling():void{
!   //
!   fc.open(PORT);
}
✓
✓
//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);
}
✓   open


✓
//R/W
//
private function doRWOpen():void{
!    //
!    fc.access(new FeliCaOpenReaderWriterAutoRequest());
}
✓                  Polling


✓
FeliCa
         FFFFh →
//R/Wopen
//
private function doRWOpen():void{
!    //
!    var request:FeliCaPollingAndGetCardInformationRequest =
!    ! new FeliCaPollingAndGetCardInformationRequest();
!    request.systemCode = "FFFF";

!    fc.access(request);
}
✓Polling
✓IDm(      ID   )   PMm(
//Polling
private 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);
}
http://www.toppan-tl.co.jp/sp/nfc.html
FeliCa




         http://www.toppan-tl.co.jp/sp/nfc.html
http://www.toppan-tl.co.jp/sp/nfc.html
Nexus S
Activity
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>
http://www.google.com/wallet/
第四回月次セミナー(公開版)
第四回月次セミナー(公開版)

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