Closed
Bug 842220
Opened 12 years ago
Closed 11 years ago
B2G CDMA: [Gaia] Add signal notification function for CDMA/EVDO network
Categories
(Firefox OS Graveyard :: Gaia, defect)
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.
Reporter | ||
Comment 1•12 years ago
|
||
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;
}
Reporter | ||
Comment 2•12 years ago
|
||
And the |relSignalStrength| have been removed from DOM API.
the |signalStrength| have been moved to |signal.gsmSignal|
Reporter | ||
Updated•12 years ago
|
(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.
Updated•11 years ago
|
QA Contact: echu
Updated•11 years ago
|
Whiteboard: [UX ETA:9/6]
Updated•11 years ago
|
Whiteboard: [UX ETA:9/6] → [UX ETA:9/6], [FT:RIL], [Sprint:4]
Reporter | ||
Comment 5•11 years ago
|
||
(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.
Comment 6•11 years ago
|
||
Please check attached file.
Assignee | ||
Comment 8•11 years ago
|
||
In bug 878851 we changed the technology icon from png to characters.
Assignee | ||
Comment 9•11 years ago
|
||
Alive, could you help review this change? Thanks!
Attachment #797717 -
Flags: review?(alive)
Updated•11 years ago
|
Attachment #797717 -
Flags: review?(alive) → review+
Assignee | ||
Comment 10•11 years ago
|
||
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.
Description
•