Hi,
I am using PTZMoveStartCommand to control a Flir M232 PanTilt unit.
Behavior happens wether I use the sample code or my own code.
Platform is running XProtect Essential+ 2018 R2.
I’m using the VideoOS.Platform.Messaging.PTZMoveStartCommandData2 data strcture to set the pan values.
Using PTZMoveStartCommand in “continuous move” with Pan = 1, and Pan-speed = 0.25, or 0.5 gets the camera moving. But it stops after a few degrees. I have to send a PTZMoveStopCommand before, then PTZMoveStartCommand to get it restarted.
It doesn’t move continuously as expected with these setttings.
Any advice ?
Thank you
Best
Hi Franck,
Do you have any other PTZ camera you can test this with?
Also, could you please try in the Smart Client to go into the Settings dialog and then under Keyboard select the PTZ category and map e.g. “Move right while pressing” to some key. Then in the live view open up the FLIR camera and then hold down the key you mapped and see whether you observe similar behavior as you do in the SDK.
Best regards,
Peter
Hi Peter,
Unfortunately no.
I assigned a function key to “Move right while pressing”, then in Live view, pressed it.
Got the same result.
It stops after sometime (and degrees, about 75°).
One note: the smaller the pan speed is, the shorter the movement of the camera is.
That makes me think it is time corelated, and not “degree” corelated.
I then have to stop pressing the key, and then press it again to restart the move.
So behavior seems to be the same throughout the SmartClient and SDK.
Thanks
Best regards,
Hi Franck,
It sounds like an issue with either the device driver or the device itself. I have created a case with our device integration team and asked them to update this thread once they have investigated.
Best regards,
Peter
Hi again,
Sorry for the long response time. I have now had response back from the team and this device is not officially supported by Milestone and thus they cannot really do much about it. 
You can see the list of currently supported FLIR devices here:
https://www.milestonesys.com/community/business-partner-tools/supported-devices/xprotect-corporate-and-xprotect-expert/?AdvancedSearchDisplayed=true&ManufacturerId=13
Best regards,
Peter
Hi Peter,
After quite some investigation with FLIR support, we were finally able to disable the security feature that prevents the device from spinning continuously.
Now the camera seems to be clear, I ran my sample code on it, and after 15s it stopped again.
This time I had a Wireshark capture running. And the stop commands comes in Onvif format from the Milestone PC.
It looks like there is also a timeout by default in Miletsone, either on PTZ sessions or on PTZ controls.
How can I avoid it ?
Thanks
Best regards,
Hi Franck,
In the Management Client in the Tools->Options dialog there is on the General tab a setting controlling the timeout for manual ptz sessions (sdk controlled ptz is also considered a manual session). The default is 15 seconds. 
Best regards,
Peter
Hi Peter,
Ok got it.
But 0 is not a supported value (to disable the timeout).
As I enter 0 and save/apply, the management client changes it to 1 (second).
What do you advise for disabling that timeout ?
Any input in configuration files ? Or 99999 kind of value ?
Thanks
Best
Hi again,
I am not sure that there exists a way to make it go on forever as that would mean that the first user issuing a PTZ operation would hold on to the PTZ rights forever.
Your best option is probably to re-issue the command with regular intervals (before the timeout).
Best regards,
Peter