Category : serial-port

I have set up an application Qt that connects to a COM port which then reads certain data from the serial link, however some messages would come out choppy or even not be displayed using the readAll function. For example: Expected message: ,18030.03802,N,00007.47673,W,080538.58, Actual message: ,18030.03802,N, 00007.47673,W,0805 38.58, The problem is that each line would ..

Read more

I have inherited some C++ code that sets up a serial com port in Windows. The code contains the following declaration and method, which I have simplified for the purposes of this question. std::queue<std::string> m_queue; SendMsg( const char* dataBuff, unsigned int dataBuffSz ) { // Insert into the end of the queue to send m_queue.emplace( ..

Read more