Shop OBEX P1 Docs P2 Docs Learn Events
Serial Communication — Parallax Forums

Serial Communication

Naphtali MooreNaphtali Moore Posts: 42
edited 2007-04-21 20:37 in BASIC Stamp
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?

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-04-21 16:34
    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 MooreNaphtali Moore Posts: 42
    edited 2007-04-21 19:59
    Thanks Tom, Good idea. I have tried that, and yes its sending..... anyone got the code to the hyper terminal?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-21 20:37
    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.
Sign In or Register to comment.