Closed Bug 902371 Opened 11 years ago Closed 11 years ago

B2G RIL: Expose current device technology (GSM or CDMA).

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED WONTFIX
blocking-b2g -

People

(Reporter: edgar, Assigned: edgar)

References

Details

(Whiteboard: [FT:RIL])

Some designs are quite different between GSM and CDMA, like network selection [1], emergency call [2], call waiting [3] ... etc. Gaia needs to show different page or run into different logic based on the different technology. It will be good if RIL can provide the information of underlying technology to Gaia in run time, especially for multi-tech device. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=899484 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=881863 [3] https://bugzilla.mozilla.org/show_bug.cgi?id=822210
Some gecko components (e.g., bluetooth) needs this kinds information as well. Please see bug 912019 comment #0.
Summary: B2G RIL: Expose current device technology → B2G RIL: Expose current device technology (GSM or CDMA).
So this bug is focusing on exposing API to Gaia, and bug 912019 is about *internal* API?
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #2) > So this bug is focusing on exposing API to Gaia, and bug 912019 is about > *internal* API? Yes
Component: DOM: Device Interfaces → RIL
Product: Core → Boot2Gecko
Assignee: nobody → echen
blocking-b2g: --- → koi+
Target Milestone: --- → 1.2 C5(Nov22)
Whiteboard: [FT:RIL]
I think mozMobileConnection is the suitable place to put this API. Any other suggestion? :)
(In reply to Edgar Chen [:edgar][:echen] from comment #4) > I think mozMobileConnection is the suitable place to put this API. Any other > suggestion? :) I wonder if we really need a new API. Should we reuse voicechange/datachange?
Moving to 1.3 as it is a feature request. 905081 has been moved to 1.3
blocking-b2g: koi+ → 1.3?
As mention in bug 905081 comment #9, gaia will use build time configuration file for no sim inserted case. So this bug no longer block bug 905081.
No longer blocks: 905081
Triaged and tried to push to 1.4. Removed target milestone.
blocking-b2g: 1.3? → 1.4?
Target Milestone: 1.2 C5(Nov22) → ---
(In reply to Ken Chang from comment #5) > (In reply to Edgar Chen [:edgar][:echen] from comment #4) > > I think mozMobileConnection is the suitable place to put this API. Any other > > suggestion? :) > I wonder if we really need a new API. Should we reuse voicechange/datachange? Currently, the mozMobileConneciton.{voice|data}.type [1] will be null if device is not registered to a network. Do you mean we should reuse this? For example, if device is NOT registered to a network, mozMobileConneciton.{voice|data}.type will be the underlying radio technology of modem, instead of null. I afraid this may confuse the API user. My original idea is add a new attribute in mozMobileConneciton, something like |radioTechnology|, and the possible value is "cdma" or "gsm". How do you think? :) [1] http://dxr.mozilla.org/mozilla-central/source/dom/network/interfaces/nsIDOMMobileConnection.idl?from=nsIDOMMobileConnection.idl#473
blocking-b2g: 1.4? → ---
Blocks: 952026
We need to consider LTE as well.
This is a 1.4+ bug.
blocking-b2g: --- → 1.4+
(In reply to Edgar Chen [:edgar][:echen] from comment #9) > (In reply to Ken Chang from comment #5) > > (In reply to Edgar Chen [:edgar][:echen] from comment #4) > > > I think mozMobileConnection is the suitable place to put this API. Any other > > > suggestion? :) > > I wonder if we really need a new API. Should we reuse voicechange/datachange? > > Currently, the mozMobileConneciton.{voice|data}.type [1] will be null if > device is not registered to a network. Do you mean we should reuse this? > For example, if device is NOT registered to a network, > mozMobileConneciton.{voice|data}.type will be the underlying radio > technology of modem, instead of null. > I afraid this may confuse the API user. > > My original idea is add a new attribute in mozMobileConneciton, something > like |radioTechnology|, and the possible value is "cdma" or "gsm". > How do you think? :) > We already expose 'supportedNetworkTypes' on bug 952043. So is this a duplicate? Please let me know if I misunderstand the scope of this bug. > [1] > http://dxr.mozilla.org/mozilla-central/source/dom/network/interfaces/ > nsIDOMMobileConnection.idl?from=nsIDOMMobileConnection.idl#473
remove 1.4+ flag as this is a feature. Needinfo to Edgar for Hsinyi's question.
blocking-b2g: 1.4+ → backlog
Flags: needinfo?(echen)
Target Milestone: --- → 1.4 S3 (14mar)
No longer blocks: 952026
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #13) > We already expose 'supportedNetworkTypes' on bug 952043. So is this a > duplicate? Please let me know if I misunderstand the scope of this bug. Bug 952026 can covered by bug 952043. But unfortunately, this bug cannot be covered by 'supportedNetworkTypes' for some cases, especially in world phone. :( 'supportedNetworkTypes' only provides the information of device's capability. Takes world phone as an example, it can run as GSM phone or CDMA phone depends on user configuration, so the 'supportedNetworkType' will return ['gsm', 'wcdma', 'cdma', 'evdo']. In such case, API user only knows this is a world phone, but still unable to know device is in GSM mode or CDMA mode. The only usage that I can imagine is settings app may want to show different menu for GSM/CDMA dynamically. But it seems there is no such requirement for now. I guess we don't need to worry about this bug until someone starts needing it. Thank you.
Flags: needinfo?(echen)
See Also: 952043
(In reply to Edgar Chen [:edgar][:echen] from comment #15) > The only usage that I can imagine is settings app may want to show different > menu for GSM/CDMA dynamically. But it seems there is no such requirement for > now. I guess we don't need to worry about this bug until someone starts > needing it. Here someone comes. Bluetooth needs this API to know whether GSM/CDMA is in use, and handle call state changes accordingly.
Gecko already notifies gaia what radio tech the device is registered on. Can BT not use the API mozConnection.voice.type?
(In reply to Anshul from comment #17) > Gecko already notifies gaia what radio tech the device is registered on. Can > BT not use the API mozConnection.voice.type? Do you mean [1]? [1] provides only implicit info about whether GSM/CDMA is in use and bluetooth has to parse the strings in a messy way as [2]. What we expect is an API to get current radio tech directly. Please refer to bug 912019 comment #0 for more info. [1] http://dxr.mozilla.org/mozilla-central/source/dom/mobileconnection/interfaces/nsIDOMMobileConnection.idl#509 [2] http://dxr.mozilla.org/mozilla-central/source/dom/bluetooth/bluez/BluetoothHfpManager.cpp#1549
We use similar logic in gaia to determine the category of the network types. Is there any strong reason to request a new API?
(In reply to Arthur Chen [:arthurcc] from comment #19) > We use similar logic in gaia to determine the category of the network types. > Is there any strong reason to request a new API? As I know, setting will use 'supportedNetworkTypes' [1] to determine the category of the network types. Please let me know if I am misunderstand anything, thank you. [2] Please see bug 952043.
(In reply to Edgar Chen [:edgar][:echen] from comment #20) > (In reply to Arthur Chen [:arthurcc] from comment #19) > > We use similar logic in gaia to determine the category of the network types. > > Is there any strong reason to request a new API? > > As I know, setting will use 'supportedNetworkTypes' [1] to determine the > category of the network types. Please let me know if I am misunderstand > anything, thank you. > > [2] Please see bug 952043. supportedNetworkTypes is used to determined the supported types. But I think what Ben want is the current connecting type in used. To me mozConnection.voice.type is sufficient for similar use cases in gaia as Ben wants.
(In reply to Ben Tian [:btian] from comment #18) > (In reply to Anshul from comment #17) > > Gecko already notifies gaia what radio tech the device is registered on. Can > > BT not use the API mozConnection.voice.type? > Do you mean [1]? [1] provides only implicit info about whether GSM/CDMA is > in use and bluetooth has to parse the strings in a messy way as [2]. What we > expect is an API to get current radio tech directly. Please refer to bug > 912019 comment #0 for more info. > > [1] > http://dxr.mozilla.org/mozilla-central/source/dom/mobileconnection/ > interfaces/nsIDOMMobileConnection.idl#509 > [2] > http://dxr.mozilla.org/mozilla-central/source/dom/bluetooth/bluez/ > BluetoothHfpManager.cpp#1549 (((offline discuss with Ben))) RIL have a plan to handle call state for both CDMA and GSM in RIL side. After that BT can handle CDMA call and GSM call in a unified way and no longer need to worry about 'network type'.
blocking-b2g: backlog → 1.4+
Gecko already provide mozConnection.voice.type to indicate the radio tech that device is registered on. The purpose of this bug is to expose the radio tech even if device is NOT registered to network. But it seems no one needs this for now, so close it. Please re-open if someone starts needing this. Thank you.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
blocking-b2g: 1.4+ → -
Target Milestone: 1.4 S3 (14mar) → ---
Blocks: 976427
You need to log in before you can comment on or make changes to this bug.