WiFi Connection issue for HttpExampleClient
응답
16. 7. 25 오전 11:10

Hi people,

i've been trying to work with WiFi on the XDK but it doesn't seems unable to connect. Specifically the program hangs in the function WLI_connectWPA(). I read in other posts that it is probably stuck in an inifite loop but I'd like to narrow down the problem.

I tried setting up hot spots with both Android and iPhones. Then I took the HttpExampleClient as well as the Bosch IoT Suite. The only thing I changed are the SSID and password in the header file. It's strange because when I scan the available networks and print out their names, sometimes the hot spot is found and sometimes not. And if I enter a wrong SSID or passwords the function gets stuck in the exact same manner.

Are there any known issues that can cause this?

Regards, Felix

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
16. 7. 25 오전 11:47 as a reply to Felix Gandha Salentin.

Hello Felix,

hotspots on smartphones can be invisible sometimes for battery saving reasons.

In general, the XDK should work with smartphones as hotspot.

The reason why the XDK gets stuck in an infinite loop is the implementation of the WLI_connectWPA() function that you can find in XDK110/Platform/Wlan/source/WlanConnect/WlanConnect.c in line 297 and 298:

…
297          /* Stay here until connected. */
298          /* Timeout logic can be added here */
…

If you try to connect to an AP that never can establish a connection because of the wrong SSID or PW, the function block will never be left.

Kind regards,
Manuel

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
16. 7. 25 오후 1:59 as a reply to Manuel Cerny.

Hello Manuel,

Thank you for the response. I tested it and the program is certainly stuck in that line you provided. Other devices I connected to the hot spot we working just fine. Also, when I used WiFi w/o authentification the XDK did connect. I think there might be an issue with the WPA.

Are there any other ways to determine where exactly the problem is?

Felix

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
16. 7. 26 오후 7:27 as a reply to Felix Gandha Salentin.

Hi Felix,

the XDK should work with WPA as well as WPA2. I proved that the XDK is able to establish a Wi-Fi connection to a mobile hotspot. I will make further analysis about this and let you know.

There could be a problem with the naming of the hotspot. The XDK is unable to handle SSIDs with whitespaces. How did you name the hotspot?

Kind regards,
Manuel

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
17. 4. 10 오전 7:04 as a reply to Manuel Cerny.

Hello

Is it possible that the XDK runs in problem to access a SSID in the case we have more than 8-10 SSID  visible in the air?

We saw this problem last week. In the test envoirement (only 6 SSID are visible) and its works perfectly.

We went to a show room (more the 20 SSIDs visible) and the XDK don't join the SSID (completly now action when we debug the AP).

 

 

 

 

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
17. 4. 10 오후 5:34 as a reply to Eva Adam.

Hello Eva,

Welcome to the XDK community.

Your issue should not be related to the amount of available SSID's within a room. Although I think that your Wi-Fi network within the room with the 20 SSID's is overloaded and therefore the XDK cannot connect to the particular network.
Please note that hotspots operate on different channels and it depends on the specific network channel capacity, if the XDK can connect to it.

If it is overloaded as mentioned, then the XDK will have serious problems to connect to it.

In addition the range between the XDK and the router be the cause that the XDK doesn't connect to your desired network too.

To solve the issue, I recommend to analyze the hotspot in your showroom more in detail and to take a closer at the transmissions on each channel.

Please tell me if this is helpful and do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
17. 5. 31 오후 2:42 as a reply to Franjo Stjepandic.

Hi Manuel,

     The stuck codes don't exist anymore after Workbench 1.7.0, so XDK won't got stuck in WiFi connection when connection fails, right? Thanks.

297          /* Stay here until connected. */
298          /* Timeout logic can be added here */

 

BR

SZ

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
17. 5. 31 오후 4:32 as a reply to Shelford Zhu.

Hello Shelford,

I assume you are correct, the XDK should not get stuck anymore when the XDK fails to connect to the local Wi-Fi hotspot.
I only found comments in the particular WlanConnect.c implementation file which indicates that a timeout logic is implemented.

Nevertheless I will test this case and get back to you by the end of the week.

Please do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 투표)
RE: WiFi Connection issue for HttpExampleClient
응답
17. 6. 2 오전 9:37 as a reply to Franjo Stjepandic.

Hello Shelford,

I tested the timeout logic in greater detail and can confirm, that the XDK won’t get any longer stuck while trying to connect to a non-existing hotspot or with wrong Wi-Fi credentials. Thus you are correct, the logic is implemented since the XDK Workbench version 1.7.0.

Kind regards,
Franjo

0 (0 투표)