History log of /external/libnfc-nxp/src/phLlcNfc_Interface.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a12acb119fa8cda91ca23d191b41b9438402e4d1 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I935ee4450e2e62ced1537bafb787ad402cfcb69c
/external/libnfc-nxp/src/phLlcNfc_Interface.c
113bdd7504d69f483c4208bc30a457b7ff4b69fa 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I05dd3a5e5f671c0fdc17bf4e3d52395ccdb56e45
/external/libnfc-nxp/src/phLlcNfc_Interface.c
5ea62ad25e2050f543d8e2104f5ffc1bb2c1ef28 20-Oct-2011 Nick Pelly <npelly@google.com> Fixes to LLC and DAL to handle unreliable UART.

Use a 100ms timeout in uart_read() when reading LLC payload only.

Allow 200 retries on host.

Note that we use pn544 timeout retransmit instead of an explicit REJ
(do not use CRC_ERROR_REJ). The reason is that after a
dropped frame, a host timeout on read() is the only reliable way to recover
frame alignment, but if we send an immediate REJ then we are constantly reading
and can never regain frame alignment.

Also note that the pn544 timeout (200ms) is higher than the host (100ms). This
allows the host to abort a partial read and return to known state before the
pn544 re-transmits.

We have to turn off timeout for FW mode. Typical read time is ~100ms, but some
are 1 second+

Modify DAL & LLC layer to more reliably handle partial frames by searching for
a LLC length byte again, and log the various error paths.

Also introduce debugging tools:

debug.nfc.LOW_LEVEL_TRACES 2
Will enable LLC header decoding in the trace output.
Only read at NFC init time, use /data/local.prop to enable.

debug.nfc.UART_ERROR_RATE X
Will randomly inject errors at the uart transport, with a probability of X/1000
for every byte. 50% of those errors will be a dropped byte, 50% will be
corrupted. Recommend X=10. FW mode can't handle any errors. Can be enabled
after boot.

adb shell dumpsys nfc
Will now print the number of errors detected at the LLC layer.

Change-Id: I739ed193e3d4caa563a866b6a9d834c154917962
/external/libnfc-nxp/src/phLlcNfc_Interface.c
b313c3d09c64c31439332e88e0aca676ae1858b5 26-May-2011 Daniel Tomas <dtomas.nxp@gmail.com> Patch to add the windowing support in the libnfc

This patch enables windowing of LLC packets send from chipset to host.
The host will now wait for up to 4 LLC packets from the chipset before
sending an ACK (S-Frame RR).

Change-Id: I6a70e1d780847a104e3ec8e403593a69e222aec9
/external/libnfc-nxp/src/phLlcNfc_Interface.c
34ff48f6cd6595a899e05fbd56f4c84891840d3f 27-Jun-2011 Nick Pelly <npelly@google.com> libnfc spring cleaning

o Fix most libnfc warnings, from 360 to 18
o Make DAL_DEBUG much less verbose and more useful
o Clean up Android.mk

Done with minimal textual diff to minimize merge conflicts.

Change-Id: I918645500723ff7bb092ad9959628fcabac45bec
/external/libnfc-nxp/src/phLlcNfc_Interface.c
5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a 23-Sep-2010 Nick Pelly <npelly@google.com> Initial libnfc checkin

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24
Signed-off-by: Nick Pelly <npelly@google.com>
/external/libnfc-nxp/src/phLlcNfc_Interface.c