12-29-2018 08:18 AM
i am trying to send voice through mic in server vi and receive the voice through speaker on client side using udp protocol. I have done it with tcp and its working fine but when i am replacing tcp with udp its not working. Can anyone help me in this regard .
12-29-2018 10:55 AM - edited 12-29-2018 12:38 PM
Go back and compare with the TCP solution, which you say works. (can you attach it too?)
There are many questionable things, but the only data the server ever sends out is the size of the string. You are never sending the actual audio data. (for example why do you concatenate the left and right channel but don't separate them on the receiving end?)
12-29-2018 12:46 PM
12-29-2018 12:55 PM
here are my vi,s for tcp
12-30-2018 01:44 AM
You did not just replace TCP with UDP, you are also leaving out of lot of functionality. For example:
With TCP, you are sending the size and the data, with UDP, you are only sending the size, nothing else.
With TCP, you are reading the size and then the data, with UDP you are only reading once.
12-30-2018 04:19 AM
When i am writing at udp for the second time i get an error 113.
@altenbach wrote:
You did not just replace TCP with UDP, you are also leaving out of lot of functionality. For example:
With TCP, you are sending the size and the data, with UDP, you are only sending the size, nothing else.
With TCP, you are reading the size and then the data, with UDP you are only reading once.
12-30-2018 12:37 PM
@rameez_3109 wrote:
When i am writing at udp for the second time i get an error 113.
That should be a strong clue.
LabVIEW: (Hex 0x71) A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram was smaller than the datagram itself.
Remove the wait in the loop and send fewer samples at the same time. in the receiver, you should also remove the wait, because the loop rate should be determined by the data arrival rate.
Since you are dealing with stereo incorrectly at the receiver anyway, maybe monaural would be sufficient.
08-20-2022 12:16 AM
Hi Rameez still ur struggling with issue?