nfc

codename one nfc beacon

谁都会走 提交于 2019-12-23 03:46:09
问题 i am trying to do some tests with nfc and beacons with Codename One. I'm reading that Codename One doesn't support them on some old posts, any news about it? It seems that the only way is going on native but i'm totally new to it. Any suggestions where to start or any hint? Thanks in advance 回答1: You might look at the source code for a couple of CN1Libs at http://www.codenameone.com/cn1libs.html There you can see some of the native code implementations. It is more challenging to write a

Android nfcv.transceive() throws an exception

人盡茶涼 提交于 2019-12-23 03:32:17
问题 I wrote an Android app that uses the transceive() function to communicate with an NFC-V card. My problem is that line byte[] response = nfcv.transceive(command) always throws a tag lost exception. Could someone help me? String action = intent.getAction(); Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); NfcV nfcv = NfcV.get(tag); if(nfcv != null) { Toast.makeText(this, "nfcv detected", Toast.LENGTH_LONG).show(); } try { nfcv.connect(); Toast.makeText(this, "connected", Toast.LENGTH

NFC SNEP Push Fragmentation - ACR122U to Android ICS P2P

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:22:09
问题 How is it done? The documentation is unclear and there are no examples. What I do is the following.. I chop off the data into small fragments and then I send the fragments sequentially. The SNEP header is only included once in the first fragment. Do I need to change something in my SNEP header or LLCP? I don't understand how LLCP should be changed to make android understand the sequence of the messages? After the whole message is sent, android does not acknowledge receiving the message.

Checking NFC feature on Android Device

牧云@^-^@ 提交于 2019-12-23 01:12:58
问题 This is in response to question Step #1: Put this in your manifest: <uses-feature android:name="android.hardware.nfc" android:required="false" /> Step #2: Call hasSystemFeature(PackageManager.FEATURE_NFC) on PackageManager to see if NFC is available on the current device i set the API level to 8,Step 1 is ok, but when I write hasSystemFeature(PackageManager.FEATURE_NFC) it says Feature_NFC doesnot resolve to a field, Feature_WIFI FEATURE_BLUETOOTH FEATURE_CAMERA are the options there. I have

Is there an NFC API for the Sony SmartWatch 2?

风格不统一 提交于 2019-12-22 18:43:13
问题 We want to write an Android App for the Sony SmartWatch 2 which uses the device's NFC functionality to read and write NFC tags (such as Mifare or DESfire cards). NFC functionality is heavily promoted for the SmartWatch 2, however, I couldn't find any information on an open NFC API so far. My questions: Is there an open NFC API for the SmartWatch 2? If so, are there any restrictions on the mode of communication (Reader/Writer mode vs. P2P)? Where can I find related documentation? Thanks,

Is there an NFC API for the Sony SmartWatch 2?

百般思念 提交于 2019-12-22 18:43:08
问题 We want to write an Android App for the Sony SmartWatch 2 which uses the device's NFC functionality to read and write NFC tags (such as Mifare or DESfire cards). NFC functionality is heavily promoted for the SmartWatch 2, however, I couldn't find any information on an open NFC API so far. My questions: Is there an open NFC API for the SmartWatch 2? If so, are there any restrictions on the mode of communication (Reader/Writer mode vs. P2P)? Where can I find related documentation? Thanks,

Use NFC device as NFC tag

南楼画角 提交于 2019-12-22 10:48:42
问题 I want my android device to act as NFC tag. Is it possible to use NFC device as NFC tag? How can I achieve that? I have done read/write tag, beam data between devices. 回答1: Depending on your NFC device, this may be possible. However, I do not agree with kamituel that this is being done by multiple applications through Android Beam. Android Beam uses NFC's peer-to-peer mode which (while it may have a similar effect) is not the same as using one device as a reader ( reader/writer mode ) and one

Prevent copying nfc chip signal

偶尔善良 提交于 2019-12-22 10:37:06
问题 I'm wondering if NFC chips have some kind of unique identifier? I have Mifare Classic 1K and Mifare Ultralight C stickers that I want NFC phones to read using my android application, is there some common practice to protect the signal so someone can't just come in and scan the data using a generic app (NFC Reader), and write the data to another chip in order to fake my sticker signal. Or, is there a unique ID like how phone UUID works built in these chips? 回答1: I'm afraid with tags there is

Start Activity with NFC in a specific task

[亡魂溺海] 提交于 2019-12-22 10:00:10
问题 My app contains a number of activities. One of these activities responds to an NFC intent filter, as well as standard intents, however, this activity is launching in it's own task, and not in the same task as the app. The app is not necessarily running when the NFC intent is initiated but if it is, I want the activity to launch in the same task to ensure a seamless user experience. At the moment, the app is behaving as though there are 2 of them running. Here is the manifest for my NFC

ePassport reading with PN532, Keep Getting SW1 SW2 = 0x69 0x88 (Incorrect Secure Messaging Data Objects)

强颜欢笑 提交于 2019-12-22 09:28:53
问题 I'm trying to read the EF.COM file from an ePassport (a.k.a MRTD). What I have successfully done: -Selected the ePassport application using the AID 0xA0,0x00,0x00,0x02,0x47,0x10,0x01 -Requested a challenge nonce from the epassport chip -Successfully authenticated by responding to that challenge as per doc9303 appendix 5. Doc 9303 can be viewed here: http://www.icao.int/publications/Documents/9303_p1_v2_cons_en.pdf It worked and now I am attempting to read the EF.COM file using the secure