Coder Social home page Coder Social logo

Comments (5)

Hans85 avatar Hans85 commented on May 23, 2024

I have also tried this:

[input]
url             = "opc.tcp://10.164.6.149:48010"
failoverTimeout = 5000 # time to wait before reconnection in case of failure

[output]
name             = "influx_1"
type             = "influxdb"
host             = "172.18.0.2"
port             = 8086
protocol         = "http"
username         = ""
password         = ""
database         = "rh_linie_test"
failoverTimeout  = 10000
bufferMaxSize    = 64
writeInterval    = 3000
writeMaxPoints   = 1000

# A polled node:
#[[measurements]]
#name               = "Int16polled"
#tags               = { tag1 = "test", tag2 = "AB43" }
#tags               = { tag1 = "testtag" }
#nodeId             = "ns=4;s=RH Montage 2. Config.RH Master.GlobalVars.00DB ZEITEN_ZAEHLER.SPS_ZYKLUS_AKT"
#collectionType     = "polled"
#pollRate           = 60     # samples / minute.
#deadbandAbsolute   = 0      # Absolute max difference for a value not to be collected
#deadbandRelative   = 0.0    # Relative max difference for a value not to be collected

# A monitored node
[[measurements]]
name               = "Int32monitored"
dataType           = "number"
tags               = { tag1 = "test", tag2 = "AB43" }
nodeId             = "ns=4;s=RH Montage 2. Config.RH Master.GlobalVars.00DB ZEITEN_ZAEHLER.SPS_ZYKLUS_AKT"
collectionType     = "monitored"
monitorResolution  = 1000    # ms
deadbandAbsolute   = 0 		# Absolute max difference for a value not to be collected
deadbandRelative   = 0    	# Relative max difference for a value not to be collected

and i get:

azuredev@x01133175:~/node-logger/node-opcua-logger$ node logger.js
influx_1 : starting writepump [ writeLimit:  1000 , writeInterval: 3000 ].
[ 'opc.tcp://m01009186:48010 NONE http://opcfoundation.org/UA/SecurityPolicy#None',
  'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15',
  'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15',
  'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic256',
  'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic256',
  'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256',
  'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256' ]
An error occured in the Readpump: Error:  End point must exist opc.tcp://10.164.6.149:48010
    at OPCUAClient._createSession (/home/azuredev/node-logger/node-opcua-logger/node_modules/node-opcua-client/src/opcua_client.js:163:25)
    at OPCUAClient.createSession (/home/azuredev/node-logger/node-opcua-logger/node_modules/node-opcua-client/src/opcua_client.js:623:10)
    at OPCUAClient.eval [as createSession] (eval at thenify.withCallback (/home/azuredev/node-logger/node-opcua-logger/node_modules/thenify/index.js:33:10), <anonymous>:6:48)
    at /home/azuredev/node-logger/node-opcua-logger/readpump.js:25:23
    at Timeout.delayer [as _onTimeout] (/home/azuredev/node-logger/node-opcua-logger/node_modules/delayed/delayed.js:27:10)
    at ontimeout (timers.js:482:11)
    at tryOnTimeout (timers.js:317:5)
    at Timer.listOnTimeout (timers.js:277:5)
Restarting readpump in 5000 seconds.

from node-opcua-logger.

erossignon avatar erossignon commented on May 23, 2024
url             = "opc.tcp://10.164.6.149:48010" 

try this instead:

url             = "opc.tcp://m01009186:48010" 

from node-opcua-logger.

coussej avatar coussej commented on May 23, 2024

Hi @Hans85,

sorry for the late reply, I've been away on holiday..

In the second case, you have successfully connected to the OPCUA server socket, but the OPCUA client library only allows connection if the URI you specified is exactly the same as the endpoints exposed by the OPCUA server. That is why you get the error end point must exist.

The solution should be like @erossignon already mentioned. Have you tried that?

If you cant connect using the server name (if you have no DNS resolution for example), you either add an endpoint on the server that binds on the IP, or you can add an entry to the clients /etc/hosts file that maps the server name to the IP.

Hope that helps!

from node-opcua-logger.

mahadi avatar mahadi commented on May 23, 2024

I also have the problem that i am not receiving any value. Using the UAExpert, the values are working fine, so something is left to my config that breaks it... is there any way to output some debug information?

from node-opcua-logger.

coussej avatar coussej commented on May 23, 2024

closing due inactivity.

@mahadi if you have an issue that is different from this one, feel free to open a seperate ticket.

from node-opcua-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.