RE: MSW Wifi connection for XDK
Answer
8/14/18 5:59 AM as a reply to Franjo Stjepandic.

Hi Franjo,

Thanks for helping me ! I couldn't connect to my Enterprise wifi because my XDK workbench was 3.4, I downgraded to 3.0.1 and it worked but my point is keep using BoschXDKCloudConnectivity example and connect with cloud via Enterprise wifi instead of my wifi hotspot to get data.Is it possible or could you recommend me a few ways to get data from XDK ? Thank you !

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/14/18 5:09 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

Could you please go more into detail about the downgrade you took from XDK-Workbench 3.4.0 to 3.0.1?

As far as I can analyze it, the BoschXDKCloudConnectivity example does not contain any implementation to connect the XDK to an Enterprise WiFi network.

Did you try to connect the XDK to a mobile hotspot using WPA encryption instead, which occured in errors with the BoschXDKCloudConnectivity example on the latest XDK-Workbench 3.4.0?

In regards to connect the XDK to an Enterprise network using the current BoschXDKCloudConnectivity example, this functionality is not completely implemented in the example. This would need to be implemented on your own. Please note, a big anmount of effort is required here, to assure a stable implementation.

To step into a different direction some calculating factors get involved:
For example, it depends on where you want your data send to and which kind of interfaces are supported and available. If you plan, for example, to get your data onto a cloud, it would depend on the availability of the protocol interface (e.g. Lwm2m, MQTT, CoAP, HTTP etc.).

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
8/15/18 6:20 AM as a reply to Franjo Stjepandic.

Hi Franjo,

The BoschXDKCloudConnectivity example worked well with XDK-Workbench 3.4 using my mobile hotspot but following my posts above I just had problems with implementation Enterprise Wi-Fi demo (Enterprise-Wifi 3.0) using XDK-Workbench 3.4.So I decided to reinstall Workbench 3.1 version and it worked.

Our plan is using wireless connections of IoT devices to collect data, monitor and visualize.I had implemented BoschXDKCloudConnectivity example to collect data with Python and HTTP API method successfully.That's would be great if I could connect the XDK to an Enterprise network using the current BoschXDKCloudConnectivity example but as you said I need a big amount of effort to implement by myself.Maybe I will try with BLE to collect XDK sensor data.

First I just want to collect and store data to my local database and next step I will think about how to push data onto cloud or our server.

0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/15/18 3:32 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

Thank you for providing further information.

In case of sending data to the cloud, are you depending here on sending the data to the Bosch IoT cloud or would it be possible to send to another cloud too?

In case of sending it to another cloud, it might be worthwhile trying out Eclipse Mita to send the sensor data over MQTT or HTTP. That would come in very handy because you would only need a few lines of code to build your application.

For more information about Eclipse Mita, I recommend taking a look at the official website or the XDK Knowledgebase .

Otherwise, if you rely on the Bosch IoT cloud, I can only recommend going the step and integrate the Enterprise Wi-Fi functionality into the BoschXDKCloudConnectivity example.

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
8/16/18 1:42 AM as a reply to Franjo Stjepandic.

Hi Franjo,

Integrating the Enterprise Wi-Fi functionality into the BoschXDKCloudConnectivity example is really hard for me so I choose option 1 - sending data to another cloud.But first, how could I get temperature and humidity sensor data from XDK and store it into my local database? Because I am not good at C/C++ I am only able to implement XDK examples until now.

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

For a beginner, I strongly recommend to start with the guides in the Learning section of the XDK community. Especially the First Steps guide to get familiar with programming the XDK. If you like an even more gentle start with the XDK and C, you can also take a look at these guides .

In regards to transfer data from the XDK to your own cloud, I suggest to begin with reading out the sensor data first, followed by printing it to the XDK-Workbench console.
The Sensor guide in the Learning section will teach you with basic knowledge about the environmental sensor and how to implement and also trigger it.

Afterwards, for transferring the data into your cloud, it is necessary to decide, which transfer protocol you use.
Even deeper informations about different protocols like HTTP/S, CoAP, LwM2M, MQTT, etcetera can be found within guides from the Learning section , too.

I wish you the most fun and success learning C with the XDK and also the best progress with your project.
If you follow these guides, you will be able to reach your project's goal and transfer the data into your cloud.

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
8/21/18 8:34 AM as a reply to Franjo Stjepandic.

Hi Franjo,

I spent one day to research on these guides.Now I can send environment sensors data to my laptop.I made a listener with Python and I had a problem with message data received.Was there something wrong with my Python listener or XDK code ? 

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

I am glad to hear that you are making process in regards to read out sensor data from the XDK and print it to the console of the XDK-Workbench.

Unfortunately, I cannot pinpoint the point of failure from the first glance.

As such, it would be nice if you could provide an outline of the format you are sending the sensor data over printf() function calls to the XDK-Workbench console. Otherwise, it would also be helpful if you could provide the relevant code snippet of your python script where you are gathering the incoming sensor data.

Kind regards,
Franjo
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/22/18 3:06 AM as a reply to Franjo Stjepandic.
Here is my reading sensor data and print it to XDK Workbech console function, it worked well.But in python server I had a problem as my post above.I also tried with SendAccelDataOverBleUdp and had a same result.
0 (0 Votes)
RE: MSW Wifi connection for XDK
Answer
8/22/18 3:02 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

Thank you for going more into detail about your python implementation and how you are sending the data from the XDK. Please note that you need to specify a format you are sending the data to be able to decode them on the receiving side (e.g. the UDP server, the USB receiver ).

You could use, for example, the .csv format with delimiters for the certain values, such as in the example below:

"temperature, humidity, pressure"

There the comma acts as separator for the certain sensor values and the only thing you need to take into account on the receiving side is the order of send sensor data. Additionally, a JSON format could also become handy as shown below, where you have an additional identifier in the send string.

{"Temperature": temperatureValue, "Pressure": pressureValue, "Humidity": humidityValue}

Otherwise, please take into account, when you are programming the receivers in python, that you display the incoming data correctly since you are getting everything send over USB, for example, as string.

On the other hand, when you are using the SendAccelerometerDataOverUdpAndBle example, the data is directly sent as raw integer value. In both cases, you need to display both correctly in your python receiver, either as string or as raw integer.

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

Kind regards,
Franjo
0 (0 Votes)