View Full Version : Module GSM Telit GM862
volcane
- 28th October 2007, 19:05
Hi!
I manage the Pic Basic Pro form Telit GM862, how can analyze two strings?
The first is + CLIP: "39065542 xxx", 145, "" 128 "CASAENZO", 0
second is: + CLIP: "39065542 xxx", 145, "" 128, "", 0
the first is a call received with a number that is stored in memory of the sim, the second is called a receipt from a number that is not stored in the sim.
How can I drive an output Pic when a call is received a number that is stored in the sim module GM862?
Angus Anderson
- 2nd November 2007, 12:31
Hi Volcane
I assume that you want the PIC to do something when it receives a call corresponding to a name stored in SIM memory?
The first is + CLIP: "39065542 xxx", 145, "" 128 "CASAENZO", 0
second is: + CLIP: "39065542 xxx", 145, "" 128, "", 0
One simple way to do it is this:
Hserin [Wait "128",skip 6,B0] (or use Serin2 etc)
If BO<>"0" then go do something
Wait for an incoming string 128.
If it is found, skip 6 characters (don't forget the spaces)and store the next character in B0.
If B0 is not equal to ASC 0, it must be a SIM stored number
Hope this helps
Angus Anderson
volcane
- 3rd November 2007, 10:51
Hi Volcane
I assume that you want the PIC to do something when it receives a call corresponding to a name stored in SIM memory?
The first is + CLIP: "39065542 xxx", 145, "" 128 "CASAENZO", 0
second is: + CLIP: "39065542 xxx", 145, "" 128, "", 0
One simple way to do it is this:
Hserin [Wait "128",skip 6,B0] (or use Serin2 etc)
If BO<>"0" then go do something
Wait for an incoming string 128.
If it is found, skip 6 characters (don't forget the spaces)and store the next character in B0.
If B0 is not equal to ASC 0, it must be a SIM stored number
Hope this helps
Angus Anderson
Hi!
Thanks, i had to rewrite the expression adding () [wait ("128"),skip 6,B0]
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.