Shop OBEX P1 Docs P2 Docs Learn Events
C++ to Boebot — Parallax Forums

C++ to Boebot

RayderonRayderon Posts: 7
edited 2011-01-26 23:11 in Accessories
Hi guys,

anyone knows of any example codes that opens up a serial port communication with the C++? i need to output data from a C++ program to Boebot. Thanks! :)

Comments

  • LeonLeon Posts: 7,620
    edited 2011-01-26 21:21
    C++ on the PC is irrelevant, just use the Stamp serial input.
  • RayderonRayderon Posts: 7
    edited 2011-01-26 21:50
    Actually, i meant from C++ to the Boebots. But alternatively, if i can get C++ to output data to stamp and then from stamp to boe-bot, it will work too. Any examples on how i can do that? Thanks!
  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-26 23:11
    What do you think is in the BoeBot? A Stamp!

    The BoeBot has either a serial port (DB9) or a USB port that includes a USB to serial adapter depending on what you bought. In either case, the BoeBot looks like a serial port to the PC.

    Your C++ program just has to open a serial port and you have to select whichever serial port belongs to the BoeBot when it's plugged in. Your C++ program sends characters to the BoeBot's Stamp and the program in the Stamp receives those characters using SERIN or DEBUGIN statements and makes sense of them however you want. The Stamp can send characters back to the PC using SEROUT or DEBUG statements.
Sign In or Register to comment.