Serial communication
- Posted by "Patrick Barnes" <mistertrik at hotmail.com> Oct 23, 2003
- 475 views
I have to write a program that communicates through the serial port with a device that I have to build. Ideally, all I'd have to do would be to have a snippet of code that would write a series of char values to the device, and another snippet that would check to see if the device had sent any status codes back. I downloaded the serial library by Al Getz, and the pcomm library, but neither of them make much sense to me. I'm also aware that this will be difficult to test during development, seeing as there will be multiple points of possible failure along the way (the hardware, for example.) I'm not really knowledgeable about how the serial port communication works... I know that there are queues in the driver like a fifo arrangement, but how large are they? What do all this parity, stop bits, dtr, rts mean? If fifo is not enabled, what does that do? Sorry to bother you all, any help appreciated! ===================================================== .______<-------------------\__ / _____<--------------------__|=== ||_ <-------------------/ \__| Mr Trick