Closed Bug 842220 Opened 11 years ago Closed 11 years ago

B2G CDMA: [Gaia] Add signal notification function for CDMA/EVDO network

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+)

RESOLVED FIXED
blocking-b2g koi+

People

(Reporter: kchang, Assigned: arthurcc)

References

Details

(Whiteboard: [UX ETA:9/6], [FT:RIL], [Sprint:4])

Attachments

(2 files)

For supporting the signal notification function of CDMA/Evdo, Gaia has to read the new signal information from RIL for CDMA/EVDO network.
No longer blocks: 835237
Blocks: 835237
For GSM network, we should modify following code

icon.dataset.level = Math.ceil(voice.relSignalStrength / 20); // 0-5

to be
        if (voice.signal.gsmSignal >= -86) {
          icon.dataset.level = 5;
        } else if (voice.signal.gsmSignal >= -88) {
          icon.dataset.level = 4;
        } else if (voice.signal.gsmSignal >= -97) {
          icon.dataset.level = 3;
        } else if (voice.signal.gsmSignal >= -102) {
          icon.dataset.level = 2;
        } else if (voice.signal.gsmSignal >= -108) {
          icon.dataset.level = 1;
        } else {
          icon.dataset.level = 0;
        }
And the |relSignalStrength| have been removed from DOM API.
the |signalStrength| have been moved to |signal.gsmSignal|
No longer blocks: 835237
Depends on: 835237
Blocks: 890325
blocking-b2g: --- → koi+
Neo, we need the UX design for this item. Thanks!
Assignee: rexboy → nhsieh
(In reply to Ken Chang from comment #1)
> For GSM network, we should modify following code
> 
> icon.dataset.level = Math.ceil(voice.relSignalStrength / 20); // 0-5
> 
> to be
>         if (voice.signal.gsmSignal >= -86) {
>           icon.dataset.level = 5;
>         } else if (voice.signal.gsmSignal >= -88) {
>           icon.dataset.level = 4;
>         } else if (voice.signal.gsmSignal >= -97) {
>           icon.dataset.level = 3;
>         } else if (voice.signal.gsmSignal >= -102) {
>           icon.dataset.level = 2;
>         } else if (voice.signal.gsmSignal >= -108) {
>           icon.dataset.level = 1;
>         } else {
>           icon.dataset.level = 0;
>         }
Ken, can we not keep this logic in RIL as it is now and just use the relSignalStrength? All gaia needs to know is how many signal strength bars to display and that it already does based on relSignalStrenth. RIL can figure out for each network GSM/CDMA/Evdo and then calculate the rilSignalStrength and send it to Gaia.
QA Contact: echu
Whiteboard: [UX ETA:9/6]
Whiteboard: [UX ETA:9/6] → [UX ETA:9/6], [FT:RIL], [Sprint:4]
(In reply to Anshul from comment #4)
> Ken, can we not keep this logic in RIL as it is now and just use the
> relSignalStrength? All gaia needs to know is how many signal strength bars
> to display and that it already does based on relSignalStrenth. RIL can
> figure out for each network GSM/CDMA/Evdo and then calculate the
> rilSignalStrength and send it to Gaia.
Hi Anshul, sure. And Edgar have done what your said.
Attached file CDMA_Signal_icon.zip
Please check attached file.
Arthur, can you please help?
Assignee: nhsieh → arthur.chen
In bug 878851 we changed the technology icon from png to characters.
Alive, could you help review this change? Thanks!
Attachment #797717 - Flags: review?(alive)
Attachment #797717 - Flags: review?(alive) → review+
Thanks alive!

master: https://github.com/mozilla-b2g/gaia/commit/ce41a1f6680eaf4395a8bfcb7457f1d9bbfd6267
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: