laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/33661 )
(
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: pySim/tlv.py: Don't create an exception from within raise
......................................................................
pySim/tlv.py: Don't create an exception from within raise
An invalid variable used in a raise ValueError() would cause a further
exception, depriving the user of a meaningful error message.
Change-Id: I6eb31b91bd69c311f07ff259a424edc58b57529a
---
M pySim/tlv.py
1 file changed, 13 insertions(+), 1 deletion(-)
Approvals:
fixeria: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/pySim/tlv.py b/pySim/tlv.py
index 22a14cd..3e245b5 100644
--- a/pySim/tlv.py
+++ b/pySim/tlv.py
@@ -395,7 +395,7 @@
res.append(inst)
else:
raise ValueError('%s: Unknown TLV Class %s in %s; expected %s' %
- (self, i[0], decoded, self.members_by_name.keys()))
+ (self, k, decoded, self.members_by_name.keys()))
self.children = res
return res
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33661
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6eb31b91bd69c311f07ff259a424edc58b57529a
Gerrit-Change-Number: 33661
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: merged
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/33672 )
Change subject: pySim-prog: Also accept 18-digit ICCIDs
......................................................................
pySim-prog: Also accept 18-digit ICCIDs
There are cards with 18-digit ICCIDs, so let's be a bit more tolerant.
Change-Id: I5395daeb2e96987335f6f9bf540c28d516001394
---
M pySim-prog.py
1 file changed, 13 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/72/33672/1
diff --git a/pySim-prog.py b/pySim-prog.py
index 7c644b7..028db55 100755
--- a/pySim-prog.py
+++ b/pySim-prog.py
@@ -357,8 +357,8 @@
# ICCID (19 digits, E.118), though some phase1 vendors use 20 :(
if opts.iccid is not None:
iccid = opts.iccid
- if not _isnum(iccid, 19) and not _isnum(iccid, 20):
- raise ValueError('ICCID must be 19 or 20 digits !')
+ if not _isnum(iccid, 18) and not _isnum(iccid, 19) and not _isnum(iccid, 20):
+ raise ValueError('ICCID must be 18, 19 or 20 digits !')
else:
if opts.num is None:
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33672
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I5395daeb2e96987335f6f9bf540c28d516001394
Gerrit-Change-Number: 33672
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge, fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/32727 )
Change subject: osmo-bts-trx: implement CSD scheduling support
......................................................................
Patch Set 14:
(1 comment)
File include/osmo-bts/scheduler.h:
https://gerrit.osmocom.org/c/osmo-bts/+/32727/comment/9fb3007d_379799fd
PS14, Line 135: struct l1sched_meas_set buf[24]; /* up to 24 entries */
it may be good to document here where this 24 comes from.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/32727
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I08ffbf8e79ce76a586d61f5463890c6e72a6d9b9
Gerrit-Change-Number: 32727
Gerrit-PatchSet: 14
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 11 Jul 2023 08:56:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/33670 )
Change subject: GlobalPlatform ADF.SD: Add command line reference + error message
......................................................................
GlobalPlatform ADF.SD: Add command line reference + error message
The get_data shell command didn't have any interactive help / syntax,
and no meaningful error message in case an unknown data object name
was specified by the user. Let's fix that.
Change-Id: I09faaf5d45118635cf832c8c513033aede1427e5
---
M docs/shell.rst
M pySim/global_platform.py
2 files changed, 30 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/70/33670/1
diff --git a/docs/shell.rst b/docs/shell.rst
index ef08fcf..73b988a 100644
--- a/docs/shell.rst
+++ b/docs/shell.rst
@@ -795,8 +795,9 @@
get_data
~~~~~~~~
-Performs the GET DATA command as specified by GlobalPlatform.
-
+.. argparse::
+ :module: pySim.global_platform
+ :func: ADF_SD.AddlShellCommands.get_data_parser
cmd2 settable parameters
------------------------
diff --git a/pySim/global_platform.py b/pySim/global_platform.py
index baae234..ea8b70d 100644
--- a/pySim/global_platform.py
+++ b/pySim/global_platform.py
@@ -223,9 +223,21 @@
def __init__(self):
super().__init__()
+ get_data_parser = argparse.ArgumentParser()
+ get_data_parser.add_argument('data_object_name', type=str,
+ help='Name of the data object to be retrieved from the card')
+
+ @cmd2.with_argparser(get_data_parser)
def do_get_data(self, opts):
- tlv_cls_name = opts.arg_list[0]
- tlv_cls = DataCollection().members_by_name[tlv_cls_name]
+ """Perform the GlobalPlatform GET DATA command in order to obtain some card-specific data."""
+ tlv_cls_name = opts.data_object_name
+ try:
+ tlv_cls = DataCollection().members_by_name[tlv_cls_name]
+ except KeyError:
+ do_names = [camel_to_snake(str(x.__name__)) for x in DataCollection.possible_nested]
+ self._cmd.poutput('Unknown data object "%s", available options: %s' % (tlv_cls_name,
+ do_names))
+ return
(data, sw) = self._cmd.card._scc.get_data(cla=0x80, tag=tlv_cls.tag)
ie = tlv_cls()
ie.from_tlv(h2b(data))
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33670
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I09faaf5d45118635cf832c8c513033aede1427e5
Gerrit-Change-Number: 33670
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge, lynxis lazus.
Hello Jenkins Builder, fixeria, lynxis lazus,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/pysim/+/33660
to look at the new patch set (#2).
Change subject: TLV_IE_Collection: use snake-style names during from_dict()
......................................................................
TLV_IE_Collection: use snake-style names during from_dict()
The TLV_IE_Collection, just like the individual TLV classes, do
use their snake-style names when converting from binary to dict
using the to_dict() method. It is inconsistent (and a bug) to
expect the CamelCase names during encoding (from_dict). After all,
we want the output of to_dict() to be used as input to from_dict().
Change-Id: Iabd1ad98c3878659d123eef919c22ca824886f8a
---
M pySim/ara_m.py
M pySim/global_platform.py
M pySim/tlv.py
3 files changed, 28 insertions(+), 14 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/60/33660/2
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33660
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iabd1ad98c3878659d123eef919c22ca824886f8a
Gerrit-Change-Number: 33660
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: newpatchset
Attention is currently required from: pespin, dexter.
jolly has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/33546 )
Change subject: ASCI: Add new mode for voice group/broadcast call
......................................................................
Patch Set 3:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-mgw/+/33546/comment/b1665749_456f681a
PS3, Line 23: connection receives RTP in case of a conference.
> I'm still not really understanding this paragraph sorry :/ […]
Sending and receiving is from the MGW point of view. This is how the modes are named.
RTP may be received from multiple connection at a time. This is true for a point to point conversation. In this case there is only one destination connection for the RTP, the other connection. This is because there is no echo, the receiving connection does not echo it back.
In cases of conference or having additional echo (confecho), it may be possible that a connection must mix RTP from different (receiving) connections. In case of two confecho connections, the two connections receive audio at a time and both connection must send the mixed RTP. This would only be possible with transcoding. This is currently not possible. In this case the MSC must switch the mode so that only one connection receives RTP and no mixing is required. In case of a conference, the talking connection is switched to receive RTP only (or confecho), all other connections are switched to send RTP only.
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/33546
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I0639c663e119d85bef1010c7aa45e2f133a9daf0
Gerrit-Change-Number: 33546
Gerrit-PatchSet: 3
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 11 Jul 2023 07:13:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment