Closed
Bug 828882
Opened 13 years ago
Closed 12 years ago
[Bluetooth][Certification]HFP PTS test case TC_AG_TCA_BV_04_I failed due to one ATD after CHUP was been ignored
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.1 fixed)
People
(Reporter: shawnjohnjr, Assigned: etienne)
References
Details
(Whiteboard: QARegressExclude)
Attachments
(2 files, 2 obsolete files)
21.68 KB,
application/octetstream
|
Details | |
3.16 KB,
patch
|
arcturus
:
review+
|
Details | Diff | Splinter Review |
The test performed via make an outgoing call first then hang up the call.
However, the call was not been canceled.
TC_AG_TCA_BV_04_I
Test case : TC_AG_TCA_BV_04_I started
- SDP Service record for PTS: 'Handsfree HF' successfully registered
- The IUT claims support for the following eSCO LMP packet types: EV3, 2-EV3,
- AT: SPP connect succeeded
- AT: Service Level Connection established
- AT: post SLC command sequence complete
- HCI: Audio Connection enabled
- FATAL ERROR (AT): The response to the following AT command has timed out: AT+CHUP
- MTC received unexpected EXIT message from AT component
- HCI: Audio Connection disabled
- AT: SPP disconnect succeeded
- MTC: Test case ended
Final Verdict : Inconclusive
4,834 Slave 46 ATD0988095164;. Dial: 0988095164 27 00:00:01.856000 2013/1/10 下午 06:01:03.999000
4,836 Master 46 ..OK.. Dialed Successfully 18 00:00:00.078000 2013/1/10 下午 06:01:04.077000
4,837 Master 46 ..+CIEV: 4,2.. Call Setup indicator's status report 26 00:00:00.125000 2013/1/10 下午 06:01:04.202000
4,840 Slave 46 AT+CHUP. Terminate the call 20 00:00:00.031000 2013/1/10 下午 06:01:04.233000
4,845 Master 46 ..OK.. Success 18 00:00:00.078000 2013/1/10 下午 06:01:04.311000
4,893 Master 46 ..+CIEV: 6,4.. Signal indicator's status report 26 00:00:02.231000 2013/1/10 下午 06:01:06.542000
Updated•13 years ago
|
Blocks: b2g-bluetooth-hfp
Reporter | ||
Updated•13 years ago
|
Assignee: shuang → gyeh
Reporter | ||
Updated•12 years ago
|
Assignee: gyeh → shuang
blocking-b2g: --- → leo?
Reporter | ||
Comment 1•12 years ago
|
||
The problem here is an outgoing call was made and soon Bluetooth certification machine sent AT+CHUP which tries to cancel outgoing call.
It seems if the call does not enter into CALL_CONNECTED state, AT+CHUP command will be ignored.
This leads call hang-up failure.
This also related to dialer like Bug 857795, which required to fix in gaia side.
Component: General → Bluetooth
Reporter | ||
Updated•12 years ago
|
Summary: [Bluetooth]HFP PTS test case TC_AG_TCA_BV_04_I failed due to one ATD after CHUP was been ignored → [Bluetooth][Certification]HFP PTS test case TC_AG_TCA_BV_04_I failed due to one ATD after CHUP was been ignored
Updated•12 years ago
|
Reporter | ||
Comment 3•12 years ago
|
||
It looks like dialer indeed call "telephony.active.hangUp()", but somehow under telephony ignore hangUp operation. I need to check what happened in Telephony and RIL. It looks like nothing related to dialer now.
Reporter | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
The first call status was changed at 12:08:14.861.
=>04-15 12:08:14.861 I/Gecko ( 790): -*- RadioInterfaceLayer: Received message from worker: {"rilMessageType":"callStateChange","call":{"state":2,"callIndex":1,"toa":129,"isMpty":false,"isMT":false,"als":0,"isVoice":true,"isVoicePrivacy":false,"number":"0988095164","numberPresentation":0,"name":"","namePresentation":0,"uusInfo":null,"direction":"outgoing"}}
And RILContentHelper didn't get any hang up command until 12:08:25.611.
=>04-15 12:08:25.611 I/GeckoDump( 921): !!!!!!!!!!!!!!!!!!ending call!!!!!!!!!!!!!
04-15 12:08:25.611 I/Gecko ( 921): -*- RILContentHelper: Hanging up call no. 1
Because you added this log,"!!!!!!!!!!!!!!!!!!ending call!!!!!!!!!!!!!", in Gaia, it seems
the upper layer didn't ask the end call procedure.
Reporter | ||
Comment 6•12 years ago
|
||
I found in dialer.js "sendCommandToCallScreen(type, command) ", CHUP command actually
callScreenWindow.postMessage(message, COMMS_APP_ORIGIN), but handleCommand(evt) cannot get message.
Reporter | ||
Comment 7•12 years ago
|
||
Hi Etienne, as we talked this morning, please help to fix this bug in dialer. We need to make sure system message sent after call screen is ready.
Assignee: shuang → etienne
Comment 8•12 years ago
|
||
Help shuang to tackle down the issue, which is occurred in gaia dialer.
The root issue is sendCommandToCallScreen is called but callScreenWindow is not yet Loaded.
This patch is from etienne's quick hack. using timer to wait for callScreenWindow loaded, still needs to find a better way to resolve this bug.
Assignee | ||
Comment 10•12 years ago
|
||
Hey Shawn, can you test this patch?
Attachment #738401 -
Attachment is obsolete: true
Attachment #738553 -
Flags: feedback?(shuang)
Reporter | ||
Comment 11•12 years ago
|
||
Comment on attachment 738553 [details] [diff] [review]
WIP
Hi Etienne, thanks for the patch, I tried over 30 times, I've seen twice times that CHUP was been ignore. Whenever i added extra logs, problem cannot be reproduced. Overall fail rate was dramatic decreased but i can still see problem.
Reporter | ||
Updated•12 years ago
|
Attachment #738553 -
Flags: feedback?(shuang) → feedback+
Reporter | ||
Comment 12•12 years ago
|
||
This patch helps in general, at least largely reduce the fail rate.
Comment 13•12 years ago
|
||
back to leo+ for now until tef release partner confirms this is blocking BT cert.
blocking-b2g: tef? → leo+
Assignee | ||
Comment 15•12 years ago
|
||
Here is a better version of the patch, ready to ask for review.
Shawn, let me know how it works out.
Attachment #738553 -
Attachment is obsolete: true
Attachment #740792 -
Flags: review?(francisco.jordano)
Flags: needinfo?(etienne)
Reporter | ||
Comment 16•12 years ago
|
||
Etienne, great, LGTM. I've tested over 15 times for this bug. I don't see any problem.
Comment 17•12 years ago
|
||
Comment on attachment 740792 [details] [diff] [review]
Patch proposal
Great job as always :P
Just a quick question:
https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/dialer.js#L205
Should we use callScreenWindowReady on the sendCommandToCallScreen ? Just wondering if we have a queue of commands which one command in the middle that makes the window close, we do that, and then we continue trying sending commands.
Anyway, a situation that is taking into account in the sendCommandToCallScreen first check.
Thanks Etienne!
Attachment #740792 -
Flags: review?(francisco.jordano) → review+
Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Francisco Jordano [:arcturus] from comment #17)
> Comment on attachment 740792 [details] [diff] [review]
> Patch proposal
>
> Great job as always :P
>
> Just a quick question:
>
> https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/
> js/dialer.js#L205
>
> Should we use callScreenWindowReady on the sendCommandToCallScreen ? Just
> wondering if we have a queue of commands which one command in the middle
> that makes the window close, we do that, and then we continue trying sending
> commands.
>
> Anyway, a situation that is taking into account in the
> sendCommandToCallScreen first check.
Yep we're pretty safe with the current checks.
We could eventually move the queuing logic to the sendCommandToCallScreen level (as opposed to being bluetooth only) but not sure it makes sense at the moment and don't want to prematurely generalize :)
Assignee | ||
Comment 19•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
blocking-b2g: tef? → tef+
status-b2g18-v1.0.1:
--- → affected
Updated•12 years ago
|
Target Milestone: --- → 1.0.1 IOT1 (10may)
Comment 24•12 years ago
|
||
John, can you please assist with the v1.0.1 uplift?
Flags: needinfo?(jhford)
Comment 26•12 years ago
|
||
Unable to verify. Lack of resources. Need Bluetooth PTS tool to verify.
Marking as QARegressExclude.
Whiteboard: QARegressExclude
You need to log in
before you can comment on or make changes to this bug.
Description
•