Attention is currently required from: laforge, dexter.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/33690 )
Change subject: pySim/cards: Split legacy classes away from core SIM + UICC
......................................................................
Patch Set 4: Code-Review-1
(3 comments)
File pySim/cards.py:
https://gerrit.osmocom.org/c/pysim/+/33690/comment/daa21400_e2006d2a
PS4, Line 31: base class
Do we want to make it an abstract base class (`(a)abc.ABC`)?
https://gerrit.osmocom.org/c/pysim/+/33690/comment/f2757feb_e0555905
PS4, Line 41: self._aids = []
unreachable code
https://gerrit.osmocom.org/c/pysim/+/33690/comment/9b50a616_fc80f1be
PS4, Line 319: SimCard
`UiccCardBase` is a [grand]child of `SimCard`, do we really need `SimCard` here?
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33690
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Id36140675def5fc44eedce81fc7b09e0adc527e1
Gerrit-Change-Number: 33690
Gerrit-PatchSet: 4
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 12 Jul 2023 16:27:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33718 )
Change subject: BSC_Tests_ASCI: Do not expect UPLINK BUSY message
......................................................................
BSC_Tests_ASCI: Do not expect UPLINK BUSY message
There is no UPLINK BUSY message sent by BSC, if the talker
requests/establishes the uplink. Due to timing reason, the message is
sent by the BTS itself towards the MS.
Change-Id: I2e3b866eca174ae212ea986980d508e48e31fa57
---
M bsc/BSC_Tests_ASCI.ttcn
1 file changed, 19 insertions(+), 4 deletions(-)
Approvals:
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/bsc/BSC_Tests_ASCI.ttcn b/bsc/BSC_Tests_ASCI.ttcn
index e72c065..bfc66a9 100644
--- a/bsc/BSC_Tests_ASCI.ttcn
+++ b/bsc/BSC_Tests_ASCI.ttcn
@@ -213,8 +213,9 @@
setverdict(fail, "VGCS: No uplink request as expected!");
return;
}
- if (not uplink_busy) {
- setverdict(fail, "VGCS: Uplink not busy as expected!");
+ /* UPLINK BUSY is automatically sent by BTS, but not by BSC. */
+ if (uplink_busy) {
+ setverdict(fail, "VGCS: Uplink set to busy, this is not expected!");
return;
}
log("VGCS: Uplink requested and uplink marked busy as expected!");
@@ -226,8 +227,9 @@
setverdict(fail, "VGCS: No uplink request confirm as expected!");
return;
}
- if (not uplink_busy) {
- setverdict(fail, "VGCS: Uplink not busy as expected!");
+ /* UPLINK BUSY is automatically sent by BTS, but not by BSC. */
+ if (uplink_busy) {
+ setverdict(fail, "VGCS: Uplink set to busy, this is not expected!");
return;
}
log("VGCS: Uplink established and uplink marked busy as expected!");
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33718
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I2e3b866eca174ae212ea986980d508e48e31fa57
Gerrit-Change-Number: 33718
Gerrit-PatchSet: 3
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: osmith, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/33591 )
Change subject: csd_bs_list_to_gsm0808_channel_type: add T 300
......................................................................
Patch Set 3:
(1 comment)
File src/libmsc/csd_bs.c:
https://gerrit.osmocom.org/c/osmo-msc/+/33591/comment/95e87e88_e812cc0a
PS1, Line 196: GSM0808_DATA_FULL_BM
> technically it is true, one can carry those rates over TCH/H. I'm not sure how good a policy decision it is, given that TCH/F provides so much more redundancy and hence robustness...
IIUC the idea behind `GSM0808_DATA_FULL_PREF` is that we allocate a TCH/F whenever possible, or a TCH/H if no TCH/F is available. If my understanding is correct, then giving a TCH/H is still better than rejecting a connection...
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/33591
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I7297cc481fbe36355b5231ca800cf566a1ee93c0
Gerrit-Change-Number: 33591
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 12 Jul 2023 16:17:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
laforge has submitted this change. ( 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(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged