android - NFC on Nexus S: "TagLostException" when writing to unknown block on ISO 15693 Chip -
i wondering if out there has stumbled across issue experiencing.
i writing app talk specific iso 15693 rfid chip using nexus s nfc capabilities. communication between phone , chip works fine, of time. reading , writing blocks working using transcieve()
send raw byte-arrays.
my chip has 8 blocks, each 4 bytes big. when trying write block other 0 - 7, android throws taglostexception:
07-21 14:07:39.390: warn/system.err(5770): android.nfc.taglostexception: tag lost. 07-21 14:07:39.394: warn/system.err(5770): @ android.nfc.tech.basictagtechnology.transceive(basictagtechnology.java:141) 07-21 14:07:39.398: warn/system.err(5770): @ android.nfc.tech.nfcv.transceive(nfcv.java:92) 07-21 14:07:39.398: warn/system.err(5770): @ de.myapp.foregrounddispatchnfcv.sendrawcommand(foregrounddispatchnfcv.java:246) 07-21 14:07:39.402: warn/system.err(5770): @ de.myapp.foregrounddispatchnfcv$3.onclick(foregrounddispatchnfcv.java:135) 07-21 14:07:39.406: warn/system.err(5770): @ android.view.view.performclick(view.java:2485) 07-21 14:07:39.406: warn/system.err(5770): @ android.view.view$performclick.run(view.java:9080) 07-21 14:07:39.410: warn/system.err(5770): @ android.os.handler.handlecallback(handler.java:587) 07-21 14:07:39.414: warn/system.err(5770): @ android.os.handler.dispatchmessage(handler.java:92) 07-21 14:07:39.414: warn/system.err(5770): @ android.os.looper.loop(looper.java:123) 07-21 14:07:39.417: warn/system.err(5770): @ android.app.activitythread.main(activitythread.java:3683) 07-21 14:07:39.421: warn/system.err(5770): @ java.lang.reflect.method.invokenative(native method) 07-21 14:07:39.421: warn/system.err(5770): @ java.lang.reflect.method.invoke(method.java:507) 07-21 14:07:39.425: warn/system.err(5770): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:839) 07-21 14:07:39.429: warn/system.err(5770): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:597) 07-21 14:07:39.429: warn/system.err(5770): @ dalvik.system.nativestart.main(native method)
what expect reading iso 15693 standard 2 bytes containing infos on error occured, seams if chip stay quiet , send no answer. same issue occurs when trying read block that's not valid.
is issue card or maybe in api / nfc ? know more issue?
the nfc chip has internal state machine keeps track of tags has detected. when tag out of range of reader/phone , try write exception.
Comments
Post a Comment