|
When Windows boots, it looks for a mouse connected to the serial ports
on the PC. This is probably what is causing the RTS and DTR lines to
be asserted when your PC boots. You can disable this functionality by
setting a flag in your Boot.INI file.
The following articles discuss how to do this:
http://support.microsoft.com/kb/q131976/
http://support.microsoft.com/kb/283063/en-us
On Wed, 26 Mar 2008 06:59:02 +0000 (UTC), "Vihang Patil"
<vihang_patil@yahoo.com> wrote:
>"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
><fsbbp1$luf$1@fred.mathworks.com>...
>> Hello
>> I am trying to develop a circuit that can drive 2
>relay's
>> using RS232's DTR pin( Data Terminal Ready) and RTS
>> (Request To Send).
>> Before I open the serial port, I check the potential on
>> these both pins and I see that they are aroung -11.20 V
>> Now I open the serial port using
>>
>> s1 = serial('COM1');
>> and use
>>
>> s1.RequestToSend = 'on'
>> and
>> s1.DataTerminalReady = 'on'
>>
>> But I dont see any potential across thse 2 pins? They
>are
>> still at -11.20 V. Changing the string from 'on'
>to 'off'
>> also has no effect.
>> P.N: I have only 1 COM port on my pc.
>> Am I missing here something? Please advice
>> Regards
>> Vihang
>
>Thanks Walter fopen(s1) solved that problem. But then, I
>have one problem not directly related to Matlab, but if
>anyone had come across similar problem could probably post
>here.
>My main purpose to access the DTR and RTS pins is to drive
>2 relays. And as walter suggested, fopen(s1) makes the
>potential across DTR pin logic 1 i.e +12V and then
>s1.RequestToSend = 'on' makes RTS pin logic 1 i.e. +12V
>with which I can drive a relay.
>But now, the probem arises("Not a Matlab Part from here"),
>when I turn off the computer and restart it again.
>I see while during the booting process Windows probably
>sends some initialization commands which turn on and off
>these DTR and RTS pins, and because of which my relays
>turn on and off without my consent. Have anyone faced
>similar problems. I would like to know a workaround, if
>any, so that I can disable this check in the booting
>process.
>
>Same thing I have also noticed on the parallel port.
>
>Regards
>Vihang
|