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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

update rate

TgmMartin
4-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

ACCEPTED SOLUTION

Accepted Solutions

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_sdk%2Fc_csdk_push_properties.html%23

 

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

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/884

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

 

Hope it helps,

Raluca Edu

TgmMartin
4-Participant
(To:raluca_edu)

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

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

TgmMartin
4-Participant
(To:Constantine)

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

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

TgmMartin
4-Participant
(To:Constantine)

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

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_sdk%2Fc_csdk_push_properties.html%23

 

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

TgmMartin
4-Participant
(To:Constantine)

Hello Constantine,

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

Martin

Announcements


Top Tags