Closed Bug 1087131 Opened 10 years ago Closed 10 years ago

[B2G][STK] When modem reports an unsolicited message whose DCS is F6, screen will show blank message.

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0M+, b2g-v1.4 affected, b2g-v2.0 wontfix, b2g-v2.0M fixed, b2g-v2.1 affected, b2g-v2.2 fixed)

RESOLVED FIXED
2.1 S7 (24Oct)
blocking-b2g 2.0M+
Tracking Status
b2g-v1.4 --- affected
b2g-v2.0 --- wontfix
b2g-v2.0M --- fixed
b2g-v2.1 --- affected
b2g-v2.2 --- fixed

People

(Reporter: wei.gao, Assigned: bevis)

References

Details

Attachments

(7 files)

OS version --------------------------------------------- FireFoxOS v1.4 Reproduce steps: --------------------------------------------- Modem reports an unsolicited message "AT< +SPUSATPROCMDIND:D02C8103012181820281028D21F64D657373616765206661696C65642C20706C656173652074727920616761696E" Expected result: --------------------------------------------- STK shows “Message failed, please try again” Actual result: --------------------------------------------- STK shows blank Probability: --------------------------------------------- Always Recurrence
Summary: When modem reports an unsolicited message whose DCS is F6, screen will show blank. → When modem reports an unsolicited message whose DCS is F6, screen will show blank message.
I think that is because FFOS doesn't support F6 Data Coding Scheme. The agreement specified that "F6" represents 8-bit data ,Class 2 (U)SIM-specific message. Before decoding the text string, codingScheme & 0x0f will be done. However, FFOS seems only support "0x00","0x04","0x08". // STK Coding Scheme. this.STK_TEXT_CODING_GSM_7BIT_PACKED = 0x00; this.STK_TEXT_CODING_GSM_8BIT = 0x04; this.STK_TEXT_CODING_UCS2 = 0x08;
Dear Vance Could you help to take a look at this issue? Thanks.
Flags: needinfo?(vchen)
Flags: needinfo?(sku)
(In reply to Wei Gao (Spreadtrum) from comment #2) > Dear Vance > > Could you help to take a look at this issue? > Thanks. Hi Wei Gao - Are we talking about MTSMS here? Because i find it hard to interpret the TPDU you mentioned in the issue description given that the F6 in that TPDU represents the DCS filed in the SMS MT TPDU. Anyway loop Bevis to help to further check Hi Bevis, mind taking a look at this one?
Flags: needinfo?(vchen)
Flags: needinfo?(sku)
Flags: needinfo?(btseng)
(In reply to Vance Chen [:vchen][vchen@mozilla.com] from comment #3) > (In reply to Wei Gao (Spreadtrum) from comment #2) > > Dear Vance > > > > Could you help to take a look at this issue? > > Thanks. > > Hi Wei Gao - > > Are we talking about MTSMS here? Because i find it hard to interpret the > TPDU you mentioned in the issue description given that the F6 in that TPDU > represents the DCS filed in the SMS MT TPDU. > > Anyway loop Bevis to help to further check > > Hi Bevis, mind taking a look at this one? It's more likely to be an STK proactive command instead of MT SMS from comment 0. NI reporter to 1. Clarify if we are talking about the STK proactive command and provide more detailed user scenario of this symptom for reference.(What's the reproducible step by device user for this symptom?) 2. Capture adb logcat of main log & radio log for further analysis. Thanks!
Flags: needinfo?(btseng) → needinfo?(wei.gao)
(In reply to Bevis Tseng [:bevistseng] (btseng@mozilla.com) from comment #4) > NI reporter to > 1. Clarify if we are talking about the STK proactive command and provide > more detailed user scenario > of this symptom for reference.(What's the reproducible step by device > user for this symptom?) > 2. Capture adb logcat of main log & radio log for further analysis. > > Thanks! Yes, that is right, it is a STK proactive command. I will upload the log you need.
Flags: needinfo?(wei.gao)
Attached file slog.zip
Dear Bevis This is the log for this issue. As the reproducible step is a little complex, so I upload a video to show it. http://pan.baidu.com/s/1bnetlzL I think this issue is related to some special operators. Could you help to check it again? Thanks a great.
Flags: needinfo?(btseng)
(In reply to Wei Gao (Spreadtrum) from comment #6) > Created attachment 8509220 [details] > slog.zip > > Dear Bevis > > This is the log for this issue. > As the reproducible step is a little complex, so I upload a video to show it. > http://pan.baidu.com/s/1bnetlzL > > I think this issue is related to some special operators. > Could you help to check it again? > Thanks a great. Thanks for providing these information. I'll check it and feedback you soon.
Flags: needinfo?(btseng)
(In reply to Wei Gao (Spreadtrum) from comment #1) > I think that is because FFOS doesn't support F6 Data Coding Scheme. > The agreement specified that "F6" represents 8-bit data ,Class 2 > (U)SIM-specific message. > Before decoding the text string, codingScheme & 0x0f will be done. > However, FFOS seems only support "0x00","0x04","0x08". > > // STK Coding Scheme. > this.STK_TEXT_CODING_GSM_7BIT_PACKED = 0x00; > this.STK_TEXT_CODING_GSM_8BIT = 0x04; > this.STK_TEXT_CODING_UCS2 = 0x08; After further analysis from the logs, the root cause is that: 1. According to 8.15 Text string in TS 102 223. [1], the DCS is coded as for SMS Data coding scheme defined in TS 123 038 [2], and the recommand value are 0x00 (GSM 7bit packed), 0x04 (GSM 7bit unpacked), 0x08 (UCS2). 2. If we filter out the Coding groups of "Message Marked for Automatic Deletion Group", "Message Waiting Indication Group" in [2] that are not related to STK proactive command, we can figure out that the DCS MASK for STK Text String shall be "0x0C" instead of "0x0F" used in current implementation. So the fix of this bug is simple to have "0x0C" as the DCS MASK. I'll upload the fix and the corresponding test cases to enhance our test coverage. [1] http://www.etsi.org/deliver/etsi_ts/102200_102299/102223/12.01.00_60/ts_102223v120100p.pdf [2] http://www.etsi.org/deliver/etsi_ts/123000_123099/123038/11.00.00_60/ts_123038v110000p.pdf
Hi Edgar, May I have your review for this quick fix? Thanks!
Assignee: nobody → btseng
Attachment #8509380 - Flags: review?(echen)
This is to 1. add the corresponding test case of Display Text with different DCS. 2. minor change for the alignment. Hi Edgar, May I have your review for these new test cases? Thanks!
Attachment #8509388 - Flags: review?(echen)
Comment on attachment 8509380 [details] [diff] [review] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen Review of attachment 8509380 [details] [diff] [review]: ----------------------------------------------------------------- Thank you.
Attachment #8509380 - Flags: review?(echen) → review+
(In reply to Edgar Chen [:edgar][:echen] from comment #11) > Comment on attachment 8509380 [details] [diff] [review] > Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) > according to 3GPP TS 23.040. > > Review of attachment 8509380 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thank you. Thank Bevis for your kindly help. So, can it be landed on v1.4 now?
Attachment #8509388 - Flags: review?(echen) → review+
Attachment #8509380 - Attachment description: Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. → Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen
Attachment #8509388 - Attachment description: Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. → Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen
(In reply to Wei Gao (Spreadtrum) from comment #12) > (In reply to Edgar Chen [:edgar][:echen] from comment #11) > > Comment on attachment 8509380 [details] [diff] [review] > > Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) > > according to 3GPP TS 23.040. > > > > Review of attachment 8509380 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > Thank you. > > Thank Bevis for your kindly help. > So, can it be landed on v1.4 now? Hi Wei Gao, Patches for 1.4v has been uploaded. However, there is no option to set blocking-b2g for 1.4 for uplifting now. Would you please cherry pick these 2 patches instead? Thanks!
Flags: needinfo?(wei.gao)
(In reply to Bevis Tseng [:bevistseng] (btseng@mozilla.com) from comment #15) > Hi Wei Gao, > > Patches for 1.4v has been uploaded. > However, there is no option to set blocking-b2g for 1.4 for uplifting now. > Would you please cherry pick these 2 patches instead? > > Thanks! Dear Bevis Do you mean it can't be landed on v1.4 now and I can take this patch in our sprd branch locally instead? Thanks.
Flags: needinfo?(wei.gao)
(In reply to Wei Gao (Spreadtrum) from comment #16) > (In reply to Bevis Tseng [:bevistseng] (btseng@mozilla.com) from comment #15) > > Hi Wei Gao, > > > > Patches for 1.4v has been uploaded. > > However, there is no option to set blocking-b2g for 1.4 for uplifting now. > > Would you please cherry pick these 2 patches instead? > > > > Thanks! > > Dear Bevis > > Do you mean it can't be landed on v1.4 now and I can take this patch in our > sprd branch locally instead? > Thanks. Yes, sorry for inconvenience and thanks for reporting these issues to keep improving our quality in m-c branch. Bevis
[Reason to set 2.0m?] The STK related texts to be displayed in the dialog or menu won't be displayed if the coding scheme of the text is set to coding group 0xF0 which is legal according to 8.15 Text string in TS 102 223. [1] and SMS Coding Scheme in [2] but is not identified correctly in our implementation. Set 2.0m? instead of 2.0? because it shall not impact to v2.0 if CAF RIL is applied. [1] http://www.etsi.org/deliver/etsi_ts/102200_102299/102223/12.01.00_60/ts_102223v120100p.pdf [2] http://www.etsi.org/deliver/etsi_ts/123000_123099/123038/11.00.00_60/ts_123038v110000p.pdf
blocking-b2g: --- → 2.0M?
(In reply to Bevis Tseng [:bevistseng] (btseng@mozilla.com) from comment #17) > Yes, sorry for inconvenience and thanks for reporting these issues to keep > improving our quality in m-c branch. > > Bevis I am glad to do that and be happy to work with you. :) Thanks again. Wei
blocking-b2g: 2.0M? → ---
Sorry, it is a mistake, I make the flag 2.0M? again.
blocking-b2g: --- → 2.0M?
(In reply to Wei Gao (Spreadtrum) from comment #20) > Sorry, it is a mistake, I make the flag 2.0M? again. Thanks! :)
Summary: When modem reports an unsolicited message whose DCS is F6, screen will show blank message. → [B2G][STK] When modem reports an unsolicited message whose DCS is F6, screen will show blank message.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S7 (24Oct)
Comment on attachment 8510055 [details] [diff] [review] [1.4v][2.0v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): Not a regression. The problem exists since STK feature was added. User impact if declined: For some carrier, if the coding scheme F6 was used by the STK application of their SIM cards, the text to be displayed will not be decoded correctly. Then, an empty string will be displayed instead. Testing completed: Yes. New test cases were added in patch part2 to improve the test coverage. Risk to taking this patch (and alternatives if risky): No. String or UUID changes made by this patch: No.
Attachment #8510055 - Flags: approval-mozilla-b2g34?
Attachment #8510055 - Flags: approval-mozilla-b2g32?
Comment on attachment 8510056 [details] [diff] [review] [1.4v][2.0v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky): String or UUID changes made by this patch: NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky): String or UUID changes made by this patch: NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): Not a regression. The problem exists since STK feature was added. User impact if declined: For some carrier, if the coding scheme F6 was used by the STK application of their SIM cards, the text to be displayed will not be decoded correctly. Then, an empty string will be displayed instead. Testing completed: Yes. New test cases were added in patch part2 to improve the test coverage. Risk to taking this patch (and alternatives if risky): No. String or UUID changes made by this patch: No.
Attachment #8510056 - Flags: approval-mozilla-b2g34?
Attachment #8510056 - Flags: approval-mozilla-b2g32?
Attachment #8510055 - Attachment description: [1.4v][2.0v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen → [1.4v][2.0v][2.1v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen
Attachment #8510056 - Attachment description: [1.4v][2.0v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen → [1.4v][2.0v][2.1v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen
blocking-b2g: 2.0M? → 2.0M+
Comment on attachment 8510055 [details] [diff] [review] [1.4v][2.0v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen Discussed offline with Bevis/Ken on not taking this for 2.0 at this point. For 2.1, once we have a necessary branches created we can land this at that point.
Attachment #8510055 - Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32-
Attachment #8510056 - Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32-
Comment on attachment 8510055 [details] [diff] [review] [1.4v][2.0v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen 2.1 has to be created in separated one.
Attachment #8510055 - Flags: approval-mozilla-b2g34?
Attachment #8510055 - Attachment description: [1.4v][2.0v][2.1v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen → [1.4v][2.0v] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen
Attachment #8510056 - Attachment description: [1.4v][2.0v][2.1v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen → [1.4v][2.0v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen
Comment on attachment 8510056 [details] [diff] [review] [1.4v][2.0v] Part 2 v1: Add Test Cases for STK Display Text in various Coding Schemes. r=echen 2.1 has to be created in a separated patch.
Attachment #8510056 - Flags: approval-mozilla-b2g34?
Per comment 24. (patch was landed in m-c)
[Approval Request Comment] Bug caused by (feature/regressing bug #): Not a regression. The problem exists since STK feature was added in MOZ RIL. User impact if declined: For some carrier, if the coding scheme F6 was used by the STK application of their SIM cards, the text to be displayed will not be decoded correctly. Then, an empty string will be displayed instead. Testing completed: Yes. New test cases were added in patch part2 to improve the test coverage. Risk to taking this patch (and alternatives if risky): No. String or UUID changes made by this patch: No.
Attachment #8515733 - Flags: review+
Attachment #8515733 - Flags: approval-mozilla-b2g34?
[Approval Request Comment] Bug caused by (feature/regressing bug #): Not a regression. The problem exists since STK feature was added in MOZ RIL. User impact if declined: For some carrier, if the coding scheme F6 was used by the STK application of their SIM cards, the text to be displayed will not be decoded correctly. Then, an empty string will be displayed instead. Testing completed: Yes. New test cases were added in patch part2 to improve the test coverage. Risk to taking this patch (and alternatives if risky): No. String or UUID changes made by this patch: No.
Attachment #8515734 - Flags: review+
Attachment #8515734 - Flags: approval-mozilla-b2g34?
Comment on attachment 8515733 [details] [diff] [review] [v2.1] Part 1 v1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen Refer : https://bugzilla.mozilla.org/show_bug.cgi?id=1085765#c35 for 2.1 approval
Attachment #8515733 - Flags: approval-mozilla-b2g34?
Attachment #8515734 - Flags: approval-mozilla-b2g34?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: