summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace/main_simtrace.c
Commit message (Collapse)AuthorAgeFilesLines
* Ensure to transmit current req_ctx on RESET/VCC eventsMin Xu2014-11-111-0/+3
| | | | | | | | | | | | | | | | | | 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.
* simtrace: Add heartbeat message to debug consoleMin Xu2014-11-111-0/+9
|
* simtrace: introduce statisticsv0.5Harald Welte2012-03-231-1/+24
| | | | | | 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.
* simtrace: implement SIM power switching APIHarald Welte2012-03-221-16/+46
| | | | | | | | | there is now a high-level command by which we can swithc the VCC supply of the SIM cards. For some reason, the _PASS variant (passing through the voltage from the phone) doesn't seem to work reliably. It might be that we are draining reverse current throught the LDO once we supply SIM power that way.
* Make sure we don't forward power _and_ supply SIM power at the same timeKevin Redon2011-12-181-0/+10
| | | | | | | | The FPF2005 has no reverse voltage blocker, this is why the 3.3V from the LDO flows back into VCC_PHONE. It even damages the chip (so says the datasheet) I corrected the double power source problem by disabling the LDO (see patch), but still 1.8V does not work and 3.0-3.3V is used. I have to look for other reasons.
* simtrace: initialize sniffer mode right after start-upHarald Welte2011-06-301-18/+22
|
* simtrace: switch VCC_SIM into output mode, as we use it to supply VccHarald Welte2011-06-211-2/+8
| | | | | | This is just a temp rework in the 1st generation prototype, as the bus switch has too high resistance for passing throuhg Vcc from the phone to the SIM.
* simtrace: introduce mode sniffer / mitm switchingHarald Welte2011-06-171-2/+46
|
* simtrace: add support for the analog bus switchHarald Welte2011-06-161-1/+10
|
* typo: Fix typo, transform reqyests to requests.Holger Hans Peter Freyther2011-01-311-1/+1
|
* simtrace: add TC based waiting time counter, signal ATR / expiry via USBHarald Welte2010-11-181-3/+7
|
* Initial version of a SAM7 USART based ISO7816-3 T=0 snifferHarald Welte2010-11-141-0/+98
personal git repositories of Harald Welte. Your mileage may vary