Go Down

Topic: Arduino Yun and Matlab (Read 3425 times) previous topic - next topic

codetech

Hi all,

has anyone here experience in working with the Yun together with Matlab?
Basicly what i am trying to do is sending data from my Yun to Matlab (and reverse) via wifi. I have found something on the internet to send it over the serial port... But i don't want the Yun to be connected to the computer via USB.
Has someone an idea how to make that? Or where i can get information about that topic? I'm happy about every tip.

Thanks in advance

sonnyyu

#1
Apr 30, 2014, 04:35 pm Last Edit: Apr 30, 2014, 04:48 pm by sonnyyu Reason: 1
The wireless USB port idea only



Server:Arduino Yun
Client:PC which runs Mathlab
USB device:Arduino uno connect via USB port

http://usbip.sourceforge.net/

http://forum.arduino.cc/index.php?topic=218446.msg1597346#msg1597346

Luis_Filipe

I have the same problem, anyone can communicate between yun shield and MATLAB via WiFi?

ShapeShifter

I have the same problem, anyone can communicate between yun shield and MATLAB via WiFi?
The most common method is to use a TCP socket connection. The Yun's sketch uses YunServer and YunClient to act as a server, listening for incoming connections. Matlab makes a TCP connection to the Yun. Once connected, the YunClient object behaves exactly the same as a USB serial connection using the Serial class - any code that uses Serial to talk to Matlab should be easy to port to using YunClient.

Here is some discussion on the technique: (be sure to read all the way to the end of the second topic, as it has an important update)

Go Up