我有一个错误,但我不知道 xc2xb4 是什么问题。
\n\n我正在尝试为一个项目编译一个 Open NFC 示例。示例是 test_ndef_url。我不知道问题是否出在编码错误或Windows库上,shellapi.h。
\n\ntest_ndef_url代码是:
\n\n /*\n * Copyright (c) 2007-2012 Inside Secure, All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on …Run Code Online (Sandbox Code Playgroud) 是否有一些 API,我可以使用它来读取 Android 设备上每个 NFC 的信用卡信息?或者是否可以使用某些 API 检索每个信用卡唯一的 ID?
我尝试过看起来很棒的Triangle IO,但他们的服务器似乎无法工作,因为我已经克隆了他们的示例 github 项目,并且还注册了一个密钥,正如他们在设置教程中所要求的那样。但是当我在 Android 上安装该应用程序时,出现错误:“提供的应用程序信息无效。请仔细检查您的应用程序 ID、访问 ID ...”。
然后我从 Google Play 下载了他们的官方示例应用程序。它给了我同样的错误。因此我假设 Triangle IO 服务器无法工作,是否有人使用 Triangle 并可以向我确认这一点?
我只想使用 HCE 通过 Android 应用程序模拟交通卡。我对卡的AID感到困惑。我必须知道卡的 AID 是什么吗?
根据基于主机的卡模拟文档:
如果您正在模拟现有 NFC 读卡器基础设施的卡,这些读卡器正在寻找的 AID 通常是众所周知的且公开注册的(例如,Visa 和 MasterCard 等支付网络的 AID)。
那么,有什么意义呢?
PS 我不认为我的卡的 AID 是众所周知的。即使是,我怎么知道它是什么?
我想使用以下代码格式化从未使用过的 MIFARE Ultralight 卡:
NdefFormatable formatable = NdefFormatable.get(tag);
if (formatable != null) {
String result = "Afifly";
try {
formatable.connect();
try {
formatable.format(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)));
} catch (Exception e) {
// let the user know the tag refused to format
System.out.println("error ");//+getStackTrace(e));
result = "Fail 1";
}
} catch (Exception e) {
// let the user know the tag refused to connect
System.out.println("eeeerrror 2"+e);
result = "Fail 2";
} finally {
try {
formatable.close();
} catch (IOException …Run Code Online (Sandbox Code Playgroud) 据我了解,印度目前不支持 Apple Pay。
\n\n但我的问题是,是否仍然可以购买支付终端机(来自链接 1)并且:
\n\n实际用例是:
\n\n那么上述几点对于无法使用 Apple Pay 的地区是否有效?
\n\n详细信息:\n增值服务 (VAS) 协议由 Apple 设计,旨在促进 Apple 设备和支持 NFC 的支付终端之间通过 NFC 进行奖励交易。
\n\n\n我知道,由于 Android 6 应用程序必须在使用 Android 功能之前请求权限。
我有两个不同的应用程序。其中一款应用程序可对 NFC 标签进行写入和读取。另一个只是读取标签。在这两种情况下,我都将权限包含在清单文件中。
我还应该请求运行时权限吗?阅读和写作之间有区别还是两者都相同?
我问这个问题是因为 Android 系统会在读取标签时启动我的应用程序。那么我应该在启动时询问还是 NFC 有所不同?
我在 Xamarin IOS 上设置 NFC 读取器时遇到问题。配置示例如下: https: //learn.microsoft.com/en-us/xamarin/ios/platform/introduction-to-ios11/corenfc
启动应用程序后,NFCNdefReaderSession.ReadingAvailable 始终为 false,并且在设备日志中:
[NFCNDEFReaderSession beginSession]:255 error:Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process.}
Run Code Online (Sandbox Code Playgroud) 用Android保护Mifare Ultralight很容易,有Ndef.makeReadonly()方法可以.但是Mifare Classic标签会返回Ndef.canMakeReadonly() == false,所以这是不可能的.我听说可以通过设置a或b键来读取或至少用密钥保护它.
MifareClassic技术中有这种方法: authenticateSectorWithKeyB(int sectorIndex, byte[] key)
有谁知道这是否可用于在mifare经典标签上发送只读消息的ndef消息?或者我怎样才能在标签上写一个ndef消息,然后以某种方式锁定新的写入?
id想在android上编写我的第一个NFC应用程序.为此,我使用Android开发人员链接:http://developer.android.com/guide/topics/nfc/index.html
这里用于指定支持的技术,您必须创建一个xml文件,如下所示:
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<tech-list>
<tech>android.nfc.tech.IsoDep</tech>
<tech>android.nfc.tech.NfcA</tech>
<tech>android.nfc.tech.NfcB</tech>
<tech>android.nfc.tech.NfcF</tech>
<tech>android.nfc.tech.NfcV</tech>
<tech>android.nfc.tech.Ndef</tech>
<tech>android.nfc.tech.NdefFormatable</tech>
<tech>android.nfc.tech.MifareClassic</tech>
<tech>android.nfc.tech.MifareUltralight</tech>
</tech-list>
</resources>
Run Code Online (Sandbox Code Playgroud)
我的问题是,在标签上我得到以下错误:"错误:找到标签技术列表,其中项目是预期的"
我的申请目标是2.3.3.我认为这必须符合这个目标......
任何的想法?
谢谢!
我一直在寻找Android平台上的nfc,我有几个RFID标签,但他们不想与nexus进行交互.我相信这些标签并不是由andriod nfc模块支持的(例如,我可以阅读我的大学旧卡,这是mifare classic).作为参考我已经链接到销售这些东西的网上商店.可以在android上使用这些标签吗?是不是很多编码/黑客?
这是rfid标签的链接:http: //www.parallax.com/StoreSearchResults/tabid/768/txtSearch/tag/List/0/SortField/4/ProductID/693/Default.aspx
任何指导表示赞赏
nfc ×10
android ×7
apdu ×1
applepay ×1
c++ ×1
credit-card ×1
format ×1
hce ×1
ios ×1
mifare ×1
ndef ×1
open-nfc ×1
passkit ×1
permissions ×1
rfid ×1
visual-c++ ×1
wallet ×1
xamarin ×1
xamarin.ios ×1