home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
SETBAUD2.ZIP
/
setbaud.doc
next >
Wrap
Text File
|
1991-09-20
|
6KB
|
150 lines
SetBaud 1.0 1991-09-07 (c) 1991 by Mikael Wahlgren
===========================================================================
The COM0x.SYS drivers (COM01.SYS or COM02.SYS) do not support speeds higher
than 19200 bauds. That is IBM's conservative estimate on how high speeds
you can use with serial communications. With some high speed modems, 19200
bauds isn't enough to take advantage of the maximum throughput in the modems.
In some other (more rare) situations, you may want to set the baudrate to
something exotic, even if it isn't necessary high speeds you want to use.
Even if the COM0x.SYS drivers would support higher baudrates than 19200,
there is still one problem to solve. Many communication programs for OS/2
won't allow you to select any baudrates higher than 19200.
This program allows you to set the baudrate to ANYTHING between 0 and 115200
bauds (in some cases with a small approximation). To do this, you start
your communication program and initialize the communication. Then you start
SetBaud, selects the appropriate COM-port and baudrate, and click on the
"SET" button. SetBaud now sets the speed to the selected baudrate, which
will be valid, until your application program change speed again.
You should note, that the high speeds that SetBaud allows you to select,
will need a lot of power in your computer, and therefore very high baud-
rates are only recommended if you have a 16550 UART with extended hardware
buffering, which will minimize the load.
The program need IO-privelige to operate. You set IO-privelige for the
program by altering your CONFIG.SYS file. Replace the line "IOPL=NO" to
"IOPL=YES" or, if the "IOPL=NO" line is missing, add the line "IOPL=YES"
to your CONFIG.SYS file. Instead of the "IOPL=YES" line, you may use
"IOPL=SETBAUD", which will give IO-privelige to the SetBaud program
only.
This program is tested and seems to work with OS/2 1.3 and OS/2 2.0 (beta
drop 149). It should work as well with all previous versions of OS/2
(except OS/2 1.0 which doesn't have Presentation Manager), but this is
not tested.
It is possible to run SetBaud directly from the prompt, without using the
Presentation Manager interface. In this case you should use the following
syntax:
SetBaud <Device> <Speed> [Delay]
<Device> Communication device to change
<Speed> Speed to be set
[Delay] Delay (in seconds) before which the settings are done (optional)
This could be of use to automate the process. Assume you want to use 57600
bauds with your favourite communication program (called XX-COMM). You could
start the program with the following commands:
SetBaud COM1 57600 5
XX-COMM
This assumes that the XX-COMM program has initialized the port within five
seconds. It is important that the XX-COMM program initializes the port
BEFORE SetBaud alters the settings.
Licensing information
=====================
This program is written by me Mikael Wahlgren. It is free for you to
use the program without any charge at all, as long as you keep to some
simple rules:
1. You don't reverse engineer (like debugging or disassembling) the
program. It is illegal to alter or patch the program in any way,
except on my instructions.
2. You must not make profit from this program or use it regulary in
commercial business. If you plan to use the program regulary in
within your company, you should contribute with a registration fee
of $50. Use the included order form, and fax it back to me.
3. You run the program on your own risk. I am not responsible for any
data loss or any other damage resulting from the use of this program
(this does NOT imply that there is anything wrong with the program,
but if it is used in the wrong places and/or at the wrong time, this
utility might not be as useful as you first hoped).
4. The program is tested and work with OS/2 1.3 and OS/2 2.0 (beta
drop 149). There is no guarantee that the program will continue to
work in future versions (one should rather hope it didn't, as the
program can work because of limited preventive protection in OS/2).
Order form
==========
INVOICE
Date: ___________
TO: FROM:
Name: ____________________________________ M Wahlgren Software Dev.
Kransen 4E
Company: _________________________________ S-416 72 Gothenburg
Sweden
Address: _________________________________
City, State; _____________________________
Diskette format 5.25" disk ____ 3.5" disk ____
Specification Amount Price Sum
========================================= ====== ===== ===========
SetBaud high speed communication utility ______ $50 $__________
Total $__________
If you pay with VISA or MastCard please complete the following form.
Cardholders name: ________________________________________
Cardholders address: _____________________________________
Card number: _____________________________________________
Card validy until: _______________________________________
Signature: _______________________________________________
Send a copy of this invoice to:
M Wahlgren Software Dev.
Kransen 4E
S-416 72 Gothenburg
Sweden
Fax: +46 31 196417