COM3 Modem Interface
Aaron193
Posts: 27
Hi
I'm Aaron. I have been trying to figure out how to use COM3 Modem control to interface with a Basic Stamp 2. The program is just a simple Serout command, but my real question lies in the circuitry. How would I connect the I/O pin (any one) to·a two pin phone connecter which is connected to the computer's modem port? If anyone can post a picture to better illustrate this, please do.
Post Edited (Aaron193) : 1/7/2007 11:40:39 PM GMT
I'm Aaron. I have been trying to figure out how to use COM3 Modem control to interface with a Basic Stamp 2. The program is just a simple Serout command, but my real question lies in the circuitry. How would I connect the I/O pin (any one) to·a two pin phone connecter which is connected to the computer's modem port? If anyone can post a picture to better illustrate this, please do.
Post Edited (Aaron193) : 1/7/2007 11:40:39 PM GMT
Comments
If that's true, it's not going to work. A telephone signal is a 24 volts AC signal (with Ring voltage of -48 volts DC). There's NO way a BS2 can generate that without external circuitry. Nor do most people really want or need to do this -- what are you trying to do?
You can purchase a USB to serial adapter for $30 or so which will directly connect to the BOE and work fine as COM 4 through 16.
You simply can't use the RJ-11 connector on your Modem card with the BS2 -- that's a "Phone" connector, intended to be connected to your house's phone line.
MAIN:
SEROUT 16, 16468, [noparse][[/noparse]"Hi there", 13]
PAUSE 1000
GOTO MAIN
This should send the "Hi there" message once a second to your PC's serial port. You can see this from the Parallax IDE by opening a "DEBUG" terminal to make sure it works. Then, disconnect the Debug terminal, and bring up your VB program which should try to 'listen' to the same COM port you used to program the BS2.
If the VB program says the port is "Busy", you may have to bring down the Parallax IDE to free up the port. As long as you've turned off your Debug Terminal, this shouldn't happen.