PDA

View Full Version : Serial Communication



Naphtali Moore
04-21-2007, 07:26 PM
I'm having some trouble receiving data from my basic stamp SX.... Im using the serial to usb adapter. I can see the port as COM5, I can send messages TO the stamp, np, but when I try to listen for messages from the stamp I can see its being sent via the LED on the adapter but my application recieves nothing. I'm using createfile, read, and write from the win32 api in a DLL written in c++. Does anyone have any source code on reading dat form COM ports?

stamptrol
04-21-2007, 11:34 PM
As a first test, use Hyperterminal to see if the stamp really is sending.

If that works, it narrows it down to the C++ communication routines. Can't help you with that part, sorry.

Cheers,

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk

http://www.siskconsult.com

Naphtali Moore
04-22-2007, 02:59 AM
Thanks Tom, Good idea. I have tried that, and yes its sending..... anyone got the code to the hyper terminal?

Mike Green
04-22-2007, 03:37 AM
Hyperterminal is part of Windows so the code belongs to Microsoft. You'll have to see if your C++ vendor has examples of serial programming.