Receiving data by TCP or UDP is not working
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I'm trying to establish a TCP/IP or UDP/IP connection to a Muse headband and it's not working. I've already tried turning off my Firewall. Muse Direct states that through UDP via the I.P. 127.0.0.1 and port 7000 the headband is sending data. In theory by running the following code I'm able to receive the data, but it states "Warning: Unsuccessful read: The specified amount of data was not returned within the Timeout period." Can anybody guide me or tell me what I'm doing wrong?
echoudp('on',7000)
u = udp('127.0.0.1',7000);
fopen(u)
a = fread(u,1); %It has a 1 to just check if I'm receiving data
2 Kommentare
Guillaume
am 12 Nov. 2018
@Gal, it's unlikely that it's exactly the same issue, so please start your own questions giving as many details as possible about your problem. The more details you give (code, error messages, what you've tried, etc.) the more likely we can solve your issue.
In the above question, the problem is obvious, 127.0.0.1 is always the address of the local host, so Fernando was listening to himself instead of his hardware.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!