sms to control pic..pls help...


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks a lot Aratti.

    Best Regards
    Jamshid Dastur

  2. #2


    Did you find this post helpful? Yes | No

    Default @Aratti

    Can you help me out with one more thing, that is how can i read an sms and store it in an array, lets say an sms contains hi, then which syntax should i use, or if there is some alternative better way...

    Syntax1:
    buffer var byte[90]

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

    SERIN portb.7,t300,1000,oops,["+"],buffer[0],buffer[1]


    Syntax2:
    buffer var byte[90]

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

    for x=1 to 3
    SERIN portb.7,t300,1000,oops,buffer(x)
    next x


    or is there any other way to store the sms in the array,

    thanks a lot

    Best Regards
    Jamshid Dastur

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    You must send this sms : "123 HI" (123 is the pointer).

    Then I suggest the following code:

    Code:
    buffer var byte[90]
    
    SEROUT2 portb.6,3313,["AT^SMGR=1",13] ' Call for sms
    
    SERIN2 portb.7,3313,1000,oops,[Wait ("^SMGR:" ),Str buffer \ 5] ' (3313 is baud rate = 300 see PBP manual pag 133)
    
    if buffer[1]=48 and buffer[4]=48 then oops ' if no sms has been received then jump to oops label
    
    SERIN2 portb.7,3313,[Wait ("123"),Str buffer \ 3] ' If sms is present wait for pointer then load array
    If everything work, then you should find:

    buffer[0]=32 (space)
    buffer[1]=H
    buffer[2]=I

    If you want a ready made sms system download it @:http://techni.caliti.es/blog/

    Al.
    Last edited by aratti; - 12th December 2008 at 12:42.
    All progress began with an idea

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thanks once again,

    Best Regards
    Jamshid Dastur

  5. #5


    Did you find this post helpful? Yes | No

    Default TX/RX Connections

    Hello, i'm stucked at the point that our dear PIC works on 5V, and thus definitely the serin/serout would also generate high and low pulses of 0-5v, while the GSM module which i'm having (SIM508) posses serial transmission module of VMax being 3V...and it's been quoted to use a level converter where necessary, so can anyone help me out with this...
    can i use MAX233 in between or would there be any other procedure to follow...

    Best Regards
    Jamshid Dastur

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jamshid.dastur View Post
    Hello, i'm stucked at the point that our dear PIC works on 5V, and thus definitely the serin/serout would also generate high and low pulses of 0-5v, while the GSM module which i'm having (SIM508) posses serial transmission module of VMax being 3V...and it's been quoted to use a level converter where necessary, so can anyone help me out with this...
    can i use MAX233 in between or would there be any other procedure to follow...

    Best Regards
    Jamshid Dastur
    Hello Jamshid Dastur, I think a simple transistor would work to switch data @ 5 volts, keeping in mind it would invert the data.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7


    Did you find this post helpful? Yes | No

    Default !!!

    Quote Originally Posted by Joe S. View Post
    Hello Jamshid Dastur, I think a simple transistor would work to switch data @ 5 volts, keeping in mind it would invert the data.
    Hi Joe, are you sure about MAX ic that its not a serial decoder, and just a level shifter, if so...then i can simply use a zener diode to drop voltage and a 40XX buffer ic to up the level without any inversion...

    Best Regards
    Jamshid Dastur

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. HELP ME, SMS controlled relay using PIC
    By pazko1125 in forum mel PIC BASIC
    Replies: 14
    Last Post: - 2nd October 2008, 15:26
  3. Siemens c55 sms control help please
    By camolas in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 20th August 2008, 01:13
  4. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 07: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, 00: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