FreeCalypso > hg > fc-sim-sniff
annotate doc/Cardem-plans @ 43:6bef393a700e
sw/Makefile: add sniff-dec
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2023 08:47:50 +0000 |
parents | a9e87abeeaa2 |
children | 1068f9fd41d5 |
rev | line source |
---|---|
39
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 The long-term goal of SIMtrace3 project is to support both SIM interface |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 sniffing and card emulation. Both functions are needed when working in the |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 realm of Vintage Mobile Phones: |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * Non-invasive, Heisenbug-free Hi-Z sniffing is needed in order to see why |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 certain phone-to-SIM combinations work while others don't, and to see exactly |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 what a given finicky phone requires from that special hard-to-get SIM. |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 * The next step of cloning that special SIM, or producing new SIMs that satisfy |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 the weird requirements of the finicky phone, will often require full emulation |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 of ISO 7816-4 / GSM 11.11 file system and CardOS in software, as we don't have |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 a real smartcard chip that gives us full freedom to implement whatever we |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 like. |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 However, in terms of scheduling priority, all of our initial work focuses on |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 the sniffer, with cardem deferred to some indefinite later time. We do, |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 however, have a preliminary idea of how we envision cardem working: |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 * Hardware setups will be different between sniffing and cardem. Our initial |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 objective is to produce a solidly usable, production quality sniffer pod, |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 described as HW setup version 2 in the Sniffing-hw-setup article. As the |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 name says, this pod will be for sniffing only. For card emulation there will |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 be a different cardem pod. |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 * The cardem pod will be similar to the sniffer pod, with just two changes: |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 - We'll add a 74LVC1G07 OD driver for pulling the I/O line low in exactly the |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 same way how real SIM cards do it; |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 - The SIM socket will be eliminated from the cardem pod, to eliminate any |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 possibility of a real SIM and cardem "fighting" to talk back to the same |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 ME/ID. |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 * FPGA gateware will also be different between sniffing and cardem. The cardem |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 design is expected to be more complex and use more FPGA resources, but there |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 is a good chance it will still fit into iCE40-HX1K FPGA and thus allow us to |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 keep using the same Icestick board. |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 * Right now we have no plans to stick a soft CPU core into the FPGA for cardem, |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 instead the plan is to use the same principal architecture as the sniffer |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 FPGA, using the UART channel at 3 Mbps to communicate with the host - although |
a9e87abeeaa2
doc/Cardem-plans: article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 this time this UART will be used bidirectionally. |