Esempio n. 1
0
        public UltralightReadWrite()
        {
            if (!mFNS.init())
            {
                MessageBox.Show("SDK for NFC Starter Kit fail");
                Environment.Exit(0);
                return;
            }
            InitializeComponent();

            mFelica = new NfcStarterKitWrap.Felica(mFNS);
        }
 public FelicaLiteIssuance()
 {
     if (mFNS.init())
     {
         mLite = new NfcStarterKitWrap.FelicaLite(mFNS);
         InitializeComponent();
     }
     else
     {
         MessageBox.Show("SDK for NFC Starter Kit fail");
         Environment.Exit(0);
     }
 }
        public FelicaLiteReadWrite()
        {
            if (!mFNS.init(this))
            {
                MessageBox.Show("SDK for NFC Starter Kit fail");
                Environment.Exit(0);
                return;
            }
            InitializeComponent();
            comboBoxReadBlock.SelectedIndex  = 0;
            comboBoxWriteBlock.SelectedIndex = 0;

            mLite = new NfcStarterKitWrap.FelicaLite(mFNS);
        }
        public UltralightReadWrite()
        {
            if (!mFNS.init())
            {
                MessageBox.Show("SDK for NFC Starter Kit fail");
                Environment.Exit(0);
                return;
            }
            InitializeComponent();
            comboBoxReadBlock.SelectedIndex  = 0;
            comboBoxWriteBlock.SelectedIndex = 0;

            mLight = new NfcStarterKitWrap.MifareUltralight(mFNS);
        }
Esempio n. 5
0
        public SmartTagRW()
        {
            if (!mFNS.init())
            {
                MessageBox.Show("SDK for NFC Starter Kit fail");
                Environment.Exit(0);
                return;
            }
            InitializeComponent();

            mSmartTag = new SmartTag(mFNS);
            updateStatus();

            trackThresh2.Value = trackThreshold.Value;
        }
Esempio n. 6
0
        public FelicaLiteNdef()
        {
            if (!mFNS.init(this))
            {
                MessageBox.Show("SDK for NFC Starter Kit fail");
                Environment.Exit(0);
                return;
            }

            InitializeComponent();

            mLite = new NfcStarterKitWrap.FelicaLite(mFNS);


            //書き込みバッファ
            mWriteData = new byte[NfcStarterKitWrap.nfc.BLOCK_SIZE * 0x0e];

            //書き込みデータ構築
            int pos = 0;

            Buffer.BlockCopy(kType3Head, 0, mWriteData, 0, kType3Head.Length);
            pos = kType3Head.Length;

            Buffer.BlockCopy(kPart1, 0, mWriteData, pos, kPart1.Length);
            pos += kPart1.Length;

            //ユーザブロック
            int           blocks = mWriteData.Length / NfcStarterKitWrap.nfc.BLOCK_SIZE;
            StringBuilder sb     = new StringBuilder((16 * 2 + 15 + 2) * blocks);

            for (int blk = 0; blk < blocks; blk++)
            {
                sb.Append(BitConverter.ToString(mWriteData, 16 * blk, 16));
                sb.Append("\r\n");
            }
            textAfter.Text = sb.ToString();
        }