Differences between revisions 4 and 5
Revision 4 as of 2012-08-30 00:00:25
Size: 763
Editor: AA6YQ
Comment:
Revision 5 as of 2012-08-30 00:08:48
Size: 1454
Editor: AA6YQ
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
You can reset a serial port's RTS and DTR signals on Windows startup by creating a ''Windows batch'' file containing the appropriate command and then [http://windows.microsoft.com/en-US/windows-vista/Run-a-program-automatically-when-Windows-starts create a shortcut to this batch file in the Windows Startup Folder]. To reset COM3's RTS and DTR signals, for example, use Windows Notepad to create a batch file named {{{RESETCOM3.bat}}} that contains You can reset a serial port's RTS and DTR signals on Windows startup by creating a ''Windows batch'' file containing the appropriate command and then create a shortcut to this batch file in the {{{Windows Startup Folder}}}. To reset COM3's RTS and DTR signals, for example, use Windows Notepad to create a batch file named {{{RESETCOM3.bat}}} that contains
Line 9: Line 9:
Then create a shortcut to {{{RESETCOM3.bat}}} in your Windows Startup Folder. On Windows XP, the pathname of the {{{Windows Startup Folder}}} is

{{{C:\Documents and Settings\%username%\Start Menu\Programs\Startup}}}

where {{{%username%}}} is the username you used to log in to Windows.

On Windows 7, the pathname of the {{{Windows Startup Folder}}} is

{{{C:\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup}}}

The easiest way to create a shortcut is by running two instances of Windows Explorer. In the first instance, navigate to the folder in which you created {{{RESETCOM3.bat}}}; in the second instance, navigate to the Windows Startup Folder. Then depress-and-hold the ALT key while dragging {{{RESETCOM3.bat}}} from the first instance of Windows Explorer to the second; when you release the left mouse button, a shortcut to {{{RESETCOM3.bat}}} will appear in the Windows Startup Folder.

Resetting a Serial Port's RTS and DTR Signals when Windows Starts

de Joe W4TV

You can reset a serial port's RTS and DTR signals on Windows startup by creating a Windows batch file containing the appropriate command and then create a shortcut to this batch file in the Windows Startup Folder. To reset COM3's RTS and DTR signals, for example, use Windows Notepad to create a batch file named RESETCOM3.bat that contains

MODE COM3; dtr=off rts=off

On Windows XP, the pathname of the Windows Startup Folder is

C:\Documents and Settings\%username%\Start Menu\Programs\Startup

where %username% is the username you used to log in to Windows.

On Windows 7, the pathname of the Windows Startup Folder is

C:\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

The easiest way to create a shortcut is by running two instances of Windows Explorer. In the first instance, navigate to the folder in which you created RESETCOM3.bat; in the second instance, navigate to the Windows Startup Folder. Then depress-and-hold the ALT key while dragging RESETCOM3.bat from the first instance of Windows Explorer to the second; when you release the left mouse button, a shortcut to RESETCOM3.bat will appear in the Windows Startup Folder.

[:TransceiverControl:Transceiver Control]

[:GettingStarted:Getting Started with DXLab]

ResetCOMDTRRTS (last edited 2018-07-04 19:41:50 by AA6YQ)