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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

External IoT Data Fails to Refresh/Update

RyanAnderson
10-Marble

External IoT Data Fails to Refresh/Update

Hey,

 

What I am reporting used to work and within the space of roughly 1-3 weeks it no longer works.

 

I ran though the Fundamentals of AR Development course in PTC University and managed to complete the IoT Robot Arm Repair Project. The Project worked nicely where it was pulling IoT data from the RoboArm1 Thing on the ThingWorx Platform. For some reason now, the 3D gauge never updates with new values... Even though the service configuration is correct, see below

RyanAnderson_0-1592828743092.png

 

 

Any help please? Did the Vuforia Studio update affect this? 

ACCEPTED SOLUTION

Accepted Solutions

Hello Ryan,

 

Maybe the best is to schedule a WebEx session.

  • Can you please send me by a private email your email address, please ?

I will contact you directly by email.

 

Best regards,

Samuel

View solution in original post

15 REPLIES 15

Hello Ryan Anderson,

 

In Vuforia Studio, in Preview when reproducing the issue, what is the output in Chrome, in Developper Tools, in Console tab ?

 

Best regards,

Samuel

Hey Samuel,

 

Here is the output:

RyanAnderson_0-1592897539488.png

 

BR

 

Ryan

Hello Ryan,

 

I suppose that the data is not updated to the javascript exception thrown.

The solution is to solve it.

 

I have some questions :

  • Do you have a custom javascript function named elbowGauges defined in <View name>.js node ?
  • In a 2D Widget with a Click Event, in this Event do you a call to a function elbowGauges(); ?

 

Thanks you in advance for your feedback.

 

Best regards,

Samuel

Hey Samuel,

 

Yes I do, I followed the "Fundamentals of AR Development with Vuforia Studio" Course on PTC University and followed exactly as presented (as mentioned it previously worked until I tested once again today).

 

See elbowGauges function below:

elbowgauge.png

 

 

...And see that I call elbowGauges in a Model Item Click Event:

elbowgauge2.png

 

BR

 

Ryan

Hello Ryan,

 

Please send me the Project, it will be easier to have a deeper look.

 

Thanks you.

 

Best regards,

Samuel

Hey Samuel,

 

I've attached the project in question.

 

TIA

 

Ryan

Hello Ryan,

 

When disabling Auto-Refresh ..etc.. linked to Properties of ThingWorx, I can execute this Javascript code without any problem.

 

  • Do you have still access to Thing, Properties and Service in ThingWorx used by this Project ?
  • Can you copy all verbose output in Console when starting Preview, please ?

 

Best regards,

Samuel

Hey Samuel,

 

I assume I still have access to the Things, Properties and Service. I am still able to login to my ThingWorx Composer instance @ https://twx.studio-trial.vuforia.io/Thingworx/Composer/

 

I also tried disabling Auto-Refresh on my properties and services and that did not work for me unfortunately.

 

I'm not sure if this is the logging you are after...

RyanAnderson_0-1592900817765.png

 

Hey there,

 

Any Updates?

Hello Ryan,

 

We have reviewed this issue in an internal PTC meeting between Technical Support engineers.

 

To be honest, we think that's the issue can have 3 possible root causes :

  1. A network issue
  2. No access to Properties in ThingWorx used in Experience
  3. Some changes in ThingWorx after Properties are used in Project in Vuforia Studio.
  • Can we check the point 2 and 3 to exclude them, please  ?

 

The steps to investigate issue 2 are :

  • What is the user used in Vuforia Studio to connect to Vuforia Experience Service or ThingWorx ?
  • Does this user can see the Thing RobotArm1 ?
  • Does the user can see the Properties ElbowMotorCurrentDraw, ElbowMotorTemperature, ElbowMotorRuntime, ShoulderMotorCurrentDraw, ShoulderMotorRuntime, ShoulderMotorTemperature, nameand SerialNumber ?

To investigate issue 3 :

  1. In Vuforia Studio, copy the Project to create a new one
  2. In this new test Project
  3. Remove Thing RobotArm1
  4. In Preview, test if it has an impact to display Widgets
  5. If it is working, we have find the root cause
  6. Solution is to add again Thing RobotArm1 and to recreate bindings needed with Properties
 

Best regards,

Samuel

Hey Samuel,

 

Here are my answers below in red:

 

The steps to investigate issue 2 are :

  • What is the user used in Vuforia Studio to connect to Vuforia Experience Service or ThingWorx ?
  • Does this user can see the Thing RobotArm1 ?
    • Yes I can see RobotArm1 Thing
      RobotArm1Thing.png

  • Does the user can see the Properties ElbowMotorCurrentDraw, ElbowMotorTemperature, ElbowMotorRuntime, ShoulderMotorCurrentDraw, ShoulderMotorRuntime, ShoulderMotorTemperature, nameand SerialNumber ?
    • Yes I can see the properties on RobotArm1 Thing
      RobotArm1ThingProperties.png

To investigate issue 3 :

  • What I did was:
    • Copy the existing IoT Project
    • Removed the RobotArm1 Thing from External Data
    • Reimported the RobotArm1 Thing properties and GetPropertyValues service
    • Remove the old bindings and recreated them
    • Issue still persists...
      • The IoT data does not refresh - We just get a constant value that never updates.

 

Any other ideas? 😞RobotArm1ExternalData.png

Hello Ryan,

 

  • Is it possible to create a new and temporay user in ThingWorx with read permissions on Thing RobotArm1 and in Developer group, please ?

        Please send me in aprivate message this user and password. I would check if I am able to reproduce the issue locally here at PTC with in a more close environnent like you.

       If I am able to reproduce the problem, it will help to find the root cause and the solution.

 

Best regards,

Samuel

Hey Sam,

 

I think I will need a little help with this. I'm not sure I can do any admin-tasks on this PTC Cloud-hosted ThingWorx solution.

 

Please PM me if required, else reply here.

 

TIA 🙂

Hello Ryan,

 

Maybe the best is to schedule a WebEx session.

  • Can you please send me by a private email your email address, please ?

I will contact you directly by email.

 

Best regards,

Samuel

Done, and appreciated.

Announcements

Top Tags