From 5fdfa1463e4cd209fc93867d959931ce16f22006 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 15 Jul 2024 12:11:18 +0200 Subject: [PATCH] pySim.cat: More spec references + explanations in comments Change-Id: I4a89156075ae225594740451b33c3dec8983cf04 --- pySim/cat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pySim/cat.py b/pySim/cat.py index d2f39f73..d2a3a66a 100644 --- a/pySim/cat.py +++ b/pySim/cat.py @@ -499,9 +499,10 @@ class ChannelDataLength(COMPR_TLV_IE, tag = 0xB7): class BufferSize(COMPR_TLV_IE, tag = 0xB9): _construct = Int16ub -# TS 31.111 Section 8.56 +# TS 102 223 Section 8.56 + TS 31.111 Section 8.56 class ChannelStatus(COMPR_TLV_IE, tag = 0xB8): # complex decoding, depends on out-of-band context/knowledge :( + # for default / TCP Client mode: bit 8 of first byte indicates connected, 3 LSB indicate channel nr _construct = HexAdapter(GreedyBytes) # TS 102 223 Section 8.58