Advertisement

Terminal reader program

Started by January 04, 2001 09:53 AM
0 comments, last by Yanroy 24 years ago
Since I posted my last message (all of 20 minutes ), I have done a bit of research on remote robot control. I found an interesting program on the Stanford robot site that has a GUI for operating their robot, with a map of what the robot sees, etc. The heap of junk on my workbench that is supposedly going to evolve into a robot (when I get a frame for it...) could really benefit from something like that. The computer chip(s) that control my robot are known as Basic Stamps (if you know about them, I use 3 OEM BS-II''s), and they can output ASCII text to a computer through a COM port. The data can be read by an 8N1 terminal on the port. The stamp IDE comes with a terminal that does that for debugging purposes, but if I could write my own, I could make it interpret the data that comes back from the robot to produce a map, or sensor information, or all kinds of stuff. It would only be one way, btw , but that is fine with me. What do I need to do to make a connection to a DB9 COM port on my computer using the 8N1 format? Probably has something to do with winsock, and I am sure you all can attest to my expertise with that API . --------------------

You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming

You are unique. Just like everybody else.

Yanroy@usa.com

Visit the ROAD Programming Website for more programming help.

--------------------

You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

The Comport is handled much like a files in Win32.
I have a class at work that handles it, I''ll check and see if I give it away. It creates a thread and does asyncronous IO.

The documentation on msdn for this is *extremely* poor, and is even incorrect in a couple of places!
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement