TwoWay Thing - Dvosmjerni GSM Kontroler

Rasprava o el. shemama, pitanja i diskusije. Ako ti treba neka shema, ovdje pitaj.

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Napravio sam jedan HEX za NOKIA telefone. Testirao i fercera!

Razlika je u nekim AT komandama i u odgovorima od strane telefona, Nokia salje ovako a Trium onako... nisu 100% kompatibilni.

Trax
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Dorađena je opcija CALL kao dojave alarma. :)
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Hi Trax,
Please can you tell me how it works, circuit function in ENGLISH please..
Got also this one question..Does it works on NOKIA phone? like 5100/6110 or some model with embedded modem 6210/6250/7110..
Thanks and best regards..

Kasamiko
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by 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
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Hi Trax,
This is my SMS Service Centre number +639180000101, and my password is TEST. Based on the screenshot I attached is this correct?

Image

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
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

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:

Code: Select all

AT+CMGF=1 <enter>

the response: OK

AT+CMGL="ALL" <enter>

the response: OK or List Of Messages From Your Phone
Trax
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

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
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

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
buco

Post by buco »

@Trax sijecas se prijedloga da bitrate rijesimo sa automatskim prepoznavanjem "guard " byte-a u ovom slucaju je to "A" tad bi freq==const.
Ali dobro kad nadijes vremena za diskusiju o izvrsnom kodu 2wTjavi !!
Pozdrav
PS vec sam nesto piso o tome i samoj metodi koja je veoma jednostavna.
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Da da sjecam se, trebalo bi to napraviti, bilo bi odlicno.. sad trenutno moram napraviti neki bezvezni uredjaj za dekodiranje RC5 IR daljinskih pa se malo zezam sa tim...
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Oww..I missed those diodes..I was very sleepy that time, 1:30 in the morning.. :lol:

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?
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.
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.
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.
Ok Trax well said.. :D I'll try that and post the result here later.

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
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Hello,
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.
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"...

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
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Hi Trax,
Just want you to know that it is WORKING PERFECTLY now!! :lol:
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? :D

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
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Hello,

It seems it's working :D !!!

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? 8)

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
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

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?
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Yes that's OK because you didn't activate "Z" command.

Send this command:

Code: Select all

Z.1
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
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

ok Trax..now I got it..
Now I'll make a PCB for a more professional look..:lol:
Thanks again..
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by 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
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Nice one Trax..
Will done...very clean and very professional...
Thanks heaven I found this forum.. :wink:
rhonnz
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Hi Trax,
A RELAY status monitor is a great add-on..and if there is still a little room to put a command to check our battery status (AT+CBC) is another bonus I think..
What can you say about it?
Regards..
rhonnz
Post Reply