Feature #2211
closedosmo-gsm-tester: discover modem IMSIs automatically
0%
Description
So far the osmo-gsm-tester had the modems "hard-configured" in the resources.conf:
modem: - label: m7801 path: '/wavecom_0' imsi: 901700000007801 ki: D620F48487B1B782DA55DF6717F08FF9
However, the dbus paths like '/wavecom_1' are not necessarily persistent: if the modem bank gets reconnected, the numbers will change. So instead of relying on a fixed modem path, the modems available by ofono should be discovered dynamically. The dbus path should remain hidden within the osmo-gsm-tester, a volatile per-run item. Each run should probably list the available modems in the log on startup.
The resources.conf shall only have a list of IMSIs with their corresponding auth tokens, and the osmo-gsm-tester should query the modems' IMSIs (and modem model description) to match the keys with an actual ofono modem path.
Updated by pespin almost 7 years ago
- Status changed from New to In Progress
- Assignee changed from 55360 to pespin
Updated by pespin almost 7 years ago
- Status changed from In Progress to Feedback
- Assignee changed from pespin to neels
Patch available in gerrit: https://gerrit.osmocom.org/#/c/2676
Updated by neels almost 7 years ago
- Status changed from Feedback to In Progress
- Assignee changed from neels to pespin
Updated by pespin almost 7 years ago
- Status changed from In Progress to Feedback
Waiting to see whether we merge the changes (available in gerrit https://gerrit.osmocom.org/#/c/2696/) or we drop the whole task as it turns to be a bit complex.
Updated by neels almost 7 years ago
- Status changed from Feedback to Rejected
- Priority changed from High to Low
Related: on our main unit, I have an ofono watcher script in place that specifically queries the exact modem paths that we expect to be present. If one of them is missing or does not expose an org.ofono.Modem interface, ofono is restarted. I hate to discard work, but at the moment I prefer the simpler solution of an external script -- which we anyway need to kick ofono in case it locks up.
Let's keep this in mind and see whether we can come back to this later. It is a handy feature to just be able to insert any SIMs of a given key database and not have to worry about reconfiguring the resources. But we should not spend time on that right now.