Documente Academic
Documente Profesional
Documente Cultură
With this circuit we can controll up to 8 devices (4 devices in our example project), by sending a specific
SMS message with any mobile phone. Its very usefull at the cases that, at the place we have the
devices, we have not a wired telephone line. If you have an old ericsson mobile phone and you are not
using it, its the time to build some useful with that. The controlling that we can do to the devices, it is ON
, OFF or Reset.
Usage of this circuit
With this circuit you can switch-ON , OFF or Restart some Linux servers, ADSL modems, Printers, Door
with electric lock, Garage door, House lights, Water
pumps, electric sunshade, Block the engine of your car or your motorcycle, at the steal case and much
more. The purpose of this circuit is to make the human life better and easier.
The circuit
The hardware of the circuit its very very simple, because the communication port of ericsson mobile its
working at the 5 volts with AT commands ( like the modem commands, but for mobile phones).
The firmware of the AT90S2313 (or ATtiny2313) its very complicated because, we have to convert the
'septets' of the phone to 'octets' because the AVR need bytes with 8 bits length ( The 'septet' is 1 byte
with 7 bits length and 'octet' is 1 byte with 8 bits length). All this proccess its necessary to decode the
message from SMS.
This circuit is working on both AT90S2313 and ATtiny2313 microcontrollers. In case of ATtiny2313 you
have to select "External Crystal Oscillator" instead of default "internal RC oscillator" from the
"Fuses" tab of your programmer's software. You have to uncheck the "Divide clock by 8 internally".
>> You don't need any Data cable. Connect the AVR's pins direct to T10s connector.
>> You don't need any battery for T10s. Take +5V DC from <SMS remote control> board.
>> You can remove the <NO> key from T10s and solder an ON-OFF switch in this place. If you put it in
ON position, the phone is will power-ON automaticly every time you cut and then apply, the main +12V
DC power supply. To add this switch you have to disassemble the T10s.
>> The PDU decode proccess. Take 7 bytes (8bits) and convert them to 8 bytes (8bits) by adding
one zero at the start of each byte. The PDU format is use bytes with 7bit length.
Advice !
If you want to protect your devices from other person's messages, modify the source code, to read the
AVR, your telephone number before execute any message. In the source code i have some part of code,
to read the telephone number, the service center number, the date and the time of the received
message.
The project its based on the Greek mobile phone network of <Vodafon GR> and i don't know if the SMS
message in other country, have the same syntax ( I mean the form of the septets that the GSM receiving
from the GSM network ).
After the GSM receive the message, the AVR execute it, delete it from the phone memory, to release the
1st memory location and start again to search for a new message.
Service mode
If you connect the pin7 (PD3) of the AVR to MAX 232 chip and this to computer, you will see at
the terminal window software, all the data that the GSM is send to the AVR (Sender's number, service
center number, date, time and the AT commands ) . Setup the COM port to 19200 bps 8n1.
Troubleshoot
I have test it only with Greek sim cards and T10s mobile phone. I don't know if this circuit its working fine
to other countries or other mobile phone models. You can build the diagnostic circuit that is in the dot
frame of the schematic, and to connect the circuit with PC via RS232 port.
When you power-on the circuit and the phone, the AVR it will send the follow commands to the mobile
phone:
1) AT+CPMS="ME"
and
2) AT+CMGR=1
Downloads
Download the source code and hex file of SMSremote control v2.2
Download the source code and hex file of SMSremote control v2.1
Download the source code and hex file of SMSremote control v2.0
Download a small improved version of SMS remote controller with source code and the Hex files of project sms_controller.zip v1.0
Download the schematic, source code and the Hex files of SMS remote controller project smscontroller.zip v1.0
Learn more about the Ericsson AT commands with ericsson T28 _R1A.zip file.
The pduspy.exe it's a software that you can controll the SMS memory of the smartcard or the SMS
memory of the ericsson mobile phone via RS232 serial port of PC computer. For that, you need to buy
(or to build your own) one data-cable to connect the phone with PC computer.