aboutsummaryrefslogtreecommitdiffstats
path: root/pySim/transport/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim/transport/__init__.py')
-rw-r--r--pySim/transport/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py
index dae2a78..73f9486 100644
--- a/pySim/transport/__init__.py
+++ b/pySim/transport/__init__.py
@@ -217,19 +217,20 @@ def init_reader(opts, **kwargs) -> Optional[LinkBase]:
sl = None # type : :Optional[LinkBase]
try:
if opts.pcsc_dev is not None:
- print("Using PC/SC reader interface")
+ print("Using PC/SC reader interface (dev_number=%u)" % opts.pcsc_dev)
from pySim.transport.pcsc import PcscSimLink
sl = PcscSimLink(opts.pcsc_dev, **kwargs)
elif opts.osmocon_sock is not None:
- print("Using Calypso-based (OsmocomBB) reader interface")
+ print("Using Calypso-based (OsmocomBB) reader interface (sock='%s')" % opts.osmocon_sock)
from pySim.transport.calypso import CalypsoSimLink
sl = CalypsoSimLink(sock_path=opts.osmocon_sock, **kwargs)
elif opts.modem_dev is not None:
- print("Using modem for Generic SIM Access (3GPP TS 27.007)")
+ print("Using modem for Generic SIM Access (3GPP TS 27.007) (dev='%s', baud=%u)" %
+ (opts.modem_dev, opts.modem_baud))
from pySim.transport.modem_atcmd import ModemATCommandLink
sl = ModemATCommandLink(device=opts.modem_dev, baudrate=opts.modem_baud, **kwargs)
else: # Serial reader is default
- print("Using serial reader interface")
+ print("Using serial reader interface (dev='%s', baud=%u)" % (opts.device, opts.baudrate))
from pySim.transport.serial import SerialSimLink
sl = SerialSimLink(device=opts.device, baudrate=opts.baudrate, **kwargs)
return sl