CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

string modem Gm862 Telit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
staminale



Joined: 27 Mar 2009
Posts: 5

View user's profile Send private message

string modem Gm862 Telit
PostPosted: Fri Mar 27, 2009 6:36 am     Reply with quote

Hi!

how to handle these strings? whether the calls are in phone book in or not?

there is a code to get started?


+CLIP: "",128,"",128,"",2 //hidden number
+CLIP: "+3933812345678",145,"",128,"",0 //is not in the phone book
+CLIP: "+3933812345678",145,"",128,"Giacomo" //is in the phone book
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Mar 27, 2009 1:55 pm     Reply with quote

http://www.ccsinfo.com/forum/search.php
Try keywords like:
- telit
- CMGS (the AT command for sending a text message)
staminale



Joined: 27 Mar 2009
Posts: 5

View user's profile Send private message

PostPosted: Mon Mar 30, 2009 8:54 am     Reply with quote

Hi!

You can find a sequence without using the library string.h?
rufflos
Guest







PostPosted: Tue Apr 07, 2009 9:34 am     Reply with quote

hi, staminale

how can you get those strings from the gsm module? i have the same module but i cannot get any string trough rs232, what did you do? thank you, i'm waiting for your response.
staminale



Joined: 27 Mar 2009
Posts: 5

View user's profile Send private message

PostPosted: Tue Apr 07, 2009 12:37 pm     Reply with quote

rufflos wrote:
hi, staminale

how can you get those strings from the gsm module? i have the same module but i cannot get any string trough rs232, what did you do? thank you, i'm waiting for your response.


AT+CLIP=1
rufflos
Guest







PostPosted: Tue Apr 07, 2009 3:06 pm     Reply with quote

oh, thank you but i mean, how do you manage to get somethin readable from the rcv pin? i cant get nothing more than a 0x00

i have tried the AT command that is supposed that the answer is OK, but i only get a 0x00 (end of string)

could you put the code you used for obtaining that responses?

thank you.
staminale



Joined: 27 Mar 2009
Posts: 5

View user's profile Send private message

PostPosted: Fri Apr 10, 2009 5:52 pm     Reply with quote

Hi!

here's how I did, you tell me if good, if there are more efficient systems.

Code:
#include <16F877a.h>
#include <setting.h>
#include <string.h>
#include <input.c>
#define  STRING_SIZE    51


void call_modem(char *calling)
{
   
    if (calling[8] == '"') //hidden number
    {
        printf ("\n%s", "hidden number");
    }           
        else
        {if(calling[strlen(calling) - 1] == '0') // The last character is a zero
         printf ("\n%s", "is not in the phone book");
         else
         if(calling[strlen(calling) - 1] == '"') // The last character is "
         printf ("\n%s", "is in the phone book");
         }
}


void main() {
char input_str[STRING_SIZE];

while(true)
{
get_string(input_str,STRING_SIZE);     // gets the string
call_modem(input_str);
}
}
volcane



Joined: 23 Feb 2008
Posts: 29

View user's profile Send private message

Re: string modem Gm862 Telit
PostPosted: Sun Apr 12, 2009 4:46 pm     Reply with quote

staminale wrote:
Hi!
+CLIP: "+3933812345678",145,"",128,"Giacomo" //is in the phone book


the string is wrong with the modem gm862 puts an end 0

Code:
 
+CLIP: "+3933812345678",145,"",128,"Giacomo",0
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group