Open Darkmagister opened 1 year ago
does it work with UAExpert? screenshot?
does it work with UAExpert? screenshot?
yes in ua expert i can see the events, i don't know what kind of screenshot is usefull to you ...
also if i do the same with the opcua-client i subscribe to event of the same node i don't get anything
can you turn on the logger and look if there is any hint or issue according to the event?
you can also try to:
handle = sub.subscribe_events() # empty it uses server object so all events of the server
can you turn on the logger and look if there is any hint or issue according to the event?
sorry but what do you me turn on logger ??
you can also try to:
handle = sub.subscribe_events() # empty it uses server object so all events of the server
i only got this events:
New event recived: Event(["EventId:b',\\xfb5\\x8cq\\xf4RE\\x9d\\x99\\x07&\\\\7\\xa7\\xb0'", 'EventType:FourByteNodeId(i=2071)', 'SourceNode:NumericNodeId(ns=7;i=1004304931)', 'SourceName:Pure Python Client Session1', 'Time:2022-12-14 10:42:01.518655', 'ReceiveTime:2022-12-14 10:42:01.518655', 'LocalTime:None', 'Message:LocalizedText(Encoding:3, Locale:en-US, Text:Session Pure Python Client Session1 created.)', 'Severity:300'])
New event recived: Event(["EventId:b'\\xf3\\x9d\\xc2|\\xb4\\xeaEI\\x94\\xcfg\\xd2\\xc4\\x962;'", 'EventType:FourByteNodeId(i=2071)', 'SourceNode:NumericNodeId(ns=7;i=1004304987)', 'SourceName:Pure Python Client Session1', 'Time:2022-12-14 10:43:01.587090', 'ReceiveTime:2022-12-14 10:43:01.587090', 'LocalTime:None', 'Message:LocalizedText(Encoding:3, Locale:en-US, Text:Session Pure Python Client Session1 created.)', 'Severity:300'])
New event recived: Event(["EventId:b'\\xc6\\xd5$.\\x9an\\x1fG\\xbf\\xf0n0\\x11\\xfc\\xd0\\x1c'", 'EventType:FourByteNodeId(i=2071)', 'SourceNode:NumericNodeId(ns=7;i=1004305043)', 'SourceName:Pure Python Client Session1', 'Time:2022-12-14 10:44:01.653526', 'ReceiveTime:2022-12-14 10:44:01.653526', 'LocalTime:None', 'Message:LocalizedText(Encoding:3, Locale:en-US, Text:Session Pure Python Client Session1 created.)', 'Severity:300'])
New event recived: Event(["EventId:b'\\xbd\\x87\\xb6\\xc1\\x81\\xb56C\\x98]\\xb2\\x91\\x16\\x87\\x87\\n'", 'EventType:FourByteNodeId(i=2071)', 'SourceNode:NumericNodeId(ns=7;i=1004305099)', 'SourceName:Pure Python Client Session1', 'Time:2022-12-14 10:45:01.721962', 'ReceiveTime:2022-12-14 10:45:01.721962', 'LocalTime:None', 'Message:LocalizedText(Encoding:3, Locale:en-US, Text:Session Pure Python Client Session1 created.)', 'Severity:300'])
that are pretty strange to me as they seems from the client and not from the server ... but no event from the server
i made a few tests with your script against some demo-servers (Unified Automation Stack and node-opcua stack and it actually works...)
Unified Automation Stack (UaCppDemoServer):
node-opcua (opc.tcp://opcua.umati.app:4843):
Have you some additional information about the server!?
i don't know a lot is a software from a cnc machine but i have very little to none information, a getting it it's quite difficult as they don't give a lot of info ...
i made a few tests with your script against some demo-servers (Unified Automation Stack and node-opcua stack and it actually works...)
Unified Automation Stack (UaCppDemoServer):
node-opcua (opc.tcp://opcua.umati.app:4843):
Have you some additional information about the server!?
i've tried downloading the 1.7.7 cpp demo server from ua, but it doesn't work for me ... the only event i get if the python client session created ... i've never used the server demo is there something i have to do to generate an event ??
In the UaCpp server you need to trigger them!
or you can use a online server which has some demoevents implemented "opc.tcp://opcua.umati.app:4843"
In the UaCpp server you need to trigger them!
or you can use a online server which has some demoevents implemented "opc.tcp://opcua.umati.app:4843"
thanks, same result here now i tried to contact them telling that i can see the event from the uademoserver but not from their and let's see if something happen, thanks a lot i will update
i've also updated the opcua lib to 0.98.13 but same result
one little update is that i've tried using another library (while i'm waiting some useful info) node-opcua and that works ok, i receive the events normally
is there anything i can do to understand why is not working with this lib? any like debug option to get more info ? or any info from the node-opcua lib event that can be helpful? (i don't know if can be any useful but the node-opcua need to have endpointMustExist: false as the serve give localhost as endpoint)
that would take some time to find the issue! the main problem is to reproduce the behavior...
you could try opcua-asyncio (pip install asyncua) it the current active supported version and python-opcua is deprecated...
it has also a sync wrapper with very little api changes!
that would take some time to find the issue! the main problem is to reproduce the behavior...
you could try opcua-asyncio (pip install asyncua) it the current active supported version and python-opcua is deprecated...
it has also a sync wrapper with very little api changes!
I tried with the other lib the Asyncio and same behavior as this one ... So if there is anything I could try to get debug info it would be awesome ... Otherwise I have to rede the communication part with another lib ... And that would take more time :)
@Darkmagister can you try this:
https://github.com/FreeOpcUa/opcua-asyncio/discussions/1164#discussioncomment-4599915
@Darkmagister can you try this:
i tried using this: subscribe_alarms_and_conditions instead of subscribe_events
but still same result no event show up, i haven't set the type because i'm not sure what is the nodeid of the message type
Describe the bug
i've used the client-event example to subscribe to node to get the events, the only difference is that i didn't pass the event type when i use the subscribe_event
To Reproduce
Expected behavior
wiev print New event recived: ... but getting nothing
Version
Python-Version:3.8.6
python-opcua Version (e.g. master branch, 0.9): 0.98.9