RTS Line Signall Resetting Basic Stamp BS2 when Using Matlab
bech
Posts: 2
Here is the situation...
I have a BS2p24 in the Super Carrier Board. The PC I am using has three built in serial ports (and is running WinXP). I have the Super Carrier Board connected to Com2. I use the Basic Stamp editor to program the BS2p24 just fine. My firmware is programmed such that the BS2 will react when I send it certain serial commands (say switch a relay when I send the "#" command). I use Matlab to send these commands. I also use Matlab to talk to another serial device at the same time, which is on Com1. For whatever reason, when I open a connection to Com1 in Matlab, it sends out two short pulses on the Com2 RTS line. The BS2p24 detects these pulses and resets, which is a problem for me. In terms of the Basic Stamp, should it be resetting when these pulses come on the RTS line? If so, is there a way I can stop it from doing that? (I need to figure out why Matlab is sending the pulses out on Com2 in the first place when I only use Com1, but that is for a different forum).
Thanks.
I have a BS2p24 in the Super Carrier Board. The PC I am using has three built in serial ports (and is running WinXP). I have the Super Carrier Board connected to Com2. I use the Basic Stamp editor to program the BS2p24 just fine. My firmware is programmed such that the BS2 will react when I send it certain serial commands (say switch a relay when I send the "#" command). I use Matlab to send these commands. I also use Matlab to talk to another serial device at the same time, which is on Com1. For whatever reason, when I open a connection to Com1 in Matlab, it sends out two short pulses on the Com2 RTS line. The BS2p24 detects these pulses and resets, which is a problem for me. In terms of the Basic Stamp, should it be resetting when these pulses come on the RTS line? If so, is there a way I can stop it from doing that? (I need to figure out why Matlab is sending the pulses out on Com2 in the first place when I only use Com1, but that is for a different forum).
Thanks.
Comments
You are right, it is the DTR line (Pin 4), and it is also on RTS line (Pin 7). I must have stopped measuring signals when I saw this strange signal on Pin 7. Thanks for the suggested options. I am working with Matlab to figure out why a signal is being sent out at all on Com2, when I only open a connection to Com1.