[ITEM]
0
Ms Dos Serial Port Configuration Average ratng: 8,0/10 8338 votes
-->

See the README.NOW mentioned above, under section III A (Planning for Lan Manager Instalation and Configuration on MS-DOS (R) Computers). If you want to run Samba in user level or server level security (which is normally the case; see also securitylevel in the Samba docs directory), you need to install the Enhanced Client.

Displays system status, changes system settings, or reconfigures ports or devices. If used without parameters, mode displays all the controllable attributes of the console and the available COM devices.

You can use mode to perform the following tasks—each task uses a different syntax:

To configure a serial communications port

Syntax

Parameters

ParameterDescription
Com<M>[:]Specifies the number of the async Prncnfg.vbshronous communications port.
baud=<B>Specifies the transmission rate in bits per second. The following table lists valid abbreviations for B and their related rates.
- 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
parity=<P>Specifies how the system uses the parity bit to check for transmission errors. The following table lists valid values for P. The default value is e. Not all computers support the values m and s.
- n = none
- e = even
- o = odd
- m = mark
- s = space
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.
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.
to={onoff}
xon={onoff}
odsr={onoff}
octs={onoff}
dtr={onoff
rts={onoff
idsr={onoff}
/?Displays help at the command prompt.

To display the status of all devices or of a single device

Syntax

Parameters

ParameterDescription
<Device>Specifies the name of the device for which you want to display the status.
/statusRequests the status of any redirected parallel printers. You can abbreviate the /status command-line option as /sta.
/?Displays help at the command prompt.

Remarks

Ucla-olive view residency programs. If used without parameters, mode displays the status of all devices that are installed on your system.

To redirect output from a parallel port to a serial communications port

Syntax

Parameters

ParameterDescription
lpt<N>[:]Required. Specifies the parallel port. Valid values for N are in the range 1 through 3.
com<M>[:]Required. Specifies the serial port. Valid values for M are in the range 1 through 4.
/?Displays help at the command prompt.

Remarks

You must be a member of the Administrators group to redirect printing.

Examples

To set up your system so that it sends parallel printer output to a serial printer, you must use the mode command twice. The first time, use mode to configure the serial port. The second time, use mode to redirect parallel printer output to the serial port you specified in the first mode command.

For example, if your serial printer operates at 4800 baud with even parity, and it is connected to the COM1 port (the first serial connection on your computer), type:

If you redirect parallel printer output from LPT1 to COM1, but then you decide that you want to print a file by using LPT1, type the following command before you print the file:

This command prevents the redirection the file from LPT1 to COM1.

To select, refresh, or display the numbers of the code pages for the console

Syntax

Parameters

ParameterDescription
<Device>Required. Specifies the device for which you want to select a code page. CON is the only valid name for a device.
codepage select=Required. Specifies which code page to use with the specified device. You can abbreviate codepageselect as cpsel.
<YYY>Required. Specifies the number of the code page to select. The following list shows each code page that is supported and its country/region or language.
437: United States
850: Multilingual (Latin I)
852: Slavic (Latin II)
855: Cyrillic (Russian)
857: Turkish
860: Portuguese
861: Icelandic
863: Canadian-French
865: Nordic
866: Russian
869: Modern Greek
codepageRequired. Displays the numbers of the code pages (if any) that are selected for the specified device.
/statusDisplays the numbers of the current code pages selected for the specified device. You can abbreviate /status to /sta. Whether or not you specify /status, mode codepage displays the numbers of the code pages that are selected for the specified device.
/?Displays help at the command prompt.

To change the size of the command prompt screen buffer

Syntax

Parameters

ParameterDescription
con[:]Required. Indicates that the change applies to the Command Prompt window.
cols=<C>Specifies the number of columns in the command prompt screen buffer.
lines=<N>Specifies the number of lines in the command prompt screen buffer.
/?Displays help at the command prompt.

To set the keyboard typematic rate

Syntax

Parameters

ParameterDescription
con[:]Required. Refers to the keyboard.
rate=<R>Specifies the rate at which a character is repeated on the screen when you hold down a key.
delay=<D>Specifies the amount of time that will elapse after you press and hold down a key before the character output repeats.
/?Displays help at the command prompt.

Remarks

  • The typematic rate is the rate at which a character repeats when you hold down the key for that character. The typematic rate has two components, the rate and the delay. Some keyboards do not recognize this command.

  • Using rate=R

    Valid values are in the range 1 through 32. These values are equal to approximately 2 to 30 characters per second. The default value is 20 for IBM AT-compatible keyboards, and 21 for IBM PS/2-compatible keyboards. If you set the rate, you must also set the delay.

  • Using delay=D

    Valid values for D are 1, 2, 3, and 4 (representing 0.25, 0.50, 0.75, and 1 second). The default value is 2. If you set the delay, you must also set the rate.

Additional References

DOSSerial Communication
SeanBailey 01/23/2001
StanfordBiomimetics

This page roughly describes how to getthe serial port working in DOS using C code. I have only experimentedwith sending out signals, but getting the port to receive information shouldn'trequire much more work (if any). I also used Borland C++ 5.0, butmost c compilers seem to have the same libraries.

Qmidi pro free version download for mac free. It could set up and play many forms of media information, together with films and, CDG information, and permits straightforward textual content and chord modifying/synchronization. It options real-time pitch shifting, time stretching, and the flexibility to show karaoke and film content material in full-screen mode, even on a second monitor.

If you have a better solution or if youfind dead links, email me.

Basics

Serialport (RS232) basics
9pin port diagram (what I used, what most computers have)
20pin port diagram


Windows (32 bit)

Getting things to work in Windowsis not hard, as it doesn't appear to care about flowcontrol, and lots of people program for windows now.

Serial Sender- A simple windows program to send commands to any of the serial ports(from Scott Edwards Electronics).

MiniSSC DLL - Scott EdwardsElectronics also provides a .dll for use in windows. Some samplec code (32 bit) which uses this dll.


DOS (16 bit)

The most convenient way to doserial communication is by including the Borland header file bios.hand use the command _bios_serialcom or bioscom (less #defines). The only real issue I had with it was that it seems to require some flowcontrol.

However, you can 'trick' it by pullingpins 6 and 8 (on a 9 pin connector) high by connecting them to the positivelead on a 9 volt battery. Of course, signal ground (pin 5) shouldbe connected to the negative terminal. Outgoing signals travel onpin3, with pin 5 acting as signal ground (see Basics above if youare now confused). I figured this out using an old external modem,which was a big help since they seem to figure out what flowcontrol is needed automatically (or maybe they just have it built in),and then I disconnected pins one at a time until it stopped working tofigure out the vital pins. Kind of a hack, but it worked.


Why did I do this?

Our lab is using RC servo motorsin our biomimeticrobot Sprawlita. I wanted to control these RC (radio-controlled) servo motors using a ScottEdwards ElectronicsMiniSSC II. To move each servo to a new position, it requires 3 bytesof information to be sent via a serial connection (see the manual).
[/ITEM]
[/MAIN]
80
Ms Dos Serial Port Configuration Average ratng: 8,0/10 8338 votes
-->

See the README.NOW mentioned above, under section III A (Planning for Lan Manager Instalation and Configuration on MS-DOS (R) Computers). If you want to run Samba in user level or server level security (which is normally the case; see also securitylevel in the Samba docs directory), you need to install the Enhanced Client.

Displays system status, changes system settings, or reconfigures ports or devices. If used without parameters, mode displays all the controllable attributes of the console and the available COM devices.

You can use mode to perform the following tasks—each task uses a different syntax:

To configure a serial communications port

Syntax

Parameters

ParameterDescription
Com<M>[:]Specifies the number of the async Prncnfg.vbshronous communications port.
baud=<B>Specifies the transmission rate in bits per second. The following table lists valid abbreviations for B and their related rates.
- 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
parity=<P>Specifies how the system uses the parity bit to check for transmission errors. The following table lists valid values for P. The default value is e. Not all computers support the values m and s.
- n = none
- e = even
- o = odd
- m = mark
- s = space
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.
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.
to={onoff}
xon={onoff}
odsr={onoff}
octs={onoff}
dtr={onoff
rts={onoff
idsr={onoff}
/?Displays help at the command prompt.

To display the status of all devices or of a single device

Syntax

Parameters

ParameterDescription
<Device>Specifies the name of the device for which you want to display the status.
/statusRequests the status of any redirected parallel printers. You can abbreviate the /status command-line option as /sta.
/?Displays help at the command prompt.

Remarks

Ucla-olive view residency programs. If used without parameters, mode displays the status of all devices that are installed on your system.

To redirect output from a parallel port to a serial communications port

Syntax

Parameters

ParameterDescription
lpt<N>[:]Required. Specifies the parallel port. Valid values for N are in the range 1 through 3.
com<M>[:]Required. Specifies the serial port. Valid values for M are in the range 1 through 4.
/?Displays help at the command prompt.

Remarks

You must be a member of the Administrators group to redirect printing.

Examples

To set up your system so that it sends parallel printer output to a serial printer, you must use the mode command twice. The first time, use mode to configure the serial port. The second time, use mode to redirect parallel printer output to the serial port you specified in the first mode command.

For example, if your serial printer operates at 4800 baud with even parity, and it is connected to the COM1 port (the first serial connection on your computer), type:

If you redirect parallel printer output from LPT1 to COM1, but then you decide that you want to print a file by using LPT1, type the following command before you print the file:

This command prevents the redirection the file from LPT1 to COM1.

To select, refresh, or display the numbers of the code pages for the console

Syntax

Parameters

ParameterDescription
<Device>Required. Specifies the device for which you want to select a code page. CON is the only valid name for a device.
codepage select=Required. Specifies which code page to use with the specified device. You can abbreviate codepageselect as cpsel.
<YYY>Required. Specifies the number of the code page to select. The following list shows each code page that is supported and its country/region or language.
437: United States
850: Multilingual (Latin I)
852: Slavic (Latin II)
855: Cyrillic (Russian)
857: Turkish
860: Portuguese
861: Icelandic
863: Canadian-French
865: Nordic
866: Russian
869: Modern Greek
codepageRequired. Displays the numbers of the code pages (if any) that are selected for the specified device.
/statusDisplays the numbers of the current code pages selected for the specified device. You can abbreviate /status to /sta. Whether or not you specify /status, mode codepage displays the numbers of the code pages that are selected for the specified device.
/?Displays help at the command prompt.

To change the size of the command prompt screen buffer

Syntax

Parameters

ParameterDescription
con[:]Required. Indicates that the change applies to the Command Prompt window.
cols=<C>Specifies the number of columns in the command prompt screen buffer.
lines=<N>Specifies the number of lines in the command prompt screen buffer.
/?Displays help at the command prompt.

To set the keyboard typematic rate

Syntax

Parameters

ParameterDescription
con[:]Required. Refers to the keyboard.
rate=<R>Specifies the rate at which a character is repeated on the screen when you hold down a key.
delay=<D>Specifies the amount of time that will elapse after you press and hold down a key before the character output repeats.
/?Displays help at the command prompt.

Remarks

  • The typematic rate is the rate at which a character repeats when you hold down the key for that character. The typematic rate has two components, the rate and the delay. Some keyboards do not recognize this command.

  • Using rate=R

    Valid values are in the range 1 through 32. These values are equal to approximately 2 to 30 characters per second. The default value is 20 for IBM AT-compatible keyboards, and 21 for IBM PS/2-compatible keyboards. If you set the rate, you must also set the delay.

  • Using delay=D

    Valid values for D are 1, 2, 3, and 4 (representing 0.25, 0.50, 0.75, and 1 second). The default value is 2. If you set the delay, you must also set the rate.

Additional References

DOSSerial Communication
SeanBailey 01/23/2001
StanfordBiomimetics

This page roughly describes how to getthe serial port working in DOS using C code. I have only experimentedwith sending out signals, but getting the port to receive information shouldn'trequire much more work (if any). I also used Borland C++ 5.0, butmost c compilers seem to have the same libraries.

Qmidi pro free version download for mac free. It could set up and play many forms of media information, together with films and, CDG information, and permits straightforward textual content and chord modifying/synchronization. It options real-time pitch shifting, time stretching, and the flexibility to show karaoke and film content material in full-screen mode, even on a second monitor.

If you have a better solution or if youfind dead links, email me.

Basics

Serialport (RS232) basics
9pin port diagram (what I used, what most computers have)
20pin port diagram


Windows (32 bit)

Getting things to work in Windowsis not hard, as it doesn't appear to care about flowcontrol, and lots of people program for windows now.

Serial Sender- A simple windows program to send commands to any of the serial ports(from Scott Edwards Electronics).

MiniSSC DLL - Scott EdwardsElectronics also provides a .dll for use in windows. Some samplec code (32 bit) which uses this dll.


DOS (16 bit)

The most convenient way to doserial communication is by including the Borland header file bios.hand use the command _bios_serialcom or bioscom (less #defines). The only real issue I had with it was that it seems to require some flowcontrol.

However, you can 'trick' it by pullingpins 6 and 8 (on a 9 pin connector) high by connecting them to the positivelead on a 9 volt battery. Of course, signal ground (pin 5) shouldbe connected to the negative terminal. Outgoing signals travel onpin3, with pin 5 acting as signal ground (see Basics above if youare now confused). I figured this out using an old external modem,which was a big help since they seem to figure out what flowcontrol is needed automatically (or maybe they just have it built in),and then I disconnected pins one at a time until it stopped working tofigure out the vital pins. Kind of a hack, but it worked.


Why did I do this?

Our lab is using RC servo motorsin our biomimeticrobot Sprawlita. I wanted to control these RC (radio-controlled) servo motors using a ScottEdwards ElectronicsMiniSSC II. To move each servo to a new position, it requires 3 bytesof information to be sent via a serial connection (see the manual).