sim: Added new properties to simmanager for DSSA
PATCH 2/6 sim: Added new properties to simmanager for DSSA
Adding two new properties to sim manager interface to handle dual SIM single active use case.
CardSlotCount [readonly]
Contains the count of number of SIM card slots available.
ActiveCardSlot [readwrite]
Contains the index of the currently active SIM card slot for dual SIM single active mode.
--- doc/sim-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)
doc/sim-api.txt +12 -0
@@ -205,3 +205,15 @@ Properties boolean Present [readonly] Contains the SIM's ImsPrivateIdentity, read from the ISIM. + + uint32 CardSlotCount [readonly] + + Contains the count of number of SIM card slots available. + + uint32 ActiveCardSlot [readwrite] + + Contains the index of the currently active SIM card slot + for dual SIM single active mode. + + This property will range from 1 (default) to + CardSlotCount (max) value.
Signature · 1 line
1.9.1
Quoted 9 lines · Antara Borwankar
Adding two new properties to sim manager interface to handle dual SIM single active use case.
CardSlotCount [readonly]
Contains the count of number of SIM card slots available.ActiveCardSlot [readwrite]
Contains the index of the currently active SIM card slot for dual SIM single active mode.
Hmm. There are already modems which can have both SIMs active at the same time. Would it make sense to have the APIs ready for that?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi Pavel,
Quoted 7 lines · Pavel Machek
Quoted 6 lines · Antara Borwankar
Adding two new properties to sim manager interface to handle dual SIM single active use case.
CardSlotCount [readonly]
Contains the count of number of SIM card slots available.
Quoted 8 lines
Quoted 3 lines
ActiveCardSlot [readwrite]
Contains the index of the currently active SIM card slot for dual SIM single active mode.Hmm. There are already modems which can have both SIMs active at the same time. Would it make sense to have the APIs ready for that?
Pavel
This is better handled by instantiating multiple modem objects for each logical modem device. In the case of Dual SIM Dual Active you essentially have 2 independent modems anyway. Dual SIM Dual Standby is pretty similar except one 'modem' goes offline during a call. Jolla has done it this way for example, but their APIs are bolted on top of the oFono one.
We could consider handling this as a single modem object with a bunch of API extensions (e.g. like allowing multiple sim atoms) as well. Not sure if such a solution is better or worse. Either way, I'm not aware of anyone working on this at the moment.
Regards,
-Denis