nfc

How to get AID for reader Host based card emulation

天涯浪子 提交于 2019-12-31 10:48:47
问题 I'm trying to do Host card emulation on an Android device using this example using ACR1281U NFC tag reader. This is the kind of application I want to make. As per the Android documentation and the example, it is required to register an AID in the Android project: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:requireDeviceUnlock="false"> <aid-group android:description="@string/aiddescription" android:category=

How to get AID for reader Host based card emulation

ぃ、小莉子 提交于 2019-12-31 10:48:06
问题 I'm trying to do Host card emulation on an Android device using this example using ACR1281U NFC tag reader. This is the kind of application I want to make. As per the Android documentation and the example, it is required to register an AID in the Android project: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:requireDeviceUnlock="false"> <aid-group android:description="@string/aiddescription" android:category=

Write on a NFC tag using simple php form

独自空忆成欢 提交于 2019-12-31 05:34:14
问题 I'm using NFC for the first time, I have to write a simple php form with some data (id, name, qty, etc) and store these values on an NFC tag (I would use GET or POST methods). How can I store these data on an NFC tag? I have a GoToTags device to store information in a NFC tags, but I don't think I can use it to store my "custom" values. 回答1: A PHP web application's code is executed on the server side, so if you want to interact with hardware (NFC reader, NFC tag) on the client side, you will

My cordova application not launching after NFC tag detect

一世执手 提交于 2019-12-31 03:15:15
问题 I am using Apache cordova to build android applications. I made an application with NFC feature. we already written data into NFC tag, with mimetype: myApp/firstNFCApp . Inside my application whenever detect tag with this mimetype my application will read data and showing that data into user friendly manner. This way I implemented, it's working fine.This was the code I written to fetch data from tag nfc.addNdefListener( function(nfcEvent){ console.log(nfc.bytesToString(nfcEvent.tag

How can I send message from HostApduService to an activity? [closed]

为君一笑 提交于 2019-12-31 02:19:28
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I would like to pass a string to an Activity easily. Something like callback would be needed because when the string has to be passed then the Activity has to do something. public class MyHostApduService extends HostApduService { @Override public byte[] processCommandApdu(byte[]

怎么用NFC手机快速读取二代身份证

我与影子孤独终老i 提交于 2019-12-30 19:12:50
经常在一些环境中需要用到身份证读取,比如网吧、银行、门禁等等,但是传统的身份证读取工具很大不说,价格还不便宜。近期闲来无事研究了一下,发现是靠近场通信功能进行的身份证读取,刚好我手机上也带的有NFC,那能不能用手机直接读身份证信息呢。 说干就在,在网上找了一圈后,还真让我找到一个好用的身份证读取的开发包,集成起来很简单,只需要自己打开NFC,然后需要调用2个接口就可以搞定,在这特地记录下来,以防以后忘了。 这个开发包有安卓和PC版的,PC版的据说是可以支持多开发语言的,需要专用读卡器,第一次购买还可以用开发者身份打折买一个试用的。不过我这次主要是为了用我手机进行读身份证,所以这次就先用安卓版的开发包了,安卓的支持NFC读身份证和OTG读身份证,同样OTG需要用到专用读卡器,NFC读身份证只需要手机支持NFC功能就可以了。 下面是步骤: 1.获取管理权限:这个开发包里已经集成了,只需要调用一句代码就可以搞定,这个还是挺方便的。 PermissionUtil.grantNeedPermission(this); 2.打开NFC,并监听NFC事件,这段如果不懂,直接在网上搜安卓使用NFC就可以看到介绍 private NfcAdapter mAdapter = null; // 定义NFC适配器 mAdapter = NfcAdapter.getDefaultAdapter

Open NFC Simulator not working for Android emulator

别等时光非礼了梦想. 提交于 2019-12-30 04:45:09
问题 I'm trying to emulate NFC card reading in Android Emulator, using Open NFC v4.5.2 for that purpose. I have followed all steps indicated here: HOWTO use the NFC Simulator with the Open NFC add-on included in the delivery I have also tried with insturctions from other StackOverflow posts such this or this, with no success. When I start the emulator I'm not able to turn-on NFC in Settings->Wireless & networks->NFC , and NFC Controller Simulator doesn't show any activity: Following is the capture

Android NFC read ISO15693 RFID Tag

狂风中的少年 提交于 2019-12-30 04:32:13
问题 I am trying to read an ISO15693 RFID tag with the nfc android library: Here is more info on the Tag: http://img42.com/gw07d+ The Tag ID is read correctly but the data in the tag is not. onCreate Method: // initialize NFC nfcAdapter = NfcAdapter.getDefaultAdapter(this); nfcPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, this.getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0); onNewIntent method: if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction()) ||

Reading Mifare Classic returns strange characters

流过昼夜 提交于 2019-12-29 09:19:06
问题 When reading a MIFARE card with Android and converting the data to UTF-8 I get strange characters like �. I'm trying to build an application that can read some kind of ID card we're using. The problem now is that I get weird characters between words and some words are split between blocks so how can I safely get a word I'm looking for? For instance my readings is something like this: 43224���19032019�� at block 2 sektor 2 bindex :8 and with splitting where rest of the number starting with 19

NFC with JavaScript [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-29 07:44:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . is there any JavaScript NFC API? I would like to read tags from a WebApplication (without PhoneGap). Or is there any way to use the NFC from JavaScript through JAVA? Best 回答1: You can't read tags from webApplication. Browsers does not communicate with NFC resources (it bored me too!!) The unique way to