Sending sensor data via UDP
응답
16. 5. 18 오전 7:32

Hello, I would like to send sensor data of the Bosch XDK via UDP to an application on the PC. In the first step I installed XDK Workbench according to the instructions and imported the sample project "SendDataOverUdp". For this I have made the following WLAN-settings:

 

"WLAN_CONNECT_WPA_SSID" - WLAN network in which the XDK is
"WLAN_CONNECT_WPA_PASS" - Password for the WLAN network
"SERVER_IPSERVER_PORT" - IP of the PC
"SERVER_PORT" - Port Number

After Build Project and flashing the green LED of XDK is blinking. If I check the WIFI network the Bosch XDK does not appear. How is it possible to connect the XDK to the network?

For assistance I thank you.

Best regards.

0 (0 투표)
RE: Sending sensor data via UDP
응답
16. 5. 18 오전 9:44 as a reply to Stefan Möller.

Hello Stefan,

 

I guess you did it exactly the right way. You need to configure the settings like this:

 

#define WLAN_CONNECT_WPA_SSID             "mySSID"
 #define WLAN_CONNECT_WPA_PASS             "myPW" 

#define SERVER_IP                          UINT32_C(0xC0A80A01)    
                                           // 0xC0A80A01 == 192.168.10.1

#define SERVER_PORT                        UINT16_C(5000)            
                                           // Port 5000

 

The green light should be continuously on, because it monitors the current battery status. I think your XDK is connected to your computer, so it should be in charging mode.

The red, orange and yellow LEDs should blink during the flashing process and turn off, if the application is running.

 

A flashing of the green LED indicates a hardware problem with the battery. This cannot be controlled by the running software.

 

Is the green LED flashing all the time?

Would you please post me you email in here to coordinate the next steps?

 

King regards,

Manuel

0 (0 투표)
RE: Sending sensor data via UDP
응답
16. 5. 18 오전 11:17 as a reply to Manuel Cerny.

Hello Manuel,

the settings I've made but the problem remains.

When flashing with project "SendDataOverUdp" this text appears on the console:

 INFO | Set device 'XDK Device 1' into bootloader mode
 INFO | Connecting to XDK device 'XDK Device 1' in port 'COM5'...
 INFO | Flashing file 'C:/XDK-Workbench/workspace/SendDataOverUdp/debug/SendDataOverUdp.bin'...
 INFO | Connection to port 'COM5' established
 INFO | XDK DEVICE 1: u
 INFO | XDK DEVICE 1: Ready
 INFO | Application checksum '81a4' successfully verified.
 INFO | Transmission successfully completed!
 INFO | Booting application...
 INFO | XDK DEVICE 1: b
 INFO | XDK DEVICE 1:  Jumping to application
 INFO | Connecting to XDK device 'XDK Device 1' in port 'COM5'...
 INFO | Connection to port 'COM5' established

The green LED flashes at a frequency of about 10 Hz (shows it the data transfer?). The XDK will not appear on the WLAN network.

When flashing the XDK with project "SendVirtualSensorDataOverUsb" the green LED is continuously on and the sensor data are transmitted to the console.

 
Thanks for your help.

mail: stefan.moeller@et.hs-fulda.de

0 (0 투표)
RE: Sending sensor data via UDP
응답
16. 5. 19 오후 1:25 as a reply to Stefan Möller.

Hi Stefan,

 

the flashing log looks fine, but you don’t get any other output? (i.e. “Connecting to yourSSID”)

 

I’m really sorry for a small mistake.

Not three (red, orange and yellow) LEDs are flashing during the flashing process, only the orange LED is flashing and the red LED is continuously on.

 

However, the big issue here is the blinking of the green LED because it can’t be controlled by software. It should not blink at all.

While the battery of your XDK is charging, the green LED stays ON.

 

Did you run any other application to make sure, that your XDK is able to run an application in general, for example the LedsAndButtons example?

 

If this is failing too, I need to talk to the hardware developers, if we need to exchange the XDK.

 

Furthermore, we should make sure that you get a network connection. How did you configure your access point? Did you run a dhcp server on it? Can you display all the connected device?

Does the XDK get an IP?

 

Kind regards

Manuel

0 (0 투표)
RE: Sending sensor data via UDP
응답
16. 5. 20 오전 5:27 as a reply to Manuel Cerny.

Hello Manuel,

 

the "LedsAndButtons" example works on my XDK.

 

Again to the "SendDataOverUdp" example:

An IP adress is not assigned and the device does not appear in the WLAN network. It only flashes the green LED.

My colleague has another XDK. We tested it with the same code. When flash the "SendDataOverUdp" expample an IP adress is assigned and the XDK appears on the WLAN network. Here is the log:

 

 INFO | Set device 'XDK Device 2' into bootloader mode
 INFO | Connecting to XDK device 'XDK Device 2' in port 'COM6'...
 INFO | Connection to port 'COM6' established
 INFO | Flashing file 'C:/XDK-Workbench/workspace/SendDataOverUdp/debug/SendDataOverUdp.bin'...
 INFO | XDK DEVICE 2: u
 INFO | XDK DEVICE 2: Ready
 INFO | Application checksum '58cd' successfully verified.
 INFO | Transmission successfully completed!
 INFO | Booting application...
 INFO | XDK DEVICE 2: b
 INFO | XDK DEVICE 2:  Jumping to application
 INFO | Connecting to XDK device 'XDK Device 2' in port 'COM6'...
 INFO | Connection to port 'COM6' established
 INFO | XDK DEVICE 2:  Connected to WPA network successfully. 
 INFO | XDK DEVICE 2:   Ip address of the device: 192.168.2.122 

 

Occurs in my XDK an error? What we do next?

 

Best regards

 

Stefan

 

0 (0 투표)
RE: Sending sensor data via UDP
응답
16. 5. 20 오전 7:09 as a reply to Stefan Möller.

Hi Stefan,

 

I guess a part of your XDK hardware is broken.

 

We are really sorry for this annoying bug and would like to exchange your XDK as part of the warranty.

I will contact you directly to coordinate the process.

 

Kind regards

Manuel

0 (0 투표)