Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure to transmit current req_ctx on RESET/VCC events | Min Xu | 2014-11-11 | 4 | -2/+31 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | iso7816_uart.h: add missing #ifdef/endif to avoid multiple inclusion | Min Xu | 2014-11-11 | 1 | -0/+4 |
| | |||||
* | simtrace: Add heartbeat message to debug console | Min Xu | 2014-11-11 | 3 | -0/+20 |
| | |||||
* | update main_factory to write version 1,4,0 instead of 1,3,0 to OTP | Harald Welte | 2014-11-11 | 1 | -1/+1 |
| | |||||
* | simtrace: main_factory: Program OTP area with simtrace version | Harald Welte | 2013-11-17 | 1 | -3/+21 |
| | |||||
* | simtrace: Add OTP data containing production data | Harald Welte | 2013-11-17 | 2 | -0/+112 |
| | |||||
* | spi_flash: add code for OTP read/write | Harald Welte | 2013-11-17 | 2 | -18/+251 |
| | |||||
* | iso7816_uart: Make sure ATR is separated from normal APDU in all cases | Harald Welte | 2012-05-18 | 1 | -7/+12 |
| | | | | | Prior to this patch, the ATR was not send in a separate USB message for cards that are T=0 only. | ||||
* | 7816_uart: add comment about f/d calculation | Harald Welte | 2012-05-18 | 1 | -0/+2 |
| | |||||
* | simtrace: introduce statisticsv0.5 | Harald Welte | 2012-03-23 | 3 | -2/+58 |
| | | | | | | 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 API | Harald Welte | 2012-03-22 | 1 | -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 VCC / card detect more reliable | Harald Welte | 2012-03-22 | 1 | -2/+2 |
| | |||||
* | simtrace: Inform host of Fi/Di values (and flag change due to PPS) | Harald Welte | 2012-02-12 | 1 | -0/+5 |
| | |||||
* | simtrace: 7816 UART: Add missing entry in Di table | Sylvain Munaut | 2012-01-26 | 1 | -1/+1 |
| | | | | | | Add missing entry in Fi_table. It's apparently used as '64' in some reader and 'unsupported' in some other. For simtrace I guess we should consider it 64. | ||||
* | Make sure we don't forward power _and_ supply SIM power at the same time | Kevin Redon | 2011-12-18 | 1 | -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. | ||||
* | Fix fi/di calculation for certain mobiles like GT-S770 or HTC Raphael | Bjoern Kerler | 2011-10-21 | 1 | -3/+3 |
| | | | | | There were some mistakes while copying the tables from ISO 7816-3, and also a quite old version of 7816-3 was used. | ||||
* | SIMTRACE: ISO7816: Deal with ATR that don't have historical bytesv0.2 | Harald Welte | 2011-08-16 | 1 | -11/+21 |
| | | | | | In case there are no historical bytes, we immediately transition from the last TD byte into the WAIT_TCK or WAIT_APDU state. | ||||
* | ISO7816: Properly handle T=0 only cards without TCK in ATR | Harald Welte | 2011-08-16 | 1 | -1/+13 |
| | |||||
* | SIMTRACE UART: Reset error status on error related IRQ | Harald Welte | 2011-08-15 | 1 | -0/+9 |
| | | | | | This prevents an IRQ-flood after a parity or overrun error, which in turn would cause a watchdog reset. | ||||
* | simtrace UART: set INACK flag to make sure we ignore any parity error | Harald Welte | 2011-08-15 | 1 | -3/+3 |
| | | | | | | | As a SIM card tracer, we want to remain completely passive and thus not signal back parity errors with the ISO 7816 NACK. The UART INACK flag does exactly that... | ||||
* | DFU: add third 'alternate configuration' for RAM load | Harald Welte | 2011-07-30 | 2 | -0/+2 |
| | | | | | This will allow us to load code directly into RAM without going through flash. | ||||
* | simtrace: add some early spi flash utility routines | Harald Welte | 2011-07-30 | 2 | -0/+224 |
| | | | | This also adds a new 'main_factory' target for simtrace | ||||
* | simtrace: initialize sniffer mode right after start-up | Harald Welte | 2011-06-30 | 1 | -18/+22 |
| | |||||
* | simtrace: switch VCC_SIM into output mode, as we use it to supply Vcc | Harald Welte | 2011-06-21 | 1 | -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: add VCC_PHINE IRQ detection | Harald Welte | 2011-06-21 | 1 | -0/+19 |
| | |||||
* | simtrace: introduce mode sniffer / mitm switching | Harald Welte | 2011-06-17 | 2 | -6/+50 |
| | |||||
* | simtrace: add support for the analog bus switch | Harald Welte | 2011-06-16 | 3 | -1/+93 |
| | |||||
* | update USB strings (company name and some copy+paste mistakes) | Harald Welte | 2011-06-15 | 2 | -3/+3 |
| | |||||
* | typo: Fix typo, transform reqyests to requests. | Holger Hans Peter Freyther | 2011-01-31 | 1 | -1/+1 |
| | |||||
* | add missing usb_strings_dfu.txt file to simtrace directory | Harald Welte | 2010-12-09 | 1 | -0/+5 |
| | |||||
* | simtrace: Make sure ATR is sent in its own RCTX and we re-allocate in time | Harald Welte | 2010-11-21 | 1 | -1/+11 |
| | |||||
* | simtrace: fix problems causing bogus waiting time expirations | Harald Welte | 2010-11-18 | 1 | -1/+5 |
| | |||||
* | simtrace: Introduce code for proper handling of PTS / PPS | Harald Welte | 2010-11-18 | 1 | -12/+148 |
| | |||||
* | simtrace: add TC based waiting time counter, signal ATR / expiry via USB | Harald Welte | 2010-11-18 | 5 | -78/+292 |
| | |||||
* | simtrace: introduce RST pin handling | Harald Welte | 2010-11-14 | 1 | -12/+32 |
| | |||||
* | Initial version of a SAM7 USART based ISO7816-3 T=0 sniffer | Harald Welte | 2010-11-14 | 3 | -0/+503 |