Hello,
I need your help...
I need to subscrive to an Event on a OPC-UA server from Kistler.
With UA Expert, and can see the event being subscrive an can check the values, etc.
Using either 1. node-red-contrib-iiot-opcua or 2. node-red-contrib-opcua I can't seem to get any values.
The most I got was a system event trigger when the kistler sensor is actuated.
The source node is i=2253 (on ns=0), the Event type is ns=2;i=1, and the ValueType of what I need is ns=2;i=16
You can see UA Expert screens with the values I need to listen on the follwinf onedrive folder:
https://sinmetro-my.sharepoint.com/:f:/g/personal/rui_silva_sinmetro_pt/EnuLN_T7f21Ipg7FOr1l8CABD1D5IW9TxR6pVL0m2Oaebw?e=Midut7
On UA Expert I select the CycleDoneEventType, and then the Process Values.
I Get the events has seen in the image, and the values of the event.
At the end of the event I see that the event Type is ns2;i=1
On Node-red, I've tried configuring the flow using the examples provided by both packages.
On node-red-contrib-opcua I don't get anything... on the node-red terminal console (systemout) i get an error about "cannot find conditionRefreshId"
On node-red-contrib-iiot-opcua using the demo flow for event listener, and changing only the server address, i get a system event when the sensor is triggered (correct timing), but any configuration attempt after that I get object conversion errors or can't get any information.
I get that the problem is probably the way I'm configuring the flow.... but I don't know better
My node-red-contrib-opcua (very simple)
[{"id":"5d665294.f65f14","type":"tab","label":"EVENTS","disabled":false,"info":""},{"id":"d72f52a6.35fa3","type":"OpcUa-Event","z":"5d665294.f65f14","root":"i=2253","activatecustomevent":false,"eventtype":"i=2041","customeventtype":"","name":"All events","x":420,"y":120,"wires":[["ae628046.ca67c"]]},{"id":"96c3ea4c.7897e8","type":"inject","z":"5d665294.f65f14","name":"Subscribe events","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"i=2253","payload":"","payloadType":"date","x":220,"y":120,"wires":[["d72f52a6.35fa3"]]},{"id":"ae628046.ca67c","type":"OpcUa-Client","z":"5d665294.f65f14","endpoint":"7ddfa7a065469362","action":"events","deadbandvalue":"","time":"1","timeUnit":"s","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","folderName4PKI":"","useTransport":false,"maxChunkCount":"","maxMessageSize":"","receiveBufferSize":"","sendBufferSize":"","name":"Kistler","x":590,"y":120,"wires":[["67203130.a7a05"]]},{"id":"67203130.a7a05","type":"debug","z":"5d665294.f65f14","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]},{"id":"7ddfa7a065469362","type":"OpcUa-Endpoint","endpoint":"opc.tcp://10.15.50.3:4840","secpol":"None","secmode":"None","none":true,"login":false,"usercert":false,"usercertificate":"","userprivatekey":""}]
I tried getting all events before any filtering... no luck
My node-red-contrib-iiot-opcua flow. Again tried getting everything and then filter... no luck.
If I try putting anything on the first node, I always get an "BadMonitoredItemFilterUnsupported" error on the debug console.
[{"id":"b3974c60.a56ab8","type":"tab","label":"IIoT OPC UA Events","disabled":false,"info":""},{"id":"d9bca212.ee7d3","type":"debug","z":"b3974c60.a56ab8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]},{"id":"cbc425f4.8b596","type":"OPCUA-IIoT-Event","z":"b3974c60.a56ab8","eventType":"BaseEventType","eventTypeLabel":"BaseEventType (i=2041)","resultType":"basic","queueSize":"1000","usingListener":true,"name":"Base Events","showStatusActivities":false,"showErrors":false,"x":420,"y":120,"wires":[["d4e7bb7a.8ba54"]]},{"id":"99ea348a.48cfd8","type":"OPCUA-IIoT-Inject","z":"b3974c60.a56ab8","injectType":"listen","payload":"200","payloadType":"num","topic":"","repeat":"","crontab":"","once":true,"startDelay":"","name":"listen with 200 ms","addressSpaceItems":[{"name":"Tanks","nodeId":"ns=2;i=16","datatypeName":""},{"name":"Server","nodeId":"ns=0;i=2253","datatypeName":""}],"x":230,"y":120,"wires":[["cbc425f4.8b596"]]},{"id":"d4e7bb7a.8ba54","type":"OPCUA-IIoT-Listener","z":"b3974c60.a56ab8","connector":"fe9e7411.128358","action":"events","queueSize":"100","name":"","topic":"","justValue":true,"useGroupItems":false,"showStatusActivities":false,"showErrors":true,"x":580,"y":120,"wires":[["d9bca212.ee7d3"]]},{"id":"193736fe173d5219","type":"comment","z":"b3974c60.a56ab8","name":"Use Demo Server Example","info":"Please use the Demo Server example for this example to work.\nImport that with strg+i -> Examples -> opcuaIIoT -> Server -> Demo Server","x":250,"y":62,"wires":[]},{"id":"fe9e7411.128358","type":"OPCUA-IIoT-Connector","z":"b3974c60.a56ab8","discoveryUrl":"","endpoint":"opc.tcp://10.15.50.3:4840","endpointMustExist":false,"keepSessionAlive":true,"loginEnabled":false,"name":"LOCAL EVENT SERVER","showErrors":false,"securityPolicy":"None","securityMode":"None","individualCerts":false,"publicCertificateFile":"","privateKeyFile":"","defaultSecureTokenLifetime":"","autoSelectRightEndpoint":false,"strategyMaxRetry":"","strategyInitialDelay":"","strategyMaxDelay":"","strategyRandomisationFactor":"","requestedSessionTimeout":"","connectionStartDelay":"","reconnectDelay":"","maxBadSessionRequests":""}]
If I just leave the Server UA NODE on the "listen 200ms" node, i get a system event as shown below:
I think I've tried changing almost all configuration values on the nodes, to the ones I think were correct... bu no luck.
Thank you for any help you can provide.