This is still a problem. I am working around it by assigning other apps to
higher numbered com ports and using COM1 and COM2 for the SF application. I
will have to face the music RSN, but have been off fighting other fires.
Any ideas would be appreciated. We have been using the Nport RS-232 serial
servers from MOXA (www.moxa.com <http://www.moxa.com> ) to provide multiple
serial ports via ethernet for several different apps, including
Hyperterminal (test) and two different Wonderware drivers. Seems as if the
"COMx" designations should just look like files to Windows after they have
been mapped.
P.S. I have DCB class extensions to ComPort.f that allow the use of the
CommConfigDialog API call (configures baud rate, XON/XOFF, data bits, etc.
in a dialog). Send me email if you want a copy. I haven't tried it with
ver. 2.2.2, but it works on my version that has the class support built in
(e.g., the "::" references are already built in to the class definitions).
I also have extensions to the SELCOM dialog that allow the selection of up
to 24 com ports via radio buttons in a dialog (not that it does me much
good, yet). In case you were wondering, yes, I did check that the correct
"COMx" reference was being built and passed to the API call.
____________________________________________________________________________
_________________________________________
Robert Nash bnash_at_SMUD.org <mailto:bnash_at_SMUD.org> Tel: 916-732-5150 FAX:
916-732-6846 Home: rjaynash_at_home.com <mailto:rjaynash_at_home.com>
-----Original Message-----
From: Appert, Kevin [SMTP:kevin.appert_at_lmco.com]
Sent: Tuesday, March 20, 2001 11:31 AM
To: 'sftalk_at_forth.com'
Subject: [sftalk] Re: Opening high-numbered COM ports
Were there any clues passed around which I missed or is this still
among the
great unsolved mysteries? Just curiosity today, perhaps a life or
death,
show stopping requirement tomorrow. We never know.
******************************************
"Curiosity is the hunger of reason"
from Space Relations: SF by Donald Barr; Charterhouse 1973
> ----------
> From: Bob Nash[SMTP:BNash_at_smud.org]
> Reply To: sftalk_at_forth.com
> Sent: Wednesday, February 14, 2001 2:40 PM
> To: sftalk_at_forth.com
> Subject: [sftalk] Opening high-numbered COM ports
>
> Has anyone used the words contained in ComPort.f to access
high-numbered
> com
> ports?
>
> For example, I am using a multi-port serial device that attaches
to my PC
> via a ethernet port (similar to a terminal server, but for raw
RS-232 with
> handshake).
>
> The device maps 8 com ports to COM13 through COM20. I can bring
up
> Hyperterm and talk to these ports just fine. I can also access
these
> ports
> with other programs such as Wonderware.
>
> I can use the SF ComPort access words to communicate with COM1 and
COM2,
> the
> local PC ports. I have also accessed local PC ports COM3 and COM4
on a
> different machine.
>
> But, when I pass a number like 13 or 15 to OPEN, I get a bad ior
(-1). I
> have also verified that the right number gets into PORT and that
the
> correct
> zstring (COM13) is generated for the Windows call. I have also
verified
> that COM13 has a "CLOSED" status before attempting to open it.
>
> Does anyone know what Hyperterm knows about opening these ports
that the
> ComPort routines do not?
>
> P.S. The device I am using is Nport Server manufactured by MOXA.
>
> Robert Nash bnash_at_SMUD.org <mailto:bnash_at_SMUD.org> Tel:
916-732-5150
> FAX:
> 916-732-6846
>
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
Received on Wed Mar 21 2001 - 09:43:36 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.