Receiving data by TCP or UDP is not working

4 vues (au cours des 30 derniers jours)
Fernando Gonzalez
Fernando Gonzalez le 14 Mar 2018
Commenté : Guillaume le 12 Nov 2018
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 commentaires
Gal Efrati
Gal Efrati le 12 Nov 2018
hello, i'm having the same issue. did you find solution?
Guillaume
Guillaume le 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Instrument Control Toolbox Supported Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by