cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

update rate

SOLVED
Highlighted
Participant

update rate

Hi Forum,

We have successfully connected Arduinos and Raspberries toTW with REST-API (https PUT requests). It is clear that the Raspberry can achiev a higher update rate than an Arduino. We have achieved an update rate of one second with the Raspberry.

To monitor accelerations or movements of a CNC router for example 1Hz sampling rate is not very high.

My question is if there is an other posipility to connect the Arduinos to TW to get higher update rates. My desired update rate is 10 to 5Hz.

My idea is that we use a Raspberry as an Edge MicroServer (EMS) and several Arduinos which deliver the data.

I read the "Setup a Raspberry Pi as an IoT Device" article but I found no way to feed the Arduino data to the EMS.

Is there an other way to connect the Arduinos (ESP32) in an always on connection to achiev higher update rates?

Thank you for your help

Martin

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: update rate

Hello Martin,

 

Take a look at this Help Center, it does go into all details about reading and writing properties: http://support.ptc.com/help/thingworx_hc/thingworx_edge/index.html#page/thingworx_edge_sdks_ems%2Fc_...

 

The SDKs should be available here (if you have access to Support > Downloads, you should be able to download a more recent 2.2.8 version): https://developer.thingworx.com/en/sdks

 

Regards,
Constantine

View solution in original post

8 REPLIES 8
Highlighted

Re: update rate

Hi,

 

Check this thread for Arduino connecting with MQTT to Thingworx: https://community.ptc.com/t5/IoT-Tech-Tips/DeliveringArduinoDataToThingworx-pdf/m-p/533839/thread-id...

Although it is not the same model, but could be a starting point.

 

Hope it helps,

Raluca Edu

Highlighted

Re: update rate

Hi,

Thank you for this link. Because the thinkworx instance is not mine I have to check the MQTT functionality with the server team. Unfortunately I have no MQTT like Base Thing Template in the New Thing Window...

Thanks

Martin

Highlighted

Re: update rate

Hello Martin,

 

Depending on your experienced with developing embedded software, you may try to port Edge C SDK to ESP32. The latter is a rather capable board, with its own GNU toolchain and a somewhat-POSIX-compatible standard library, so it might be a doable task.

 

The SDK developer's guide has a section on porting it to other platforms, it might help as well. Even though the task is very interesting, I've never attempted it myself.

 

The MQTT way suggested by @raluca_edu will definitely be easier, at least for prototyping purposes.

 

/ Constantine

Highlighted

Re: update rate

Hello Constantine,

to port the software to Arduino sounds very interesting. The problem is that the TW stuff is not my main topic and I have to do this beside. I will try to set up a Raspberry Pi as always on edge device and find out the possibilities to update the property values. I found an article about the set up process for the raspberry but no one for updating the property values...

Martin

Highlighted

Re: update rate

Hello Martin,

 

Pushing properties to ThingWorx should be a core part of samples distributed together with SDKs and EMS. At least for C SDK that we've just discussed the basic example, which is bundled as part of MED-61061-CD-055_M070_C-SDK-2-2-8-135.zip pushes property values to ThingWorx. I'm sure that EDGE Micro Server samples should do the same.

 

Or it's not what you're looking for?

 

/ Constantine

Highlighted

Re: update rate

Hello Constantine,

I read the guide "Setup a Raspberry Pi as an IoT Device" from the developer portal. There was only a file transfer introduced as far as I saw it on a quick reading.

My account is not allowed to download your mentioned file so I have to check this first. I will check this with our team if it is possible to send me this file or even better link me to our account. Maybe another member of our group wants to use an ESP32 as edge device. But our meeting next week is postponed...

Martin

Highlighted

Re: update rate

Hello Martin,

 

Take a look at this Help Center, it does go into all details about reading and writing properties: http://support.ptc.com/help/thingworx_hc/thingworx_edge/index.html#page/thingworx_edge_sdks_ems%2Fc_...

 

The SDKs should be available here (if you have access to Support > Downloads, you should be able to download a more recent 2.2.8 version): https://developer.thingworx.com/en/sdks

 

Regards,
Constantine

View solution in original post

Highlighted

Re: update rate

Hello Constantine,

Thank you for the links! I will see if I have the time to dig into this...

Martin

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!