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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

OPC Client Extension config.json file correct?

augmentor
12-Amethyst

OPC Client Extension config.json file correct?

Hi Community,

 

I tried connecting a OPC server to Thingworx using this guide and it already shows "connected: true" in Thingworx. I`m also able to bind the variables with "manage bindings", but the values are not transmitted (all are 0). On the server side the session is activated for a second but then goes over into a endless loop of "Closed by server": 

 

[2019-05-23 10:34:44.699 (UTC+0100)] info/network TCP network layer listening on opc.tcp://raspberrypi2:4811/
[2019-05-23 10:34:44.800 (UTC+0100)] info/network Connection 5 | New connection over TCP from ::1
[2019-05-23 10:34:45.120 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:45.120 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:45.120 (UTC+0100)] info/channel Connection 5 | SecureChannel 1 | Opened SecureChannel
[2019-05-23 10:34:45.224 (UTC+0100)] info/channel Connection 5 | SecureChannel 1 | CloseSecureChannel
[2019-05-23 10:34:45.225 (UTC+0100)] info/network Connection 5 | Closed by the server
[2019-05-23 10:34:45.665 (UTC+0100)] info/network Connection 5 | New connection over TCP from ::1
[2019-05-23 10:34:45.671 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:45.671 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:45.671 (UTC+0100)] info/channel Connection 5 | SecureChannel 2 | Opened SecureChannel
[2019-05-23 10:34:45.716 (UTC+0100)] info/session Connection 5 | SecureChannel 2 | Session 5c4fde7e-72a3-c490-8298-092016917967 | ActivateSession: Session activated
[2019-05-23 10:34:45.783 (UTC+0100)] info/network Connection 6 | New connection over TCP from ::1
[2019-05-23 10:34:45.789 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:45.789 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:45.789 (UTC+0100)] info/channel Connection 6 | SecureChannel 3 | Opened SecureChannel
[2019-05-23 10:34:45.800 (UTC+0100)] info/channel Connection 6 | SecureChannel 3 | CloseSecureChannel
[2019-05-23 10:34:45.800 (UTC+0100)] info/network Connection 6 | Closed by the server
[2019-05-23 10:34:45.870 (UTC+0100)] info/network Connection 6 | New connection over TCP from ::1
[2019-05-23 10:34:45.874 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:45.874 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:45.874 (UTC+0100)] info/channel Connection 6 | SecureChannel 4 | Opened SecureChannel
[2019-05-23 10:34:45.884 (UTC+0100)] info/channel Connection 6 | SecureChannel 4 | CloseSecureChannel
[2019-05-23 10:34:45.884 (UTC+0100)] info/network Connection 6 | Closed by the server
[2019-05-23 10:34:45.971 (UTC+0100)] info/network Connection 6 | New connection over TCP from ::1
[2019-05-23 10:34:45.976 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:45.976 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:45.976 (UTC+0100)] info/channel Connection 6 | SecureChannel 5 | Opened SecureChannel
[2019-05-23 10:34:45.987 (UTC+0100)] info/channel Connection 6 | SecureChannel 5 | CloseSecureChannel
[2019-05-23 10:34:45.987 (UTC+0100)] info/network Connection 6 | Closed by the server
[2019-05-23 10:34:46.071 (UTC+0100)] info/network Connection 6 | New connection over TCP from ::1
[2019-05-23 10:34:46.077 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:46.077 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:46.077 (UTC+0100)] info/channel Connection 6 | SecureChannel 6 | Opened SecureChannel
[2019-05-23 10:34:46.087 (UTC+0100)] info/channel Connection 6 | SecureChannel 6 | CloseSecureChannel
[2019-05-23 10:34:46.087 (UTC+0100)] info/network Connection 6 | Closed by the server
[2019-05-23 10:34:46.175 (UTC+0100)] info/network Connection 6 | New connection over TCP from ::1
[2019-05-23 10:34:46.183 (UTC+0100)] info/channel Creating a new SecureChannel
[2019-05-23 10:34:46.184 (UTC+0100)] warn/securitypolicy No PKI plugin set. Accepting all certificates
[2019-05-23 10:34:46.184 (UTC+0100)] info/channel Connection 6 | SecureChannel 7 | Opened SecureChannel
[2019-05-23 10:34:46.199 (UTC+0100)] info/channel Connection 6 | SecureChannel 7 | CloseSecureChannel
[2019-05-23 10:34:46.199 (UTC+0100)] info/network Connection 6 | Closed by the server

I think that there is probably something wrong with my config.json file so I attached it to this post.

 

{
	
	"ws_connection": {
		"host" : "10.128.54.64",
		"port" : 8080,
		"app_key" : "3ad3298d-4dd5-4ca9-88ed-c83effc70ce3",
		"thing_name" : "*OPCUA_KUKA",
		"encryption" : "none",
		"ignore_ssl_errors" :  true,
		"connect_retry_interval" : 10000,
		"connect_timeout" : 10000,
		"auto_scan_mode" : true,
		"scan_rate" : 50
	}, 
	
    "opcua_endpoint_connection": {
        "host" : "192.168.0.99",
		"port" : 4811,
		"server_name" : "http://open62541.com",
		"security_mode" : "none",
		"request_timeout" : 60000,
		"identity_provider" : "anonymous"
    },

	"opcua_device" : {
		"devices": [
			{
				"identifier": "OPCUA_KUKA",
				"auto_scan_mode": true,
				"scan_rate": 100,
				"dataItems" : [
					{
    			"name" : "Axis1_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1005",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		},
{
    			"name" : "Axis2_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1006",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		},
{
    			"name" : "Axis3_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1007",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		},
{
    			"name" : "Axis4_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1008",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		},
{
    			"name" : "Axis5_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1009",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		},
{
    			"name" : "Axis6_Angle",
    			"baseType" : "NUMBER",
    			"identifier" : "1010",
    			"namespaceIndex" : 2,
    			"isReadOnly" : true
    		}

	]
			}
			
			
		]
	}
}

 

I also attached a screenshot of UA Expert that shows the values that I want to read.

 

 

Thank you!

0 REPLIES 0
Top Tags