Effacer les filtres
Effacer les filtres

How can I use UDP Receive and UDP send block in raspberry Pi simultaneously?

2 vues (au cours des 30 derniers jours)
haiping guo
haiping guo le 31 Juil 2018
Hi, all. I'm using the simulink raspberry pi 3B to receive UDP data from PC:prot1, and I also want send the data to PC:port2.
My model only has a "UDP Receive" block connect to a "UDP Send" block, but It doesn't work. If I use "UDP Receive" block alone or use "UDP Send" block alone ,both block can work well, but when my model contain both "UDP Receive" and "UDP Send" block, the "UDP Receive" block recive no data always!
This confused me for several days.

Réponses (2)

haiping guo
haiping guo le 13 Août 2018
my raspberry is comucation to PC Loopback test, if the PC use the same UDP port to receive and send,then the problem happened. like this:
If the PC use different send and receive port, there is no problem! I do not know why!
And I can only use one port in my PC, can anyone help me? thanks a lot!

Adif Maulana
Adif Maulana le 7 Fév 2019
Have you find solution for your problem ?

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by