Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #3995

Re: MSDOS 3.2 COM ports

Message-Id <l34nlh-eb2.ln1@aretha.foo>
From Peter 'Shaggy' Haywood <phaywood@alphalink.com.au>
Subject Re: MSDOS 3.2 COM ports
Newsgroups comp.os.msdos.programmer
Date 2021-04-28 14:15 +1000
References <4d505ede-ceb0-4556-9255-5533c987e91fn@googlegroups.com> <s5vomk$41j$1@tncsrv09.home.tnetconsulting.net>

Show all headers | View raw


Groovy hepcat Grant Taylor was jivin' in comp.os.msdos.programmer on
Sat, 24 Apr 2021 10:26 am. It's a cool scene! Dig it.

> On 4/23/21 5:19 PM, muta...@gmail.com wrote:
>> What support does MSDOS have for COM ports?
> 
> The ports are supported as devices.
> 
>> I believe you can copy a file with a destination of COM1: and it
>> will write to the COM port, but I don't know what speed/parity/bits
>> it uses when you do that, and I've never heard of facilities to set
>> those things.
> 
> Utilities to manage the ports are a different matter.
> 
> I think I was always using some other program to configure / manage
> the port as well as do the requisite communications.
> 
> Though, from a very deep dark and difficult to access memory, which
> could easily be wrong, I want to say that mode had the capability to
> configure ports.
> 
> I would say check the help command, but I think that was introduced in
> 6.<something> and you've listed 3.2 in the subject.  That's way before
> I started messing with DOS.

                        MODE (Configure Serial Port)

Configures a serial communications port.

This version of the MODE command sets the parameters for a serial port
(COM1, COM2, COM3, or COM4).

Syntax

    MODE COMm[:] [b[,p[,d[,s[,r]]]]]

    MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]

Parameters

COMm
    Specifies the number of the serial (COM) port. Valid values for m
are in
    the range 1 through 4.

    If you omit any of the following five parameters, MODE uses the most
    recent setting for the omitted parameter. If you are using the
shorter
    form of the syntax (without the words BAUD=, PARITY=, DATA=, and so
on),
    the MODE command "recognizes" the parameters by their positions.
Thus,
    if you do not specify a value for a parameter, you must still type
the
    comma that precedes the next parameter.

BAUD=b
    Specifies the first two digits of the transmission rate in bits per
    second. The following list shows each valid value for b and its
related
    rate:

    11    110 baud

    15    150 baud

    30    300 baud

    60    600 baud

    12    1200 baud

    24    2400 baud

    48    4800 baud

    96    9600 baud

    19    19,200 baud

    The b value of 19 is not supported on all computers (check your
hardware
    manual). You can abbreviate this parameter by omitting BAUD= and
    specifying a value for b.

PARITY=p
    Specifies how the system uses the parity bit to check for
transmission
    errors. The p value can be one of the following: N (none), E (even),
O
    (odd), M (mark), or S (space). The default value is E. Not all
computers
    support the values M and S. You can abbreviate this parameter by
    omitting PARITY= and specifying a value for p.

DATA=d
    Specifies the number of data bits in a character. Valid values for d
are
    in the range 5 through 8. The default value is 7. Not all computers
    support the values 5 and 6. You can abbreviate this parameter by
    omitting DATA= and specifying a value for d.

STOP=s
    Specifies the number of stop bits that define the end of a
character: 1,
    1.5, or 2. If the baud rate is 110, the default value is 2;
otherwise,
    the default value is 1. Not all computers support the value 1.5. You
can
    abbreviate this parameter by omitting STOP= and specifying a value
for
    s.

RETRY=r
    Specifies the retry action to take if a time-out error occurs when
MODE
    attempts to send output to a serial printer. This parameter causes
part
    of MODE to remain resident in memory. The following list shows each
    valid value for r and a brief description of its meaning:

    E    Return an error from a status check of a busy port.

    B    Return "busy" from a status check of a busy port.

    P    Continue retrying until printer accepts output.

    R    Return "ready" from a status check of a busy port.

    N    Take no retry action (default value). You can also specify none
for
    this value.

    If you are using the MODE command over a network, do not use any of
the
    r values. You can abbreviate this parameter by simply omitting
RETRY=
    and specifying a value for r.

-- 


----- Dig the NEW and IMPROVED news sig!! -----


-------------- Shaggy was here! ---------------
              Ain't I'm a dawg!!

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-23 16:19 -0700
  Re: MSDOS 3.2 COM ports Grant Taylor <gtaylor@tnetconsulting.net> - 2021-04-23 18:26 -0600
    Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-23 18:47 -0700
      Re: MSDOS 3.2 COM ports Grant Taylor <gtaylor@tnetconsulting.net> - 2021-04-23 20:08 -0600
        Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-23 20:40 -0700
      Re: MSDOS 3.2 COM ports Grant Taylor <gtaylor@tnetconsulting.net> - 2021-04-23 20:14 -0600
      Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-04-24 10:07 +0200
        Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-24 15:04 -0700
          Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-04-25 10:32 +0200
            Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-26 01:32 -0700
              Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-04-26 11:42 +0200
                Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-26 04:42 -0700
                Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-04-26 14:54 +0200
                Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-26 14:10 -0700
                Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-04-27 11:40 +0200
                Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-04-27 03:56 -0700
                Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-05-01 21:56 +0200
                Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-05-01 14:36 -0700
                Re: MSDOS 3.2 COM ports "R.Wieser" <address@not.available> - 2021-05-02 10:29 +0200
                Re: MSDOS 3.2 COM ports "muta...@gmail.com" <mutazilah@gmail.com> - 2021-05-02 02:14 -0700
    Re: MSDOS 3.2 COM ports Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2021-04-28 14:15 +1000

csiph-web