Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
i want to integrate this gateway with thingworx server. some one could you guide me..?
Solved! Go to Solution.
Great. It sounds like you have one of these:
I don't have one, so all my knowledge comes from a quick read of their online documentation, looking for ways that device can communicate with the outside world.
It looks like the normal workflow is to connect your XDK110 Gateway to the XDK Workbench via COM (or JLink for debugging) and then write a short program to collect sensor data and send that data via various protocols to a network destination. Once you've debugged it, you load it into the XDK110, and enjoy the new connectivity.
The documentation tells me the XDK provides several protocols, but the ones that really jump out at me are HTTP and REST. Everything in your ThingWorx Thing model is exposed via REST, so I think writing a program in XDK Workbench that changes property values with a REST call is the easiest way to go.
Like I said, I don't have an XDK110 of my own, so I'll have to speak generally. On my local ThingWorx instance, I have a Thing Model that contains Vehicles. It's easy for me to set the VehicleSpeed property for one of my vehicles, Vehicle41, using a REST call. Here's the code for my REST call:
PUT /Thingworx/Things/Vehicle41/Properties/VehicleSpeed HTTP/1.1
Host: localhost:8080
Accept: application/json
Content-Type: application/json
appKey: aaannnan-nann-nnnn-aaaa-43bd95d50a65
x-thingworx-session: true
Cache-Control: no-cache
Postman-Token: 3f57nnna-nana-nnna-nnna-nnaaaaafd81
{
"VehicleSpeed":66.5
}
Here are the important ThingWorx-specific headers:
There's a Postman-Token header because I use Postman to test all my REST calls. You don't have to worry about that header.
Here are the steps I'd take to visualize XDK110 data in a ThingWorx mashup:
Once you're down the road a bit, and you have a bunch of XDK110s sending data, you may want to explore MQTT. You can write a program in XDK Workbench that posts to an MQTT broker, instead of an HTTP endpoint. There's a free extension in the ThingWorx Marketplace that enables ThingWorx to subscribe to messages on an MQTT broker.
Good luck with the XDK110. It looks like a really nice sensor package.
A few clarifying questions:
1) It is a sensor Gateway(Hardware). Robert Bosch XDK ( for more Home - XDK)
2) My gateway(XDK) itself contains 7 sensors ( inside the Gateway)
3) Which software..? (gateway application or Thingworx application)
4) Ya, My gateway is connected with network, and my gateway is continuously(every 10 sec) giving the sensor information. I have to store this sensor info & i have to display in UI.
Great. It sounds like you have one of these:
I don't have one, so all my knowledge comes from a quick read of their online documentation, looking for ways that device can communicate with the outside world.
It looks like the normal workflow is to connect your XDK110 Gateway to the XDK Workbench via COM (or JLink for debugging) and then write a short program to collect sensor data and send that data via various protocols to a network destination. Once you've debugged it, you load it into the XDK110, and enjoy the new connectivity.
The documentation tells me the XDK provides several protocols, but the ones that really jump out at me are HTTP and REST. Everything in your ThingWorx Thing model is exposed via REST, so I think writing a program in XDK Workbench that changes property values with a REST call is the easiest way to go.
Like I said, I don't have an XDK110 of my own, so I'll have to speak generally. On my local ThingWorx instance, I have a Thing Model that contains Vehicles. It's easy for me to set the VehicleSpeed property for one of my vehicles, Vehicle41, using a REST call. Here's the code for my REST call:
PUT /Thingworx/Things/Vehicle41/Properties/VehicleSpeed HTTP/1.1
Host: localhost:8080
Accept: application/json
Content-Type: application/json
appKey: aaannnan-nann-nnnn-aaaa-43bd95d50a65
x-thingworx-session: true
Cache-Control: no-cache
Postman-Token: 3f57nnna-nana-nnna-nnna-nnaaaaafd81
{
"VehicleSpeed":66.5
}
Here are the important ThingWorx-specific headers:
There's a Postman-Token header because I use Postman to test all my REST calls. You don't have to worry about that header.
Here are the steps I'd take to visualize XDK110 data in a ThingWorx mashup:
Once you're down the road a bit, and you have a bunch of XDK110s sending data, you may want to explore MQTT. You can write a program in XDK Workbench that posts to an MQTT broker, instead of an HTTP endpoint. There's a free extension in the ThingWorx Marketplace that enables ThingWorx to subscribe to messages on an MQTT broker.
Good luck with the XDK110. It looks like a really nice sensor package.
BTW - Here's a great, "cheat sheet," on ThingWorx REST APIs to get you started.
Thank you very much for your response.
Currently i am communicating with XDK110 via MQTT protocol. I am thinking to use the same (MQTT) with Thingworx also. For that MQTT extension will be helpfull..?
In HueBridge by using HueEdgeAgent I created Thing in Thingworx. now how can I create the Mashup for this. and what is use of PhilipsHueEdge Extension "lib".
Currently I am running my application in pivotal server, Instead of pivotal i am planning to use Thingworx. "It is possible run the Thingworx server in my local system"
ThingWorx supports a wide variety of deployment models. It is very common to run it locally. For more information, go to the Support site, and get a copy of the installation guide for the version of ThingWorx you want to run.
I gone through the ThingWorx installation guide & I tried to install ThingWorx in my local system, for that PostgreSQL or H2 Database in required. So I installed PostgreSQl DB after that I was redirected to download the Thingworx.war file in PTC Software Downloads page. But i am not able to reach the PTC Software Downloads page.I am getting access denied msg. If i want to run the ThingWorx server in my local machine I have to purchase...?
Refer to Philips Hue Edge Connector Version 1.0 User Guide for more information on how to create a mashup for your Philips Hue devices. It's included in the zip archive for the download of the connector.
I referred Philips Hue Edge Connector Version 1.0 User Guide, but there is no information about mashup. could you guide me to crate the mashup...
Thank you.
Hi Stephen,
Happy new year...
I am unable to communicate with my MQTT broker. Thingworx server and MQTT broker both are running in my laptop only. I think some problem in my Thingworx MQTT configuration page. please guide me to resolve this. This is my configuration screen. (My laptop IP :192.168.1.89)
After configuration,
I have one more question,
During TCP communication I am getting Unable to Invoke Service SendTextTCPMessage on TCPsocketThing : Connection timed out , TCP server and Thingworx both are in same network. This is my Screen. I already spent more then 2 days in both cases, Please provide some support to resolve this.
Thanks in advance.
Hi,
Have you fixed this issue with MQTT?
Did you try another methods to connect the XDK to Thingworx?
Regards,
Bryan