Dev Academy - WiFi Fundamentals - BLE Provisioning not working from iPhone.

Hi,

I've just completed Lesson 2 Exercise 3 and found that BLE Provisioning does not work from the iPhone version of the app.  The problem seems to be related to Version 2 of the firmware.  The Quick start version in the nRF Connect for Desktop 5.2.0 works fine and reports Version 1.

The problem also exists in Exercise 1 of Lesson1.

In general, the WiFi Fundamentals contains quite a few errors and would benefit from someone taking a look at it.  The errors are mostly obvious and easy to correct but cost a bit of time (and I'm only at lesson 2;-)).

SDK is v. 3.1.0.

   

Any help greatly appreciated as always.

Andy

Parents
  • Hello,

    Thank you for the feedback! It is very welcome!

    The problem seems to be related to Version 2 of the firmware

    Can you please clarify what you mean here? Version 2 of what? 

    The problem also exists in Exercise 1 of Lesson1.

    Can you please be more precise, so that we can look into this issue as well?

    the WiFi Fundamentals contains quite a few errors and would benefit from someone taking a look at it.

    Feel free to specify these as well. We strive to keep these courses up to date, so we will gladly take input.

    Best regards,

    Edvin

  • Hi Edvin,

    When provisioning from the phone, a version number is shown as below.  

    In sdk 3.1.0 this has been updated to 2.  This is NOT the version of the app on the phone, rather it seems to be the API version in the sdk. 

    The screen shot that I included shows that the version supplied with the Quick Start samples was compiled with sdk v.2.9.0 and works, whilst with the version in sdk 3.1.0, the DK fails to connect to the AP once provisioned.

    Exercise 1 simply requires the BLE provisioning sample to be compiled and flashed to the board.  Here the 3.1.0 sample shows Version 2 in the phone app and fails to connect. Loading the quick start version shows Version 1 and connects correctly.

    Here are some of the errors that I have found so far:

    a.  Lesson 2, Exercise 1, section 3.  WiFi shell has been updated and wifi connect has changed. The key-mgt parameters listed in the text are no longer valid.

    b.  Lesson 2, Exercise 2, section 8.2, the security type has to match the user's AP. A hint to check this would be useful.

    c.  Lesson 2, Exercise 3, section 1, the configs don't match the solution.  The solution is correct.

    None of these are huge problems and I appreciate how difficult it is to keep everything up to date, but the provisioning is a big irritation at the moment as I would like to understand this and move forward with the course.

    All the best,

    Andy    

  • Hi  ,

    Thanks for the feedback on the course. 

    a. https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/nrf/samples/wifi/shell/README.html

    As far as I can tell, the key-mgt parameters listed match the ones in the documentation? Please let me know if I'm mistaken.

    b. I have addressed this by adding the following notice in step 8.2.

    c. I see the solution and base code Kconfigs don't match, this has been fixed in this PR: https://github.com/NordicDeveloperAcademy/wifi-fund/pull/23

    And BT_DEBUG_LOG is deprecated, so I've removed that from the exercise text.

    For future reference, feel free to use the Feedback button directly on the course page. You can find it by clicking on this icon   , which you can see in the right margin on any of the course pages. We check and implement the feedback provided on a weekly basis to keep our courses up to date :)

    Regarding the issues with the exercise, we're unable to reproduce them on our end using the same parameters (iPhone, SDK v3.1.0). Since you are seeing the same thing with Lesson 1 Exercise 1, which uses the sample directly from the SDK, I have asked Andreas to escalate this with the SDK developers. 

  • Hi Heidi,

    Thank you for taking the time to have a look at this.

    Regarding a.  Here is the output from wifi shell and the relevant part of the help output.  I had to use option 9 to connect to my WPA-PSK AP.

      

    Regarding the problem with provisioning.  Please could you confirm if you were also seeing Version 2 on the iPhone app with sdk x3.1.0?  The provisioning example supplied with the Quick Start seems to be v2.9.0 and works correctly.

    I will download sdk v3.1.1 and let you know if this works for me.

    Kind regards,

    Andy  

  • I've just completed a clean install of sdk 3.1.1 and have the same problem with the iPhone provisioning app.  Here are screen shots.  I tried connecting to two APs and each time the provisioning seems to work but there is no connection.  The final screenshots show the correct functioning of the Quick Start version.

    Another small detail, when I first try to connect using Version 2, there is a spinning 'wheel' next to Disconnected, but when i abort the connection with Forget and try again, the spinning wheel is gone (as in the screenshots above), as if the app is no longer attempting to connect(?).

  • I have some more feedback on the BLE provisioning Version 2.  I noticed that in the screenshot above (Time - 13:02), the Security of SSID TheBestEver is incorrectly shown as WEP.  Other screenshots correctly report Security as WPA/WPA2-PSK.  This prompted me to try activating the guest WiFi on the router (which is a Vodafone GigaBox), using WPA2 only.  Now, this connection works!  So there seems to be a problem with WPA/WPA2-PSK in Version 2.  This probably explains why you were unable to replicate the problem.  Please could you discuss this with the developer(s).

      

  • I see, the documentation is outdated as well. I've updated the course and reported the error in the documentation. 

    Yes, I see Version 2 in the app when running v3.1.0 and Version 1 when running v2.9.0 (from Quick Start). 

    The AP I'm connecting to is WPA2-PSK, so yes, it seems to be an issue with that specific security configuration. 

    The issue has been reported, and we will notify you as soon as we receive an update. :)

    The rest of the course does not rely on the provisioning feature so feel free to proceed through the other lessons if you'd like. 

Reply
  • I see, the documentation is outdated as well. I've updated the course and reported the error in the documentation. 

    Yes, I see Version 2 in the app when running v3.1.0 and Version 1 when running v2.9.0 (from Quick Start). 

    The AP I'm connecting to is WPA2-PSK, so yes, it seems to be an issue with that specific security configuration. 

    The issue has been reported, and we will notify you as soon as we receive an update. :)

    The rest of the course does not rely on the provisioning feature so feel free to proceed through the other lessons if you'd like. 

Children
Related