Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
* commit '366238178f7a6d26ce051150f4fb65e533c2fae4':
Use a 10s timeout in uart_read() in FW download mode.
|
|
* commit 'b13b27aa9bb96897e996cf89ed8412c46ef2cf07':
Use a 10s timeout in uart_read() in FW download mode.
|
|
|
|
|
|
This provides a path to flush RX, necessary when we enter FW download mode
with bogus data already in RX. This fixes a problem where NFC was dead on several
HSPA and LTE devices.
Also decrease FW timeout completition from 120s to 60s. Typically FW download
takes 30s, and 120 is unnecessarily large and causes a long delay to bring up
NFC when we need to retry FW.
Bug: 5468674
Change-Id: I0fd40c199daac861fe5acda4f2d214bdcff8e869
|
|
This provides a path to flush RX, necessary when we enter FW download mode
with bogus data already in RX. This fixes a problem where NFC was dead on several
HSPA and LTE devices.
Also decrease FW timeout completition from 120s to 60s. Typically FW download
takes 30s, and 120 is unnecessarily large and causes a long delay to bring up
NFC when we need to retry FW.
Bug: 5468674
Change-Id: I0fd40c199daac861fe5acda4f2d214bdcff8e869
|
|
|
|
workaround for Prime (DO NOT MERGE)." into ics-mr0
* commit 'ff39bc6d4fb3fa08fc55721a8962c713751fca09':
Remove NFC I2C workaround for Prime (DO NOT MERGE).
|
|
MERGE)." into ics-mr0
* commit '17abc6eb45b326f574c657e227670a8fddf9385e':
Remove NFC I2C workaround for Prime (DO NOT MERGE).
|
|
|
|
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
|
|
Change-Id: Ie0855f147030552cc1bec0ea05e59576650fa417
|
|
|
|
* commit '6dd948323de0f31b413c9f19a905f1c145c9c456':
Manual port of 6900b4 from gingerbread:
|
|
Patch to add Secure Download Mechanism in the libnfc
This patch permit to support secure download update and
also to avoid locking states in case of download failures
Bug: 5331837
Change-Id: Ia5b6d9baf57231b0193bbbe85c88c7df557017c6
|
|
Change-Id: Ibcd6e2299e3f03df1a5320041404a42a20546a57
|
|
to gingerbread-plus-aosp
* commit 'df674e5f0385f09d962a2659032ab1afb592b43b':
Patch to add Secure Download Mechanism in the libnfc
|
|
|
|
|
|
Change-Id: I9807e540bad19933452f4a9f86b74021265f29cf
|
|
|
|
* commit 'bcc8233be93ce2be4e8946ddcd5c33232c9f7a93':
Patch to add Secure Download Mechanism in the libnfc
|
|
Change-Id: I54b2b420552d876a5a39a1af7bf29436c16667a9
|
|
|
|
* commit 'dd163fe4ad38d2064de2913697907e45229a8dce':
Patch to add an API to load a FW image in the libnfc
|
|
* commit 'df82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0':
Patch to add an API to load a FW image in the libnfc
|
|
This patch permit to support secure download update and
also to avoid locking states in case of download failures
Change-Id: I98aa80976a67b18562ddcff4d085ed415dac4933
|
|
This new API permit to load the PN544 FW image when a download is needed
at boot time.
Change-Id: I2b3406d7ae0f0211123bd680ef914e9948c81eef
|
|
|
|
|
|
|
|
This event is used in the SE SetMode API to be able to enable/disable
card emulation with not writting the EEPROM area.
Change-Id: I80047d678f683c4dd364544c690440eb8d807793
|
|
devices are moving in to the range and moving out of the range quickly
Change-Id: I090367ad17de443c6af41c9ad507557e3eaaf7f9
|
|
|
|
This reverts commit 39038381fd4a9922cdd07251ce1a0a8840681bcd.
|
|
|
|
This event is used in the SE SetMode API to be able to enable/disable
card emulation with not writting the EEPROM area.
Change-Id: Iace438c3625f6a084c8bcc66d787a7a60d56b8f8
|
|
Modified implementation for Felica card handling includes following:
- SENSF_REQ with RC=0x00 during discovery
- T3T NDEF detection with SC = 0x12FC
- If card is not NDEF then poll for primary SC
- NFC-F presence check with check for expected IDm
Change-Id: I8e7e83a36ec2c6e8e423df751c4bc73badb6edb5
|
|
Change-Id: I23cc7b0d87009f561a4b0dae352b5fb445530c91
|
|
|
|
Added for check of first 4 bytes 0x00 before performing NDEF format of ISO15693 tag.
Updated with usage of Read one block.
Change-Id: I7a5299edb67ca70f7af5ef5a0909225c0bdf8cb0
|
|
|
|
|
|
Change-Id: I4370e0216d87765c3ccb2df760327a38228b3fe8
|
|
This indicates the pn544 trim values were over-written by the faulty FW
procedure, I have a FW to reset trim values to default.
Revert this commit before ship. It should only be needed for dev phones.
Change-Id: I77d3d66b6937f181c83022a0e0791a44974c51ae
|
|
|
|
The LLCP stack was holding onto the "I'm allowed to send" token
for the full link time-out, even if there was nothing to send. This
caused very bad round-trip delays. This fix just gives the token
back immediately if there's nothing to send.
Change-Id: Ib7bf87bd5fada2b682d28c9502b5ef010cd39815
|