BlackBerry 10 NFC Support - nfc

I have to develop an application for BB 10 device which sends data via NFC to an USB NFC reader attached to the PC. I am new with BB 10 device and don't know what are the supported card types and data protocols. Please share the BB 10 device NFC capabilities if any one have. I have the following doubts regarding BB 10 NFC architecture.
What are the supported card types (ISO 14443-4, Mifare, Desfire, ...) that can be read using a BB 10 device?
What are the supported Pear to Pear data exchange (SNEP, LLCP,...) protocols?
What are the supported Card emulation (ISO 14443-4, Mifare, ...) Modes?
I prefer card emulation mode for exchanging data with the USB NFC Reader (ACS ACR 122 U). Is that is possible with the BB 10 alpha device.
Thanks in advance....
Best regards
Pranav

You may find useful the following link:
http://supportforums.blackberry.com/t5/tkb/articleprintpage/tkb-id/java_dev#tkb/article-id/656

BlackBerry 10 has excellent support for NFC. I would start by taking at the look at the documentation:
Also, there is a 6 part series of articles on the BlackBerry Developer Blog which goes through all the main aspects of developing an NFC app. The first part is here.
Specifically you probably want to take a look at part 5 which talks about virtual card emulation

Related

iOS 13 NFC Core - Reading NDEF Tags (e.g. ISO 14443 Type A JavaCard)

Can I read an NDEF tag on a javacard using an applet like https://github.com/OpenJavaCard/openjavacard-ndef with an iPhone 7 or above (with Core NFC support)? It seems like NFC was particularly enhanced for iOS 13. The documentation https://developer.apple.com/documentation/corenfc indicates cards adhering to the ISO 7816 or ISO 15693 standard can be read with the iPhone. Can anyone confirm this?
I have two javacards available:
JavaCOS A22 dual interface Java card - 150K (version 2.2.2)
NXP J3H145 Dual Interface Java card - 144k (version 3.0.4)
I've installed the app on both cards and can't read it from the iPhone.
I've tested with https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app - it can detect my Yubikey, but not a JavaCard running NDEF applet. What sorts of NFC tags can be read from the iPhone?
I believe that iOS can read the Standard NFC Type plus with iOS 13 it can read additional Tag AId's (Aplication Id) of Type 4 cards (This is just from reading the Documentation).
Also having read the Spec of the NFC Type 4 Cards http://apps4android.org/nfc-specifications/NFCForum-TS-Type-4-Tag_2.0.pdf which is for the non manufacturer specific type of Tags that work with Tag AId's
I noticed that the applet might not be using the right AId?
The Spec (Section 5.4.2) says the AId for NDEF is D2760000850101h
The Applet https://github.com/OpenJavaCard/openjavacard-ndef/blob/master/applet-full/build.gradle seems to be using aid = '0xD2:0x76:0x00:0x01:0x77:0x10:0x02:0x11:0x01:0x00:0x01'
This is a guess but might be worth a try using the AId the NFC spec says
Which on further reading is what https://github.com/OpenJavaCard/openjavacard-ndef/issues/4 is on about.
The default applet AId they are using as default is one of their Self Assigned ones (see https://openjavacard.org/resources/aid-now.html and not the NFC Spec one)
Note that with iOS 13 you could write your own programs to read this Different Aid now. Using https://developer.apple.com/documentation/corenfc/nfciso7816tag with the right AId
Also https://developer.apple.com/documentation/corenfc/nfctagreadersession (which also say the AId for Standard NDEF is D2760000850101 )

Is it possible to emulate a felica card with an Android device?

According to Android documentation:
Android (4.4 and above) supports emulating cards that are based on the NFC-Forum ISO-DEP specification (based on ISO/IEC 14443-4) and process Application Protocol Data Units (APDUs) as defined in the ISO/IEC 7816-4 specification
On the other hand, Falica cards are compliant with JIS: X6319-4 as per Felica's wiki entry.
So, presumably it is not possible to use an Android device for emulation of Felica cards. Is that accurate?
That is correct. But, there are currently patches from Sony on AOSP under review that would allow card emulation of Felica cards. See for example https://android-review.googlesource.com/#/c/128491/
Suica card is emulated with Suica Mobile app, so it is possible

Is there an NFC API for the Sony SmartWatch 2?

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,
Markus
The NFC in the SW2 is only used for pairing it to a phone. Sony does not support any API to read tags or transfer data using the NFC in the watch.

Functionatlity of Open NFC Framework

I have fundamental question about what Open NFC framework is for. I want to write a program that will run on a PC to communicate with a NFC card reader connected to the PC through USB. The program will write to and read from NFC tags by commanding the NFC card reader.
Is Open NFC framework suited for this purpose? Or is it for developing programs that will run on NFC tags?
Aritra
OpenNFC is a software stack implementing NFC functionalities.
It is hardware independent, so in theory you could use it with an USB connected reader. The problem is, the only available HALs (Hardware Abstraction Layers) for OpenNFC are for an NFC simulator and Inside Secure hardware. Until we get some HALs for most common hardware, I'd say you should take look at http://www.libnfc.org/documentation/introduction
There are many NFC readers on the market, that are being sold with their own SDKs. With such SDKs you are 100% sure the code is compatible with the particular NFC reader.
BR
STeN

NFC reader with tablet [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to Connect External NFC Card Reader to Tablet(Android 2.3.3)
This is may be the duplication of this
How to Connect External NFC Card Reader to Tablet
I want to connect the nfc USB reader of http://www.sensorid.it/en/products/stickid.html
with a tablet running android OS 3.2. I need to read the nfc tags using my app and above mention NFC reader.
I am not able to conclude any thing so far. Is this possible or not?
If yes, what should be the starting point for me?
Thanks
After some research..my conclusion is that we can not talk with NFC reader without the help of manufacturers, as they knows how to communicate with it..what protocol they use.
So the solution of my problem is to USE a NFC reader which is HID compatible.
Like one I found at http://www.rsdm-systems.de/products/de/RFID-Systeme-LF-HF/RFID-Sticks/RFID-Stick-Mifare-Classic-USB.html
This solved my problem.
You mostly will not be able to use it directly.
3.2 supports host functionality, so it will recognize a USB device.
I doubt if your reader will be able to talk directly to the OS as there are in between layers which it has to go through before it can be read and converted into OS understandable values.
You should talk to the manufacturers to see if they have found a way. Then yyou should go ahead and buy it.

Resources