TwoWay Thing - Dvosmjerni GSM Kontroler
Moderators: pedja089, stojke369, [eDo], trax
Hi kasamiko,
There is a description translated to english at this address: http://www.elektronika.ba/projekti/fajl ... lfa_EN.rar
This version (v2.03.alfa) works ONLY with NOKIA phones with embedded modem like 7110. I have tested it only on 7110. It would be great if you could try it on your network. It should work properly. Tell me, what are the GSM phone number lengths at your country? I hope they aren't longer than 16 digits because that's the maximum for this device...
Trax
There is a description translated to english at this address: http://www.elektronika.ba/projekti/fajl ... lfa_EN.rar
This version (v2.03.alfa) works ONLY with NOKIA phones with embedded modem like 7110. I have tested it only on 7110. It would be great if you could try it on your network. It should work properly. Tell me, what are the GSM phone number lengths at your country? I hope they aren't longer than 16 digits because that's the maximum for this device...
Trax
Hi Trax,
This is my SMS Service Centre number +639180000101, and my password is TEST. Based on the screenshot I attached is this correct?
What is the purpose of putting the SMS Service Centre number?
But I never made it to work..I'm using Nokia 6210 and connected it at the DIY DLR-3P and it is working perfectly.
I'll post my schematic here later..
BTW I only used the relay portion and left the sensor input unconnected..is it ok?
This is my SMS Service Centre number +639180000101, and my password is TEST. Based on the screenshot I attached is this correct?
What is the purpose of putting the SMS Service Centre number?
But I never made it to work..I'm using Nokia 6210 and connected it at the DIY DLR-3P and it is working perfectly.
I'll post my schematic here later..
BTW I only used the relay portion and left the sensor input unconnected..is it ok?
rhonnz
Hello,
It seems OK. Service centre number is used for sending messages. It is needed to initialize the Nokia properly.
You should try connecting DLR cable to your Nokia and PC and opening HyperTerminal program. Connect to proper COM port at 19200 bps (8N1) and try typing these commands:
Trax
It seems OK. Service centre number is used for sending messages. It is needed to initialize the Nokia properly.
You should try connecting DLR cable to your Nokia and PC and opening HyperTerminal program. Connect to proper COM port at 19200 bps (8N1) and try typing these commands:
Code: Select all
AT+CMGF=1 <enter>
the response: OK
AT+CMGL="ALL" <enter>
the response: OK or List Of Messages From Your Phone
Yes Trax i tested it on hyperterminal and it works just fine.
AT gives me OK, same as ATZ.
BTW here is the schematic of my circuit..
http://www.elektronika.ba/projekti/fajl ... ma_BAD.gif
Did I make right? one thing is not clear to me, PIN18 of PIC is labeled TX, should I connect it to TX pin of my Nokia or this is the TX out of PIC which I should connect to RX of my Nokia?
Regards
AT gives me OK, same as ATZ.
BTW here is the schematic of my circuit..
http://www.elektronika.ba/projekti/fajl ... ma_BAD.gif
Did I make right? one thing is not clear to me, PIN18 of PIC is labeled TX, should I connect it to TX pin of my Nokia or this is the TX out of PIC which I should connect to RX of my Nokia?
Regards
rhonnz
Hello,
You didn't connect it right that's one reason it doesn't work. I've made this DLR-3P cable (ATROX) http://www.elektronika.ba/projekti/fajl ... _atrox.gif which has 3 more NPN transistors... and here is the reason for them. The DLR-3P cable from ATROX.AT is powered by the Nokia phone itself, right? It doesn't run on 5V but less than that, lets say some ~3V. So, Nokia expects 0V and ~3V as data inputs. I am afraid that you could damage your phone using this circuit because 5Volts may be too much for Nokia... but if you managed to send some messages as I read from here: http://www.edaboard.com/viewtopic.php?t=121174 than it's all OK.
Another thing is baud rate (com port speed). On EDABOARD forum (the upper link) you have sent text message at 9600 bauds right? Well, this GSM Kontroler uses 19200 (double that speed) to communicate to 7110. All you need to do is use 4MHz chrystal instead of 8MHz that you are using now. And that, only if your 6210 doesn't work at 19200! You can test it in HyperTerminal, if it will talk to you at 19200.
So, replace RX and TX (RA0 and RA1) in your schematic diagram (like I did in picture below) and decrease to 4MHz (only for the gsm kontroler pic) if your Nokia doesn't support 19200 speed.
Another thing, your D3, D4, D5 and D6 are connected the other way around I have fixed that too.
P.S. What program are you using to write these schematics?
http://www.elektronika.ba/projekti/fajl ... a_GOOD.gif
Trax
You didn't connect it right that's one reason it doesn't work. I've made this DLR-3P cable (ATROX) http://www.elektronika.ba/projekti/fajl ... _atrox.gif which has 3 more NPN transistors... and here is the reason for them. The DLR-3P cable from ATROX.AT is powered by the Nokia phone itself, right? It doesn't run on 5V but less than that, lets say some ~3V. So, Nokia expects 0V and ~3V as data inputs. I am afraid that you could damage your phone using this circuit because 5Volts may be too much for Nokia... but if you managed to send some messages as I read from here: http://www.edaboard.com/viewtopic.php?t=121174 than it's all OK.
Another thing is baud rate (com port speed). On EDABOARD forum (the upper link) you have sent text message at 9600 bauds right? Well, this GSM Kontroler uses 19200 (double that speed) to communicate to 7110. All you need to do is use 4MHz chrystal instead of 8MHz that you are using now. And that, only if your 6210 doesn't work at 19200! You can test it in HyperTerminal, if it will talk to you at 19200.
So, replace RX and TX (RA0 and RA1) in your schematic diagram (like I did in picture below) and decrease to 4MHz (only for the gsm kontroler pic) if your Nokia doesn't support 19200 speed.
Another thing, your D3, D4, D5 and D6 are connected the other way around I have fixed that too.
P.S. What program are you using to write these schematics?
http://www.elektronika.ba/projekti/fajl ... a_GOOD.gif
Trax
Oww..I missed those diodes..I was very sleepy that time, 1:30 in the morning..
Actually I'm planning to power the 2 PIC's by the phone alone, and the relay circuit will by powered by the external power supply. Do you think it will work without using those 3 transistors?
Here is the revised schematic based on your correction. Kindly upload or transfer it for you convennience. Thanks
http://img.photobucket.com/albums/v516/ ... l_Rev1.gif
BTW: I'm using Eagle to draw it..
rhonn
Actually I'm planning to power the 2 PIC's by the phone alone, and the relay circuit will by powered by the external power supply. Do you think it will work without using those 3 transistors?
In the DLR-3P circuit I was able to used it in my Nokia 6210 both the 4 and 8 Mhz version with not problem at all on Hyperterminal.Another thing is baud rate (com port speed). On EDABOARD forum (the upper link) you have sent text message at 9600 bauds right? Well, this GSM Kontroler uses 19200 (double that speed) to communicate to 7110. All you need to do is use 4MHz chrystal instead of 8MHz that you are using now. And that, only if your 6210 doesn't work at 19200! You can test it in HyperTerminal, if it will talk to you at 19200.
Ok Trax well said.. I'll try that and post the result here later.So, replace RX and TX (RA0 and RA1) in your schematic diagram (like I did in picture below) and decrease to 4MHz (only for the gsm kontroler pic) if your Nokia doesn't support 19200 speed.
Here is the revised schematic based on your correction. Kindly upload or transfer it for you convennience. Thanks
http://img.photobucket.com/albums/v516/ ... l_Rev1.gif
BTW: I'm using Eagle to draw it..
rhonn
rhonnz
Hello,
Did you try connecting to your Nokia 6210 at speed 19200bps from HyperTerminal? Maybe it supports both speeds so you don't have to switch to 4MHz (for the PIC on the right).
You can try powering both pi*s from the phone, I don't know what will happen If you have successfully sent a text-message without those 3 transistors that you have NO problem.
Trax
That's not the chrystal I was talking about... I was talking about the XTAL of "GSM Kontroler's" PIC. The one on the right where you stated: "Use 8MHz for 7110 and 4MHz for 6210"...In the DLR-3P circuit I was able to used it in my Nokia 6210 both the 4 and 8 Mhz version with not problem at all on Hyperterminal.
Did you try connecting to your Nokia 6210 at speed 19200bps from HyperTerminal? Maybe it supports both speeds so you don't have to switch to 4MHz (for the PIC on the right).
You can try powering both pi*s from the phone, I don't know what will happen If you have successfully sent a text-message without those 3 transistors that you have NO problem.
Trax
Hi Trax,
Just want you to know that it is WORKING PERFECTLY now!!
I used the last circuit I just posted above..
And as I've said I powered the two PIC's by the phone alone..and the relay and driver circuit by external power supply (I used the Nokia charger to power the relay and driver circuit).
This is what I got so far.
Master phone command Slave phone reply
L.PASS = OK!
?. = SENSOR - A=Off B=Off C=Off D=Off
Can you confirm to me that it is working now?
Just a suggestion:
Since there is already a command ?. or ?.ABCD to check the sensors. How about to check the STATUS of 4 relays? is it possible too?
Thanks again Trax for all your patience..
BR
rhonn
Just want you to know that it is WORKING PERFECTLY now!!
I used the last circuit I just posted above..
And as I've said I powered the two PIC's by the phone alone..and the relay and driver circuit by external power supply (I used the Nokia charger to power the relay and driver circuit).
This is what I got so far.
Master phone command Slave phone reply
L.PASS = OK!
?. = SENSOR - A=Off B=Off C=Off D=Off
Can you confirm to me that it is working now?
Just a suggestion:
Since there is already a command ?. or ?.ABCD to check the sensors. How about to check the STATUS of 4 relays? is it possible too?
Thanks again Trax for all your patience..
BR
rhonn
Last edited by kasamiko on 13-09-2005, 09:46, edited 1 time in total.
rhonnz
Hello,
It seems it's working !!!
Unfortunatelly there is no command to check the relay state YET. I most probably will implement it in a few days as it is not a problem at all.
Can you make a picture of it and post here?
You should try activating a sensor (connecting it to GND) and see if it will call you back or send you an SMS (depends on the "M" command). I thing it will call you by default.
Trax
It seems it's working !!!
Unfortunatelly there is no command to check the relay state YET. I most probably will implement it in a few days as it is not a problem at all.
Can you make a picture of it and post here?
You should try activating a sensor (connecting it to GND) and see if it will call you back or send you an SMS (depends on the "M" command). I thing it will call you by default.
Trax
Hi Trax,
Ok I'll post the picture of my finish project here later..Since today it is still in the breadboard "state"..
Nice to hear your going to implement my suggested command..Thanks
I tried pulling sensor A to ground at it send SMS to me like this SENSOR -A..endlessly as long as the sensor is activated..is this how it works?
Ok I'll post the picture of my finish project here later..Since today it is still in the breadboard "state"..
Nice to hear your going to implement my suggested command..Thanks
I tried pulling sensor A to ground at it send SMS to me like this SENSOR -A..endlessly as long as the sensor is activated..is this how it works?
rhonnz
Yes that's OK because you didn't activate "Z" command.
Send this command:
and you will get only ONE message for one sensor. After, ONLY THAT sensor is disabled and you must re-configure it with "M" command to send you another alarm message.
There is a reason for all that. I could make it send one message, and then wait for the sensor to turn off but what if the sensor gets stuck to GND, than the whole GSM Kontroler is disabled by waiting for that sensor to turn off.
Trax
Send this command:
Code: Select all
Z.1
There is a reason for all that. I could make it send one message, and then wait for the sensor to turn off but what if the sensor gets stuck to GND, than the whole GSM Kontroler is disabled by waiting for that sensor to turn off.
Trax
Evo nacrtao sam kompletnu shemu. Uredjaj se napaja iz telefona (nisam pronasao nigdje dokument da vidim koliko struje se smije povuci iz Nokije).
http://www.elektronika.ba/projekti/fajl ... _shema.gif
Trax
http://www.elektronika.ba/projekti/fajl ... _shema.gif
Trax