NFC flow in ICS 4.0.3.

356 views
Skip to first unread message

Nishitha Adaranthe

unread,
May 3, 2012, 4:57:40 AM5/3/12
to Android Building
Even though NFC is found in packages, framework and external folders
of the android source, the link between NFC 's HAL and middleware is
missing.

We have referred a file called nfc_hw.c present in device/samsung
folder of the android source.

The device is getting listed in /dev folder as pn544 but when an
application is used to check if the device has NFC feature, the
returned result is false.

The NFC application includes

<uses-feature android:name="android.hardware.nfc"
android:required="false" />//(in AndroidManifest.xml)

hasSystemFeature(PackageManager.FEATURE_NFC) on PackageManager to see
if NFC is available on the current device.

The value returned is false.

So can anyone help as to how the gap between the NFC library (libnfc-
nxp) and HAL layer can be filled.





Dragos Tatulea

unread,
May 4, 2012, 5:01:45 AM5/4/12
to android-...@googlegroups.com


On Thursday, May 3, 2012 11:57:40 AM UTC+3, Nishitha Adaranthe wrote:
Even though NFC is found in packages, framework and external folders
of the android source, the link between NFC 's HAL and middleware is
missing.

We have referred a file called nfc_hw.c present in device/samsung
folder of the android source.

nfc_hw.c contains the eeprom_settings + path to dev used by NFC App to pass this information to the NFC Stack (libnfc-nxp) to flash them to NFC device. (see packages/apps/Nfc/jni/com_android_nfc_NativeNfcManager.cpp).

libnfc-nxp is actually an NFC stack + HAL (see libnfc-nxp/Linux_x86, which handles both i2c and uart drivers).

The device is getting listed in /dev folder as pn544 but when an
application is used to check if the device has NFC feature, the
returned result is false.

The NFC application includes

<uses-feature android:name="android.hardware.nfc"
android:required="false" />//(in AndroidManifest.xml)

hasSystemFeature(PackageManager.FEATURE_NFC) on PackageManager to see
if NFC is available on the current device.

The value returned is false.

So can anyone help as to how the gap between the NFC library (libnfc-
nxp) and HAL layer can be filled.


Do you actually have a NFC chip on your hw?

Nishitha Adaranthe

unread,
May 5, 2012, 12:37:04 AM5/5/12
to android-...@googlegroups.com
Thanks for the reply. I'll surely check this. Yes i do have NFC chip on the hardware.


--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

Akash Ramani

unread,
May 11, 2012, 3:15:30 PM5/11/12
to android-...@googlegroups.com
and is it a pn544 device (internal)?
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages