hce

The PN532 configured as target has been released by its initiator

折月煮酒 提交于 2019-12-04 10:08:07
I'm trying to put my PN532 in card-emulation mode. When i send the TgGetData command the error i get an error back from the reader. 1 . Read register {(byte)0xFF,0x00,0x00,0x00,0x08, (byte)0xD4, 0x06, 0x63, 0x05, 0x63, 0x0D, 0x63, 0x38 } RESPONSE :: D507 07 07 15 9000 2 . Update registers byte xx = (byte) 07; byte yy = (byte) 07; byte zz = (byte) 15; xx = (byte) (xx | 0x004); yy = (byte) (yy & 0x0EF); zz = (byte) (zz & 0x0F7); 3 . Write register {(byte)0xFF,0x00,0x00,0x00,0x11, (byte) 0xD4, 0x08, 0x63, 0x02, (byte) 0x80, 0x63, 0x03, (byte) 0x80, (byte) 0x63, (byte) 0x05, xx, 0x63, 0x0D,yy,

Can we emulate NFC cards in iOS 13?

谁都会走 提交于 2019-12-04 07:19:02
Apple just announced new NFC Core API to public. Here is what they said. Core NFC With Core NFC framework, your apps can now support tag writing, including writing to NDEF formatted tags. The framework also provides supports for reading and writing tags using native protocols such as ISO 7816, MIFARE, ISO 15693, and FeliCa. For more information, see the Core NFC framework documentation. https://developer.apple.com/ios/whats-new/ So, now we have write and read API, and I read all documentation about Core NFC, but I couldn't find about card emulation. Does this mean we can emulate the card like

ACR122u card-emulation mode send PN532 commands

浪尽此生 提交于 2019-12-04 06:42:26
问题 I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't figure out how I can send the actual PN532 command for example: FF000000 08 D406 6305 630D 6338 FF000000 11 D408 6302 80 6303 80 6305 xx 630D yy 6338 zz I have come this far: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal>

Android 4.4 hce (host-based card emulation) “processCommandApdu” apdu length

只愿长相守 提交于 2019-12-03 20:47:56
I've tested my Android Java application with Nexus 4, Nexus 5 and Samsung Galaxy S4 phones. In the test, the reader sends APDUs changing in length up to 252 bytes. Nexus phones receive APDUs successfully. On the other hand the Galaxy S4 phone can't receive APDUs which contain more than 128 bytes. It receives only the first 128 bytes of the sender's 252 bytes. How can I determine a device's maximum receivable APDU size? Currently there is no method to find the maximum receivable APDU length (except for trial and error). Regarding maximum receivable APDU length there is an open AOSP bug report (

Set application default payment service

依然范特西╮ 提交于 2019-12-03 19:15:49
问题 Let's think about a case where user has installed multiple applications capable of NFC HCE payments. Those application services are visible under settings NFC Tap and Pay. How to programmatically change your application to be the default payment service if it's not? CardEmulation seems only to have API to query if service for category is default. Thanks. 回答1: The main idea behind having that UI is that the user can decide on which payment app should be the default app. Consequently, there is

Making Host Card Emulation work for payment

老子叫甜甜 提交于 2019-12-03 10:14:22
问题 I've been using StackOverflow for years now, always finding answers to my questions before even asking them, but today I'm stuck. As I happen to have a working POS terminal (the EMV Chip&Pin kind), I wanted to look into host card emulation. The terminal works with the latest version of Tapp, so I know that the terminal is good and that my N7 with Kitkat can actually do payment (or at least the terminal do a series of good sounding bleeps and bloops, and the tablet launch Tapp's enrollment

How to get AID for reader Host based card emulation

拥有回忆 提交于 2019-12-03 00:23:13
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="other"> <aid-filter android:name="F0010203040506"/> <aid-filter android:name="F0394148148100"/> </aid

Java Card Applet and Host-based Card Emulation of Android Kitkat 4.4

强颜欢笑 提交于 2019-12-02 13:31:51
问题 I would like to create NFC Payment Application based on Android Kitkat 4.4 which now support the NFC Card Emulation Mode for both not involving secure element and involving secure element. I would like to let My Application involve a secure element. So, I have a question. The Android KitKat can let my application access to the java card applet which is installed into a secure element? 回答1: No, while the Android HCE documentation lists the possibility to use secure element-based card emulation

ACR122u card-emulation mode send PN532 commands

无人久伴 提交于 2019-12-02 08:21:38
I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't figure out how I can send the actual PN532 command for example: FF000000 08 D406 6305 630D 6338 FF000000 11 D408 6302 80 6303 80 6305 xx 630D yy 6338 zz I have come this far: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals; try { terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); Card

Java Card Applet and Host-based Card Emulation of Android Kitkat 4.4

送分小仙女□ 提交于 2019-12-02 04:13:43
I would like to create NFC Payment Application based on Android Kitkat 4.4 which now support the NFC Card Emulation Mode for both not involving secure element and involving secure element. I would like to let My Application involve a secure element. So, I have a question. The Android KitKat can let my application access to the java card applet which is installed into a secure element? No, while the Android HCE documentation lists the possibility to use secure element-based card emulation, there are several problems hindering the use of a secure element in current devices: Nexus devices have a