RE: XDK Portal + Wifi Enterprise
응답
17. 10. 2 오전 10:28 as a reply to Franjo Stjepandic.

Hello Franjo,

I'll try to answer all of your questions.

There are a lot of Motorola handscanners on this WiFi network. My colleage (who is responsible for network related topics) is out of office. According to our inventory there are ~280 devices on this WiFi network.
The disconnection time is 30 minutes +/- 2 minutes. But I will mesure it correctly. (I've measured the data loss rate and then I realized this 30 mins...)
Yes, I'm using the combination of the Enterprise WiFi demo with SendDataOverUdpExample to send environmental sensor data via UDP. I can send it to you if you need. (I'm not a C-programmer and don't have too much experience with embedded systems. Maybe I made some mistake during codemelting.)

- Attila -

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 2 오후 1:38 as a reply to Attila Lukács.

The number of APs: ~ 60

I've made some test for the disonnection time. (Run, start time, stop time):
1. run:    2017-10-02 12:43:30.057    2017-10-02 13:16:35.587
2. run:    2017-10-02 13:20:06.010    2017-10-02 13:53:17.063
3. run:    2017-10-02 14:57:34.023    2017-10-02 15:30:31.090

As you see it's about 32-33 minutes. And this AP isn't overloded.

Best regards,
Attila

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 4 오전 11:40 as a reply to Attila Lukács.

Hello Attila,

Thank you very much for the detailed information about your WiFi network.
It would be absolutely great if I could get your application code for testing purposes. Could you please post your email address here, so that I can contact you directly?

Kind regards,
Franjo

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 4 오후 4:30 as a reply to Franjo Stjepandic.

Hello Franjo,

are you member of the BCDS/PAX team? If yes I can reach you internal...

- Attila -

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 5 오후 12:38 as a reply to Attila Lukács.

Hello Attila,

I have an email address within the department BCDS/PAX and you can contact me, of course. Otherwise, I would ask you to post your email address or your department here.

Kind regards,
Franjo

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 6 오후 6:59 as a reply to Franjo Stjepandic.

Hello all:

I am currently using this demo to connect to our WPA Enterprise VLAN. They gave a static IP configuration, so I must disable DHCP. What I did is to change  " #define ENABLE_DHCP true" for "#define ENABLE_DHCP  false" (line 26 in EnterpriseWifi.h) but it seems it does not work, console returns:  

INFO | XDK DEVICE 1: WLAN Module initialization succeeded
INFO | XDK DEVICE 1: Set IP settings to DHCP succeeded  (does this means DHCP wasn't desabled?)

and nothing else happens. Also tryed to leave " #define ENABLE_DHCP true" but neither this worked.

Could you please how to disable DHCP?

Thank you very much

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 9 오후 1:23 as a reply to Rodrigo Edgardo Armenta Santiago.

Hi Edgardo,

I've tested this application with static IP and it worked. I just edited the following parameters too in the header file:

#define WLAN_ENT_SSID           "SSID"
#define WLAN_USERNAME           "USERNAME"
#define WLAN_ENT_PWD            "PWD"

#define IPV4                    NetworkConfig_Ipv4Value(0, 0, 0, 0)
#define IPV4_DNS_SERVER         NetworkConfig_Ipv4Value(0, 0, 0, 0)
#define IPV4_GATEWAY            NetworkConfig_Ipv4Value(0, 0, 0, 0)
#define IPV4_MASK               NetworkConfig_Ipv4Value(0, 0, 0, 0)

- Attila -

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 9 오후 3:29 as a reply to Attila Lukács.

Hello all,

Rodrigo, it could be the case that your project does not get rebuilt automatically, when you flash the project. In that case, the changes would not be available in the application, and thus neither in the console log.

To fix this, clean the project (right-click the project in your project explorer, and select Clean Project). 


Afterwards, build the project again, and then flash it onto the XDK.

And as Attila said, the settings for static IP have to be set as well.

In addition, I would recommend to check if the configuration Auto build project before flash in Preferences/XDK/Flash is set.

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

Kind regards,
Franjo

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 10. 11 오전 9:24 as a reply to Franjo Stjepandic.

Hi Franjo,

I've sent an email to you. My department is CI/CWR3-HU

- Attila -

0 (0 투표)
RE: XDK Portal + Wifi Enterprise
응답
17. 12. 5 오후 5:27 as a reply to Attila Lukács.

Dear XDK Community,

we found a solution for reconnecting the XDK to an Enterprise WiFi.

First of all, the issue Attila had with the XDK disconnecting after 30 minutes was due to a setting of the WiFi access point, which terminated connections after 30 minutes. This had nothing to do with the XDK itself, obviously.

As for reconnecting, the entire code for reconnecting is the following:

if(CONNECTED_AND_IPV4_ACQUIRED != WlanConnect_GetCurrentNwStatus())
{
    unsigned char pValues = 0;  //0 - Disable the server authentication | 1 - Enable
    sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID,19,1,&pValues);
    vTaskDelay(500); // should not be neccessary
    WlanConnect(connectSSID, connectPassPhrase, NULL);
}

This code requires that #include "wlan.h" is included in the code.

The only part different from previously mentioned solutions is the setting, which is changed by calling sl_WlanSet(). If this setting is set to 1, the server authentication is enabled - which is not neccessary during a reconnect, and actually makes the reconnection fail.

With this code alone, reconnecting should work properly, but it is recommended to stop any timer that calls this code before attempting to connect, and restart the corresponding timer again, after the connection attempt.

Additionally, it is recommended to insert a timeout routine in EnterpriseWifi.c of the enterprise wifi code, in the function WlanConnect(), which basically exits the function after a speicific amount of time.

If there is no timeout, the function will be stuck in the following infinite while loop:

while ((WLAN_DISCONNECTED == WlanConnect_GetStatus())
        || (NETWORKCONFIG_IP_NOT_ACQUIRED == NetworkConfig_GetIpStatus()))
{
    // Insert a Timeout Routine here instead of nothing!
}

The timeout can be done as follows:

static int counter = 0;
counter = 0;
while ((WLAN_DISCONNECTED == WlanConnect_GetStatus())
        || (NETWORKCONFIG_IP_NOT_ACQUIRED == NetworkConfig_GetIpStatus()))
{
    counter++;
    if(counter==10){
        return WLAN_CONNECTION_ERROR;
    }
    vTaskDelay(1000);
}


Kind regards,
Franjo

0 (0 투표)