Issue with network connection
응답
17. 1. 13 오전 11:45

Hi XDK community

I have 3 XDK sensor I want to connect to the network. There are all connected via Wifi over WPA. One of them was purchased in May 2016, 2 others in October 2016. I use the latest version of the Workbench 1.7. For some reason, only the oldest of these 3 XDKs works with that firmware and is able to send data. The other twos not. I have exactly the same configuration, with just one of them active at the same time to ensure that there is no difference.

Interestingly, the other two work with the WIFI libraries of the Workbench 1.6, that had the WLI_ functions instead of Wlan_

Does someone of you observe the same issue?

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 13 오후 4:44 as a reply to Oliver Arnold.

Hello Oliver,

first of all I would ask you to use the latest version of the XDK workbench (1.7) to flash all applications to make sure we are working with the same Wi-Fi stack.

I guess this issue is related to the default DHCP configuration. It is responsible to set the ip configuration to static or dynamic in default. Sometimes there can be a bug that the default state is not explicitly set and thus it’s state is set by the previous flashed application which could be static.

Would you please add the function:

// …Wlan init
NetworkConfig_SetIpDhcp(NULL);
//… Wlan connect

between the Wi-Fi init and connect to make sure the DHCP is set to dynamic.
I assume DHCP is required with your access-point?

Please tell me if this solves your problem.

Kind regards,
Franjo

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 16 오전 9:13 as a reply to Franjo Stjepandic.

Hi Franjo

yes, my access point requires DHCP. I have tried to add the command, direktly after the init. Unfortunately, still the same behavior, two XDKs are not connecting when using Workbench 1.7, but with 1.6 they work. The third works with 1.7.

Really strange ...

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 16 오후 2:04 as a reply to Oliver Arnold.

Hello Oliver,

would you be so kind and share more information about your access-point and setup. I have never observed such an XDK behavior except the DHCP issue.

What network does your accesspoint open? (e.g. 192.168.0.0)
Please tell me the IPs your XDKs receive via DHCP after connecting. I would ask you to focus on the latest workbench 1.7.

You can retrieve the current IP of the XDK by inserting the following code after the connection function.

// e.g. WlanConnect_WPA()

NetworkConfig_IpSettings_T myIpGet;
    Retcode_T retStatusGetIp;
    retStatusGetIp = NetworkConfig_GetIpSettings(&myIpGet);
if (retStatusGetIp == RETCODE_OK) {
printf("The static IP was retrieved : %u.%u.%u.%u \n\r",
(unsigned int) (NetworkConfig_Ipv4Byte(myIpGet.ipV4, 3)), (unsigned int) (NetworkConfig_Ipv4Byte(myIpGet.ipV4, 2)), (unsigned int) (NetworkConfig_Ipv4Byte(myIpGet.ipV4, 1)), (unsigned int) (NetworkConfig_Ipv4Byte(myIpGet.ipV4, 0)));
}

If you haven’t already included the required interface, you need to include:

#include "BCDS_NetworkConfig.h"

Additionally I would ask you to check the return code of the connection function.

Retcode_T rc;
rc = WlanConnect_WPA(); //
printf("WlanConnect_WPA rc: 0x%08x \n\r", (uint32_t) rc);

Kind regards,
Franjo

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 17 오전 8:22 as a reply to Franjo Stjepandic.

Hi Franjo

I use a ASUS RT-N12D1 : DHCP Range 192.168.43.10-192.168.43.30. Plenty of free addresses, since only 5 devices are connected, one has a static IP.

I did implement it.

RC is 0x00000000

The IP is 0.3.195.236 but it should be 192.168.43.20 (when using the other firmware that works in this XDK)

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 17 오후 3:37 as a reply to Oliver Arnold.

Hello Oliver,

your IP configuration looks good. Even if the IP range seems to be slightly to small.
Unfortunately I cant reproduce your issue, but I really would like to. Therefore I would appreciate it, if you share your current applications related to the workbench 1.6 and 1.7 with me.

I would ask you to post you email address in here that I can contact you.

Kind regards,
Franjo

0 (0 투표)
RE: Issue with network connection
응답
17. 1. 18 오전 7:17 as a reply to Franjo Stjepandic.

Hi Franjo

it's oliver.arnold@bosch.com. Feel free to mail me. So I can send you the code

0 (0 투표)