<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">I fully agree going the more generic way.<br>Nevertheless, I think it is useful to have that option in pySim-prog.<br>We use pySim-prog to conveniently batch-(re)program the Sysmocom uSIMs (the green and black ones) according to configuration in CSV files. Thereby we add "NAME" for SPN and "OPMODE" in additional columns.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">It would be great to work out some strategy for such batch-reprogramming uses cases basd on the new pySim-shell / filesystem.py infrastructure.  pySim-shell is of course highly scriptable.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Particularly with https://gerrit.osmocom.org/c/pysim/+/23661 and its jsonpath support we can now have a very elegant way to modify only certain logical bits/fields in larger binary files.</p><p style="white-space: pre-wrap; word-wrap: break-word;">scripting pySim-shell from external scripts however doesn't currently have any kind of CSV import<br>or the capability to wait for another card, etc.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If you have any ideas on how this could/should happen, you now have the chance ot shape the implementation.  I haven't really done much planning that way  yet.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">I will rebase the current code for now. Shall we update to use your new code as well?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I don't currently see how you would use the filesystem/pySim-shell code from pySim-prog. not sure what you meant?</p><p>Patch set 8:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23632">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23632">change 23632</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23632"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08 </div>
<div style="display:none"> Gerrit-Change-Number: 23632 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: Falkenber9 <robert.falkenberg@tu-dortmund.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 07 Apr 2021 15:02:44 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>