<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QLowEnergyService error when discoverDetails called on Windows 10]]></title><description><![CDATA[<p dir="auto">We have our own Bluetooth device with internal protocol. Device provides service with custom UUID.<br />
Running Qt app on W10 causes error when service is discovered with output listed at the end.<br />
When app runs on Windows11 or macOS - nor problem, all works.</p>
<p dir="auto">Same result if I just use heartrate-game example and substitute UUID with our own ID. It is not possible to discover service, internal error happends.</p>
<p dir="auto">code looks like:<br />
....<br />
pqservice=p_lecontroller-&gt;createServiceObject( aserviceid );<br />
if(pqservice)<br />
{   connect(pqservice, &amp;QLowEnergyService::characteristicRead,<br />
this, &amp;BLEService::characteristicRead);<br />
connect(pqservice, &amp;QLowEnergyService::characteristicWritten,<br />
this, &amp;BLEService::characteristicWritten);<br />
connect(pqservice, &amp;QLowEnergyService::stateChanged,<br />
this, &amp;BLEService::stateChanged);<br />
connect(pqservice, &amp;QLowEnergyService::errorOccurred,<br />
this, &amp;BLEService::errorOccurred);<br />
connect(pqservice, &amp;QLowEnergyService::descriptorWritten,<br />
this, &amp;BLEService::descriptorWritten);<br />
connect(pqservice, &amp;QLowEnergyService::descriptorRead,<br />
this, &amp;BLEService::descriptorRead);<br />
connect(pqservice, &amp;QLowEnergyService::characteristicChanged,<br />
this, &amp;BLEService::characteristicChanged);<br />
pqservice-&gt;discoverDetails(QLowEnergyService::SkipValueDiscovery);</p>
<p dir="auto">then calback called:</p>
<p dir="auto">void BLEService::stateChanged(QLowEnergyService::ServiceState newState)<br />
{   switch (newState)<br />
{   case QLowEnergyService::RemoteServiceDiscovered:<br />
qDebug()&lt;&lt;" RemoteServiceDiscovered ";</p>
<p dir="auto">and after that</p>
<p dir="auto">void BLEService::errorOccurred(QLowEnergyService::ServiceError newError)<br />
{   qDebug()&lt;&lt;" QLowEnergyService errorOccurred ";<br />
switch(newError)<br />
{<br />
case QLowEnergyService::UnknownError:<br />
qDebug()&lt;&lt;"UnknownError";<br />
break;</p>
<p dir="auto">To be sure it is not problem of driver or device, i used "BluetoothLE example" from Microsoft for UWP build on VS 2022 on W10, same controller, same device, same UUID works without problems.</p>
<p dir="auto">Output is:</p>
<p dir="auto">*RemoteServiceDiscovering<br />
onecoreuap\drivers\wdm\bluetooth\user\winrt\gatt\gattdeviceservice.cpp(1386)\Windows.Devices.Bluetooth.dll!00007FFCF98BDEBB: (caller: 00007FFCF98BD212) Exception(1) tid(4d2c) 80070020 The process cannot access the file because it is being used by another process.</p>
<p dir="auto">Exception at 0x7ffd4790cd29, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth</p>
<p dir="auto">Exception at 0x7ffd4790cd29, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth<br />
onecoreuap\drivers\wdm\bluetooth\user\winrt\gatt\gattdeviceservice.cpp(1197)\Windows.Devices.Bluetooth.dll!00007FFCF99893C4: (caller: 00007FFCF98BEB43) ReturnHr(37) tid(4d2c) 80070020 The process cannot access the file because it is being used by another process.<br />
Msg:[onecoreuap\drivers\wdm\bluetooth\user\winrt\gatt\gattdeviceservice.cpp(1386)\Windows.Devices.Bluetooth.dll!00007FFCF98BDEBB: (caller: 00007FFCF98BD212) Exception(1) tid(4d2c) 80070020 The process cannot access the file because it is being used by another process.<br />
]<br />
onecoreuap\drivers\wdm\bluetooth\user\winrt\gatt\gattdeviceservice.cpp(1593)\Windows.Devices.Bluetooth.dll!00007FFCF98BF38B: (caller: 00007FFCF98C485F) Exception(2) tid(4d2c) 80070020 The process cannot access the file because it is being used by another process.</p>
<p dir="auto">Exception at 0x7ffd4790cd29, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth</p>
<p dir="auto">Exception at 0x7ffd4790cd29, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth<br />
QLowEnergyService errorOccurred<br />
UnknownError*</p>
]]></description><link>https://forum.qt.io/topic/140308/qlowenergyservice-error-when-discoverdetails-called-on-windows-10</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 03:16:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140308.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Oct 2022 13:50:51 GMT</pubDate><ttl>60</ttl></channel></rss>