Jump to content

Controlling PTZ functionality of an ONIF camera from LABVIEW


Recommended Posts

Posted (edited)

I can get the RTSP stream (Audio+Video) from this camera into LabVIEW with no issues. I need to control the PTZ functionality. 

I used Wireshark to capture the coms between the PC and the camera unit while sending the Pan  Tilt and Zoom calls from a customer provided software. I also have SDK file from camera folks.

I have limited experience in creating CIN nodes from DLL. I was hoping that instead of creating CIN nodes to control PTZ functions, i can do the same over TCP/UDP interface. I was also wondering if *.pcapng captured using Wireshark has that information.

Can some one review the info and let me know if it's possible? I can provide SDK if some interested.

Jennov ONIF Camera.png

Description of DLL AJNetSDK.pdf PTZ Cam data.pcapng

LV VLC screen shot.png

Edited by BTS_detroGuy
adding a file
Posted (edited)

What doesn't work with the function: AJ_NETSDK_IPC_PTZControl() on page 21/22?

Or are you not using the SDK functions to retrieve the RTSP stream but some other ready made interface for LabVIEW? Meaning you have no idea how to interface to a DLL?

A few points to consider:

1) The camera may not like a secondary connection, either through the SDK or through generic TCP/IP while it is busy streaming image data to the VLC or whatever interface.

2) Trying to reverse engineer the TCP/IP binary stream protocol is likely going to be cumbersome and difficult to realize as it is usually proprietary. The SDK interface is simple enough to use, except if you lack any and all understanding about C programming. It's not a CIN node either that you will need to configure but a CLN (Call Library Node). CINs are not only legacy technology but on most modern LabVIEW versions simply not supported anymore.

An interesting problem, but none I can help you as I do not have that hardware, and I would expect it to be a bit cumbersome considering above 2 points.

Edited by Rolf Kalbermatter
  • Like 1
Posted

Rolf, Thanks a bunch for your response. The honest answer is that professionally i have done very little with CIN nodes. But this project may change that.

Most of my vendors provide me with LabVIEW drivers . In some cases i am using instrument that has well defined  TCP protocol that can be verified using bus sniffing tools.

Your point #1 is a valid one. But I can use VLC  media player and watch the RTSP stream on it while  opening the customer provided demo software that let's me watch the stream on another window  simultaneously while manipulating the PTZ commands to the unit. So i am hoping it will not be a problem.

I respect your #2. But in T&M career i have done enough reverse engineering that this part doesn't scare me, provided the reward for successfully completing is significant enough to justify the effort.🤑.

At this point i am leaning towards creating enough API calls (via CIN nodes) that will allow me to control PTZ while VLC media player is displaying and possibly recording the stream to HDD.

If interested i would like to share the progress. Thanks again for reviewing the DLL and posting your comment. 

Posted

Most IP cameras that I have played with will also implement simplistic PTZ via HTTP GET or HTTP POST commands.  And these are usually the commands sent from the web interface of the camera.

So, Just wireshark capture that traffic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.