Re: [Interest] BLE : Bonding and ble security
Yes that was the problem ! Thank you for your help ! Regards, Simon Feutrier Le lun. 24 août 2020 à 09:48, Kai Köhne a écrit : > > Von: Simon FEUTRIER > > Gesendet: Freitag, 21. August 2020 17:31 > > An: Kai Köhne > > Cc: Jérôme Godbout ; interest@qt-project.org > > Betreff: Re: [Interest] BLE : Bonding and ble security > > > > Kai, > > > > Thank you for your message! I tried and it is well recognized when > building but seems to have no effect ( for > example qtbluetooth-config.pri file is not changed ). > > I tried the same syntaxe that you gave me with native-win32-bluetooth > and this one works perfectly. I have no idea why ^^. > > Check out qtbluetooth-config_p.pri, since 'winrt_btle_no_pairing' is a > private feature of Qt Bluetooth. > > In latest 5.15, depending on whether I pass - > feature-winrt_btle_no_pairing -no-feature-winrt_btle_no_pairing , the > define QT_FEATURE_winrt_btle_no_pairing in this file is either defined to 1 > or -1 for me. > > > [...] > > Le ven. 21 août 2020 à 16:43, Kai Köhne <mailto:kai.koe...@qt.io> a > écrit : > > Hi, > > > >> Von: Interest <mailto:interest-boun...@qt-project.org> Im Auftrag von > Simon FEUTRIER > >> Betreff: Re: [Interest] BLE : Bonding and ble security > >> > >> I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to > change this > >> default behaviour. But I swear I'm trying for 2 hours and I cannot > achieve it. I don't see > where / how I can put this with Qt Creator. > > > > winrt_btle_no_pairing is a configure option that you have to set before > building Qt (and not your application). > > > > If you do a top-level build of Qt, you can pass it to configure > > > > configure -feature-winrt_btle_no_pairing > > > > if you do a build of just qtconnectivity, the syntax is > > > > qmake -- -feature-winrt_btle_no_pairing > > > > > > Hope this helps, > > > < Kai > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
> Von: Simon FEUTRIER > Gesendet: Freitag, 21. August 2020 17:31 > An: Kai Köhne > Cc: Jérôme Godbout ; interest@qt-project.org > Betreff: Re: [Interest] BLE : Bonding and ble security > > Kai, > > Thank you for your message! I tried and it is well recognized when building > but seems to have no effect ( for example qtbluetooth-config.pri file is not > changed ). > I tried the same syntaxe that you gave me with native-win32-bluetooth and > this one works perfectly. I have no idea why ^^. Check out qtbluetooth-config_p.pri, since 'winrt_btle_no_pairing' is a private feature of Qt Bluetooth. In latest 5.15, depending on whether I pass - feature-winrt_btle_no_pairing -no-feature-winrt_btle_no_pairing , the define QT_FEATURE_winrt_btle_no_pairing in this file is either defined to 1 or -1 for me. > [...] > Le ven. 21 août 2020 à 16:43, Kai Köhne <mailto:kai.koe...@qt.io> a écrit : > Hi, > >> Von: Interest <mailto:interest-boun...@qt-project.org> Im Auftrag von Simon >> FEUTRIER >> Betreff: Re: [Interest] BLE : Bonding and ble security >> >> I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to change >> this >> default behaviour. But I swear I'm trying for 2 hours and I cannot achieve >> it. I don't see > where / how I can put this with Qt Creator. > > winrt_btle_no_pairing is a configure option that you have to set before > building Qt (and not your application). > > If you do a top-level build of Qt, you can pass it to configure > > configure -feature-winrt_btle_no_pairing > > if you do a build of just qtconnectivity, the syntax is > > qmake -- -feature-winrt_btle_no_pairing > > > Hope this helps, > < Kai ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Kai, Thank you for your message! I tried and it is well recognized when building but seems to have no effect ( for example qtbluetooth-config.pri file is not changed ). I tried the same syntaxe that you gave me with native-win32-bluetooth and this one works perfectly. I have no idea why ^^. Regards, Simon Feutrier Le ven. 21 août 2020 à 16:43, Kai Köhne a écrit : > Hi, > > > Von: Interest Im Auftrag von Simon > FEUTRIER > > Betreff: Re: [Interest] BLE : Bonding and ble security > > > > I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to > change this > > default behaviour. But I swear I'm trying for 2 hours and I cannot > achieve it. I don't see > where / how I can put this with Qt Creator. > > winrt_btle_no_pairing is a configure option that you have to set before > building Qt (and not your application). > > If you do a top-level build of Qt, you can pass it to configure > > configure -feature-winrt_btle_no_pairing > > if you do a build of just qtconnectivity, the syntax is > > qmake -- -feature-winrt_btle_no_pairing > > > Hope this helps, > > Kai > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi, > Von: Interest Im Auftrag von Simon FEUTRIER > Betreff: Re: [Interest] BLE : Bonding and ble security > > I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to change > this > default behaviour. But I swear I'm trying for 2 hours and I cannot achieve > it. I don't see > where / how I can put this with Qt Creator. winrt_btle_no_pairing is a configure option that you have to set before building Qt (and not your application). If you do a top-level build of Qt, you can pass it to configure configure -feature-winrt_btle_no_pairing if you do a build of just qtconnectivity, the syntax is qmake -- -feature-winrt_btle_no_pairing Hope this helps, Kai ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi, I'm digging into my problem and keep updating the bug report https://bugreports.qt.io/browse/QTBUG-86095. I was wondering if it is not related to the fact that the device is not paired (since last release of Qt devices are not necessarily paired). I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to change this default behaviour. But I swear I'm trying for 2 hours and I cannot achieve it. I don't see where / how I can put this with Qt Creator. I already looked at the documentation and really find nothing helpful. I also tried to directly modify some header files directly but nothing is working and it is very frustrating because it is 1 line... Do you have any suggestions? Thank you.. Best regards, Simon Feutrier Le mar. 18 août 2020 à 15:29, Simon FEUTRIER a écrit : > Hi Jérôme, > > I did it and it is working with this Windows app. Thus, it seems to be Qt > related. I have specified it in the bug report. > Thank you for your help. > > Regards, > > Simon Feutrier > > > Le mar. 18 août 2020 à 15:07, Jérôme Godbout a > écrit : > >> Hi, >> >> Just to put aside the Windows, you could try to connect using Bluetooth >> LE Explorer application: >> https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98 >> >> It could tell if the Window BLE can perform the connection properly on >> his own. >> >> >> >> Jerome >> >> >> >> *From:* Simon FEUTRIER >> *Sent:* August 18, 2020 4:09 AM >> *To:* Alex Blasche >> *Cc:* Jérôme Godbout ; interest@qt-project.org >> *Subject:* Re: [Interest] BLE : Bonding and ble security >> >> >> >> If you are interested to follow this problem, there is now also a bug >> ticket here : https://bugreports.qt.io/browse/QTBUG-86095 >> >> >> Regards, >> >> >> >> Simon Feutrier >> >> >> >> >> >> Le mar. 18 août 2020 à 09:15, Simon FEUTRIER a >> écrit : >> >> Hi ! >> >> >> >> Jérôme, yes it is well secured, very well, even I cannot communicate :D. >> >> For your questions, Qt is supported on Windows, Bluetooth LE as well. >> About the security I am not sure I did not receive a clear reply to that >> question but it seems yes. >> >> My ble device and my Windows are recent enough yes ! >> >> Currently in my ble device I am just activating "Just Work" security. And >> on Windows...I just cannot set the security level, so... ^^ >> >> >> >> Alex, I will create an issue then. >> >> >> >> Thank you for your help. >> >> >> >> Cordialement, >> >> >> >> Simon Feutrier - Ingénieur systèmes embarqués >> >> >> >> BLUEGRioT >> >> >> >> >> >> Le lun. 17 août 2020 à 22:13, Alex Blasche a >> écrit : >> >> >> >> >> From: Interest on behalf of Simon >> FEUTRIER >> Sent: Monday, 17 August 2020 16:31 >> To: Jérôme Godbout >> >> >Alex, thank you for your quick reply. I just tried with the pre-release >> 5.15.1 and this is the same behavior. >> >> Since you revealed that you are on Windows only, the patch I sent makes >> no sense. It is an Android only patch. This needs a proper bug report now. >> >> -- >> Alex___ >> Interest mailing list >> Interest@qt-project.org >> https://lists.qt-project.org/listinfo/interest >> >> ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi Jérôme, I did it and it is working with this Windows app. Thus, it seems to be Qt related. I have specified it in the bug report. Thank you for your help. Regards, Simon Feutrier Le mar. 18 août 2020 à 15:07, Jérôme Godbout a écrit : > Hi, > > Just to put aside the Windows, you could try to connect using Bluetooth LE > Explorer application: > https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98 > > It could tell if the Window BLE can perform the connection properly on his > own. > > > > Jerome > > > > *From:* Simon FEUTRIER > *Sent:* August 18, 2020 4:09 AM > *To:* Alex Blasche > *Cc:* Jérôme Godbout ; interest@qt-project.org > *Subject:* Re: [Interest] BLE : Bonding and ble security > > > > If you are interested to follow this problem, there is now also a bug > ticket here : https://bugreports.qt.io/browse/QTBUG-86095 > > > Regards, > > > > Simon Feutrier > > > > > > Le mar. 18 août 2020 à 09:15, Simon FEUTRIER a > écrit : > > Hi ! > > > > Jérôme, yes it is well secured, very well, even I cannot communicate :D. > > For your questions, Qt is supported on Windows, Bluetooth LE as well. > About the security I am not sure I did not receive a clear reply to that > question but it seems yes. > > My ble device and my Windows are recent enough yes ! > > Currently in my ble device I am just activating "Just Work" security. And > on Windows...I just cannot set the security level, so... ^^ > > > > Alex, I will create an issue then. > > > > Thank you for your help. > > > > Cordialement, > > > > Simon Feutrier - Ingénieur systèmes embarqués > > > > BLUEGRioT > > > > > > Le lun. 17 août 2020 à 22:13, Alex Blasche a > écrit : > > > > > From: Interest on behalf of Simon > FEUTRIER > Sent: Monday, 17 August 2020 16:31 > To: Jérôme Godbout > > >Alex, thank you for your quick reply. I just tried with the pre-release > 5.15.1 and this is the same behavior. > > Since you revealed that you are on Windows only, the patch I sent makes no > sense. It is an Android only patch. This needs a proper bug report now. > > -- > Alex___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi, Just to put aside the Windows, you could try to connect using Bluetooth LE Explorer application: https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98 It could tell if the Window BLE can perform the connection properly on his own. Jerome From: Simon FEUTRIER Sent: August 18, 2020 4:09 AM To: Alex Blasche Cc: Jérôme Godbout ; interest@qt-project.org Subject: Re: [Interest] BLE : Bonding and ble security If you are interested to follow this problem, there is now also a bug ticket here : https://bugreports.qt.io/browse/QTBUG-86095 Regards, Simon Feutrier Le mar. 18 août 2020 à 09:15, Simon FEUTRIER mailto:sfeutr...@bluegriot.com>> a écrit : Hi ! Jérôme, yes it is well secured, very well, even I cannot communicate :D. For your questions, Qt is supported on Windows, Bluetooth LE as well. About the security I am not sure I did not receive a clear reply to that question but it seems yes. My ble device and my Windows are recent enough yes ! Currently in my ble device I am just activating "Just Work" security. And on Windows...I just cannot set the security level, so... ^^ Alex, I will create an issue then. Thank you for your help. Cordialement, Simon Feutrier - Ingénieur systèmes embarqués BLUEGRioT Le lun. 17 août 2020 à 22:13, Alex Blasche mailto:alexander.blas...@qt.io>> a écrit : From: Interest mailto:interest-boun...@qt-project.org>> on behalf of Simon FEUTRIER mailto:sfeutr...@bluegriot.com>> Sent: Monday, 17 August 2020 16:31 To: Jérôme Godbout >Alex, thank you for your quick reply. I just tried with the pre-release 5.15.1 >and this is the same behavior. Since you revealed that you are on Windows only, the patch I sent makes no sense. It is an Android only patch. This needs a proper bug report now. -- Alex___ Interest mailing list Interest@qt-project.org<mailto:Interest@qt-project.org> https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
If you are interested to follow this problem, there is now also a bug ticket here : https://bugreports.qt.io/browse/QTBUG-86095 Regards, Simon Feutrier Le mar. 18 août 2020 à 09:15, Simon FEUTRIER a écrit : > Hi ! > > Jérôme, yes it is well secured, very well, even I cannot communicate :D. > For your questions, Qt is supported on Windows, Bluetooth LE as well. > About the security I am not sure I did not receive a clear reply to that > question but it seems yes. > My ble device and my Windows are recent enough yes ! > Currently in my ble device I am just activating "Just Work" security. And > on Windows...I just cannot set the security level, so... ^^ > > Alex, I will create an issue then. > > Thank you for your help. > > Cordialement, > > Simon Feutrier - Ingénieur systèmes embarqués > > BLUEGRioT > > > Le lun. 17 août 2020 à 22:13, Alex Blasche a > écrit : > >> >> >> >> From: Interest on behalf of Simon >> FEUTRIER >> Sent: Monday, 17 August 2020 16:31 >> To: Jérôme Godbout >> >> >Alex, thank you for your quick reply. I just tried with the pre-release >> 5.15.1 and this is the same behavior. >> >> Since you revealed that you are on Windows only, the patch I sent makes >> no sense. It is an Android only patch. This needs a proper bug report now. >> >> -- >> Alex___ >> Interest mailing list >> Interest@qt-project.org >> https://lists.qt-project.org/listinfo/interest >> > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi ! Jérôme, yes it is well secured, very well, even I cannot communicate :D. For your questions, Qt is supported on Windows, Bluetooth LE as well. About the security I am not sure I did not receive a clear reply to that question but it seems yes. My ble device and my Windows are recent enough yes ! Currently in my ble device I am just activating "Just Work" security. And on Windows...I just cannot set the security level, so... ^^ Alex, I will create an issue then. Thank you for your help. Cordialement, Simon Feutrier - Ingénieur systèmes embarqués BLUEGRioT Le lun. 17 août 2020 à 22:13, Alex Blasche a écrit : > > > > From: Interest on behalf of Simon > FEUTRIER > Sent: Monday, 17 August 2020 16:31 > To: Jérôme Godbout > > >Alex, thank you for your quick reply. I just tried with the pre-release > 5.15.1 and this is the same behavior. > > Since you revealed that you are on Windows only, the patch I sent makes no > sense. It is an Android only patch. This needs a proper bug report now. > > -- > Alex___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
From: Interest on behalf of Simon FEUTRIER Sent: Monday, 17 August 2020 16:31 To: Jérôme Godbout >Alex, thank you for your quick reply. I just tried with the pre-release 5.15.1 >and this is the same behavior. Since you revealed that you are on Windows only, the patch I sent makes no sense. It is an Android only patch. This needs a proper bug report now. -- Alex___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] BLE : Bonding and ble security
Hi, This should be addressed by https://codereview.qt-project.org/c/qt/qtconnectivity/+/302776 It is part of 5.15.1 (when released) & dev . -- Alex From: Interest on behalf of Simon FEUTRIER Sent: Monday, 17 August 2020 09:48 To: interest@qt-project.org Subject: [Interest] BLE : Bonding and ble security Hi, That is the first time I use this mailing list, so tell me if I'm doing anything wrong when using it. Thanks ! Now my problem. I'm developing a Qt application that communicates with a BLE device. It worked perfectly until I tried to add some security. When I turned on "Just Works" security mode (device side), I was not able anymore to write in a characteristic (or read) from my Qt application. I compared the Bluetooth messages sent from Qt app and from the android app nfr Connect and I see that automatically, the nrf Connect app sends a bonding request when it fails to write. Qt does not do this. That is the only difference that makes the android app working but not my Qt app. I finally made it work once : I start my Qt App, pair my BLE device with Windows parameters and then it works one time only (after that I need to unpair my device from Windows parameters and redo the same process). It only works if it has been paired with Windows parameters... I could not find anything about bonding in the API or security mode settings. Any idea ? Should I post it as a bug or am I missing something ? Thanks, Regards, Simon Feutrier ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest