IBM Bluemix receive closed connection error
응답
17. 7. 30 오후 3:54

Hello.

 

Today I decided to try out something new. I want to connect the XDK 110 to the IBM Bluemix and display Json sample data from it. I followed the step by step instruction from https://www.embarcados.com.br/conectando-bosch-xdk-sensor-ibm-bluemix/ but I got stuck at the picture attached as of below. 

Also, the Bosch XDK 110 keeps on auto disconnecting in the XDK Workbench. 

Please advice soon as I need to complete it fast. 

Thank you very much!

Danial

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 7. 31 오전 11:02 as a reply to Danial Rohmat.

Hello Danial,

it seems to me that your authentication simply failed. I have taken a quick look at the guide and the author of the guide offers a project, which you can modify, to connect to the IBM Bluemix. Did you use that? It already handles the inclusion of the authentication token in the connection package.

If you used the project offered by the author, it would be best to review and retrace everything starting from "Preparing the Bluemix Watson IoT Platform". As I said, I suspect it's simply some issue with the configuration of the device in the cloud, or with the credentials you inserted into the project.

Finally, there is no official guide or tutorial for connecting the XDK to IBM Bluemix.

As for the issue with the XDK auto-connecting, the MQTT Paho demo (and therefore the author's project, because it has been built upon the MQTT Paho demo) has a watchdog included, which leads to the XDK automatically rebooting if the XDK's application is stuck. The application probably gets stuck because the authentication fails.

Please tell me if this was helpful, and do not hesitate to ask if you have further questions.

Kind regards,
Franjo

+1 (1 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 7. 31 오후 4:12 as a reply to Franjo Stjepandic.

Hello there.

I repeated the whole steps, twice, but to no avail. 

Yes, I followed the guide, step by step, and also used the guide's project that it offered. I went to retrace and did everything, twice, meticulously. But the same problem appears. 

The XDK also still keeps on auto connecting and disconnecting. 

I suspect it might be due to the "red" compilation as attached in the picture below; I am not so sure about that. Attached below are the images of what I suspect it to be and how do I get a workaround with this?

Hope to hear from you as soon as possible! 

Thank you in advance.

Danial

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 1 오전 5:12 as a reply to Danial Rohmat.

Hello Danial, how are you?

I had problems like you when developing a firmware to connect to IBM Bluemix, the problem that you are suffering seems to be authentication problem, the Demo project provided by Bosch does not cover this part since is intendend to be used with the test feature of IoT platform.

I developed all the walkthrough to connect the XDK to Watson based on Bosch demo project and some modifications, this article is published here on Embarcados (the contents are in Portuguese, but can be easily translated):


https://www.embarcados.com.br/conectando-bosch-xdk-sensor-ibm-bluemix/

The firmware project can be found here, you only need to modify the SSID + PSSWD of your network and needs a valid IBM Bluemix account and a device token to register it (details to obtain can be found on the article above):

 


https://github.com/uLipe/-MQTT_Paho_latest                  

 

.

Let me know if I can help you with more info.
Best
Felipe

 

 

+1 (1 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 1 오전 8:56 as a reply to Felipe Neves.

Hello there. Great day indeed. Thanks for asking. 

I followed the step by step instructions once again, and still got the same error. I really do not know what is the problem here. 

"The firmware project can be found here, you only need to modify the SSID + PSSWD of your network and needs a valid IBM Bluemix account and a device token to register it"

The only things I modififed was the 

WLAN_SSID    
WLAN_PWD
MQTT_CLIENT_ID
MQTT_BROKER_NAMEIBM_BLUEMIX_DEVICE_TOKEN
 

These 5 were only the ones I changed. Please help as this is due for submission by me tomorrow morning. 

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 2 오후 2:48 as a reply to Danial Rohmat.

Hello Danial,

I have tried out the tutorial as well. My attempt has been unsuccessful in the same way as yours, meaning that I can communicate with the MQTT Broker, but my connection is refused. I get a similar connection log as yours.

This leads to the conclusion that it is not an issue with the XDK itself, but rather some configuration problem with the server. I don't know why it would not work for you or me, while it works for Felipe. I recommend talking to him directly on this matter.

Kind regards,
Franjo

+1 (1 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 3 오전 1:57 as a reply to Franjo Stjepandic.

Hello there.

I see this is a problem for us. How do I get in contact with Felipe? Please advice. 

Thank you. 

Best regards

Danial 

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 3 오후 1:16 as a reply to Danial Rohmat.

Hello Danial,

your best bet would be for him to read this thread here again, or in the comment section of his tutorial.

Kind regards,
Franjo

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 4 오전 7:28 as a reply to Franjo Stjepandic.

Hello there. 

There is no other way for me to contact him for faster response time?

This is because if I were to wait for him to take a look at this thread it might take quite a long time and I want to solve this problem as soon as possible as I might be using the Bluemix IOT for getting the sensors data from the XDK 110 out in json. I am not sure if the Bosch IOT is able to get the sensor data in json, can you please enlighten me. 

Thank you very much

Best regards

Danial

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 4 오후 1:14 as a reply to Danial Rohmat.

Hello Danial,

Unfortunately I do not know any faster way to contact him.

Related to your issue about JSON on the XDK:
Did you take a look at the Bosch XDK Portal demo at xdk.io/demos? The Bosch XDK Portal receives data from the XDK in JSON format, using MQTT, and allows visualization via the web-interface of the Bosch XDK Portal. The application on the XDK will automatically format the sensor data in JSON format. A guide to the demo is included in the archive file when you download the demo. Is this what you are looking for?

Kind regards,

Franjo

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 28 오전 9:11 as a reply to Franjo Stjepandic.

Hello.

Sorry for the late reply. I was overseas and had no internet connection at all.

Bosch XDK Portal demo is the one I used to link the Bosch XDk 110 to the Bosch IOT BCDS, am I right?

I went through the getting started guide and did not see anything related to the Bosch XDK .json using MQTT. 

I just want to see the .json of the sensor readings and extract it out for another use. 

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 28 오후 3:55 as a reply to Danial Rohmat.

Hello Danial,

The Bosch XDK Portal demo indeed publishes the XDK sensor data to the Bosch XDK Portal broker in JSON format. It is not mentioned in the documentation because the documentation of the Bosch XDK Portal demo describes only the specific use case of the demo in combination with the XDK Portal dashboard.

But you can, of course, use the demo to your advantage and still publish the sensor data to the Bosch XDK Portal MQTT broker and subscribe with your own MQTT client.
To connect to the broker with an own MQTT client, you only need the broker address mqtt.bosch-si.com and the broker port 1883. Afterwards, you subscribe to the topic "BCDS/XDK/single/%s/out/report" and should receive the sensor data of the XDK in JSON format.

Besides that, I would ask you to open a new thread, since this issue is not related to the initial issue anymore.
Other users with similar issues will have greater benefit from the solutions by finding the thread easier.

Please let me know if this was helpful and do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 투표)
RE: IBM Bluemix receive closed connection error
응답
17. 8. 28 오후 4:09 as a reply to Franjo Stjepandic.

Alright I will open up a new thread. 

 

Thanks for the help.

 

0 (0 투표)