All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/6] sim: Added new properties to simmanager for DSSA
@ 2019-03-27 12:09 Antara Borwankar
  2019-03-27 12:25 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Antara Borwankar @ 2019-03-27 12:09 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

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(+)

diff --git a/doc/sim-api.txt b/doc/sim-api.txt
index bce47c1..c69cc74 100644
--- a/doc/sim-api.txt
+++ b/doc/sim-api.txt
@@ -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.
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/6] sim: Added new properties to simmanager for DSSA
  2019-03-27 12:09 [PATCH 2/6] sim: Added new properties to simmanager for DSSA Antara Borwankar
@ 2019-03-27 12:25 ` Pavel Machek
  2019-03-27 19:33   ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2019-03-27 12:25 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

On Wed 2019-03-27 17:39:12, Antara Borwankar wrote:
> 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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/6] sim: Added new properties to simmanager for DSSA
  2019-03-27 12:25 ` Pavel Machek
@ 2019-03-27 19:33   ` Denis Kenzior
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2019-03-27 19:33 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

Hi Pavel,

On 03/27/2019 07:25 AM, Pavel Machek wrote:
> On Wed 2019-03-27 17:39:12, Antara Borwankar wrote:
>> 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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-27 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 12:09 [PATCH 2/6] sim: Added new properties to simmanager for DSSA Antara Borwankar
2019-03-27 12:25 ` Pavel Machek
2019-03-27 19:33   ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.