View Single Post
  #7   Spotlight this post!  
Unread 06-03-2004, 21:05
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Weird Output from Dashboard Port

Quote:
Originally Posted by Astronouth7303
Oh, I use the MSCOMM control with VB6. Very, very useful. And I know comps don't use ASCII. That's why IO asked (If you were outputting like it was, it would be garbage)

Do have answers to my other questions?
Quote:
Originally Posted by Ian W.
Quote:
Originally Posted by Astronouth7303
DID YOU READ THE DOC? The bytes aren't ASCII, That's for the Prog port on the bot. I would try outputting the bytes (Translate to Hex string) as which # in the packet. That may solve problems. And what language are you using?
Yes, I've read the documents, I've read all of them, actually, from 2000 to 2004, in hopes of finding answers. In fact, none of the ports on the OI or RC talk in ASCII, they all talk in hex. It'd make no sense for computers to talk using ASCII, as ASCII was made for displaying characters and such for humans to understand, not microprocessors.

I'm using C/C++ with VS.net.

As for the problems I was having, I actually found the solution by accident.

Apparently I had done something bad with the serial port, forgot to close it, I think, or closed the program incorrectly so it didn't get a chance to close. Due to this, I was unable to correctly reopen it, and that created garbage data. A simple reboot, while 5 minutes long (I'm using an old PII laptop trying to run Win2k), fixed the problem.

If anyone knows how to close an opened serial port after the program that opened it has aborted, can you please share? That would save me, and probably plenty of others, a bunch of time in the pits .

And, as a message of help to everyone, if you ever have strange problems with your serial port, just reboot, don't waste an entire day on it .
Yes.
__________________
AIM --> Woloi
Email --> ian@woloschin.com