NetCallerID serial interface
pvallada
Posts: 6
Hi,
I am trying to interface a NetCallerID from (UGOTCALL) to my BasicStamp 2. The NetCallerID has a serial port cable that can be connected to the computer. When the phone rings it sends the caller ID infor via the serial port. I can see the data being sent in hyperterminal. However, when I connect it to my Stamp, my SERIN instruction does not detect anything. I have tested my program by sending the same data the NetCallerID sends from a hyperterminal and my program can decode the phone number fine. I suspect I have a HW interface issue. Does anyone know how to interface with the NetCallerID? I made a DB9 connector that ties pins 1,4 and 6 together. Pins 7 and 8 are also tied together.This is the basic connector from the Basic Stamp II manual. This same connector is the one I am using when I send the data from hyperterminal to the Stamp and it works fine.
Thank you very much for your help
Pedro Valladares
I am trying to interface a NetCallerID from (UGOTCALL) to my BasicStamp 2. The NetCallerID has a serial port cable that can be connected to the computer. When the phone rings it sends the caller ID infor via the serial port. I can see the data being sent in hyperterminal. However, when I connect it to my Stamp, my SERIN instruction does not detect anything. I have tested my program by sending the same data the NetCallerID sends from a hyperterminal and my program can decode the phone number fine. I suspect I have a HW interface issue. Does anyone know how to interface with the NetCallerID? I made a DB9 connector that ties pins 1,4 and 6 together. Pins 7 and 8 are also tied together.This is the basic connector from the Basic Stamp II manual. This same connector is the one I am using when I send the data from hyperterminal to the Stamp and it works fine.
Thank you very much for your help
Pedro Valladares
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Please note that you'll need to switch the pins around to make it work.
This is because everyting needs to be either a 'master' or a 'slave' (DTE or DCE. Can't remember wich was which)
and all units are wired like one or the other.
your PC is wired as a master, but the programming board, the CallerID unit, modems and all kinds of other stuff is wired as slaves.
to make two 'slave' units work together you'll needs to switch around a couple of pins.
Assuming a 9pin connector in both ends:
If it needs any hardware Handshaking, you will likely have use this:
I do have a 22k resistor going into P0. I can connect a serial cable from my PC port into my db9 and I get the right data into the stamp. I can decode it and all. The problem arises when I try to connect the NetCallerID the same way. I did switch the Rx and Tx lines around (pins 2 and 3), but I still cannot get the data to flow. I am not using any kind of flow control. Maybe I should try the MAX232 solution as suggested. Where exactly do I find the App note for that?
Thanks again!
Pedro
(you need to use inversed levels if using the resistor)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Here's the SERIN line I am using..
SERIN 0,16572,[noparse][[/noparse]WAIT ("NMBR"),STR serString\10]
DEBUG "Received #: " ,STR serString\10,CR
This is setup to receive at 4800, 8,N,1 using the inverted baud rate. As I mentioned before, this works fine when I send the string from the PC using a terminal program. I just ordered a couple of MAX232 chips and will give that a try. In the meantime, I am going to write a little app for my PC that can take the serial data from the NetCallerID and forward it to another serial port that will be connnected to the STAMP. That way at least I can test the rest of the code and circuit.
Regards,
Pedro
Is the ADM1181 equivalent to the MAX232 chip?
thanks
Pedro
There's one other important difference between the two versions of the MAX232 chips - they use different charge pump capacitors. The Analog Device's ADM1181 and Maxim's MAX232A require (4) 0.1 uF caps, while Maxim's MAX232 and TI's MAX232 require (4) 1uF caps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA