sms to control pic..pls help...


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1
    Ziki's Avatar
    Ziki Guest


    Did you find this post helpful? Yes | No

    Default

    hi...i'm facing some problem ....when i use hyperterminal ...i got no problem ...can receive and send sms but when i connect it to my uC . it canot work ...must the phone go thrught a max232 when connect to uC?? i'm using t610
    pls help..thx alot ....

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I connected t610 (and t68i) to pic 16f88, no max232, no resistors, just wire.

    look at picture above, pic on dev board, connected to phone.

  3. #3
    Ziki's Avatar
    Ziki Guest


    Did you find this post helpful? Yes | No

    Arrow

    hi ....i finally suceed in trasmitting part( uC to "tell" GSM phone to send a sms )
    now i workin on receiveing part(uC to accept information from GSM phone )before this i was using ATMEL ..with BASCOM ..but don't no why it canot work ...spend a week in lab but no result ...

    now for the PIC ..which should i use ?
    Hserin or Serin or Serin 2

    if u don't mind ...can pls share some code example here ..
    thx alot ....

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ziki

    now for the PIC ..which should i use ?
    Hserin or Serin or Serin 2

    if u don't mind ...can pls share some code example here ..
    thx alot ....
    I used serin, no reason except I always worked with the f84 and just carried on!

    I can let you have my code, you can do with it what you will, its really poorly written and just banged together.

    Its unfinished, in fact not done anything with it in about 3 weeks so will take me a day to get back in to it!

    Problem was the project was drafted out in my head to use a 2550 for a gsm equipped car alarm, but I only had a f88 to hand, so started on that, idea was I could just recompile the code / cut and paste the routines, then it went off in a different direction as a cut down version of the project using a f88 as a garage/house/boat/shed, so has some features not now needed and ones not yet done.......

    http://homepage.ntlworld.com/tinabriddon/pic/

    Its a real work in progress........

  5. #5
    Ziki's Avatar
    Ziki Guest


    Did you find this post helpful? Yes | No

    Default

    thx for the code....can you have a look at this ...

    DEFINE OSC 8
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_BAUD 9600
    DEFINE HSER_SPBRG 129
    DEFINE HSER_CLROERR 1

    sms:

    HSEROUT ["AT" ,13,10]
    hserin 5000,sms,[WAIT("OK")]


    HSEROUT ["AT+CMGF=1" ,13,10]
    hserin 5000,sms,[WAIT("OK")]


    HSEROUT ["AT+CMGS=",34,"my number ",34,13,10]
    hserin 5000,sms,[WAIT(">")]


    HSEROUT ["BUTTON HAS BEEN",26,13,10]
    pause 5000

    end


    it doesn't work (canot send sms ) ..but if i just use hserout and use pause instead of hserin .it work perfectly ...so...the problem must be at the hserin .
    i try using 4 Mhz and lower baud rate ..also canot work ..
    is there any problem in my code ??? thzzzz

  6. #6
    Ziki's Avatar
    Ziki Guest


    Did you find this post helpful? Yes | No

    Default

    hi ..i also try out with this code ..also canot work....

    include "modedefs.bas"
    DEfine OSC 4

    sms:
    pause 1000

    serout portb.6,t1200,["atz",13] ' wake up thephone
    serin portb.7,t1200,5000,sms,["OK"]

    serout portb.6,t1200,["at+cmgs=19",13]
    serin portb.7,t1200,5000,sms,[">"]


    serout portb.6,t1200,["07910621000010F511000B910621297767F80000AA05E8329 BFD06",26,13]
    pause 9000

    end


    as usual this code work fine with pause instead of serin command ..it suppose to send out a "hello " sms
    what have i done wrong ????pls help ..thx ...

  7. #7
    Ziki's Avatar
    Ziki Guest


    Did you find this post helpful? Yes | No

    Default

    hi ..the problem from the previous tread have solved
    now ..i'm having problem storing those valur to my array
    below are my code


    sms:
    include "modedefs.bas"
    DEfine OSC 4
    buffer var byte(90)
    z var byte
    TRISB= %10001011

    serout portb.6,t1200,["atz",13]
    serin portb.7,t1200,5000,sms,["OK"]
    pause 2000

    serout portb.6,t1200,["at+cpms=",34,"me",34,13]
    serin portb.7,t1200,5000,sms,["CPMS"]
    pause 2000

    serout portb.6,t1200,["at+cmgr=1",13]

    for z=1 to 90
    serin portb.7,t1200,5000,sms,buffer(z)
    next

    end

    this code canot work ....is it possible to store everting in a array ?..i don't know how to filter out those unwanted ones....

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. HELP ME, SMS controlled relay using PIC
    By pazko1125 in forum mel PIC BASIC
    Replies: 14
    Last Post: - 2nd October 2008, 16:26
  3. Siemens c55 sms control help please
    By camolas in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 20th August 2008, 02:13
  4. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 08:59
  5. Need help on pic to pic flow control (simple problem I think)
    By khufumen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th January 2006, 01:34

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