Pic to GSM Phone connection (HSerin problems)


Closed Thread
Results 1 to 40 of 289

Hybrid View

  1. #1
    aruran's Avatar
    aruran Guest

    Question Ericsson T18

    I got an Ericsson T18 phone, which works with the data cable for AT commands.. Going through the internet I found that it doesn't support Text mode, Only pdu mode available. So can I make it work by using bitmaniac's PDU decoder. And I am going to use PIC16F877A. If I do the necessary changes it should work right......

    thanks in advance
    aruran

  2. #2
    PIC Coder's Avatar
    PIC Coder Guest

    Default Samsung SCH-N356.

    Hello,
    I am look out for technical details of Samsung SCH-N356. I also want to make SMS controled relay. Please suggest.
    Bye

  3. #3
    aruran's Avatar
    aruran Guest

    Thumbs up SMS using T18

    Hai all,

    First of all thank you all for the help rendered. I have successfully made a Ericsson T18 to send SMS using PIC16F877A. I give the PIC using I2C bus some data from a main PIC for my microcontroller project. I have written a dynamic PDU encode routing to handle the dynamic texts sent by the main pic. This was achieved mainly from the help of bitmaniac's PDU encode...

    Thank you all
    aruran

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    aruran,

    it would be nice if you would share youre code.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  5. #5
    MICOCALI's Avatar
    MICOCALI Guest

    Default hserin

    What is the metod for write a code in 16f628 for read in rs232?
    when the telephone send (*elip string, my 16f628 to be one pin at gnd

  6. #6
    Join Date
    Apr 2005
    Posts
    17

    Thumbs up

    I just finished my circuit below a PIC to cellphone interface to send text messages..I can succesfully SEND a pre-programmed text message using this code:



    Device 16F84A
    Declare Xtal = 4

    Start:
    LOW LED
    DelayMS 1000
    SerOut2 PORTB.1, 84,["AT+CMGS=",34,"MyNumber",34,13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,["TEST",13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,[26]
    DelayMS 3000
    GOTO Start


    I can send an endless "TEST" text messages to "MyNumber" but I can't make it work to read received text messages..

    I need a code sample that will READ the received text message and will text back to the sender the word "GOOD"

    I don't have the idea how to strip the sender phone number and the sent text message "GOOD" from the example below using SERIN command..

    +CMGR: "REC READ","+xx1234567890",,"05/05/26,17:19:23+00"
    GOOD
    OK

    I'd look at this code:

    HSerin 5000, Loop, [Wait("UNREAD"), skip 3, STR Caller\12, skip 4, STR GSMTime\17, skip 4, STR GSMbuffer\12]

    But I can't "SAY" it using SERIN command using PIC16F84..

    Thanks for any info..
    Last edited by kasamiko; - 26th May 2005 at 11:25.

  7. #7
    aruran's Avatar
    aruran Guest

    Default

    Quote Originally Posted by NavMicroSystems
    aruran,

    it would be nice if you would share youre code.
    Hai NavMicro,

    Sorry for the delayed response. I was involved in the project in another part..So I couldn't concentrate on the SMS sending part as it is almost finished.

    I have finished the PBP coding to send SMS using a Ericsson T10. It uses PDU mode since T10 supports AT command for PDU mode. So help from bitmaniac's PBP file helped me.
    I have attached the file.

    I also want to develop this to be integrated into a Embedded IP module for my project. I want to know how can I make this SMS sender to send sms when a centrallized MCU gives an interrupt and then the datas such as message, recepient number and so on are fed from that centrallized MCU to the MCU that controlling sending sms.

    Some people say that the PBP is not good for interrupt handling, and ASM codes inserted may be of use. Have anybody got any idea....

    thanks
    aruran
    Attached Files Attached Files
    Last edited by aruran; - 16th August 2005 at 16:47.

  8. #8
    Airrr's Avatar
    Airrr Guest

    Default oh no!

    i've read this thread a few times, but it wont work at all!
    nokia 6210 connected with RX to PIC 16f84a port b.1
    gnd2gnd

    now thats the programm

    SerOut2 PORTB.1, 396,["AT", 13, 10]
    Pause 1000
    SerOut2 PORTB.1, 396,["AT+CMGF=1", 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["AT+CMGS=", 34, "+972544567209", 34, 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["Test-message", 13, 10]
    Pause 500

    i tryed 8mhz crystal and 12mhz
    pic sends some pulses out, but mobile just do nothing
    is it a wrong programm or what?

    ps, i need simply to send SMS.
    i think i missed something important..
    Last edited by Airrr; - 1st September 2005 at 01:59.

  9. #9
    Join Date
    Jan 2004
    Location
    Thessaloniki , GREECE
    Posts
    61

    Wink

    First of all I would like to say a big HELLO! to all of you.

    I was out of this forum for some months and I really like the fact that this topic is of so great interest , while I am back.

    SO back to PICs again..

    Airrr:
    I would advice you to read all the related topics about sending sms with Gsm ,
    so to take an idea of how this works.
    But to make you start:
    A simple way to test if your phone is working ok (making sure you have checked the connections) you can connect it to your PC serial port and try sending AT commands using a terminal program like HyperTerminal for example
    (set speed 9600,8,n,1)
    OF COURSE YOU HAVE TO USE A RS232 LEVEL CONVERTER as your serial port
    works with rs232 level volt (+-12v) and your Nokia ecpects TTL level volt (+-5v).

    Second, as reading your code I noticed that you are trying to use NOKIA 6210 in 'text mode' and I am not sure that 6210 supports text mode.
    I think it only supports PDU mode but I am not 100% sure.
    You have to encode your text sms in PDU format in order to 'feed' it to your phone trough AT commands which is a complex procedure with pic but IT IS possible -please read through the topic to get an idea.

    I hope I have helped you a little

    AGAIN A BIG HELLO TO ALL OF YOU!

  10. #10
    Join Date
    Apr 2005
    Posts
    17

    Default

    Quote Originally Posted by Airrr
    i've read this thread a few times, but it wont work at all!
    nokia 6210 connected with RX to PIC 16f84a port b.1
    gnd2gnd

    now thats the programm

    SerOut2 PORTB.1, 396,["AT", 13, 10]
    Pause 1000
    SerOut2 PORTB.1, 396,["AT+CMGF=1", 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["AT+CMGS=", 34, "+972544567209", 34, 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["Test-message", 13, 10]
    Pause 500

    i tryed 8mhz crystal and 12mhz
    pic sends some pulses out, but mobile just do nothing
    is it a wrong programm or what?

    ps, i need simply to send SMS.
    i think i missed something important..
    I succesfully done it using this code..

    Device 16F84A
    Declare Xtal = 4

    Symbol BAUD = 84 ' 9600,8,N,1(True,driven)
    SYMBOL LED = PORTB.2 ' Assign PortB.2 for Status LED
    Symbol TX = PORTB.1 ' TX to Phone
    Symbol RX = PORTA.0 ' RX from Phone

    Start:

    SerOut2 TX, BAUD,["AT",13]
    DelayMS 500
    SerOut2 TX, BAUD, ["AT+CMGF=1",13] ' Use TXT Mode
    LOW LED ' Turn OFF Status LED
    DelayMS 1000 ' Pause for 1 second
    HIGH LED ' Turn ON Status LED
    SerOut2 TX, BAUD,["AT+CMGS=",34,"Recipient Phone Number",34,13]' Prepare the recipient Phone Number
    DelayMS 1000 ' Pause for 1 Second
    SerOut2 TX, BAUD,["TEST Message!!",13] ' The message to be sent
    DelayMS 1000 ' Pause for 1 second
    SerOut2 TX, BAUD,[26] ' Terminate message with Control+Z (26)
    LOW LED ' Turn OFF Status LED
    DelayMS 1000
    Goto Start ' Repeat
    End

    What i did is some sort of SMS bomber...look for the circuit I posted before to make this code works..
    Notice that all it does is send..TX. I dont process any message I received so RX was not used.
    BR
    Last edited by kasamiko; - 5th September 2005 at 02:35.

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 20:33
  4. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  5. Pic to GSM Phone connection
    By samertop in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th July 2005, 13:40

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts