Commit Graph

21 Commits

Author SHA1 Message Date
Christina Quast
c063cfe887 phone.c: Removed redundant definition of PR 2015-04-06 21:34:43 +02:00
Christina Quast
2f27c7c3d2 phone.c: Fixed incompatible pointer type comparison 2015-04-06 20:46:40 +02:00
Christina Quast
e76a3ee499 phone.c: Removed dead code (rst_cnt) 2015-04-06 20:43:11 +02:00
Christina Quast
a4d1d1619b phone.c: Remove double define of waittime 2015-04-06 20:41:50 +02:00
Christina Quast
443e55017d phone.c: remove dot printout 2015-04-06 20:38:51 +02:00
Christina Quast
bdaa95484c Bug fix: Fix endless loop when ATR is not received
Without this fix, if the host software does not send an ATR, simtrace
waits for this answer in an endless loop of unsuccessfull USB
endpoint write attempts.
2015-04-06 00:52:08 +02:00
Christina Quast
14fbf9c8ad phone.c: more debug info in send_ATR 2015-04-06 00:36:12 +02:00
Christina Quast
3041854872 phone.c: Changed bus switch from sniffer to phone mode
In order to record the communication between simtrace and the
mobile phone with a logic analyzer I had to configure the
pins in sniffer mode in order to attach the sniffer clips
to the SIM card slot. I did not manage to connect them to
the connector to the phone flex cable.
2015-04-05 10:08:06 +02:00
Christina Quast
6355ecedf7 Phone: Write err msg if writing to USB PHONE_INT endpoint failed 2015-04-04 10:15:38 +02:00
Christina Quast
e90decef3d redefinition of PHONE_* in phone.c 2015-04-03 11:40:38 +02:00
Christina Quast
1d80ef23a0 defined PR to easily switch between INFO/DEBUG prints 2015-04-03 11:39:38 +02:00
Christina Quast
d3630cc86d phone ISR with mask (does not function yet) 2015-04-03 11:38:24 +02:00
Christina Quast
8e5381ca10 phone RST define taken from simtrace.h 2015-04-03 11:37:17 +02:00
Christina Quast
4bcc023be7 Phone hack: endless loop
Motorola seems to be in an endless loop?
In any case, it only shows the motorola logo and does not react to
pressing the power button.
2015-03-24 21:59:32 +01:00
Christina Quast
0ca8390a8d first few communication steps work 2015-03-22 19:05:23 +01:00
Christina Quast
ce296b9def Attempt to implement working simcard emulator
The BUFLEN is fixed 5 bytes now, which has to be increased.
A timeout has to be implemented, which is smaller than max_waittime.
If the timeout is triggered, the data received in the buffer so far
should be sent to the host computer which is responsible for generating
a response. Without the timeout the max_waittime of the phone would
expire and it would repeat sending the command, so that we do not
have atomary messages anymore.
2015-03-18 18:41:19 +01:00
Christina Quast
578daaaeff first try of sim card emulator 2015-03-13 23:46:01 +01:00
Christina Quast
8043fdd4d3 bus configuration in phone 2015-03-04 18:45:30 +01:00
Christina Quast
fb524b9bb3 Function pointer struct in main for run,init 2015-02-27 13:39:45 +01:00
Christina Quast
c0aa769a35 Redundant functions in phone and sniffer moved
File simtrace_iso7816.c is like a library for iso specific functions.
The next step will be to use the atmel softlib functions instead.
2015-02-25 14:02:01 +01:00
Christina Quast
32906bb919 simtrace main with phone as clk master 2015-02-24 11:35:19 +01:00