How we will create a UDP packet in Matlab?

How we will create a UDP packet in matlab. Does matlab have built in function or not. Kindly explain with details.

 Réponse acceptée

Walter Roberson
Walter Roberson le 8 Fév 2013
Modifié(e) : Randy Souza le 12 Fév 2013

0 votes

You can use the Instrument Control Toolbox. Note that this will not allow you to set all the header values in the UDP packet, just the payload (and the source and destination ports.)
If you do not have the Instrument Control Toolbox, then it is suggested that you use the File Exchange contribution TCP/UDP/IP.

4 commentaires

jawad
jawad le 11 Fév 2013
Dear walter Roberson Thank you very much for your kind reply. I want to store voice of 20ms in UDP. I also want to use RTP alongwith for proper sequence number. After that I will send those packets from sender to receiver. Both the sender and receiver will be on the same machine.
Walter Roberson
Walter Roberson le 11 Fév 2013
Those sound like payload content, as UDP does not have sequence numbers as part of the protocol.
jawad
jawad le 12 Fév 2013
yes sir you are right. UDP have no sequence number. thats why we are using RTP for sequence number.
Walter Roberson
Walter Roberson le 12 Fév 2013
Then the routines I noted above should be fine.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Instrument Control Toolbox Supported Hardware dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by