Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 9 months ago.
Send and receive data mbed with unity 3d by seriel communication
Hi everyone,
is it possible? How? Thank you
2 Answers
11 years, 9 months ago.
Hello,
First thank you for your reply. When you talk about PC application, you mean a graphical application?
Assuming that the mbed sends ''graphics commands'' to the PC over the serial port then the application running on the PC will have to receive those commands and do whatever it is you want it to do. Your PC application will typically decode and execute these commands by calling Unity methods or something.
posted by 13 Jan 201411 years, 9 months ago.
mbed can communicate with a host PC through a "USB Virtual Serial Port" over the same USB cable that is used for programming. This makes it possible to send/receive data to a terminal application running on your PC or to your own applications written in languages like C, C++, java etc. There are several examples available on the mbed site. Here is one by jim hamblen for communication with a C++ application. You would have to develop a PC application that interfaces with the Unity engine using some serial command protocol between the PC and mbed.