Communication

XDK has a lot of ways of transmitting its data and here is a review of which I think are the most useful communication protocols that you can use with XDK.

For all of these communication protocols are various example within XDK workbench so if you already have an XDK, and you already download the XDK workbench. I recommend you to start using these templates for a better understanding about it.

HTTP / HTTPS

XDK use http communication so you are going to be able to send http request such as POST or GET that are the most common http verbs that are used, and actually these are the http verbs that you are going to use most.

There are example projects in XDK workbench that you can use in order to can send the data to your backend if you already have one. and save your data to a database.

MQTT

This is another communication protocol that the xdk can use, with this protocol you will be able to send your data to an MQTT broker a make a new topic with your data, there a lot of ways to create your own broker or use an online one.

what I'd rather is use mosca or mosquitto, but if you feel comfortable with JS, I suggest you to use Mosca, because this one is using NodeJS, and actually is a pretty easy to mount a broker. I also can recommend you to use Node-red because with some plugins you will be able to mount a broker with a drag-and-drop application which is good for rapid prototyping.

BLUETOOTH

I think that the most used communication protocol with XDK is the bluetooth. It's a simple way that let you use BLE from cellphones to send and receive data with a really good timing. And actually the only formal application from Bosch for the XDK called "Virtual XDK" that is available in play store, and app store use BLE as the communication protocol. So if what you want for your project its a protocol that just requires to be near to XDK at least less than 10 meters, this one is the better one for use.

SERIAL

This is the best one for rapid prototyping due to you don't need a lot of configurations, its good for see if data its ok but I suggest you to use the serial port with another kind of languages such a python or matlab, you just need to configure your code to receive data from serial port, which is not difficult in both languages, although you are free to use any language that you want, but take in count that python is one of the most powerful languages for data science besides R and matlab.

Last updated