Events Registration

How do I register to receive System Monitor and Hardware Events that can be used to generate alarms?

Many Thanks,

Frediano

I guess NewEventsIndication includes these events..

Try to see the Status Viewer sample.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/statusviewer/readme.html&tree=tree_2.html

In this case there are Server.Responding, Server.NotResponding, Server.ServerResponding and Server.ServerNotResponding filters but nothing for “hardware communication stopped” (Hw Events) and “Live FPS Normal / Critical” and “Recording FPS Normal / Critical” for System Monitor Events

Frediano

The events you mention are picked out especially to make a visible change to the state of the server object in the tree. I still believe the other events should be there, just listed in the list, when they happen.

I must admit I haven’t tested prior to answering, and it has been a while since I last tested or played with the sample. Did you trigger those events on the VMS and saw that they were not received by the sample?

No, I’m still implementing.

I am looking for message ID string of those Events to do something like:

                    VideoOS.Platform.Data.EventData eventData = message.Data as VideoOS.Platform.Data.EventData;
                    if (eventData != null && (eventData.EventHeader.Message.Equals(Server.RespondingMessage) ||
                                              eventData.EventHeader.Message.Equals(Server.NotRespondingMessage) ||
                                              eventData.EventHeader.Message.Equals(Server.ServerRespondingMessage) ||
                                              eventData.EventHeader.Message.Equals(Server.ServerNotRespondingMessage)))
                    {
                        ...
                    }

Thanks,

Frediano

Bo,

here is some of the messages I was looking for:

2023-11-16 18:30:01.203 | INFO    | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Recording FPS Critical
2023-11-16 18:30:01.370 | INFO    | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Recording FPS Normal
2023-11-16 18:30:01.356 | INFO    | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Live FPS Critical
2023-11-16 18:30:01.370 | INFO    | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Live FPS Normal

but I can’t simulate the event “Hardware Communication Stopped”, also there is a message in Italian, is it correct?

2023-11-16 18:47:57.251 | INFO    | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Caduta Connessione con Camera

Many Thanks,

Frediano

The Italian message could be “Hardware Communication Stopped”, I disconnected the camera from the network

Frediano

I am wondering if this list is useful? -

https://doc.developer.milestonesys.com/html/index.html?base=sdkhelp/class_video_o_s_1_1_platform_1_1_s_d_k_1_1_status_client_1_1_known_status_events.html&tree=tree_search.html?search=hardware+communication+stopped

Interesting, now a question arises spontaneously “how are Driver Events intercepted?”, are there any examples to consult?

Many Thanks,

Frediano