Hello - yesterday 22.03.2016 i have successfully installed the Bosch IotT Suite for the XDK.
I can now see the 4 sensors humidity, light, temperature and pressure in the live chart.
Also i can see the gyro on another display.
If i try to edit the dashboard live chart - only the 4 sensors above are listed for selection ?
I need to see the magnetometer data - but i haven't yet got it running ?
In my DCONFIG.TXT i have activated all sensors. What have i to do to get that sensor running ?

Next - i tried to connect the XDK to my SmartHome System.
A Mosquitto MQTT Broker is running on a RaspberryPi.
In the NCONFIG.TXT i changed the entry MQTT_BROKER form mqtt.bosch-si.com to my IP.
Does the entry only work with a real url ?
How i can i fix this problem ?

 
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/23/16 8:38 PM as a reply to Achim Kern.
Achim,

The MQTT Broker should be able to take either the URL or the IP address.  I have only tested this when I hard code the IP address however.  I will test to see if the parsing of the NCONFIG.TXT needs to be changed when viewing an IP address.

Your first question sounds like it should just be a set up issue somewhere.  I will try to duplicate your environment and get back to you with an solution to try.

Chris
 
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/24/16 7:39 AM as a reply to Christopher Koch.
Thanx - i will try to hard code the ip address in the eastern holiday and check if it then works correctly.
Also i haven't asked - there was a bug with the SSID Name in the config files - is this fixed already ?
If there was in the config file a space (FRITZBOX WLAN KEHO) the xdk can't find this router - only if i used my guest account FRITZGAST it runs correct. I will check this also again - hope you have fixed this too.
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/24/16 3:41 PM as a reply to Achim Kern.
Achim,

The code currently doesn't support two 'special' characters in the txt files for the Attribute Name and Value; the space (' ') and equal sign '='.  Please take note of this.  Thre is no planned update for the code right now, but you can easily fix this in your code by removing line 237 of CFG_parser_cc.c (buffer[*idxAtBuffer] != ' ') && and ensuring the text files (both NCONFIG and DCONFIG) have NO trailing white spaces on each line and by removing any spaces between the Attribute Name, the equal sign and the corresponding value.

I.E your NCONFIG.TXT file should look like this now:

SSID=YourNetwork’sSSID
PWD=YourNetwork’sPassword
MQTT_CLIENT_ID=XDK:MAC:ADDR
MQTT_BROKER=BoschIoTSuiteServerAddress
MQTT_PORT=1234
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/24/16 3:49 PM as a reply to Christopher Koch.
Achim,

I have done a bit of research into the first question regarding the live chart data.  Right now in order to see the live data from the magnetometer you need to adjust the speedometer widget to look at the magnetometer.  I will reach out to the team in charge of the Bosch IoT suite to see if they can extend the live chart widget to include the rest of the sensors (i.e. magnetomer, accelerometer and gyroscope).  As of now the live chart can only look at the temperature, humidity, light and pressure.

Chris
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/26/16 5:39 PM as a reply to Christopher Koch.
Hello - i have used now another WLAN accesspoint - SSID Big Letters - password only numbers - no special sighn etc. and finally it works - so i have now a stable connection to my wlan and raspberrypi broker - led is on orange like connected to the bosch mqtt broker.
So far so good - i started to subcribe to every topic with + to see everything whats is published.
Nothing from the XDK - no welcome message - no sensor data ?
How do i tell the XDK to publish data ?
I have seen these entries in the code ?

/* Defining Publish Topics */

#define PUB_TOPIC_1 "BCDS/XDK/single/%s/out/stream"

#define PUB_TOPIC_2 "BCDS/XDK/single/%s/out/report"

#define PUB_TOPIC_3 "BCDS/XDK/single/%s/out/config"

 

/* Defining Subscription Topics */

#define SUB_TOPIC1 "BCDS/XDK/single/%s/in/config"

#define SUB_TOPIC2 "BCDS/XDK/group/%s/in/config"

Please tell me what is to do now to see data on my mosquitto mqtt broker.
If i have this next milestone i will be able to integrate the XDK in my LCARS SmartHome and see the sensor data.
This is the final goal.
Hope you can help me to get this running.

best wishes Achim
0 (0 Votes)
XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
3/29/16 1:28 PM as a reply to Achim Kern.
Achim,

I have not used mosquitto to be able to fully support you on this.  However I have some thoughts that might be able to help you.  I believe mosquitto comes with a client to view the data from the device to the broker.  The essentials for communication are: the XDK and mosquitto client need to be looking at the same broker and the XDK will Publish to topics the Client will subscribe to and vice versa.

Please also take note that the publish and subscribe topics you list above are not the actual topics that are being published and subscribed to.  The %s is a place holder for the XDK's WLAN MAC Address (located on the back label of the XDK) and the quotations will be left out when setting up the topics on the mosquitto client.  So the actual topic on the mosquitto client will look something like this:

BCDS/XDK/single/20:19:AB:F4:F7:44/out/stream

Please let me know if you are still struggling with this and I will try and look further into the issue.

Chris
0 (0 Votes)
RE: XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
5/17/16 6:40 AM as a reply to Christopher Koch.

Achim,

I can confirm the topic format Chris suggested.
I succesfully subcribed to my XDK's data stream with the Windows  MQTT.fx client.

Topic ID    "BCDS/XDK/single/xx:xx:xx:xx:xx:xx/out/stream"   x being your XDK Wifi MAC address.

The return message looks like that:

{
"sn": "xx:xx:xx:xx:xx:xx",
"data": {
"acc": {
"x": 26,
"y": 32,
"z": 1012,
"unit": "mG"
},
"gyro": {
"x": 1220,
"y": -6835,
"z": -2319,
"unit": "mdeg/s"
},
"mag": {
"x": 40,
"y": 1,
"z": -4,
"unit": "uT"
},
"light": {
"value": 227520,
"unit": "mLux"
},
"temp": {
"value": 30880,
"unit": "mCelsius"
},
"pressure": {
"value": 98897,
"unit": "Pascal"
},
"humidity": {
"value": 39,
"unit": "%rh"
}
}
}

--Peter--

 

+1 (1 Vote)
RE: XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
8/10/16 7:36 AM as a reply to Peter Fischbach.
Done already everything - thanx to Mr.Koch for his big help.
Works perfect.
+1 (1 Vote)
RE: XDK and Bosch IoT Suite - MQTT Broker and Sensor Data
Answer
8/10/16 9:21 AM as a reply to Achim Kern.

Hello everybody,

big thanks to Chris for solving this issue.
Due to the response of Achim, I guess the issue is solved right now.

Please feel free to open new threads for new topics, we are proud of an active XDK community like this!

- Manuel

0 (0 Votes)