Tiny GSM alarm
Moderators: pedja089, stojke369, [eDo], trax
Re: Tiny GSM alarm
Could you connect your RS232<->TTL cable to sniff the communication between alarm and GSM phone? Just connect GND (Vss) of GSM phone to GND (Vss) of your RS232<->TTL cable. Now if you want to sniff what is PIC sending to Phone, you connect: RX of GSM phone to RX of your RS232<->TTL cable, and to sniff what is GSM sending to PIC you connect: TX of GSM phone to RX of your RS232<->TTL cable.
It seems that PIC is expecting some reply from phone which it never receives. Probably because Siemens M35 and A60 are not 100% compatible and that you will need to do some changes to PIC source code (I can send it to you).
It seems that PIC is expecting some reply from phone which it never receives. Probably because Siemens M35 and A60 are not 100% compatible and that you will need to do some changes to PIC source code (I can send it to you).
Re: Tiny GSM alarm
Yes, I just wanted to connect the computer's serial port instead of the phone to the PIC via rs232-ttl cable. But you have a better solution - connect it in parallel for sniffing.
You already sent the source code to me a week ago. Thank you for this.
I will check the communications between phone and pic. I will report the results.
You already sent the source code to me a week ago. Thank you for this.
I will check the communications between phone and pic. I will report the results.
Re: Tiny GSM alarm
i have connected the PC-terminal to PIC instead a phone and receive following 3-byte portions:
d0 36 fe
d0 3a fe
d0 3e fe
d0 76 fe
...
and so on, at regular time intervals.
In the terminal window (i use minicom under Linux) it looks like here (please see attached picture)
d0 36 fe
d0 3a fe
d0 3e fe
d0 76 fe
...
and so on, at regular time intervals.
In the terminal window (i use minicom under Linux) it looks like here (please see attached picture)
- Attachments
-
- strange bytes
- minicom_screen.png (15.52 KiB) Viewed 10415 times
Re: Tiny GSM alarm
I forgot to tell you to set baud rate to 19200. You should get readable characters in minicom, not some "codes".
also, are you sure you have the correct crystal on that PIC?
also, are you sure you have the correct crystal on that PIC?
Re: Tiny GSM alarm
I received following commands on 19200 baud rate:
ATZ
ATE0
ATV0
AT+CPIN=0000
AT+CLIP=1
AT+CPBS=”SM”
AT+CPMS=”SM”,”SM”,”SM”
The problem that i see: my modem does not support the AT+CLIP, AT+CPBS, AT+CPMS commands.
When i send their to modem by hand, i received the ERROR.
I will look similar commands for Siemens A60. However, I can not find some AT command references for my phone like this http://www.cvut.org/36ami/AT_C35i.pdf
If you mean osсillator, i use 10MHz.
ATZ
ATE0
ATV0
AT+CPIN=0000
AT+CLIP=1
AT+CPBS=”SM”
AT+CPMS=”SM”,”SM”,”SM”
The problem that i see: my modem does not support the AT+CLIP, AT+CPBS, AT+CPMS commands.
When i send their to modem by hand, i received the ERROR.
I will look similar commands for Siemens A60. However, I can not find some AT command references for my phone like this http://www.cvut.org/36ami/AT_C35i.pdf
Maybe I did not understand what you mean in 'correct crystal'.trax wrote: ...also, are you sure you have the correct crystal on that PIC?
If you mean osсillator, i use 10MHz.
Re: Tiny GSM alarm
Yes, I meant the correct crystal VALUE
OK, it seams that you might not be able to use A60 phone after all. Keep looking for alternative commands, maybe you can figure something out.
OK, it seams that you might not be able to use A60 phone after all. Keep looking for alternative commands, maybe you can figure something out.
Re: Tiny GSM alarm
I really do not know your language, sorry guys. I am from Ukraine.
Actually, I know English is not so good also.
But some of your words I know, because they are similar to my native language.
trax, thank you for help !
I do not lose a hope to connect A60. I will let you know If I find a solution.
Actually, I know English is not so good also.
But some of your words I know, because they are similar to my native language.
trax, thank you for help !
I do not lose a hope to connect A60. I will let you know If I find a solution.
Re: Tiny GSM alarm
Ok great!
Re: Tiny GSM alarm
@viktor_u
Greetings my friend, I build this Alarm on Siemens C35 and at same time I have similar phone Siemens C45 and both work just fine the hardware is the same as Siemens M35 that trax use in this project. You can try to find some of this phone models. One friend of mine try this project on Siemens A55 and have some errors too then he try siemens c35 and work out of the box.
I hope that peace will win in Ukraine <3
Greetings my friend, I build this Alarm on Siemens C35 and at same time I have similar phone Siemens C45 and both work just fine the hardware is the same as Siemens M35 that trax use in this project. You can try to find some of this phone models. One friend of mine try this project on Siemens A55 and have some errors too then he try siemens c35 and work out of the box.
I hope that peace will win in Ukraine <3
Re: Tiny GSM alarm
Happy New Year, friends!
eDo, thanks for the advice and suggestions. I also hope that in Ukraine will be peace. I wish peace to All in new year.
Phone M35i I still could not find. But I found another phone - A65. As it is written in the article, it should work without problems also as M35i.
Ok, the sim-card of phone has only one phone-number in the phone-book. When I connect the phone to the equipment it seems initialized correctly. In the terminal program (minicom) that is connectet to the hardware and phone (Rx) via serial port, I see the following messages:
ATZ
OK
ATE0
OK
0
+CPMS: 2,10,2,10,2,10
0
After initializing i see the LED blinks duration of 2 seconds. It seems correctly.
However, when I connect the contact S (Sensor) to GND then nothing happens.
I do not see anything in the terminal program. The connected phone do not call or send sms to my another phone.
DIP switch:
2,3 - ON
4 - ON/OFF
1,5,6,7,8 - OFF
What do I need to take the next step for debugging. What do I need to check?
Thanks for your help.
eDo, thanks for the advice and suggestions. I also hope that in Ukraine will be peace. I wish peace to All in new year.
Phone M35i I still could not find. But I found another phone - A65. As it is written in the article, it should work without problems also as M35i.
Ok, the sim-card of phone has only one phone-number in the phone-book. When I connect the phone to the equipment it seems initialized correctly. In the terminal program (minicom) that is connectet to the hardware and phone (Rx) via serial port, I see the following messages:
ATZ
OK
ATE0
OK
0
+CPMS: 2,10,2,10,2,10
0
After initializing i see the LED blinks duration of 2 seconds. It seems correctly.
However, when I connect the contact S (Sensor) to GND then nothing happens.
I do not see anything in the terminal program. The connected phone do not call or send sms to my another phone.
DIP switch:
2,3 - ON
4 - ON/OFF
1,5,6,7,8 - OFF
What do I need to take the next step for debugging. What do I need to check?
Thanks for your help.
Re: Tiny GSM alarm
Hi,
Please ignore my questions in previous message. I already resolved the problem.
the problem was that sms message is not saved in the sim card (i dont know why) by the phone menu.
For resolving, I used command AT+CMGW for save sms message in pdu format to sim card.
Please ignore my questions in previous message. I already resolved the problem.
the problem was that sms message is not saved in the sim card (i dont know why) by the phone menu.
For resolving, I used command AT+CMGW for save sms message in pdu format to sim card.
Re: Tiny GSM alarm
Hi,
Maybe it's useful for those who will use the Siemens A60 or A65 phones. These phones are moving to 'Airkraft mode' after switch on.
In this state, not all AT-commands are available via serial port.
AT-commands that relate to the SIM card does not work until you confirm the 'switch on' of the phone.
And that was the main problem why the project did not work with these phones.
Unfortunately, 'Aircraft mode' can not be disabled through the phone user menu.
But this mode can be disabled using following hack:
1. Find and run the special program Joker v0.3.5.6 that use for loading of siemens firmwares.
2. Select tab '?' in Joker menu
3. Press button “0071 EEP”. That's all. Aircraft is disabled.
Maybe it will help someone.
Maybe it's useful for those who will use the Siemens A60 or A65 phones. These phones are moving to 'Airkraft mode' after switch on.
In this state, not all AT-commands are available via serial port.
AT-commands that relate to the SIM card does not work until you confirm the 'switch on' of the phone.
And that was the main problem why the project did not work with these phones.
Unfortunately, 'Aircraft mode' can not be disabled through the phone user menu.
But this mode can be disabled using following hack:
1. Find and run the special program Joker v0.3.5.6 that use for loading of siemens firmwares.
2. Select tab '?' in Joker menu
3. Press button “0071 EEP”. That's all. Aircraft is disabled.
Maybe it will help someone.
Re: Tiny GSM alarm
Thanks for this info