UDP error: Unsuccessful read

7 Ansichten (letzte 30 Tage)
Nikhil
Nikhil am 12 Nov. 2015
Kommentiert: Esha Bhargava am 16 Nov. 2015
Hi all. I am trying to set up a UDP connection between Node-Red running on my beaglebone and a matlab script running on my laptop. I believe I have configured the connection properly, however, whenever I try and run the script I get the error: "Unsuccessful read: The specified amount of data was not returned within the Timeout period." This is the code I am using to set up the connection:
%Turn on echoudp server and set up UDP object
echoudp('on',5555);
%UDP object connects to IP address of laptop
u = udp('127.0.0.1', 5555);
...
fopen(u); A = fread(u,10);
On my beaglebone, I have my UDP node configured to send data to the IP address of my laptop to the port number 5555 which is the same one I set up the echoserver with, so I'm quite certain it is an issue with my matlab code. If someone could explain to me what I'm doing wrong, I would be very appreciative.
  1 Kommentar
Esha Bhargava
Esha Bhargava am 16 Nov. 2015
Please follow the following instructions to install the attached patch:
1. Log in to an account with appropriate permissions to overwrite files in your MATLAB installation.
2. Locate your MATLAB installation by typing "matlabroot" at the MATLAB command prompt. This folder is referred to as MATLABROOT in the subsequent steps.
3. Exit MATLAB.
4. Download the attached .zip file and store it in the MATLABROOT folder.
5. Extract the files from the .zip file.
a) Open the .zip file.
b) Extract the contents of the file to your MATLABROOT folder.
On Windows machine, you need administrative privileges to save the .zip file in the MATLABROOT folder.
If you see Error: Access is denied when attempting to extract the .zip file, you may need to start "WinZip" in administrator mode.
You can do it by navigating to "WinZip.exe" or the "WinZip" Start menu entry -> right-clicking on it -> Selecting "Run as administrator".
From within "WinZip", find and open the downloaded .zip file.
Extract the contents of the file to your MATLABROOT folder.
6. Delete the .zip file in the MATLABROOT folder.
7. Start MATLAB, navigate to the folder that contains the sample script and execute it.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by