Skip to main content
1-Visitor
June 21, 2016
Question

Is it possible to trigger a raspberry pi with data from the ThingWorx platform?

  • June 21, 2016
  • 10 replies
  • 7043 views

Hello everybody,

I want to address some raspberry pi's with data from the ThingWorx platform.

Is this possible in general ? And if, how can I do that?

Thank you in advance

Have a nice day

Matthias

10 replies

5-Regular Member
June 30, 2016

Hello, what exactly are you asking? Would you like to connect a Raspberry Pi to ThingWorx Composer?

Have you seen this tutorial? Weather Applications with Raspberry Pi - ThingWorx : ThingWorx

Thanks!

Tori

16-Pearl
August 17, 2017

Hi,

So this is an interesting question and its something that I'm also trying to get working.

I have the following setup.

1. Raspberry pi 3 with sense hat.

2. VM with TWX8, mfg_apps loaded and Kepware.

In kepware i can set the value of a property using the Asychronous 2.0 Write

And that works quite well to read a message accross the sense hat and show a picture, (both predefined)

I have also made that property in Thingworx and set the value to evoke the same thing.

(so essentially this works as long as I'm connected to kepware and i have saved the thing etc etc etc.)

The scenario I want to test now is with without kepware

I have a simple python script that waits for input from the user and then once it is received it runs it.

like this.

prompt = raw_input ("enter your message: ")

sense.show_message (prompt )

I want to be able to have a mashup where I can enter a random text string like "bob was here" and that will display on the sense hat.

Please let me know if you need more detail.

Regards

Bryan

5-Regular Member
August 21, 2017

Greetings Bryan,

It looks like you followed the steps to configure the Sense Hat laid out in the Sigma Tile Workshop, here:

Sigma Tile Workshop Guide.pdf

Part of that setup involves installing the Python library 'pymodbus' to implement the Modbus protocol on the Raspberry Pi. The Raspberry Pi was then able to fulfill the function of a Modbus Slave, which was how the KEPServerEX Modbus TCP/IP Ethernet Driver interfaced as the Modbus Master. This configuration is a great example of a solution involving KEPServerEX and ThingWorx. KEPServerEX enables connectivity to many Industrial Automation protocols, with Modbus being one of the most widely used.

There is a discussion of alternate scripts that can be used to interface the Raspberry Pi/Sense Hat directly with ThingWorx, which can be found in the ThingWorx Developer Community, here:

Re: Thingworx and EMS

Please let us know how it goes with trying out the suggestions in that thread.

Best regards,

Steven M