Closed Bug 908535 Opened 11 years ago Closed 11 years ago

B2G STK: Support Proactive command "OPEN CHANNEL"

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gwang, Assigned: gwang)

References

Details

Attachments

(3 files, 18 obsolete files)

(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
TS 102.223 6.4.27 When ME receive this command, open a channel for data transmission
Blocks: b2g-stk
This clause applies if class "e" is supported.
Blocks: 915509
Blocks: 908032
Blocks: 922504
Assignee: nobody → gwang
Attached patch Part1: BIP "Open Channel" proactive command IDL (obsolete) (deleted) — Splinter Review
Attachment #813034 - Flags: review?(allstars.chh)
Attachment #813035 - Flags: review?(allstars.chh)
Attachment #813036 - Flags: review?(allstars.chh)
Local test pass, here's the try server link https://tbpl.mozilla.org/?tree=Try&rev=2a1b7868d417
Comment on attachment 813034 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL I'll like to split this patch, as the modem may already did the work for us. So please parse only the mandatory and text message first. And move other functionalities to other bugs.
Attachment #813034 - Flags: review?(allstars.chh)
Attachment #813034 - Attachment is obsolete: true
Attachment #813035 - Attachment is obsolete: true
Attachment #813036 - Attachment is obsolete: true
Attachment #816444 - Attachment is obsolete: true
Attachment #816442 - Attachment is obsolete: true
Comment on attachment 816464 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL v.2 Delete the optional part. Now the patch only contain Open channel: default bearer, uicc/terminal server command's mandatory part & alphaId.
Attachment #816464 - Flags: review?(allstars.chh)
Attachment #816450 - Flags: review?(allstars.chh)
Attachment #816445 - Flags: review?(allstars.chh)
Comment on attachment 816464 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL v.2 Review of attachment 816464 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/icc/interfaces/SimToolKit.idl @@ +414,5 @@ > + * For the only support bearerType: nsIDOMMozIccManager.STK_BEARER_TYPE_DEFAULT, > + * this parameter is no need. > + */ > + jsval bearerParameters; > +}; I don't know why this dict is needed. only support 'default', and when the type is 'default', parameter is no need. @@ +416,5 @@ > + */ > + jsval bearerParameters; > +}; > + > +dictionary MozStkTransportLevel TransportLevel, is optional, remove. @@ +435,5 @@ > + */ > + unsigned short portNumber; > +}; > + > +dictionary MozStkDefaultBearer If modem has done this for us, then we don't need Bearer description as well. Remove this. @@ +469,5 @@ > + */ > + unsigned short bufferSize; > +}; > + > +dictionary MozStkServer We don't need Server, either Remove this. @@ +472,5 @@ > + > +dictionary MozStkServer > +{ > + /** > + * Text String, contain alphaId. "contain alphaId" doesn't make any sense here. And should be "contains" @@ +489,5 @@ > + jsval transportLevel; > +}; > + > +dictionary MozStkOpenChannel > +{ We should move text and bufferSize (if needed) to here. ::: dom/icc/interfaces/nsIDOMIccManager.idl @@ +218,5 @@ > const unsigned short STK_TIMER_GET_CURRENT_VALUE = 0x02; > > /** > + * Bearer Type > + */ We don't need this, and below.
Attachment #816464 - Flags: review?(allstars.chh) → review-
Attachment #816450 - Flags: review?(allstars.chh)
Attachment #816445 - Flags: review?(allstars.chh)
(The test result of patches) Try server link: https://tbpl.mozilla.org/?tree=Try&rev=ca80f4bd3d68 I'll update new patches in this bug later.
Attachment #816464 - Attachment is obsolete: true
Attachment #816965 - Flags: review?(allstars.chh)
Attachment #816450 - Attachment is obsolete: true
Attachment #816966 - Flags: review?(allstars.chh)
Attachment #816445 - Attachment is obsolete: true
Attachment #816967 - Flags: review?(allstars.chh)
Comment on attachment 816965 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL v.3 Review of attachment 816965 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Forward r? to Hsinyi. ::: dom/icc/interfaces/SimToolKit.idl @@ +400,5 @@ > */ > unsigned short timerAction; > }; > > +dictionary MozStkBIPCmd MozStkBipMessage, or please specify what does Cmd mean here.
Attachment #816965 - Flags: review?(htsai)
Attachment #816965 - Flags: review?(allstars.chh)
Attachment #816965 - Flags: review+
Comment on attachment 816966 [details] [diff] [review] Part2: "Open Channel" proactive command implement in ril v.3 Review of attachment 816966 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_consts.js @@ +1053,5 @@ > +this.STK_TERMINAL_SUPPORT_BIP_BEARER_TIA_EIA_IS_820 = 0; > +this.STK_TERMINAL_SUPPORT_BIP_BEARER_USB = 0; > + > +this.STK_TERMINAL_SUPPORT_BIP_UDP_CLIENT_REMOTE = 1; > +this.STK_TERMINAL_SUPPORT_BIP_TCP_CLIENT_REMOTE = 1; What does these two mean here? @@ +1139,5 @@ > (STK_TERMINAL_SUPPORT_PROACTIVE_LANGUAGE_NOTIFICATION << 5) | > (STK_TERMINAL_SUPPORT_PROACTIVE_LAUNCH_BROWSER << 6) | > (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_ACCESS_TECH << 7); > > +this.STK_TERMINAL_PROFILE_PROACTIVE_5 = Better naming, for example, STK_TERMINAL_PROFILE_BIP_COMMAND @@ +1174,5 @@ > STK_TERMINAL_PROFILE_PROACTIVE_3, > STK_TERMINAL_PROFILE_PROACTIVE_4, > 0x00, // Softkey support > 0x00, // Softkey information > + STK_TERMINAL_PROFILE_PROACTIVE_5, rename this ::: dom/system/gonk/ril_worker.js @@ +9851,5 @@ > + * The value object of CommandDetails TLV. > + * @param ctlvs > + * The all TLVs in this proactive command. > + */ > + processBIPCmd: function processBIPCmd(cmdDetails, ctlvs) { Bip And replace Cmd to the one in the IDL.
Attachment #816966 - Flags: review?(allstars.chh)
Comment on attachment 816967 [details] [diff] [review] Part3: Xpcshell test for "Open Channel" proactive cmd. v.3 Review of attachment 816967 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/tests/test_ril_worker_stk.js @@ +753,5 @@ > + 0xD0, > + 0x0F, > + 0x81, 0x03, 0x01, 0x16, 0x00, > + 0x82, 0x02, 0x81, 0x82, > + 0x85, 0x04, 0x54, 0x65, 0x78, 0x74//alpha id: "Text" nit, space before //
Attachment #816967 - Flags: review?(allstars.chh) → review+
Add space before //
Attachment #816967 - Attachment is obsolete: true
Change name and remove unnecessary SAT profile element.
Attachment #816966 - Attachment is obsolete: true
Attachment #817046 - Flags: review?(allstars.chh)
Dears, Please just review the new patch, thank you!
Attachment #816965 - Attachment is obsolete: true
Attachment #816965 - Flags: review?(htsai)
Attachment #817047 - Flags: review?(htsai)
Attachment #817047 - Attachment description: Bug908535_Part1.patch → Part1: OPEN CHANNEL proactive command IDL change. v.4
Attachment #817047 - Attachment is obsolete: true
Attachment #817047 - Flags: review?(htsai)
Attachment #817050 - Flags: review?(htsai)
Attachment #817046 - Attachment is obsolete: true
Attachment #817050 - Attachment is obsolete: true
Attachment #817046 - Flags: review?(allstars.chh)
Attachment #817050 - Flags: review?(htsai)
Attachment #817691 - Attachment is obsolete: true
I put the new patches to try server. See below link: https://tbpl.mozilla.org/?tree=Try&rev=5c2c9879155e Result pass!
Comment on attachment 817692 [details] [diff] [review] Part2: "Open Channel" proactive command implement in ril v.5 Dear Yoshi, This patch should be correct one~ sorry for boring you again.
Attachment #817692 - Flags: review?(allstars.chh)
Comment on attachment 817694 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL v.4 Due to I delete previous Part1 patch by accident...re-upload and set review? flag. Sorry for bothering you again.
Attachment #817694 - Flags: review?(htsai)
Blocks: 908536
Comment on attachment 817692 [details] [diff] [review] Part2: "Open Channel" proactive command implement in ril v.5 Review of attachment 817692 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +9858,5 @@ > + let ctlv = StkProactiveCmdHelper.searchForTag( > + COMPREHENSIONTLV_TAG_ALPHA_ID, ctlvs); > + if (ctlv) { > + bipMsg.text = ctlv.value.identifier; > + } What happened if ALPHA_ID is not in the TLVs?
Attachment #817692 - Flags: review?(allstars.chh) → review-
Comment on attachment 817692 [details] [diff] [review] Part2: "Open Channel" proactive command implement in ril v.5 Review of attachment 817692 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +9858,5 @@ > + let ctlv = StkProactiveCmdHelper.searchForTag( > + COMPREHENSIONTLV_TAG_ALPHA_ID, ctlvs); > + if (ctlv) { > + bipMsg.text = ctlv.value.identifier; > + } AlphaId is optional so it's okay if text is not included in BipMessage.
Attachment #817692 - Flags: review- → review+
Comment on attachment 817694 [details] [diff] [review] Part1: BIP "Open Channel" proactive command IDL v.4 Review of attachment 817694 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delay. It looks good to me!
Attachment #817694 - Flags: review?(htsai) → review+
Depends on: 908083
Due to change same file, the patches need to rebase after 908083 landed. I'll update on bug.
Component: DOM: Device Interfaces → RIL
Product: Core → Boot2Gecko
Version: Trunk → unspecified
re-patch base on Bug908083
Attachment #817694 - Attachment is obsolete: true
rebase.
Attachment #817692 - Attachment is obsolete: true
rebase.
Attachment #817039 - Attachment is obsolete: true
Keywords: checkin-needed
The constants here are wrong, file Bug 938466 to fix this.
Depends on: 938466
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: