Hello everyone,
I'm attempting to do serial communication from within a c++ program.
"When it's done" it will deal with communication PC <-> mController.
I found the CSerial library which I think I will use, see here:
Serial library for C++[
^]
To test that receiving data works I want to use a "GPS Simulator" from here:
http://www.skylab-mobilesystems.com/en/products/gps_sim.html[
^]
However, as soon as I start outputting the GPS NMEA sentences from within the GPS simulator the COM-ports status goes to "busy".
If I then attempt to open a port from within my C++ code this doesn't work anymore.
CSerial serialPort;
serialPort.Open(_T("COM1"));
Has anyone attempted something similar?
Do I need to handle this differnly from the C++ side?
Or did I misunderstand the purpose of the "GPS Simulator"?
Could be it outputs the signal to the COM port where it could be read by external devices connected to the port ... not completely sure.
If my attempt is something not easily doable, what are alternatives which allow me to test communication without actually having connected the device which will be "on the other end"?