Closed Bug 1032627 Opened 10 years ago Closed 10 years ago

[bluez] Fail to show paired devices while doing NFC pairing

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
2.0 S5 (4july)

People

(Reporter: ashiue, Assigned: shawnjohnjr)

References

Details

(Whiteboard: [p=4])

+++ This bug was initially created as a clone of Bug #1007576 +++

The paired headset still not show on "Paired devices" area when stay at settings->bt page and bt off.
###STR:
1. Launch "Settings" app
2. Enable "NFC" settings
3. Go to Bluetooth in setting (Please stay at this page)
4. Make sure BT is off
5. Tap the phone with bluetooth headset

###Expected result:
The bluetooth turned on, the earphone paired and connected, and the device show on "Paired devices" area

###Actual result:
The bluetooth turned on, and the earphone paired and connected, but no device show on "Paired devices" area
Assignee: nobody → shuang
Target Milestone: --- → 2.0 S5 (4july)
Summary: [bluez] Update CoD value after device found while doing NFC pairing → [bluez] Fail to get paired devices while doing NFC pairing
(In reply to ashiue from comment #0)
> +++ This bug was initially created as a clone of Bug #1007576 +++
> 
> The paired headset still not show on "Paired devices" area when stay at
> settings->bt page and bt off.
> ###STR:
> 1. Launch "Settings" app
> 2. Enable "NFC" settings
> 3. Go to Bluetooth in setting (Please stay at this page)
> 4. Make sure BT is off
> 5. Tap the phone with bluetooth headset
> 
> ###Expected result:
> The bluetooth turned on, the earphone paired and connected, and the device
> show on "Paired devices" area
> 
> ###Actual result:
> The bluetooth turned on, and the earphone paired and connected, but no
> device show on "Paired devices" area

Add some extra comments here:
Bluetooth headset get paired and connected. However, Bluetooth Settings seems cannot load paired devices. If the user does not do nfc pairing while in Bluetooth Settings page, this bug cannot hit.
This bug is related to timing issue.
While |onpairedstatuschanged|, paired status = true, Settings app queries immediately, but retrieve older value. After query completed, bluez return new property which indicates Paired == true.

1. Gaia app got onpairedstatuschanged
2. dbus event PropertyChanged
3. Gaia app queried the older paired status
4. property updated
Summary: [bluez] Fail to get paired devices while doing NFC pairing → [bluez] Fail to show paired devices while doing NFC pairing
Ah, this bug seems not easy to fix. Unless we did the following:
1. If we got dbus event PropertyChanged paired property from false to true, hold PropertyChange event.
2. Until we got device property change, and update to gaia, then we send PropertyChange event to gaia.
QA Whiteboard: [COM=NFC]
Since we're all migrate to kk based image. I don't see any reason to fix this for JB/ICS base. Reload Settings, this problem will be disappeared.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.