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, 2 months ago.
how can i use c++ to recieve data from mbed through serial port?
Hi,
I'm facing this problem. I would like to know if that worked or not. For me I'd like to have a code in c/c++ for VC or VC++ so I can use the data in there(VC++) which are being received by usb serial port, sent by mbed. I can see the data in mbed terminal(Terra Term) & don't need any GUI.
I would appreciate any help cause it's a bit urgent.
Thank you!
2 Answers
11 years, 2 months ago.
I dont understand what exactly it is you are asking. Do you want to send data from an mbed via USB serial to a VC+ application? Yes you can do that, same as adding a normal serial port.
Hey Erik,
Thank you for your reply! :) I'm sorry for making it confusing. Yes, you got it right, I want to send data from mbed via USB serial to laptop & then to VC+ application. Is it too complicated, I dont have too much knowledge in C++. It will mean a lot to me if you can post some link, from where I can learn about how to add serial port in VC+(so I can get the data from USB port) or any simple example to test it out.
Again,I really appreciate your help!
posted by 02 Sep 2013Long time ago I used VC++, but a quick google gave me: http://social.msdn.microsoft.com/Forums/vstudio/en-US/b41ed326-3521-4131-a581-8c04f21772c4/implementing-serial-port-communication-in-vc-2010-windows-form-application/. That answer there might help you further.
posted by 02 Sep 2013Hey Erik,
Thank you for your reply. I'm trying to understand what that page is saying(still havent figured out yet) & also searching for any page (with easy looking sample codes) in google. I will be very grateful if you can send me if you find any easier sample link for me. I'll let you know if I have any specific question about the pages I'm looking at.
Again, I really appreciate your reply.
posted by 04 Sep 201311 years ago.
HI.. im working on something similar. running a code on VC++ by takin input from embed. If you have found the solution, kindly help me too.. i would really appreciate it. Thanks.