UDP error: Unsuccessful read
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Esha Bhargava
2015 年 11 月 16 日
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.
5. Extract the files from the .zip file.
a) Open the .zip file.
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.
7. Start MATLAB, navigate to the folder that contains the sample script and execute it.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Standard File Formats についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!