MSW Wifi connection for XDK
Answer
6/27/18 6:03 AM
Hello there, may i ask whether XDK can connect to MSW network of Bosch and upload the data to cloud as normal? If yes, how to configure the "config.txt" while the MSW account require the username/password credential (not only SSID and password as instructed in the Wifi Guide)?
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
6/27/18 4:00 PM as a reply to Nhan Nguyen.
Hello Nhan,

I assume that you are referring to the BoschXdkCloudConnectivity example .

Please note that the Bosch network is an enterprise network.
Unfortunately, this example does not provide a simple setup for an Enterprise WiFi, hence there are no configuration items for Enterprise WiFi.

If you intend to use the XDK example within an Enterprise WiFi network, you can feel free to implement it yourself. An example implementation for Enterprise WiFi can be found in this thread .

If you simply wish to try out the example, you could create a hotspot using a smartphone (or anything else capable of hosting a WiFi access point) and connect to the resulting WiFi network.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/19/18 5:45 AM as a reply to Franjo Stjepandic.

Hello Franjo,

Following the thread but I have a problem when defining security type in EnterpriseWifi.h.This is my enterprise wifi information:

  • SSID: MSW_Access
  • EAP Method: PEAP
  • Phase 2 authentication: MSCHAPV2

I read wlan.h but I was confused.Could you pls help me define the line #define SEC_TYPE ? Thanks !

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/19/18 2:49 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

I can gladly assist you with that. The parameter SEC_TYPE describes the type of network you try to connect to.

In your case, it is a WPA2 Enterprise network. As such, a five would need to be passed into the struct secParams to represent the configuration for WPA2 Enterprise. Alternatively, you could also pass the define SL_SEC_TYPE_WPA_ENT into it which is equal to five and is provided by the simplelink interface wlan.h .

You can find the interface by navigating to the following folder in the SDK of the XDK:

SDK > xdk110 > Libraries > WiFi > 3rd-party > TI > simplelink > include

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/20/18 6:17 AM as a reply to Franjo Stjepandic.

Hi Franjo,

Thanks for your helping ! I passed 0x05 into SEC_TYPE and flashed the program but it didn't work.XDK console stopped after the line " XDK DEVICE 2: Set IP setting to DHCP succeeded" there was no IP address or MAC address.Any ideas ?

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/20/18 1:28 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

the behavior you observed indicates that the XDK got stuck during the connecting process to your Enterprise network. I assume that there might be a configuration missing. On that behalf, did you flash the WiFiHostProgramming XDK project before you before you tried out the Enterprise project?

If this is not the case, I would recommend flashing first the WiFiHostProgramming XDK project to the XDK, since it updates the firmware of the XDKs WiFi chip to be able to connect to WPA2 Enterprise networks.

Otherwise, if you receive no further output in the XDK-Workbench console, I would recommend checking your Enterprise network with a scanning tool such as the Advanced IP Scanner to ensure that the XDK really got stuck during the connection process.

Please let me know if that was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/31/18 11:04 AM as a reply to Franjo Stjepandic.

Hallo Franjo,

ich habe einen neueren XDK bei dem zu Beginn keine neuen Treiber draufgeflasht werden müssen, zumindest laut meinem Kollgen. Leider kann ich ihn nicht mit unserem Enterprise Wlan (Bosch) verbinden. Der XDK befindet sich in der Endlosschleife innerhalb der WlanConnect-Funktion. Woran könnte es liegen? Die EapMethod habe ich schon verändert, da die CI auf Nachfrage einen anderen Typ(SL_ENT_EAP_METHOD_PEAP1_MSCHAPv2)  vorgeschlagen hat. Mit dem älteren XDK meines Kollegen hat meine Anwendung funktioniert.

Ich habe es jetzt nochmal probiert die neue Firmware daraufzuflashen (WifiHostProgramming-Projekt) . Ich habe die Version für die Workbench 3.0.1 sowie  die Version für die Workbench 2.0.1. versucht auf den XDK zu flashen. Beide natürlich mit der entsprechenden Workbench Version. Beide mal wurde mir nur Invalid application angezeigt.

Kann man den neuern XDK nicht mehr mit einem Enterprise Network verbinden? Wenn doch wo findet man dazu eine funktionierende Anleitung mit entsprechendem Code

Vielen Dank für die Hilfe.

Simon

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
7/31/18 2:25 PM as a reply to Simon Frank.
Hallo Simon,

Ich vermute du probierts im Moment lediglich das EnterpriseWiFi Demo Projekt auf dem XDK aus? Könntest du das bitte kurz bestätigen. Bezüglich der anderen EAP Methode sollte es dennoch möglich sein eine Verbindung zum Bosch Enterprise Wi-Fi aufzubauen. Bitte bedenke hier, sofern das XDK in einer Endlosschleife hängen bleibt, dass es daran liegt, dass keine Verbindung zu Stande kommt, da die Funktion dafür keinen Timeout implementiert.

Im Bezug auf die Invalid Application Meldung müsstest du lediglich das WiFiHostProgramming Projekt rechts klingen und zu Configure scrollen und dann add XDK Nature klicken. Danach sollte das Projekt korrekt auf dem XDK ausführbar sein.

Um auf die letzte Frage zu antworten, es sollte generell nach wie vor möglich sein auch mit neueren XDKs eine Verbindung zu Enterprise Wi-Fi Netzwerken aufzubauen. Generell müssen hier lediglich die richtigen Einstellungen für die Verbindung vorgenommen werden, bzw. muss das XDK auch als Client in diesem Netzwerk akzeptiert werden.

Bitte lass mich wissen, ob dir das weiterhilft und zögere nicht, falls du weitere Fragen hast.

Mit freundlichen Grüßen,
Franjo




Hello XDK community,

Simon has an issue regarding the connection between the XDK and his companies Wi-Fi Enterprise network. His XDK is getting stuck during the connection establishing to the Enterprise network. Now he is asking what the reason could be for that and if the changing of the EAP method could be the reason.

Additionally, he encounters the error Invalid Application , when he tries to flash the WiFiHostProgramming example to the XDK with the XDK-Workbench 3.0.1 and 2.0.1.

In regards to the Enterprise Wi-Fi connection I asked him if he is currently using the EnterpriseWiFi demo and if he could confirm that. Furthermore, I told him that his XDK should be able to connect to his companies Enterprise Wi-Fi network even with another EAP method. Additionally, I told him if an ongoing connection could not be established the complete application would hang in the connection since it does not cover the implementation of a timeout.

In regards to the Invalid Application error, I recommended to right-click the WiFiHostProgramming project and browsing down to Configure and to click add XDK Nature . That should solve the issue and the application starts correctly on the XDK.

Kind regards,
Franjo
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/1/18 1:16 PM as a reply to Franjo Stjepandic.

Hello Franjo,

yes it works now.

Is there a way to change the Wifi hostname of the XDK? I can't find a field in one of the structs, used during the connection procedure!

Best regards,

Simon

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/2/18 2:53 PM as a reply to Simon Frank.
Hello Simon,

The current high-level API does not contain the functionality to change the displayed hostname the XDK takes when connecting to a Wi-Fi hotspot.

This would only be possible if the XDKs Wi-Fi chip is using peer to peer (P2P) to connect to another device via Wi-Fi. Otherwise, in default the XDK is in station mode, where the MAC address only is displayed as hostname, when connection to a Wi-Fi hotspot.

Nevertheless, if you are willing to use P2P, then you could configure that with the function sl_NetCfgSet() from the interface netcfg.h from the low-level simplelink API. You can find the interface by navigating to it over the following folder path:

SDK > xdk110 > Libraries > WiFi > 3rd-party > TI > simplelink > include

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)