Arduino Forum

Products => Arduino Yún => Topic started by: codetech on Apr 30, 2014, 03:02 pm

Title: Arduino Yun and Matlab
Post by: codetech on Apr 30, 2014, 03:02 pm
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
Title: Re: Arduino Yun and Matlab
Post by: sonnyyu on Apr 30, 2014, 04:35 pm
The wireless USB port idea only

(http://usbip.sourceforge.net/images/usbip-design.png)

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

http://usbip.sourceforge.net/ (http://usbip.sourceforge.net/)

http://forum.arduino.cc/index.php?topic=218446.msg1597346#msg1597346 (http://forum.arduino.cc/index.php?topic=218446.msg1597346#msg1597346)
Title: Re: Arduino Yun and Matlab
Post by: Luis_Filipe on Jul 03, 2016, 03:51 am
I have the same problem, anyone can communicate between yun shield and MATLAB via WiFi?
Title: Re: Arduino Yun and Matlab
Post by: ShapeShifter on Jul 03, 2016, 01:06 pm
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)