I wonder if it's possible to connect MATLAB for android/iOS(mobile) directly to audrino through wifi or do I have to go through a computer?
2 次查看(过去 30 天)
显示 更早的评论
Now i am sending the sensor data from my iPhone through my computer and from my computer to the audrino. I know that I can write my one application for my iphone to send the sensor data, but it would be easier to use the matlab app if it's possible.
0 个评论
采纳的回答
Walter Roberson
2016-10-11
MATLAB cannot run on android or iOS. There is a "MATLAB Mobile" interface that can allow those to act as displays for remote MATLAB (to some extent.) There are sensor packages for the two that can send data to MATLAB sessions. There are Simulink blocks that can be used to create models that deploy to android, and other Simulink blocks that can be used to create models that deploy to iOS.
The android sensors package and the iOS sensor package use UDP (I think) to send to MATLAB sessions. You can tell the sensor packages on the phones to send to an arbitrary IP address and port. But I do not recall seeing the format of the packets documented, or the protocol for instructing which sensors are to be sent.
Arduino does have TCP and UDP capabilities if you use the Ethernet shield; see http://makerzone.mathworks.com/resources/arduino/messaging-with-arduino-and-ethernet-shield-sending-and-receiving-tcpip-or-udp-messages/
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!