Note that there are some explanatory texts on larger screens.

plurals
  1. PONfcV Transceive command throws tag lost exception with TI HF-I plus tag(ISO15693) in android
    primarykey
    data
    text
    <p>I am trying to talk to a ISO15693 Tag. Tag type is TI HF-I Plus. When I issue a Get System Info command, the command executes normally and a proper response is received. For most other commands sent to the tag, the framework does not seem to handle the response properly. TAG LOST exception is thrown for most other commands. Has anyone successfully implemented ISO15693 commands in Android ?</p> <p>Source code:</p> <pre><code>@Override protected byte[] doInBackground(byte[]... params) { NfcV mNfcVObject = NfcV.get(mTag); byte[] mCommand = null; switch(params[0][0]){ case ReadSingleBlock: mCommand = new byte[]{0x02, 0x20, params[1][0]}; break; case ReadMultipleBlocks: mCommand = new byte[]{0x02, 0x23,params[1][0],params[2][0]}; break; case WriteSingleBlock: mCommand = new byte[]{0x42, 0x21, (byte)params[1][0],params[2][0],params[2][1],params[2][2],params[2][3]}; break; case GetSystemInfo: mCommand = new byte[]{0x00,(byte)0x2B}; break; } if (mNfcVObject != null) { try { mNfcVObject.connect(); } catch (IOException e) { e.printStackTrace(); Log.e(LOG_TAG, e.toString()); } if (mNfcVObject.isConnected()) { int i = 0; try { mResponse = mNfcVObject.transceive(mCommand); String responseString = FlomioNdefHelper.mBytesToHexString(mResponse); Log.d(String.format(LOG_TAG + " Response %d", i), responseString); } catch (IOException e) { e.printStackTrace(); Log.e(LOG_TAG, e.toString()); } try { mNfcVObject.close(); } catch (IOException e) { e.printStackTrace(); Log.e(LOG_TAG, e.toString()); } } } return mResponse; } @Override protected void onPostExecute(byte[] response) { super.onPostExecute(response); mOnCommandExecutedCallBack.onCommandExecuted(response); return; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload