LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send and receive video over UDP

Solved!
Go to solution

I am writing a test for radios that send and receive video.  The video is passed into the transmitting radio over Ethernet with UDP protocol and then read from the receiver with UDP.  I need to send video from a file (video test pattern) over UDP, then receive the video over UDP from the receiver on a different (multicast) address and then compare the sent and received video to verify the transmission.

 

My first question is how do I send and receive video over UPD?

The second question is how do I compare the sent and received video?

0 Kudos
Message 1 of 4
(3,821 Views)

I would look at UDP examples that ship with LabVIEW. In terms of the actual method of sending the data the answer is, it depends. UDP is simply the transport protocol. There more than likely is an application layer protocol for sending/receiving the video. You need to know what that is before we can give any suggestions for how to do that. The protocol should be defined somewhere. That has nothing to do with LabVIEW itself and it could be a standard protocol or a proprietary one.

 

In terms of comparing them I would probably use a CRC to do that. Calculate the CRC32 for the data as you send the video and then calculate it again when you receive it. If the CRCs match, the data is the same. There is a chance that two differents sets of data can generate the same CRC32. You could use a MD5 hash, which LabVIEW has a native VI for that, which pretty much guarantees unique hash values for each set of data.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(3,810 Views)

Thanks Mark.  I hadn't thought of using CRC - I think that would work.  As far as the video protocol - it seems like it doesn't really matter as long as the input matches the output it's just data.  Garbage in garbage out.

0 Kudos
Message 3 of 4
(3,794 Views)
Solution
Accepted by topic author OregonGumby

Then all you need to do is send large amounts of data. It doesn't even need to be video if you are simply comparing what goes in comes out. You could randomly generate your data stream on the fly.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 4 of 4
(3,788 Views)