Handling Camera Plugin cmds in the Driver

We are working on Milestone Plugin for camera configuration and control, the Plugin use PostMessageAPI() to send cmd to the camera via Milestone Recording Server. The cmd id is “Control.DriverCommand”, and the payload is DriverCommandData here.

PostMessageAPI() works fine when the camera is added using ONVIF Driver, but it does not work when camera is added using our camera driver based on MIP Driver Framework.

The PostMessageAPI() gets the cmd response as " Error -405 Unknown Command" from MIP Driver Framework->CommadExecutor Interface->ExecuteCommand() API when camera is addded using our camera driver.

Our Camera Driver registered “Control.DriverCommand” via RegisterCommand() API in CommandManager interface. But still Control.DriverCommand is failed with Unknown command 405 Error.

Are we missing any steps in our camera driver to support “Control.DriverCommand” from Plugin via PostMessageAPI(). Could you please clarify.

I can see that the sample includes a DemoCommand.cs. I am hoping this holds a clue for you, please see it. If it doesn’t lead you to a solution please let me know and I will ask an expert colleague to go deeper into your question.

Ref. sample - https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples%2FPluginSamples%2FDemoDriver%2FREADME.html&tree=tree_1.html