aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-10-29 02:02:14 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-05-10 22:24:21 +0700
commit35a96edb0dc446ed1e09a932c8f41e748f571c19 (patch)
tree4049fe594f7da5922409b59841e9737545cb1081 /pySim-read.py
parent5491c48e71e1979f58fff46bc10556b22f458241 (diff)
pySim-*.py: print info about selected reader interface
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index d4a9849..17fce61 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -76,12 +76,18 @@ if __name__ == '__main__':
# Init card reader driver
if opts.pcsc_dev is not None:
+ print("Using PC/SC reader (dev=%d) interface"
+ % opts.pcsc_dev)
from pySim.transport.pcsc import PcscSimLink
sl = PcscSimLink(opts.pcsc_dev)
elif opts.osmocon_sock is not None:
+ print("Using Calypso-based (OsmocomBB, sock=%s) reader interface"
+ % opts.osmocon_sock)
from pySim.transport.calypso import CalypsoSimLink
sl = CalypsoSimLink(sock_path=opts.osmocon_sock)
else: # Serial reader is default
+ print("Using serial reader (port=%s, baudrate=%d) interface"
+ % (opts.device, opts.baudrate))
from pySim.transport.serial import SerialSimLink
sl = SerialSimLink(device=opts.device, baudrate=opts.baudrate)