Shop OBEX P1 Docs P2 Docs Learn Events
communicating with the Basic Stamp from the PC — Parallax Forums

communicating with the Basic Stamp from the PC

ghogsettghogsett Posts: 3
edited 2007-08-04 19:59 in BASIC Stamp
I have a BOE Stamp board. I also use the serial to USB adaptor. How would I communicate from an app on the PC (say, in C++, or something) to the Basic Stamp?
Tnx,
Jerry W6PPK

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-02 22:39
    You need to 1) Be able to select a serial (USB) port and configure it for Baud, # bits, etc. 2) Send and receive data via the serial port.

    The Stamp I/O is either done with DEBUGIN / DEBUG or with SEROUT/SERIN 16,...

    If you don't know how to set up and use a serial port on a PC with your language of choice, you'll need to learn how to do so elsewhere. There are some existing apps for communications with a Stamp like StampPlot Pro from Selmaware. Sometimes that's enough to get the data onto the PC.
  • ghogsettghogsett Posts: 3
    edited 2007-08-03 03:53
    That's what I needed. Thanks a bunch.
    Jerry
  • sdysdy Posts: 40
    edited 2007-08-04 19:59
    This article show how to do itin Visual basic 6. Your USB port is mapped to some COM port, like COM5, or something, but you talk to it like a serial port. Doing it in C++ is hard, becuase you have to set up a callback function when the sreial port is recieved. You It's usually done by multi-threading. Launch a thread that waits on the serial port buffer. VB6 is easier.
Sign In or Register to comment.