Skip to content

Changes

Summary

  1. pySim-trace: Add support for the TCA Loader log file format (details)
  2. pySim.apdu: Allow TLV based decoders for APDU command and response body (details)
  3. pySim.cat: More TLV Definitions for Event Download (details)
  4. pySim.apdu.ts_102_221: Decode the ENVELOPE command body using pySim.cat (details)
  5. pySim.apdu.ts_102_221: Decode FETCH and TERMINAL RESPONSE body (details)
Commit 16749075f9a8e10ec32df7d51058fbac4a5648e3 by laforge
pySim-trace: Add support for the TCA Loader log file format

The "TCA Loader" is a freeware utility program published by the
Trusted Connectivity Alliance for testing SCP80, SCP81, SCP02 and SCP03
in UICCs.  It can generate text log files of the APDUs it exchanges;
let's add this file format to pySim-trace

Change-Id: Ie76d36bb18c6bd8968d2a5b74ec1b8c5ccaaa409
The file was modified pySim-trace.py
The file was addedpySim/apdu_source/tca_loader_log.py
Commit 33a6daee6d70c681d468e95b2c4e42e3d17cd233 by laforge
pySim.apdu: Allow TLV based decoders for APDU command and response body

So far we only supported construct.

Change-Id: Ibb80d328c9a1f464aa5338ca0ca1d6bfb00734e1
The file was modified pySim/apdu/__init__.py
Commit 5529a41a63b10e181a8392c0de2f1a6052636680 by laforge
pySim.cat: More TLV Definitions for Event Download

Change-Id: I713f12577cab1678cdf97b7ae0e6f3815a42242c
The file was modified pySim/cat.py
Commit f22637f151d2c4f7869614c591c885b3a688b571 by laforge
pySim.apdu.ts_102_221: Decode the ENVELOPE command body using pySim.cat TLV

This will decode the ENVELOPE body in pySim-trace further.

Before:

00 ENVELOPE                                             -        9000 {'p1': 0, 'p2': 0, 'cmd': 'd14682028381060291978b3c40048111227ff6407070611535002d02700000281516011212000001eae1bd578fa25791898128811b2206cc71639ca292ec2526da8aef4273d2fe2e', 'rsp': '027100001f0a00000100000001200000ab12800101230d08a0000001510000000f829000'}

After:

00 ENVELOPE                                             -        9000 {'p1': 0, 'p2': 0, 'cmd': [{'smspp_download': [{'device_identities': {'source_dev_id': 'network', 'dest_dev_id': 'uicc'}}, {'address': {'ton_npi': 145, 'call_number': '79'}}, {'sms_tpdu': {'tpdu': '40048111227ff6407070611535002d02700000281516011212000001eae1bd578fa25791898128811b2206cc71639ca292ec2526da8aef4273d2fe2e'}}]}], 'rsp': '027100001f0a00000100000001200000ab12800101230d08a0000001510000000f829000'}

Change-Id: I5ecdbe0b5fa8856cb723569896b73cd49778ed5f
The file was modified pySim/apdu/ts_102_221.py
Commit 2eea70f6bc2dc64a285c70d59c78b5449ce5bbaa by laforge
pySim.apdu.ts_102_221: Decode FETCH and TERMINAL RESPONSE body

This gives a meaningful decode during pySim-trace.

Change-Id: Ifa410e1fefc25e87ffa8e3a2230af80180a36a18
The file was modified pySim/cat.py
The file was modified pySim/apdu/ts_102_221.py