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

Post by kasamiko »

Hi Trax,
I got this bug in my SMS controller..
Upon connection to my 6210, the LED blinks for about 10 or 15 second then stays ON for a while then blinks again..which I think is normal.
Now when I txt the command 1.Abcd the controller will read the command then turn my LED connected output A. Then I'll send 0.abcd to turn OFF all the port (ABCD) again but this time the Indicator LED will remain lighted (NOT BLINKING) and it will not process the new message..IT SEEM THAT IT HANGS??
I have to disconnect and reconnect it again to make it works..
did I missed something?

@Buco
Sure I will participate and join the discussion, give my comments and suggestion..but I can't share my comments on actual hardware performance.. :cry:
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Hello kasamiko,

To turn OFF or ON any relay you must send it's name in UPPERCASE. If you want to turn ON relay A you will send this:

Code: Select all

1.Abcd
To turn it off you will send this:

Code: Select all

0.Abcd
To turn off ALL relays you should send:

Code: Select all

0.ABCD
The TwoWayThing will ignore all lowercase letters (sensors and relays).

Another thing, here is something that you CAN'T DO:

Code: Select all

1.BCDA
0.BDBC
1.BCAD
The first command will not turn on all relays because the letter-order is not right. It should be: A, B, C and the last D. The second command will also not work. The third command WILL TURN ON ONLY RELAY "D".

Try again and report here if you still have the same problem :?

Trax
Last edited by trax on 17-09-2005, 15:41, edited 1 time in total.
User avatar
kasamiko
Pocetnik na forumu
Pocetnik na forumu
Posts: 48
Joined: 29-01-2005, 18:55
Location: Philippines
Contact:

Post by kasamiko »

Trax,
The problem is in my phone connector..I clean all contacts and as of now never encounter the same problem again.. :D
Just want to ask something..How can I modify it to ignore the sensors? what portion of the code I will comment out to disable the sensor.
I only want to trigger the relay ON/OFF via text message and the 15 seconds scanning of sensors introduces some delay..
I hope I'm note demanding to much from you.. :oops:
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

@kasamiko, if you have PIC16F628A you can try this NEW version (v3.01)

http://www.elektronika.ba/projekti/fajl ... 1.alfa.rar

In RAR file, you will find a new schematic diagram which is not very much different from previous version. The MCLR pin has a new function: "sensors enable".

This new version also has "Relay status command". Just send:

Code: Select all

H.
and you should get a message like: "Relay - A=off, B=on!, C..bla bla"

Please try if it will work for you. I tested it and it works great :)

Pay attention to new pin: MCLR! Do not connect it to voltage >5V !!! You should use zener-diode to limit the voltage (as in schematic). If you want your sensors to be enabled, connect this pin (MCLR) to GND all the time.

You asked me about the 15~ second pause... it can be fixed, I will explain maybe today...

So, try it with new PIC and let me know if you have any problems.

Trax
buco

Post by buco »

Malo sam pogledao novi file i imam pitanje !!
Zasto jos ovijek za testiranje i trazenje nano koristis ovaj oblik ?

MOVLW 0x42
SUBWF 0x2A,W
BTFSC STATUS,Z

mjesto XORLW naredbe , jer ces ustedjed prostor u flasu i brze ce ti radit
pretrazivacka rutina , primjer [ tj cijelo rijesenje ] sam ti dao u analizi ako se sijecas.
Da i jos nesto, sto ce ti zapravo LED diode ?? kad pokaxivac imas ako to zelis na LCDu GSMa ?? To mi nikako nije jasno , jel to ostalo od ranijih vijezbi s diodama ?
Pozdrav
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Eheej dobro si me podsjetio za XORLW... idem ispraviti sve sa tim!

Kako ti mislis poslati nesto na LCD od mobitela, svega ti? :)
amel
Posts: 8
Joined: 17-09-2005, 19:24
Contact:

Post by amel »

:shock: cestitke za projekt
Dobar fol sa signalizacijom na displeju jos to da se dovede na mijeru .
Pozdrav grupi
no
buco

Post by buco »

Pa cini mi se da te diode sluze kao neki light show , ako ti MCU posalje info da je port aktivan ili nije sto ce ti dioda ?? ionako vidis sto se dogadja .Pa mislim da bi se moglo setiranjem tipke/i za citanje sms-a preko MCUa , ali ionako je jedino vazno koju informaciju ima onaj koji upravlja sustavom preko sms-a na drugom telefornu , tj da je ta informacija 100% tocna . Da i cuo sam da se kod nas rade i prodaju uredjaji ocito s istom idejnom podlogom "valjda ne i vecinskim udijelom FW" za kontrolu alarma automobila , tj dojavu pokusaja provale i sl.
Pozdrav
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,
I'm TOO excited with this version!! :lol:
But today is Sunday here in my place and all the electronics supply store are closed!! :cry:
I'll try it tomorrow..and post the result here.
One thing about the ENABLE input, If I connect it to ground, all sensor monitoring will be enable? if it is unconnected the sensor monitoring is disabled? and the 15 seconds sensor checking is disabled too?
Thanks again.. :wink:
rhonnz
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

buco wrote:Pa cini mi se da te diode sluze kao neki light show , ako ti MCU posalje info da je port aktivan ili nije sto ce ti dioda ?? ionako vidis sto se dogadja .Pa mislim da bi se moglo setiranjem tipke/i za citanje sms-a preko MCUa , ali ionako je jedino vazno koju informaciju ima onaj koji upravlja sustavom preko sms-a na drugom telefornu , tj da je ta informacija 100% tocna . Da i cuo sam da se kod nas rade i prodaju uredjaji ocito s istom idejnom podlogom "valjda ne i vecinskim udijelom FW" za kontrolu alarma automobila , tj dojavu pokusaja provale i sl.
Pozdrav
Zdravo, pa i nije bas neki light show :) Ta LED nam govori da je sve OK sto se tice uredjaja. Recimo, ja sam ovo napravio za instaliranje u automobil, tu treba neka LED da blinka kad covjek zakljuca auto da bi se uvjerio da je sve OK, nema on vremena da svaki put vadi mobitel sa nekog skrivenog mjesta, gleda sta pise na displeju i tako dalje i tako dalje. Zato sluzi ta LE dioda. Ovo je kod mene instalirano u kolima vec duze vremena i radi super.

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

Post by trax »

kasamiko wrote:Hi Trax,
I'm TOO excited with this version!! :lol:
But today is Sunday here in my place and all the electronics supply store are closed!! :cry:
I'll try it tomorrow..and post the result here.
One thing about the ENABLE input, If I connect it to ground, all sensor monitoring will be enable? if it is unconnected the sensor monitoring is disabled? and the 15 seconds sensor checking is disabled too?
Thanks again.. :wink:
Here it is: http://www.elektronika.ba/projekti/fajl ... x_only.rar
buco

Post by buco »

@Trax zar ti ne moze uredjaj poslat poruku da je aktiviran i da je sve OK ? Mislim da je to bolje a usput imas i povratnu informaciju da je potpuno sve u redu . :wink: Sto ce ti dioda ?? nije to vise neka stara logika pa sad treba neki vizualni indikator [ ili zvucni] , vizualizaciju imas ili je lako dodas kao poruku .
Pozdrav
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Naravno da mozes poslati SMS i vidjeti da li je sve OK. Zamisli da svaki drugi dan posaljes SMS i onda ti uredjaj sa druge kartice posalje SMS, znas li koliko to kosta ? :)
buco

Post by buco »

Pa manje nego auto , pogotovo ako je novi :wink:
Znaci dioda je tamo da "javi " da je uredjaj OK ! ? Ali meni se cini da sam vidio nesto vise tih dioda ? na onoj novijoj shemi.
Pozdrav
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

:)

Ma kakvi, ima samo jedna LED, ostale diode su ispravljacke i neophodne su da osiguraju PIC od prenapona kojekakvih senzora u kolima 8)
buco

Post by buco »

Znaci tako zastita ! Nego hoce li ti stogod pomoc onaj programator ?
Pozdrav
User avatar
trax
Administrator sajta
Administrator sajta
Posts: 3509
Joined: 08-01-2005, 18:04
Location: 75k, BA
Contact:

Post by trax »

Vjerovatno hoce, nisam otvorio shemu nemam ovdje Protela instaliranog, a na poslu mi sad trenutno frka pa kad se malo smiri sve onda pogledam, ili ako mi je exportujes u GIF ili nesto slicno.
buco

Post by buco »

Jesi li "sredio" situaciju na poslu? Nezam nisi mi nista odgovorio dal ti je dobra ona shema u EAGLU-4 ? Ja sam imao nekih problema s jednim racunalom i sad bi valjda trebalo bit OK .
Pozadrav
maximus
Posts: 8
Joined: 02-10-2005, 12:58
Location: Manila, Philippines

GSM Controller

Post by maximus »

Greetings to All!
Hello Trax!
Thank you for accepting me in the forum. I m very glad that I found this interesting site even though I'm not familiar with Bosnian language, but electronic schematic speak for itself. :)
I like also too to assemble this great GSM controller of yours 'coz most of the time I am out from the dormitory.
Can I ask you Guys? Is there any AT command for searching in the phone book? Well I do have a school project and I'm thinking of a CelTel
sort of phone pach but instead of using radio, a cellphone. The idea is that when RX cellphone receives a call, the GSM controller enable the relay to patch the landline phone, but before enabling the landline, the GSM controller will scan the phone book(sort of call filtering) if it is regestered, and if not it will not respond to that call.
Is PIC12F628 suitable for this?
I do have ERICSON GA628, is it good for this?
73! maximus
amel
Posts: 8
Joined: 17-09-2005, 19:24
Contact:

Post by amel »

buco wrote:Znaci tako zastita ! Nego hoce li ti stogod pomoc onaj programator ?
Pozdrav
Pozdrav Buco ima li sanse da semu tog programatora i ja dobijem
nemanba@yaho.com
no
Post Reply