Commit Graph

6 Commits

Author SHA1 Message Date
Min Xu 7e3c9959e1 iso_uart: Print more errors, not just overruns 2014-11-11 22:30:54 +01:00
Min Xu ab325fc295 Ensure to transmit current req_ctx on RESET/VCC events
When any of the following events occur:
* VCC_PHONE off
* nRST
* RST

we tranmsit the current req_ctx, if there is data pending.

This ensures that for any successive data, the ATR flag in the next
req_ctx containing the data, not in the previous req_ctx.  It also
ensures that the ATR is aligned at 0 offset in the new req_ctx, which is
an assumption the host software makes but the previous code didn't
ensure.

Furthermore, we introduce a periodic flushing of any pending but
incomplete req_ctx.
2014-11-11 22:30:54 +01:00
Min Xu 9bd1b003a6 iso7816_uart.h: add missing #ifdef/endif to avoid multiple inclusion 2014-11-11 22:30:54 +01:00
Min Xu 7fcc62940d simtrace: Add heartbeat message to debug console 2014-11-11 22:30:54 +01:00
Harald Welte 868b6d0c68 simtrace: introduce statistics
the statistics count various events like overruns, parity errors,
missing rctx and can dump those stats via USB as well as on the serial
console.
2012-03-23 00:03:45 +01:00
Harald Welte 3c29506f17 simtrace: add TC based waiting time counter, signal ATR / expiry via USB 2010-11-18 14:11:03 +01:00