blob: 6ecd55ab03e6f7d149d8254b625a74be581c8895 [file] [log] [blame]
Harald Welte94e87352021-04-02 13:38:00 +02001pySim library
2=============
3
4pySim filesystem abstraction
5----------------------------
6
7.. automodule:: pySim.filesystem
8 :members:
9
10pySim commands abstraction
11--------------------------
12
13.. automodule:: pySim.commands
14 :members:
15
16pySim Transport
17---------------
18
19The pySim.transport classes implement specific ways how to
20communicate with a SIM card. A "transport" provides ways
21to transceive APDUs with the card.
22
23The most commonly used transport uses the PC/SC interface to
24utilize a variety of smart card interfaces ("readers").
25
26Transport base class
27~~~~~~~~~~~~~~~~~~~~
28
29.. automodule:: pySim.transport
30 :members:
31
32
33calypso / OsmocomBB transport
34~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
Harald Weltec9cdce32021-04-11 10:28:28 +020036This allows the use of the SIM slot of an OsmocomBB compatible phone with the TI Calypso chipset,
Harald Welte94e87352021-04-02 13:38:00 +020037using the L1CTL interface to talk to the layer1.bin firmware on the phone.
38
39.. automodule:: pySim.transport.calypso
40 :members:
41
42
43AT-command Modem transport
44~~~~~~~~~~~~~~~~~~~~~~~~~~
45
46This transport uses AT commands of a cellular modem in order to get access to the SIM card inserted
47in such a modem.
48
49.. automodule:: pySim.transport.modem_atcmd
50 :members:
51
52
53PC/SC transport
54~~~~~~~~~~~~~~~
55
56PC/SC is the standard API for accessing smart card interfaces
57on all major operating systems, including the MS Windows Family,
58OS X as well as Linux / Unix OSs.
59
60.. automodule:: pySim.transport.pcsc
61 :members:
62
63
64Serial/UART transport
65~~~~~~~~~~~~~~~~~~~~~
66
67This transport implements interfacing smart cards via
68very simplistic UART readers. These readers basically
69wire together the Rx+Tx pins of a RS232 UART, provide
Harald Weltec9cdce32021-04-11 10:28:28 +020070a fixed crystal oscillator for clock, and operate the UART
Harald Welte94e87352021-04-02 13:38:00 +020071at 9600 bps. These readers are sometimes called `Phoenix`.
72
73.. automodule:: pySim.transport.serial
74 :members:
75
Harald Weltee0f9ef12021-04-10 17:22:35 +020076
77pySim construct utilities
78-------------------------
79
80.. automodule:: pySim.construct
81 :members:
82
Harald Weltebb3b5df2021-05-24 23:15:54 +020083pySim TLV utilities
84-------------------
85
86.. automodule:: pySim.tlv
87 :members:
Harald Weltee0f9ef12021-04-10 17:22:35 +020088
Harald Welte94e87352021-04-02 13:38:00 +020089pySim utility functions
90-----------------------
91
92.. automodule:: pySim.utils
93 :members:
94
95pySim exceptions
96----------------
97
98.. automodule:: pySim.exceptions
99 :members:
100
101pySim card_handler
102------------------
103
104.. automodule:: pySim.card_handler
105 :members:
Harald Welte9d0f1f02021-04-03 09:19:11 +0200106
107pySim card_key_provider
108-----------------------
109
110.. automodule:: pySim.card_key_provider
111 :members: