need info on handphone send command to pc

hi.
im using the application kits GSM/GPRS application kits
im trying to design a two way communication bettween the rabbit and mobile phone using GSM/GPRS connection.
im having problem to send command from mobile phone to rabbit
right now i only can send sms to handphone
i design the rabbit the sent sms to handphone to notify user but i cannot sent from handphone to ask the rabbit to execute any program.
how can i configure the handphone or rabbit to do these actions?

Hi,

You can send msg to hp, than rabbit have to check the msg. This msg should be pre define between hp and Rabbit. You can call this as protocol also!
Pseudo code

If MSG1
Call Program1
If MSG2
Call Program2

I hope this can solve the problem.

hi,

im actually doing project in interpret SMS into functions

currently using the (strlen) funct.
problem in execute 2nd function
1st turn LED on - successfull
2nd turn LED off - fail

please help me how to turn off the LED… also having problem with
the multiple SMS the modem seem can not receive more than 2 SMS…
WHY??

here my program

costate
{
// Check for any new messages
waitfor ((msgstatus = GSM_SmsGet(MDM_CHANNEL,&inbox))
!= MDM_PENDING);
if (msgstatus == MDM_SUCCESS) // New message is present
{
printf("

	!!Text Message Received!!

");
printf("From: %s
",inbox.dpfp_num);
printf("Time: %s
",inbox.date_time);
printf("Msg: %s

",inbox.txt_msg);

// Check to see if it is a instruction for light on
if (strchr((inbox.txt_msg),ON))
{
printf("RECEIVE INSTRUCTION FOR LIGHT ON

");
BitWrPortI(PGDR,&PGDRShadow,0,7);
printf("Sending Response Msg To:
%s
“,inbox.dpfp_num);
waitfor(DelayMs(2000));
//delay for 2 secs for modem
// to be ready for sending.
// Send the Response message.
waitfor(GSM_SmsSend(MDM_CHANNEL,
user,
GSM_RESPONSE_MSG));
}
else
printf(”

Waiting For Next SMS Text Message.
");

//Check to see if it is a instruction for light off
if ((strlen(inbox.txt_msg) == 2))
{
printf("RECEIVE INSTRUCTION FOR LIGHT OFF

");
BitWrPortI(PGDR,&PGDRShadow,1,7);
printf("Sending Response Msg To:
%s
“,inbox.dpfp_num);
waitfor(DelayMs(2000));
// to be ready for sending.
// Send the Response message.
waitfor(GSM_SmsSend(MDM_CHANNEL,
user,
GSM_RESPONSE_MSG));
}
else
printf(”

Waiting For Next SMS Text Message.
");

//Check to see if it is a instruction for light flash
if ((strlen(inbox.txt_msg) == 3))
{
printf("RECEIVE INSTRUCTION FOR LIGHT FLASH

");
costate
{
wfd
{
flashled[1](DS2, 200, 100);
}
}
printf("Sending Response Msg To: %s
“,inbox.dpfp_num);
waitfor(DelayMs(2000));
// to be ready for sending.
// Send the Response message.
waitfor(GSM_SmsSend(MDM_CHANNEL,
user,
GSM_RESPONSE_MSG));
}
else
printf(”

Waiting For Next SMS Text Message.
");
}
// wait for 5 seconds before checking again.
waitfor(DelayMs(5000));
// Restart the Receiving costate

}