Questions on AccessControl sample

Hi,

I’ve been trying to make a MIP plugin that connects to my own system using the Access Control sample and I just can’t understand the logic behind it and was wondering if you could tell me if my approach is actually correct.

I have my own server running on another machin than the XProtect system. On it i have a configuration with controllers and doors.

I thought of having a background plugin which would connect to my own server and retrieve all access control events.

In the management plugin, I created 3 ItemManager, one for my server, one for my controllers and one for my doors. On each item node, I recreate my servers configuration. My ItemManagers ressembles the ones in your sample, each of them having a related camera and event. They listen for messages from the background plugin to trigger those events.

Each of these events is supposed to send an alarm when triggered.

I want to know if that approach seems right to you? Or should I be making an ACMIP plugin?

If it is, can you explain to me how am I suppose to retrieve my server Url and use it in the Background Plugin?

And how can I link my custom events to alarms in enterprise?

Do you have an example of the Access Control plugin actually connecting to a system on a remote server that I could use?

I add to this message a sample of what I’m trying to do, using a xml file to imitate the connection to my server, maybe this will make my questions a bit clearer.

http://www.filedropper.com/pluginsample

The approach seems right, not sure why it does not work for you.

The better choice would be to Aceess Control Module framework. There is a sample using this that also shows communication with an external “server”. See - Demo Access Control Plugin and

Demo Access Control Server Application in combination.

Thank you for your answer,

I sent you a sample so you could point me what is missing so that it can work. When I receive messages in my ItemManager, I trigger events but it does not look like they are received.

I have no idea on how I’m suppose to retrieve my server Url ( the server I added as an ItemNode in Administration) and use it in the Background Plugin?

And how can I link my custom events to alarms in enterprise?

Thank you.