I would like to realise a string parse of NMEA formated strings to Com1 over RS232. I have not done it before. How can I realise it. Do I have to buy a tool or can I do it with BCB6?
and some that co$t. I've used Async Pro. Once I got it installed, it worked very well. There is a thread somewhere in this forum about installing it.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
/* Run a separte thread that writes to the port when it's not being read from if you need asynchronous (easy way to do it) */
WriteFile(PortHandle, &chrSomeByte, 1, &dwdBytesSent, NULL);
/* Run a separate thread that reads from the port when it's not being written to (easy way) */
ReadFile(PortHandle, ptrSomeMultiBytePointer, 200, &dwdBytesRead, NULL);
CloseHandle(PortHandle);
This should work. Check out the Microsoft help file included with Borland for further info. Good luck.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.