blob: f531ec504de25e4a0304a6d87064cacee52ae2a4 [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
83
Harald Welte94e87352021-04-02 13:38:00 +020084pySim utility functions
85-----------------------
86
87.. automodule:: pySim.utils
88 :members:
89
90pySim exceptions
91----------------
92
93.. automodule:: pySim.exceptions
94 :members:
95
96pySim card_handler
97------------------
98
99.. automodule:: pySim.card_handler
100 :members:
Harald Welte9d0f1f02021-04-03 09:19:11 +0200101
102pySim card_key_provider
103-----------------------
104
105.. automodule:: pySim.card_key_provider
106 :members: