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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

ThingWorx Connection

mn1
14-Alexandrite
14-Alexandrite

ThingWorx Connection

Hi there,

 

I would like to connect my AR Experience with ThingWorx. I opened ThingWorx by coping my experience service url and added "ThingWorx". Now I can see some Projects and I am able to read the data. I can connect the Data with my AR Experience so I can see the values on my AR application. But i am not able to create a  new Data Shape or edit something. I am not able to write a value in my AR Experince and connect this value with my a variable in thingworx. If I try this there comes the mistake i am not autohrizied. Now my question: Is it possible with the vuforia studio test licence to connect to thingworx and create a variable to read and write with a text widget in my AR Experience? 

I hope you understand my question. Thanks for help!

23 REPLIES 23
sdidier
17-Peridot
(To:mn1)

Hello,

 

Yes it is possible to change a value from an Experience to a Thing in ThingWorx Platform.

 

For a better troubleshoting, in ThingWorx Platform, I have created a Service into the Thing.

We can add log message. It is needed to debug with log files.

 

In my example, this Service, receives 2 values from Vuforia Studio, from 2 Widgets.

Vuforia_Studio_binding_to_set_value_in_ThingWorx.png

 

Vuforia_Studio_binding_to_set_value_in_ThingWorx_bis.png

 

ThingWorxComposer_service.png

 

In ThingWorx, to troubleshoot, I use the Monitoring > LOGS > Application, Security and Script menus.

It is very useful to know if the problem is in the javascript code or in Permissions.

By the way, it is possible to test the Service by clicking the Test button.

It is useful too, to exclude a problem with it in javascript source code.

 

Also, I would recommand to test with a dev account in ThingWorx but also with the es-public-access direclty in ThingWorx Composer.

 

About Permissions, in PERMISSIONS > Run Time, for es-public-access user, all Permissions need to be enabled (green dot icon)

More details about Permissions :

https://www.ptc.com/en/support/article?n=CS236180

 

I am sure when executing my customer Service, in ThingWorx Composer with my administrator account ; It worked like a charm.

But in Vuforia Studio, an error was reported in the log in ThingWorx Composer about Permission.

By searching this error message in PTC Technical Support web page, I found an article to enable Permissions for a Resource.

 

If I remember well, it was this article :

https://www.ptc.com/en/support/article?n=CS288931

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hi @sdidier 

How can I create a new user named es-public-access if i do not have permission to create a new user? And how do I change the permission if nothing happens if I click on the Button in the picture

 

Thanks for help!

sdidier
17-Peridot
(To:mn1)

Hello,

 

  • Why do you want ot create a new user es-public-access ?

         If it already exists it is not needed.

 

        To create a new user in ThingWorx Platform, an Administrator account is needed.

        To add permissions to an existing user as es-public-access, an Administrator account is needed also.

       

          In my trial instance, with the Administrator account, I was able to add the Permissions to Things to the existing es-public-access user.

   

          By default, account used to have trial is the adminstrator of the instance.

          I click on the same icon with the lock in your screenshot.

 

  • What is the result when clicking on this button ?

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

I readin the help center http://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FAnonymousAccess.html%23

to add the user, so i thought it is neccessary to create it.

 

If i click on the lock button in the screenshot nothing happens. No warning and no reaction.

sdidier
17-Peridot
(To:mn1)

Hello,

 

In the Help Center, it is explained the setup to do in a case of an installation from strach.

In a trial or cloud environments provided by PTC, this setup is already done.

So, it is not needed to redo it a second time.

 

If you cannot click on this button, I see 2 possibles reasons :

  1. Login used is not the administrator or creator of the trial instance.
  2. A problem occurs in this server

 

  • Are you using a trial environment provided by PTC ?
  • Are you using an environment hosted by PTC Cloud ?
  • Are you using an environment hosted in house in your company ?

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hello @sdidier 

Thanks for your help!

I am using the test license of one month from ptc with the Server provided by ptc.

 

sdidier
17-Peridot
(To:mn1)

Hello mn1,

 

Thanks you for your feedback.

 

  • What is the URL of this instance ?

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

sdidier
17-Peridot
(To:mn1)

Hello,

 

Thanks you.

 

I have checked, the service is running. 

I didn't find any problem by a quick check.

 

  • Are you the owner of this trial instance ?
  • Did you create it with your PTC account ?

 

If the answer is yes, in ThingWorx Platform, we can check if you have administrator Permissions.

We will follow up these steps :

https://www.ptc.com/en/support/article?n=CS208043

 

  1. In ThingWorx Platform, in SECURITY > User Groups menu
  2. Click the Advanced button
  3. Switch on the Show System Objects checkbox
  4. Click the Done button
  5. In the list, in the Administrators item, click the Magnifying glass icon
  6. In Administrators page, in Members menu, does your account is visible in the list like Administrator ?
  7. If not, please contact one of the Administrator listed. He will be able to solve the issue described in the screenshot provided in your post : https://community.ptc.com/t5/Studio/ThingWorx-Connection/m-p/596520/highlight/true#M5205

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hi @sdidier 

Yes, I am the owner of the trial instance and I created it with my ptc account.

sdidier
17-Peridot
(To:mn1)

Hello,

 

  • Do you have an error reported in the log of ThingWorx when clicking this button with the lock ?
  • Does you account is listed In Administrators page, in Members menu (Please my previous post whre steps are more accurate) ?

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

No there is no error shown.

 

I can not find the listed Administrators. I can follow your described stepts till step 5. Then I am not able to find the administrators.

sdidier
17-Peridot
(To:mn1)

Hello,

 

You should have this item named Administrators into the list at the step 5.ThingWorxPlatform_Administrators_Group.png

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hello @sdidier 

This is the only group I can see:

 

sdidier
17-Peridot
(To:mn1)

Hello @mn1 ,

 

  • Did you follow the steps 2 to 4 before ? 

 

        Administrators group is a default one present from scratch in Thingworx Platform.

        More details here :

      http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FSecurity%2FUserGroups.html%23wwID0EPIXFB

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hello @sdidier 

Yes I followed your described steps before.

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Is there any other step that I might have forgotten apart of the ones you described?

Hope you can help!

sdidier
17-Peridot
(To:mn1)

Hello @mn1,

 

No other step should be needed.

I am checking internally with R&D this instance.

 

I will come back to you with more details.

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hello @sdidier 

Thank you a lot for your help! 

sdidier
17-Peridot
(To:mn1)

Hello @mn1 ,

 

I have received a feedback from R&D.

It seems due to new trial servers where Administrators is not accessible anymore.

 

  • Can you give your email address, please ?

It will help to check with R&D this information.

 

Best regards,

Samuel

mn1
14-Alexandrite
14-Alexandrite
(To:sdidier)

Hello @sdidier 

 

I wrote you a message with my email adress. Thanks for your help.

 

Best regards

mn1
14-Alexandrite
14-Alexandrite
(To:mn1)

Hello @sdidier 

did you already found a solution?

sdidier
17-Peridot
(To:mn1)

Hello @mn1 ,

 

We can found the reason of the problem here.

In the new trial instances provided by PTC,  custom Things are not supported.

 

More details in this thread :

https://community.ptc.com/t5/Studio/Connecting-thingworx-platform-with-vuforia-studio/m-p/607210#M5612

 

Best regards,

Samuel

Announcements

Top Tags