Shop OBEX P1 Docs P2 Docs Learn Events
communication question — Parallax Forums

communication question

ThirteenevenThirteeneven Posts: 11
edited 2009-04-02 15:03 in BASIC Stamp
I need to communicate from a BS2 using a USB cable to a pc with windows xp, so i can get a set of data that will be used to send command to a robot. How would I go about doing this. Also the robot is not run by the basic stamp it is just used to get sensor data.
We're using C++ to run the robot.
Thank you for your time
Josh

Post Edited (Thirteeneven) : 4/2/2009 3:17:40 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-02 15:03
    The Stamp side is easy. The DEBUG statement will send serial information to the PC over the USB connection used for programming. Instead of using the Stamp Editor's debug window, you just substitute some kind of PC program that opens the virtual serial port associated with the USB connection and receives data from that. The details depend on what programming language you want to use on the PC and its facilities for this. People have used Visual Basic, Python, Java, etc.
Sign In or Register to comment.