Interfacing with phone line.
HI,
·I want to make or get made the following project.
·From a PC I want to dial a phone number and from the other side
·I need a device that answer this call and send the data accumulated.
·The remote device will be counting 3 different pulse during the day.
·And at night I want to make the call and get these count.
·I can make the code in the PC and place the call using a modem.
·My·problem is with the remote modem and the microcontroller.
·Can someone help me?
·
·I want to make or get made the following project.
·From a PC I want to dial a phone number and from the other side
·I need a device that answer this call and send the data accumulated.
·The remote device will be counting 3 different pulse during the day.
·And at night I want to make the call and get these count.
·I can make the code in the PC and place the call using a modem.
·My·problem is with the remote modem and the microcontroller.
·Can someone help me?
·
Comments
·This Cermetek is only the modem so I will need
·a microcrotroller to control the modem and supplies the
·Data.
·Do you know a product that has this Cermetek and a microcontroller
·build in a sigle board?
·
Which is "an RS-232 external modem". These have an "auto-answer" mode, which would let the modem pick up the phone, and generate an "off-hook" signal for your 'remote' BS2. The remote BS2 (mounted on an RS-232 BOE) uses that signal then to know that somebody is "calling" it, and begins its part of the data transfer hand-shake.
You can connect "in-bound" RS-232 status signals (like 'Ring' and 'off-hook') to the BS2 by simply using a 22 Kohm resistor in-line to 'clip' the signal to zero to +5 volts. If you then use the programming port as the modem connection, everything coming to it from the Modem will be 'echoed' back to the modem by the BS2 hardware, so your 'local' PC program will need to 'filter' those out. But that keeps the hardware simple.
For a few dollars more, you can buy one of these for your remote BS2: http://www.kronosrobotics.com/xcart/product.php?productid=16167&cat=287&page=2
For $13 or so, this gives you a true RS-232 +- 10 volt to TTL converter, so you could then use ANY of your I/O pins on the BS2 to monitor the Modem signals, recieve data from the modem, and send data back.
Oh, and for testing, where you want to connect your modems back-to-back in the same room, you can use this: http://www.jagshouse.com/modem.html
Post Edited (allanlane5) : 5/20/2008 2:58:45 PM GMT
A Parallax Stamp is more than capable of counting pulses and controlling a Cermetek modem. If the pulses are shorter than maybe 20 milliseconds or occur more often than 50 times a second, you may need a little external logic to make sure you don't miss them, particularly if they can occur at the same time.
· increment a mechanical counter and has long duration.
· The BS2 will get this pulse and increment a var in Memory
· and this var will be send using the modem.
· But I will need 3 port to get this pulse.
··Do you know a board that can hold the BS2 and the Cermetek modem?
Regarding the "Cermetek" -- Parallax USED to make a "Cermetek" based modem App-Mod, which would plug directly into the App-Mod header on the BOE-board -- which I agree made a very nice package.
Parallax doesn't make the Cermetek App-Mod anymore.· I'm not sure Cermetek makes their chip any more -- but interfacing to it was NOT 'trivial', the phone-line interface requires a device registered with the phone company before you plug it in.· "Stand-alone" modems like the one indicated above have done all this work for you, and all you need is an RS-232 port to talk to them (using the Hayes compatible command set).
RS-232 interfacing is very easy, compared to wiring in a board to carry the Cermetek modem chip, IF you can find a Cermetek modem chip.
Then all you'll need will be a BOE with BS2 chip, and some RS-232 cables (null-modem on the BS2 end, since you'll have a Modem device (the BOE) talking to a Modem device (the Modem) ).· And maybe a box to put the BOE in if necessary.· And the wall-wart supply for the BOE.
Post Edited (allanlane5) : 5/20/2008 3:38:16 PM GMT
and there are 3 lines that generate different pulse so the 3 port.
You suggest a standard external modem controlled by the BS2 using RS-232?
Note: Use the TT7-DTMF receiver from Ramsey Electronics http://www.ramseyelectronics.com/cgi-bin/commerce.exe?preadd=action&key=TT7.
·········Leave out·the large IC (SN74154) and.........
········1.·Solder a lead from its pin 19 on·it's pad·to·jumper P3 on the·BS2.
········2. Solder·4 leads from it's pin 23-20 to jumpers P8-P11 on the BS2.
······· 3. Solder J1 to GRD. and TALK on phone com circuit board·below
Modified code·added for this circuit.
Conect the unused·BS2 Pins P4·- P6 to a·74164·(serial in / paralel out) shift register and you can control up to·8·devices.
Post Edited (CelticLord) : 6/26/2008 5:53:23 AM GMT
2. It does not solve the data transfer problem.
3. I strongly suspect it's not using an approved phone company interface, so there may be legal troubles there.
4. Simply attaching a stand-alone modem to an RS-232 port solves all three problems at the same time, for $70, legally.
1. use a "real" modem on each end to be legally connected to the phone system.
Available for almost nothing at yard sales, office equipment clearance sales, e-bay. Almost any speed capability will work fine with the Stamp.
2. the modem will give easily implemented auto answer for the remote end.
3. the stamp can easily store the data, detect that the modem has gone on-line and then download the data.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·