vendredi 22 juillet 2016

Interfacing Old Mobile Phone (Siemens,Nokia,Sony Ericsson) With Pic Or Arduino. (Cheapest GSM Project)

Interfacing Old Mobile Phone With Pic Or Arduino. (Cheapest GSM Project).

 Hi my dears followers, Like it is mentionned in the article title. Today i m trying to demonstrate how we could make a GSM project using any type of MCU Connected to an Old mobile phone. 



MCU Interfacing




The idea was not the same used usually, In Fact i m not going to use a GSM Module like SIM900

GSM usually used module

The idea is since there is many old mobile phone (cheap phone) why not to hack their GSM Circuit to used an our project.

To make this real idea I collect a lot of old mobile phone



You dont have to collect many mobile phone like i did. To make your project. Just look for one, google it and collect any information could help you.

Information like: 

  • Which Communication Protocol is using
  • Current and Voltage Adaptation
  • Is there a naked TX/RX like in Nokia 1100
    Nokia 1100

  • F-Bus, M-Bus, Both, None ???
  • Sms Text,PDU ??

This project idea was given to me by a friend of mine, he explain me that was very nice to have an GSM based Control project without using a module but by using a simple old phone like this one (Nokia 1100).
 I remember that I saw this guy trying to connect Tx Rx pins of  Nokia 1100 to Tx  Rx pins of a simple PIC (16F877). In this moment I noticed thats there is a mistake because the voltage in both side is different.
I thought thats the only problem is here, and I start thinking why to pay 50 € for a GSM module when we could use a simple old mobile phone.
Résultat de recherche d'images pour "thinking logo"

In fact mobile phones are different from one to other.

  • Nokia Family 

Most of Nokia Mobile phone and here i m talking about Nokia 3310, Nokia 1100,... used F-Bus and M-Bus protocol in their GSM network circuit.
Most Nokia phones have F-Bus and M-Bus connections that can be used to connect a phone to a PC or in our case a microcontroller. The connection can be used for controlling just about all functions of the phone, as well as uploading new firmware etc. This bus will allow us to send and receive SMS messages.
M-Bus is a one pin bi-directional bus for both transmitting and receiving data from the phone. It is slow (9600bps) and only half-duplex. Only two pins on the phone are used. One ground and one data. M-Bus runs at 9600bps, 8 data bits, odd parity, one stop bit. The data terminal ready (DTR) pin must be cleared with the request to send (RTS). This powers the electronics in the cable and I think it sets it for M-Bus operation.
F-Bus is the later high-speed full-duplex bus. It uses one pin for transmitting data and one pin for receiving data plus the ground pin. Very much like a standard serial port. It is fast 115,200bps, 8 data bits, no parity, one stop bit. For F-Bus the data terminal ready (DTR) pin must be set and the request to send (RTS) pin cleared.
F-Bus is not the same protocol usually used in GSM module so to use it you have to make your own F-bus Cable converter.


F-Bus Converter
Personally I found a bit of Difficulty using this one specially when i found in the net that there is other phone like Siemens or Sony Ericsson could simply support AT command.


  • Siemens Family 

Siemens Have many old phone, I remember C25, S45, S45i who could easly support AT command so we have just to know how to connect those phone to a MCU.
The solution was easy, you have just to take a look to the connector of those phone.

  
  
All what you have to do is to use their charging cable.

  1.  > Vbatt - Power Charging (used for charging).
  2.  > Gnd - GND  (main ground).
  3.  > Tx   connected to MCU RX (using a resistor to limit current ).
  4.  > Rx  connected to MCU TX (using a voltage devider from 5v to ~2,75v).
  5.  > CTS  need to be connected to ground in order to work
  6.  > RTS 
  7.  > DCD 
  8.  > Audio P - AUDIO L 
  9.  > AUDIO - GND 
  10.  > Audio N - AUDIO R 
  11.  > GND Mic 
  12.  > EPP EPP 1 (EXT MIC.) 

Noting is easier than this :)
So to connect this mobile phone to an Arduino or a PIC all what you have to do is to follow this. The resistors using is to adept current and voltage between the phone and the MCU.



Arduino interfacing

Pic Interfacing

 Now let's speak about program after connecting the phone to the MCU.

  1. We send serially AT, We received OK . Fine thats Work :D
  2. To check SMS format we send AT+CMGF=0 , We received OK  . Fine this phone support PDU Format message.
  3. We send AT+CMGF=1 and we received error :/ here is the problem . the phone cant support text message format.
There is no problem if we convert our text message to PDU format before send it or convert received text from PDU format to TEXT.
Here i give you two link, the first is to convert PDU to Text and the second is the inverse.
First One
Second One


Lets Code...
void createSMS(){
  phone.println("AT+CMGS=66");
  delay(2000);
  phone.print("07911256536621F801000B911296683049F300043554686973206973206D652069206D2061796D656E206C6163686B68656D2C2057656C636F6D6520696E206D7920626C6F6773697465");
  phone.write(0x1A); // Ctrl+Z
  phone.write(0x0D); //CR
  phone.write(0x0A); //LF
}
...and it works ! ...an SMS with "This is me i m aymen lachkhem, Welcome in my blogsite" on it was send by calling the createSMS() function. 




And Thats it ;) 


                                                   See you soon : Aymenlachkem@gmail.com









3 commentaires:

  1. هل يتعامل بارسائل فقط؟؟
    وهل يمكن ربطه بالأردوينو وتلقي مكالمات

    RépondreSupprimer
  2. If you need to hire a real hacker to help monitor your spouse's cell phone remotely, contact deadlyhacker01@gmail.com or whatsapp: +1 3478577580. They're reliable and would be willing to help.

    RépondreSupprimer
  3. Let'S Electronic : Interfacing Old Mobile Phone (Siemens,Nokia,Sony Ericsson) With Pic Or Arduino. (Cheapest Gsm Project) >>>>> Download Now

    >>>>> Download Full

    Let'S Electronic : Interfacing Old Mobile Phone (Siemens,Nokia,Sony Ericsson) With Pic Or Arduino. (Cheapest Gsm Project) >>>>> Download LINK

    >>>>> Download Now

    Let'S Electronic : Interfacing Old Mobile Phone (Siemens,Nokia,Sony Ericsson) With Pic Or Arduino. (Cheapest Gsm Project) >>>>> Download Full

    >>>>> Download LINK

    RépondreSupprimer