Serial Port trigger

Status
Not open for further replies.

duf

New Member
Hi,
I need help with a idea as follows

I have a pager connected to a vibration sensor and when the pager vibrates the sensor will close sending a + 5v to pin 2 which should trigger the a comm event on the serial port which will start a VB program to make a phone call.

will the +5v cause the com event to trigger, is it safe to apply +5V to pin 2 in the first place.
any ideas on this would be of great help

Duf
 
RS232 port is designed for +/-25V.
Range +3..25V is considered '0' and -3...25V is considered '1'.
applying +5V would be considered zero.
VB can detect com events such as character received etc.
I don't think using data lines (pins 2 and 3) is good idea.
Even if you would apply negative voltage such as -5V, you would
have to pulse it to simulate transfer of one character and trigger event
for VB. I would bring signal to one of hardware handshaking inputs
on the com port.
 
You can use the CTS or DSR lines to detect a high on those particular pins.

I dont know if the pins trigger a comm event,but you sure can monitor them through VB
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…