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?