# OPCUA device protocol not working

**URL:** <https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [December 12, 2022, 11:44am UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607 "2022-12-12T11:44:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vachaspati\_Diwevedi1](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vachaspati\_Diwevedi1](https://community.cumulocity.com/u/vachaspati_Diwevedi1)\
**Post date:** [December 12, 2022, 11:44am UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/1 "2022-12-12T11:44:00Z")

</div>

#### What product/components do you use and which version/fix level are you on?

OPCUA device protocol , Cumulocity version 10.6.6

#### Is your question related to the free trial, or to a production (customer) instance?

Customer tenant

#### What are you trying to achieve? Please describe it in detail.

I have subscribed the OPCUA gateway service. Setup the OPCUA gateway Agent and configured the OPCUA gateway Server within tenant. All setup if working fine so far.

I have scanned all the namespaces of the OPCUA server. Now I have configured the device protocol with one namespace and enabled it. Now it suppose to create a child device for the OPCUA server and subsequent measurements but it’s not doing anything and I do not see any error in the gateway agent logs as well.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/4/c/4cadb400880636cd38284bffe2b4a75b5bb0a518.png)

Even if I have configured one data point as measurement in the device protocol, the resource count is showing as 0.  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/optimized/3X/7/4/7440ec69634296aff2a9a028342ef228ddefe109_2_690x22.png)

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

no error message in the agent logs  
2022-12-13 03:32:55,107 19332325 [pool-327-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:33:55,108 19392326 [pool-328-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:33:55,408 19392626 [pool-328-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:34:55,408 19452626 [pool-329-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:34:55,701 19452919 [pool-329-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:35:55,702 19512920 [pool-330-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:35:55,992 19513210 [pool-330-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:36:55,993 19573211 [pool-331-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:36:56,335 19573553 [pool-331-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:37:56,335 19633553 [pool-332-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:37:56,681 19633899 [pool-332-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:38:56,682 19693900 [pool-333-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:38:56,969 19694187 [pool-333-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:39:56,970 19754188 [pool-334-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:39:57,266 19754484 [pool-334-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:40:57,266 19814484 [pool-335-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:40:57,613 19814831 [pool-335-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:41:57,614 19874832 [pool-336-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:41:57,963 19875181 [pool-336-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:42:57,964 19935182 [pool-337-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:42:58,307 19935525 [pool-337-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032  
2022-12-13 03:43:58,308 19995526 [pool-338-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Start checking for subscription update on server: 2468032  
2022-12-13 03:43:58,652 19995870 [pool-338-thread-1] INFO c.c.o.c.g.s.UpdateServerSubscriptionTask - Finished checking for subscription update on server: 2468032

#### Have you installed all the latest fixes for the products and systems you are using?

Yes

---

<div class="post-metadata">

**Author:** ![Marco\_Stoffel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/marco_stoffel/32/19453_2.png) [@Marco\_Stoffel](https://community.cumulocity.com/u/Marco_Stoffel)\
**Post date:** [December 12, 2022, 3:29pm UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/2 "2022-12-12T15:29:46Z")

</div>

Hi, can you please share a bit more information? E.g. show the variable configuration?

---

<div class="post-metadata">

**Author:** ![vachaspati\_Diwevedi1](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vachaspati\_Diwevedi1](https://community.cumulocity.com/u/vachaspati_Diwevedi1)\
**Post date:** [December 13, 2022, 3:54am UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/3 "2022-12-13T03:54:28Z")

</div>

> [@Marco\_Stoffel](#):
>
> tion

Hi @Marco_Stoffel

Below find the OPCUA Variable properties

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/7/9/7906b8bae84cd68c4dbfbcd8cc9606390e113f5f.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/5/5/55bd5cd282c7a523bc012de781590932fcc48e9e.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/7/c/7c4cd91ce8c4c2323619ab8b4f178c71711189f8.png)

Device protocol variable configuration -

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/8/5/8552c0b29073b41cb3a32f953024d8cdff5b5a60.png)

---

<div class="post-metadata">

**Author:** ![vachaspati\_Diwevedi1](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vachaspati\_Diwevedi1](https://community.cumulocity.com/u/vachaspati_Diwevedi1)\
**Post date:** [December 13, 2022, 4:29am UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/4 "2022-12-13T04:29:11Z")

</div>

I have tested the same setup with prosys OPC UA simulator everything working fine. I can see the child device and measurement but the same device protocol is not working with customer OPC UA server.

---

<div class="post-metadata">

**Author:** ![Alexander\_Pester](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/alexander_pester/32/5725_2.png) [@Alexander\_Pester](https://community.cumulocity.com/u/Alexander_Pester)\
**Post date:** [January 11, 2023, 2:28pm UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/5 "2023-01-11T14:28:00Z")

</div>

Hi Vachas,

have you tried this operations to analyze the device protocol a bit more:

[https://cumulocity.com/guides/protocol-integration/opcua/#testing-a-device-type-against-a-node-on-an-opc-ua-server](https://cumulocity.com/guides/protocol-integration/opcua/#testing-a-device-type-against-a-node-on-an-opc-ua-server)  
[https://cumulocity.com/guides/protocol-integration/opcua/#analyzing-the-set-of-nodes-to-which-a-device-type-can-be-applied-dry-run](https://cumulocity.com/guides/protocol-integration/opcua/#analyzing-the-set-of-nodes-to-which-a-device-type-can-be-applied-dry-run)

if the device protocol can’t be applied, usually something is wrong with the path. What apply constraints are you using? Is the “THEGEAR” browseName your root node, can you try to add “1:THEGEAR” to your path?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [July 10, 2023, 2:28pm UTC](https://community.cumulocity.com/t/opcua-device-protocol-not-working/7607/6 "2023-07-10T14:28:11Z")

</div>

Closed on July 10, 2023, 2:28pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
