Shop OBEX P1 Docs P2 Docs Learn Events
Please Help: Caller ID and BS2 source code — Parallax Forums

Please Help: Caller ID and BS2 source code

ArchiverArchiver Posts: 46,084
edited 2004-05-19 22:02 in General Discussion
HELP PLEASE!
I'm an undergaduate EE student and I'm very interested with
serial communication.
My goal is to transfer the caller ID information from a Calling
Number Identification Circuit (CNID) to my BS2 on a Basic Stamp
Activity Boad, and finally out into my computer via RS 232 line(I
would like to eventually use C++ to accept this infomation.)

The CNID is a MT8841 1200 baud BELL 202 and CCITT V.23 with a Serial
Data output.

These links are the detailed infomation about the MT8841:

DATASHEET: http://assets.zarlink.com/DS/zarlink_MT8841_JAN_01.pdf
APPLICATION: http://assets.zarlink.com/AN/msan_144.pdf

As of now, I just need to make sure i'm transfering data information
correctly fom CNID to BS2 and I do this by using the DEBUG command.

Unfotunately, I'm getting different results. Sometimes, I will get
the right phone number but eveything else are
different/unwanted/strange characters. I also understand that there
are some priliminary information sent about the incoming caller id
and this is descibed on the PDF files. I tried skipping those
information by using PAUSE and/or WAIT but with various value for
PAUSE and varius expected character for WAIT. both did not wok.

I was wondering if any of you could PLEASE help me with this
matter. Thank you.

HERE are some CODES I've used:
'{$STAMP BS2}

msg VAR BYTE(26)
msg(25) = 0

get_data:
PUASE 20
SERIN 0, 813, [noparse][[/noparse]STR msg]
DEBUG STR msg
GOTO get_data

incoming phone number calling --> 619-851-6211
'{$STAMP BS2}

msg VAR BYTE(26)
msg(25) = 0

get_data:
PUASE 20
SERIN 0, 813, [noparse][[/noparse]WAIT("619"), STR msg]
DEBUG STR msg
GOTO get_data

For preliminiary information that I want to skip (i.e. channel
seizure signal, mark signal, message type word, message length word,
parameter messages, and check sum word) and just read straight the
CNID information, i.e. name, phone, etc.



'{$STAMP BS2}

msg VAR BYTE(26)
msg(25) = 0

get_data:
PUASE 20
SERIN 0, 813, [noparse][[/noparse]SKIP 5, STR msg]
DEBUG STR msg
GOTO get_data

This is actually a project I have choosen for my school computer
design class.

Any help will do, please!
Sign In or Register to comment.