I knew I had code for this.
I didn't find my COM code but here is my simple version:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB1&Number=26421
_________________________
!

download KiXnet