Change in pysim[master]: ModemATCommandLink: add some logging

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Falkenber9 gerrit-no-reply at lists.osmocom.org
Thu May 6 07:58:16 UTC 2021


Falkenber9 has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/24157 )


Change subject: ModemATCommandLink: add some logging
......................................................................

ModemATCommandLink: add some logging

Change-Id: I303506a751b4a34d83c18bc097e0cfb0517ee82c
---
M pySim/transport/modem_atcmd.py
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/57/24157/1

diff --git a/pySim/transport/modem_atcmd.py b/pySim/transport/modem_atcmd.py
index bb23ce9..6557b02 100644
--- a/pySim/transport/modem_atcmd.py
+++ b/pySim/transport/modem_atcmd.py
@@ -137,6 +137,7 @@
 
 		# Prepare the command as described in 8.17
 		cmd = 'AT+CSIM=%d,\"%s\"' % (len(pdu), pdu)
+		log.info('Sending command: %s',  cmd)
 
 		# Send AT+CSIM command to the modem
 		# TODO: also handle +CME ERROR: <err>
@@ -155,4 +156,5 @@
 		# TODO: make sure we have at least SW
 		data = rsp_pdu[:-4].decode().lower()
 		sw   = rsp_pdu[-4:].decode().lower()
+		log.info('Command response: %s, %s',  data, sw)
 		return data, sw

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/24157
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I303506a751b4a34d83c18bc097e0cfb0517ee82c
Gerrit-Change-Number: 24157
Gerrit-PatchSet: 1
Gerrit-Owner: Falkenber9 <robert.falkenberg at tu-dortmund.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210506/bd79ada3/attachment.htm>


More information about the gerrit-log mailing list