Checking COM: 1 2 3 4 5 6 7 8 9 10 11 COM 11: opened 12 COM 12: opened 13 14 15 16 17 18 19 20 COM 11: check baud rate 9600 ▬Imk▬x 19200 ♀↔??? 38400 ???▲?♂ 57600 $GPGGA->OK COM 12: check baud rate 4800 ?=▬??? 9600 ▬I? ?? 19200 ♀↔??? 38400 ???▲?♂ 57600 $GPGGA->OK COM 11 at 57600 $GPGGA,223705.631,3412.7486,N,11911.6111,W,1,06,1.0,-24.5,M,-33.8,M,0.0,0000*5E Lat 34.21248 Lon -119.19352 Alt 30ft GPS fix, # of Sat. 6 COM 12 at 57600 $GPGGA,223706.395,3412.7444,N,11911.6102,W,1,06,2.6,-14.3,M,-33.8,M,0.0,0000*5A Lat 34.21241 Lon -119.19350 Alt 63ft GPS fix, # of Sat. 6 11.408 sec N.L. Neilson (c)
if( !SetCommState( m_hIDComDev, &dcb ) || !SetupComm( m_hIDComDev, 10000, 10000 ) ||
koldo wrote on Thu, 19 August 2010 23:23 | ||
Hello Jeremy wxSerial refers to wxWindows serial support. It cannot be used here. I am not sure about the status of the serial support in U++. Now it seems to be: - nixnixnix has included in Forum (in this post) a serial class for Linux and Windows - jerson has done a class for Windows to be posted - Mindtraveller has done a more complete class but is part of a closed source package |
std::wstring comID = L"\\\\.\\COM11"; HANDLE hSerial; hSerial = CreateFileW(comID.c_str(), GENERIC_READ | GENERIC_WRITE, ...