MATLAB Answers

UDP communication Raspberry pi with direct Ethernet connection

조회 수: 61(최근 30일)
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 '255.255.255.255' (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

sandeep rathore
sandeep rathore 24 Jan 2015
hii Waleed El-Badry, I am using matlab 2013a and raspberry pi model B. but whenever i try to install Raspbian Wheezy image from support package it gives error like this "firmware error.wait a couples of minutes and try again" give me some suggestion to solve it.
vcmorini
vcmorini 22 Feb 2017
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

로그인 to comment.

채택된 답변

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

  댓글 수: 0

로그인 to comment.

추가 답변(1개)

Murat Belge
Murat Belge 6 Jan 2015
Did you try using your computer's IP address instead of using the broadcast IP address of '255.255.255.255'?

  댓글 수: 1

Waleed El-Badry
Waleed El-Badry 7 Jan 2015
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

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by