Is there an SDK to send custom queries (HTTP) to devices registered on the Recording Server from the Smart Client?

Hello, thank you for your support.

While developing a plugin for the Smart Client, I realized that I need to obtain certain information directly from a device (such as a camera).

Since the device and the client may be on different networks, I understand that communication should go through the server.

Is there any SDK that allows the Smart Client to send custom queries to devices registered on the Recording Server and receive responses, without developing a server-side plugin? Or is developing a server plugin the best approach?

If such an SDK exists, could you please provide guidance or examples on how to use it? Thank you.

Yes, you can send a message with messageId DriverCommand, and get the response back in another message with messageId DriverResponse. See the documentation here:

https://doc.developer.milestonesys.com/mipsdk/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_driver_command_data.html&tree=tree_search.html?search=drivercommand

Hello,

I applied the DriverCommand as you suggested, but I received the following response: “ERROR: 405 Unknown command”

I would like to know what this response means.

The Recording Server is installed on the same PC as the client. I tried to check if the request was being sent to the camera using Wireshark, but I could not detect any packets. (I set the PC’s IP to the same subnet as the camera for this test.)

Could you please advise why I am receiving this response? The code I used is as follows:

Message message = new Message(MessageId.Control.DriverCommand);
message.Data = new DriverCommandData()
{
    Command = "GET:url ...",
    Parameter = "",
    SyncObject = Configuration.Instance.GetItem(itemFQID)
};
 
EnvironmentManager.Instance.SendMessage(message, itemFQID);

I would appreciate any guidance on how to resolve this issue. Thank you.

Hi, The construction above is correct. Either the camera driver is not supporting the driver command, or the camera did not understand your command and returned 405.

What camera model are you testing with?

I am using the Hanwha Vision PND-A9081RV. The installed Device Pack is 13.5a.

Hello,

I tested with an Axis camera that I have in the same environment, and I was able to receive a successful response.

Why do I receive the response “ERROR: 405 Unknown command” when using this function with a Hanwha camera?

Happy new year, is there any update regarding this?

I will be asking the Milestone developers if the camera driver has support for the DriverCommand. I will get back when I have that information.

The DriverCommand is supported in the Axis driver but unfortunately not in the Hanwha driver.

Thank you for confirming. Who should I contact to request DriverCommand support for the Hanwha driver? Should I reach out to Hanwha’s integration contact?

Hi Kim, you may send an email to deviceintegration@milestone.dk and the relevant team will assist you. Thanks