<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">finally it was a hardware problem of
this BED - BLE Dongle. <br>
</div>
<div class="moz-cite-prefix">Had to made a hard reset and now the
popup to pair the device comes up on Android and iOS devices - so
Qt works as expected :)<br>
BTW: the possibility to make a hard reset of course was not
mentioned in the BLE Dongle docs.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">so I can confirm now that Qt BLE is
working well if BLE peripheral needs JustWorks Pairing/Bonding</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">ekke<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 05.07.22 um 13:23 schrieb ekke:<br>
</div>
<blockquote type="cite"
cite="mid:cb003817-17a6-2656-67b0-48f5a6c846aa@ekkes-corner.org">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Qt 5.15.7<br style="box-sizing: inherit; color: rgb(29, 28,
29); font-family: Slack-Lato, Slack-Fractions, appleLogo,
sans-serif; font-size: 15px; font-style: normal;
font-variant-ligatures: common-ligatures; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(248,
248, 248); text-decoration-thickness: initial;
text-decoration-style: initial; text-decoration-color:
initial;">
</p>
<div class="c-message_kit__blocks
c-message_kit__blocks--rich_text" style="box-sizing: inherit;
max-width: none; margin-bottom: 4px; color: rgb(29, 28, 29);
font-family: Slack-Lato, Slack-Fractions, appleLogo, sans-serif;
font-size: 15px; font-style: normal; font-variant-ligatures:
common-ligatures; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">
<div class="c-message__message_blocks
c-message__message_blocks--rich_text" data-qa="message-text"
style="box-sizing: inherit; max-width: none; overflow-wrap:
break-word;">
<div class="p-block_kit_renderer" data-qa="block-kit-renderer"
style="box-sizing: inherit; width: 745.007px;">
<div class="p-block_kit_renderer__block_wrapper
p-block_kit_renderer__block_wrapper--first"
style="box-sizing: inherit; display: flex;">
<div class="p-rich_text_block" dir="auto"
style="box-sizing: inherit; counter-reset: list-0 0
list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0
list-7 0 list-8 0 list-9 0; text-align: left;
user-select: text; width: 745.007px; font-size: 15px;
line-height: 1.46668;">
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">did many Qt apps for BT LE (for Barcode
Scanners) with custom services / characteristic.<br
style="box-sizing: inherit;">
all works well</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">Now a project to control Beds with some
motors for slatted frame (Lattoflex)<br
style="box-sizing: inherit;">
This BT LE device must be paired/bonded (just works)</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">The device was found from BLE device
discovering, the services and characteristics can be
discovered.<br style="box-sizing: inherit;">
At first I’m collecting all needed Services.<br
style="box-sizing: inherit;">
Then for one of the Services I want to create a
Characteristic to read a value from. From Bed-API docs
this is the recommended way to get a dialog to pair
the device first time and to do the bonding.</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">But I’m getting an LE Controller Connection
Error and no dialog to pair the device comes up.<br
style="box-sizing: inherit;">
BTW: a QtBluetoothGatt warning was logged: “Looks like
the peripheral does NOT act in accordance to Bluetooth
4.x spec” (Only reported on Android, not iOS)<span
class="c-mrkdwn__br"
data-stringify-type="paragraph-break"
style="box-sizing: inherit; display: block; height:
8px;"></span>Found a workaround for Android:<br
style="box-sizing: inherit;">
From Android Device BT Settings: Connected devices,
pair new device the BED was found and can be added. <br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">Then the app works without any problems,
can READ,WRITE, get NOTIFICATION.</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><span class="c-mrkdwn__br"
data-stringify-type="paragraph-break"
style="box-sizing: inherit; display: block; height:
8px;"><br>
</span></div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><span class="c-mrkdwn__br"
data-stringify-type="paragraph-break"
style="box-sizing: inherit; display: block; height:
8px;"></span>On iOS the BED device is not listed as
a device and so cannot be paired from BT Settings.</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">Tried on many different iOS phones / iPads.
Also tried many BT LE Apps from AppStore, tapped on
services, characteristics, read/write values etc to
see if there’s an app available to pair/bond the BED.</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;"> Suddenly I noticed, that one of my iPhones
listed the BED as one of ‘My Devices’. Tried my app on
this iPhone and the app is working. Unfortunately I
have no idea what I did to add the BED as device.
Tried some hours but cannot reproduce on another
iPhone.<span class="c-mrkdwn__br"
data-stringify-type="paragraph-break"
style="box-sizing: inherit; display: block; height:
8px;"></span><br>
</div>
<div class="p-rich_text_section" style="box-sizing:
inherit; counter-reset: list-0 0 list-1 0 list-2 0
list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0
list-9 0;">So the good news: as soon as the BED is
listed as a known device on Android or iOS, my app is
working and can control the motors.<br
style="box-sizing: inherit;">
On Android I can live with the workflow to add the BED
first time from Android Settings.<span
class="c-mrkdwn__br"
data-stringify-type="paragraph-break"
style="box-sizing: inherit; display: block; height:
8px;"></span>any ideas, what I can do, to initiate
the pairing from my Qt app - esp on iOS ?<br
style="box-sizing: inherit;">
anyone knows an iOS app on App Store where I can pair
a custom BLE device ?</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Interest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Interest@qt-project.org">Interest@qt-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.qt-project.org/listinfo/interest">https://lists.qt-project.org/listinfo/interest</a>
</pre>
</blockquote>
<br>
</body>
</html>