Receiving message to PIC through GSM modem


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    18

    Default Re: Receiving message to PIC through GSM modem

    Quote Originally Posted by EarlyBird2 View Post
    Have you set new message notification? It is not in your code.
    Hello Bird,

    Yes, there is a pin on sim900 GSM modem, if a new message be received this pin will be in high state less than 1 second, I use this pin for the new message notification. But i didn't use this feature in this sample routine. Because I am still busy with comparing two things with each other... the question of this thread is still valid

    Thank you

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333

    Default Re: Receiving message to PIC through GSM modem

    Is this the code that does the comparison?

    Code:
    if (s(59)="S") then
     high portc.3
     s(59)=0
     endif
     if(s(59)="T" and s(60)="a") then
     low portc.3
     s(59)=0
     s(60)=0
     endif
    and needs modifying to "LED1ON" and "LED1OFF" but does not work even with the simple test of "S" and "Ta"?

  3. #3
    Join Date
    Jun 2013
    Posts
    18

    Default Re: Receiving message to PIC through GSM modem

    Hello Steve,

    Thanks a lot for your posting here.

    I apologize. I was late in reply

    Yes, it is, it compares incoming message with a pattern and chooses what commands must run. here is just simple put a pin on high or low states.

    Do you have any other suggestion for comparing?

    Thank you

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333

    Default Re: Receiving message to PIC through GSM modem

    Quote Originally Posted by EarlyBird2 View Post
    Is this the code that does the comparison?

    Code:
    if (s(59)="S") then
     high portc.3
     s(59)=0
     endif
     if(s(59)="T" and s(60)="a") then
     low portc.3
     s(59)=0
     s(60)=0
     endif
    and needs modifying to "LED1ON" and "LED1OFF" but does not work even with the simple test of "S" and "Ta"?
    Does this work?

Similar Threads

  1. Interface Pic --> Max232 --> GSM Modem
    By SangkiMangki in forum GSM
    Replies: 1
    Last Post: - 28th September 2013, 13:57
  2. gsm modem and pic communication
    By shani_developer in forum GSM
    Replies: 1
    Last Post: - 7th September 2010, 09:21
  3. GSM modem not working with PIC! Both modem & PIC work fine with PC
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 12th May 2010, 10:31
  4. Anyone used a WAVECOM gsm modem ?
    By isaac in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2007, 14:15
  5. SEROUT2 to GSM Modem
    By tommyers in forum General
    Replies: 5
    Last Post: - 21st August 2006, 22:35

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