UDP communication Raspberry pi with direct Ethernet connection

2 ビュー (過去 30 日間)
Waleed El-Badry
Waleed El-Badry 2015 年 1 月 4 日
コメント済み: vcmorini 2017 年 2 月 22 日
Hi, I recently downloaded and installed Raspberry Pi package (Simulink+MATLAB) and chose direct PC connection.
I tested the sine wave model (External mode) and it worked just fine. I even tested it by removing ethernet cable and reconnecting it and it was disconnecting and resuming on the plot. Also pinging the IP of raspberry pi is success.
The problem is when applying UDP communication example, I receive nothing. I made sure that Normal mode is selected and then deploying the on hardware . I tested when assigning my host IP and another time with '' (Broadcast). Both got me nothing when running host communication model.
My question is, is it possible to receive UDP packets from Raspberry Pi if Direct connection is selected? Hope someone could assist me.
Thanks in advance. I use Model B.
  2 件のコメント
vcmorini 2017 年 2 月 22 日
sandeep rathore, In my experience, most of my problems were solved by changing my SD card to a class 10 and increasing the source current to >1A



Waleed El-Badry
Waleed El-Badry 2015 年 1 月 8 日
I discovered the problem guys, I had to configure my Ethernet adapter to have static IP . After that all things went good.

その他の回答 (1 件)

Murat Belge
Murat Belge 2015 年 1 月 6 日
Did you try using your computer's IP address instead of using the broadcast IP address of ''?
  1 件のコメント
Waleed El-Badry
Waleed El-Badry 2015 年 1 月 7 日
Sure I used the host IP but no success. I need someone to tell that he personally tested it using direct Ethernet connection not via router or switch


Community Treasure Hunt

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

Start Hunting!

Translated by