rfid

Mifare authentication

杀马特。学长 韩版系。学妹 提交于 2019-12-01 08:24:55
Say I want to authenticate to Mifare Classic. How do I know the exact kind of APDU to send to the card? Example. This code: bcla = 0xFF; bins = 0x86; bp1 = 0x0; bp2 = 0x0; // currentBlock len = 0x5; sendBuffer[0] = bcla; sendBuffer[1] = bins; sendBuffer[2] = bp1; sendBuffer[3] = bp2; sendBuffer[4] = len; sendBuffer[5] = 0x1; // Version sendBuffer[6] = 0x0; // Address MSB sendBuffer[7] = currentBlock; if(keyradioButton->Checked==true) // Address LSB sendBuffer[8] = 0x60; // Key Type A else if(keynumberradioButton->Checked ==true) sendBuffer[8] = 0x61; // Key Type B sendBuffer[9] = keynumber; //

Mifare authentication

南楼画角 提交于 2019-12-01 07:06:06
问题 Say I want to authenticate to Mifare Classic. How do I know the exact kind of APDU to send to the card? Example. This code: bcla = 0xFF; bins = 0x86; bp1 = 0x0; bp2 = 0x0; // currentBlock len = 0x5; sendBuffer[0] = bcla; sendBuffer[1] = bins; sendBuffer[2] = bp1; sendBuffer[3] = bp2; sendBuffer[4] = len; sendBuffer[5] = 0x1; // Version sendBuffer[6] = 0x0; // Address MSB sendBuffer[7] = currentBlock; if(keyradioButton->Checked==true) // Address LSB sendBuffer[8] = 0x60; // Key Type A else if

How to read from a usb rfid reader?

孤街醉人 提交于 2019-11-30 16:25:34
I have bought a usb rfid reader. How can I read data when user puts an rfid tag in front of the device? my computer identifies the device as an Human Interface Device. If it identified it as an com device it was much easier to read from the device with serialPort object but I dont know how to read from a usb device. Any help? This is what I did when I had the same problem. using System; using System.Text; using LibUsbDotNet; using LibUsbDotNet.Main; namespace Examples { internal class ReadPolling { public static UsbDevice MyUsbDevice; #region SET YOUR USB Vendor and Product ID! public static

Mifare 1K authentication keys

大城市里の小女人 提交于 2019-11-30 14:12:52
问题 I have a MIFARE 1K tag. Some blocks can be written/read using authentication key A, while other block can be written using authentication key B. Why? How can I change all blocks to be written/read, for example, with key A? For example, I can write the key block 07 using key A, and I can also change the key A for this key block, but I can't write on it using key B, and I can't change the key B for this key block. Why should I write/read using key A instead of key B? What's the difference? 回答1:

Android NFC read ISO15693 RFID Tag

浪子不回头ぞ 提交于 2019-11-30 14:02:58
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()) || NfcAdapter.ACTION_TECH_DISCOVERED.equals(intent.getAction())) { currentTag = intent.getParcelableExtra

RFID

烈酒焚心 提交于 2019-11-30 12:49:49
[BJMEngine] ::4 width="960" height="640" #width="576" #height="384" ::6plus #width="372" #height="662" ::pad #width="384" #height="512" cachehome="../../Games/RFID_CODE_Client/RFID_cn_cn_Client/trunk/trunk/sim/cachehome" apphome="../../Games/RFID_CODE_Client/RFID_cn_cn_Client/trunk/trunk/sim/apphome" apptitle="RFID" adapttype="fixedheight" frameworkhome="E:/cocos2d_3/bin/1.1.0/BJMScriptFramework/lua" usepackage="0" useupdate="0" useconsole="1" usecommand="1" useplist="0" usehor="0" appversion = "1.0.0" appcode="RFID" operator="youmi_offline_android" plugins="youmi_offline_android" usetest="0"

Connection error when reading Android NfcV tags

半城伤御伤魂 提交于 2019-11-29 12:48:48
I have an Android app that reads NFC tags. Everything works fine on the LG Nexus 4 but on Samsung Galaxy S5 I only get I/O exceptions (tested on multiple phones). So, tags are of type NfcV and I get the I/O exception when calling connect() on the NfcV (further down it is error code -5 ERROR_CONNECT). NFC TagInfo by NXP can read the the memory content of the tag on the SG5S - are there other ways of reading NfcV tags than with connect() and transceive() ? What differences between NFC chips will cause my app's connection to fail on one phone but not the other (while other apps read it fine)? Are

Set own authentication keys MiFare Classic with APDU C#

99封情书 提交于 2019-11-29 02:37:38
I'm using the SMARTCARD API from CardWerk. How can I change the default key ( (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF ) using an APDU? The APDU consits of a CLASS, an INSTRUCTION, P1, P2. I have been reading documentation but I'm unable to find what parameters do I need to change the actual key to a new one. The process for changing the keys of a MIFARE Classic card is like this: Authenticate to the secor for which you want to change the key. Read the sector trailer using normal read operation (or generate a new sector trailer containing the access bytes you want

RFID技术与条码技术的比较

匆匆过客 提交于 2019-11-28 21:55:25
RFID技术和条码技术都是物联网时代的一种自动识别技术,都是对物体贴上标签进行标识。但是在具体的技术原理、行业应用上却有着非常大的差别。 我们都很熟悉条码,在日常的生活中经常会见到,比如超市购买的商品,图书上等有一维条码,在结账的时候,售货人员会利用条码扫描仪进行扫描。二维条码也是我们比较熟悉的,比如现在的智能设备可以读取二维码,实现信息的识读,二维码在微信等APP已经非常的普遍。RFID技术现在也逐渐的出现在我们的生活当中,比如现在大型超市部分商品都贴上了RFID电子标签,主要是化妆品、衣服等,一些高档品牌的酒、农产品也利用了RFID技术进行防伪与追溯。 条码主要有一维条码和二维条码,条码技术主要有以下特点:简单、信息采集速度快、可靠性高、灵活实用、自由度大、低成本。RFID技术的优点是不局限于视距,电子标签也具有读写能力,携带大量的数据,难以伪造、智能性比较高。 来源: https://blog.51cto.com/14507446/2433550

Reading RFID with Android phones

霸气de小男生 提交于 2019-11-28 15:54:42
I did enough research on reading RFID tags using Android phones(smart phones). My understanding of this is that for NFC-enabled smart phones (Nexus S) it is possible to read RFID tags, but there are restrictions. For non-NFC-enabled Androids we need a RFID reader to which we can communicate from Android using Bluetooth. My question is: What are the SDK which we use for reading RFID tag from Android Phone(NFC enabled)? If I have to read using Non NFC enabled phone, is there any standard reader available who provides SDK for development purpose? BrOSs You can hijack your Android audio port using