SERIN/SEROUT, USB and COM port questions
davejames
Posts: 4,047
Hi All,
OK - so I've decided to play around with SERIN/SEROUT in an attempt to set up a user interface on the PC via HyperTerm so I might input data to the BS2 with which it will use when running the program.
I've read through the manual pages on SERIN/SEROUT and even found an old Nuts & Volts column deciphering what's in the manual.· I've read through some web pages that describe what goes on with USB.
My hardware in use is a BS2 on a 'Board of Education' that is connected to my PC through a serial/USB adapter that came with the BOE.
All that said - here's my question...HyperTerm (built into Windows XP) requires the selection of a serial COM port.· USB connections apparently don't use COM ports.· So, how then, can I correctly setup HyperTerm to communicate with the BS2?
Am I going down the wrong path?
Does the FDTI chip on the serial/USB create a 'virtual COM port'?· If so, how do I know which COM port is being used?· Does the FDTI chip always default to a particular port?
Do the SERIN/SEROUT commands support COM port selection (I didn't see it in the manual)?
Much thanks,
DJ
·
OK - so I've decided to play around with SERIN/SEROUT in an attempt to set up a user interface on the PC via HyperTerm so I might input data to the BS2 with which it will use when running the program.
I've read through the manual pages on SERIN/SEROUT and even found an old Nuts & Volts column deciphering what's in the manual.· I've read through some web pages that describe what goes on with USB.
My hardware in use is a BS2 on a 'Board of Education' that is connected to my PC through a serial/USB adapter that came with the BOE.
All that said - here's my question...HyperTerm (built into Windows XP) requires the selection of a serial COM port.· USB connections apparently don't use COM ports.· So, how then, can I correctly setup HyperTerm to communicate with the BS2?
Am I going down the wrong path?
Does the FDTI chip on the serial/USB create a 'virtual COM port'?· If so, how do I know which COM port is being used?· Does the FDTI chip always default to a particular port?
Do the SERIN/SEROUT commands support COM port selection (I didn't see it in the manual)?
Much thanks,
DJ
·
Comments
control panel
· system
··· harware tab
····· device manager button
······· ports comm&lpt
·
** "...PC through a serial/USB adapter"····
OK - thank you, understood.
I visited the FDTI website (the company that makes the serial/USB chip on the Parallax adapter) and it does mention this 'virtual com port' (VCP).· Makes sense.· A lingering question is if the FDTI chip defaults to the same com port number?· I guess this would be a question for the Parallax folks, but I'll go post same over on the FDTI site.
I'm trying to relieve the user from having to do too much when starting HyperTerm as I can create the configuration file (<title>.ht) with all the protocols set and then just have them load it prior to starting up the terminal window.
Later,
DJ
Edit - just checked the path you provided and turns out that the Serial/USB adapter is on COM4.· If anyone reading this has the time and this adapater, could you also check and let me know which COM port is being used?· Thanks much.
Post Edited (davejames) : 11/14/2008 3:16:04 PM GMT
RATS!!· Ok, thanks for your time.
Now I have to go rethink the whole user interface.
DJ
http://www.ftdichip.com/Support/Knowledgebase/index.html and read the note:
AN232B-05 Configuring FTDI's VCP Drivers to use Location IDs section:
How to Configure VCP to use a Specific COM port
Looks like I may be back in business!
DJ
BTW - I went ahead and grabbed this note piece-meal, stuck it into a Word doc and attached it if anyone's interested. This info isn't provided as a down load from the site.
I did just notice that when I plug in my Prop Plug (which is, if I understand this, also an FTDI Virtual Com Port), it appears as COM8 (while my Parallax Serial/USB converter appears as COM6). I think that's the kind of issue that the beginning part of your attachment refers to - unique devices get unique COM ports associated with them.
Just read in the support section of the Hilgreave site for the HyperTerm app which comes installed in XP:
"HyperTerminal and HyperTerminal Private Edition do not support any direct connections beyond COM4. If you need to access ports 5+, you will need to use an alternative software program, such as our HyperACCESS. HyperACCESS does not limit the port selection to the standard ports, COM1 through COM4."
And, of course, the other mentioned apps are not free.
So much for going the cheap route. I guess the best way from here would be to write up my own terminal window via VisualBASIC or VisualC++.
Has anyone reading this thread written their own terminal window interface?
DJ
It would probably take 30 minutes to an hour depending on experience to get this up and running (it takes longer to download and install VB Express).
In fact I think I would like to take the Debug App and make it look a little better, if you go this route let me know and we can exchange thoughts.
Jeff T.
Thanks for the info and link. I'll definitely check it out.
BTW - I asked one of the software guys at work if they've ever created their own interface and the answer was 'yes', and he even spent about an hour showing me the rudementary aspects of using Visual C++ and the Dialog "wizard". Pretty amazing stuff. I would expect that the VB approach would be similar and probably simpler.
I'll let you know how things progress.
DJ
mine is set for com 4 but it depends on whch usb port it is pluged into
i would suggest to pick a port and use only that one from now on and then just go through the list and stop at each com port on the list until you get one that works
um i just dowloaded PLX-DAQ from parallax last night and it allows the stamp to send serial ouput to an excell document try it out and see if that helps
i just like you have to use an adaptor my reason is my laptop has no serial portsand i got things working ok
good luck
p.s. each usb port has its own virtual serial so if you get it working on a particular port and you then plug into a different port you must change the designated com port
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax posesses power beyond belief.
Believe in it.