×
Namespaces

Variants
Actions
(Difference between revisions)

Bluetooth discovery in Qt Mobility may not report devices (Nokia C6)

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Subedit)
hamishwillee (Talk | contribs)
m (Text replace - "Category:Connectivity" to "")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Qt Mobility]][[Category:Connectivity]][[Category:Bluetooth]]
+
[[Category:Qt Mobility]][[Category:Bluetooth]]
{{Abstract|Bluetooth discovery in Qt Mobility does not report devices in the cache. }}  
+
{{Abstract|Bluetooth discovery in Qt Mobility may not report devices. }}  
 
{{ArticleMetaData
 
{{ArticleMetaData
 
|sourcecode= http://doc.qt.nokia.com/qtmobility-1.2/btscanner.html
 
|sourcecode= http://doc.qt.nokia.com/qtmobility-1.2/btscanner.html
Line 23: Line 23:
 
== Description==
 
== Description==
  
Qt Bluetooth device discovery is achieved using the Qt Mobility API [http://doc.qt.nokia.com/qtmobility-1.2/qbluetoothdevicediscoveryagent.html QBluetoothDeviceDiscoveryAgent] {{Icode|start()}} method. On Symbian this will only discover ''new'' devices, ignoring those that have been previously cached.
+
Bluetooth device discovery on Symbian using the Qt Mobility API [http://doc.qt.nokia.com/qtmobility-1.2/qbluetoothdevicediscoveryagent.html QBluetoothDeviceDiscoveryAgent] may not report some local devices when both Bluetooth audio and wireless data connections are active.
  
The reason for this is that the Symbian implementation explicitly ignores cached results by setting the {{Icode|KHostResIgnoreCache}} flag:
+
== How to reproduce ==
<code cpp>
+
void BluetoothLinkManagerDeviceDiscoverer::startDiscovery(const uint discoveryType)
+
{
+
...
+
m_addr.SetAction(KHostResInquiry | KHostResName | KHostResIgnoreCache);
+
...
+
}
+
</code>
+
  
== How to reproduce ==
+
Connect a Bluetooth headset and start listening an internet radio over the wireless network.
  
Pair with all local devices. Then attempt to discover the devices again. No devices are discovered - and in the Qt Creator debug window you can see the following messages  
+
Attempt to discover bluetooth devices with the API. No devices are discovered - and in the Qt Creator debug window you can see the following messages  
 
<code text>
 
<code text>
 
[Qt Message] void QtMobility::BluetoothLinkManagerDeviceDiscoverer::RunL() 0  
 
[Qt Message] void QtMobility::BluetoothLinkManagerDeviceDiscoverer::RunL() 0  
Line 46: Line 38:
 
== Solution ==
 
== Solution ==
  
There is no known solution or workaround for the problem.
+
There is no known solution or workaround for the problem.[[Category:MeeGo Harmattan]] [[Category:Symbian]]

Latest revision as of 02:27, 31 May 2013

Bluetooth discovery in Qt Mobility may not report devices.

Article Metadata
Code ExampleTested with
Devices(s): Nokia C6-01
Compatibility
Platform(s): Qt mobility 1.2.1 and later
Symbian
Device(s): All with internal Bluetooth
Platform Security
Signing Required: DevCert required
Capabilities: ReadDeviceData LocalServices WriteDeviceData
Article
Keywords: QBluetoothDeviceDiscoveryAgent, BluetoothLinkManagerDeviceDiscoverer
Created: Devnull (24 Nov 2011)
Last edited: hamishwillee (31 May 2013)

[edit] Description

Bluetooth device discovery on Symbian using the Qt Mobility API QBluetoothDeviceDiscoveryAgent may not report some local devices when both Bluetooth audio and wireless data connections are active.

[edit] How to reproduce

Connect a Bluetooth headset and start listening an internet radio over the wireless network.

Attempt to discover bluetooth devices with the API. No devices are discovered - and in the Qt Creator debug window you can see the following messages

[Qt Message] void QtMobility::BluetoothLinkManagerDeviceDiscoverer::RunL() 0 
[Qt Message] void QtMobility::BluetoothLinkManagerDeviceDiscoverer::RunL() -25

Where -25 means KErrHostResNoMoreResults.

[edit] Solution

There is no known solution or workaround for the problem.

This page was last modified on 31 May 2013, at 02:27.
78 page views in the last 30 days.
×