diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-10-29 02:02:14 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-10 22:24:21 +0700 |
commit | 35a96edb0dc446ed1e09a932c8f41e748f571c19 (patch) | |
tree | 4049fe594f7da5922409b59841e9737545cb1081 /pySim-prog.py | |
parent | 5491c48e71e1979f58fff46bc10556b22f458241 (diff) |
pySim-*.py: print info about selected reader interface
Change-Id: Idd791d7ef635e15915aab13274aefc15e70777b0
Diffstat (limited to 'pySim-prog.py')
-rwxr-xr-x | pySim-prog.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pySim-prog.py b/pySim-prog.py index d6d7ad5..2638eef 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -568,12 +568,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) |