Baka makatulong. http://www.activexperts.com/mobile-messaging-component/at/commands/?at=%2BCPBRyun nalaman ko din kung ano yung 129 and 145+1 dito prof GR47 GM47 at Commands Manual
bakit po dpat 8 digit lng? e sim number dba po 11 ?
tinext ko na si joy. tanong mo sa kanya kung ilang number ang nag appear.
OkAT+CPBR=1+CPBR: 1,"09261428272",129,"Ram"OKAT+CPBR=2+CPBR: 2,"09153078153",129,"Beyong"OKAT+CPBR=3+CPBR: 3,"09156174948",129,"Pau"OKAT+CPBR=4+CPBR: 4,"+639168481851",145,"Joy"Ok Master Ako ngsave sa nyan sa simcard ung AT+CPBR=1 un ang una kon sinave tas 2 pangalawa kong sinave etc.
Dim GlobalBuffer As String * 250 ' Sms storage & General storage max is 250 (0 to 249) Dim MobileBuffer As String * 13 ' Mobile phone storage HSerOut ["AT+CPBR=1",CR] ' Read memory location 1 HSerIn 1000,TIMEOUT,[Wait(CR,CR,LF),Str GlobalBuffer] TIMEOUT:' +CPBR: 4,"+639168481851",145,"Joy"' 0000000000111111111122222222223333' 0123456789012345678901234567890123' VarY = 0 VarX = 9 Repeat ' Make a loop as dictated by SMSLength MobileBuffer[VarY]=GlobalBuffer[VarX] ' Store it to MobileBuffer Inc VarX:Inc VarY ' Increment counters Until VarY = 14 ' Finish the job Print At 1,1,Str MobileBuffer
+CPBR: 4,"+639168481851",145,"Joy"Ok ^ ito tama
yun nalaman ko din kung ano yung 129 and 145+1 dito prof
+CPBR: 4,"+639168481851",145,"Joy"Ok ^ ito tama Master di ko mgets pano ilgay dun sa AT+CMGS= Ung number na nput as variable na gling sa AT+CPBR=1?Code: [Select] Dim GlobalBuffer As String * 250 ' Sms storage & General storage max is 250 (0 to 249) Dim MobileBuffer As String * 13 ' Mobile phone storage HSerOut ["AT+CPBR=1",CR] ' Read memory location 1 HSerIn 1000,TIMEOUT,[Wait(CR,CR,LF),Str GlobalBuffer] TIMEOUT:' +CPBR: 4,"+639168481851",145,"Joy"' 0000000000111111111122222222223333' 0123456789012345678901234567890123' VarY = 0 VarX = 9 Repeat ' Make a loop as dictated by SMSLength MobileBuffer[VarY]=GlobalBuffer[VarX] ' Store it to MobileBuffer Inc VarX:Inc VarY ' Increment counters Until VarY = 14 ' Finish the job Print At 1,1,Str MobileBuffer
PatuLong na lng pano ideclare as variable sa proton ung inoutput ng AT+CPBR=1 master salamat
engr ako hindi master... si carlsberg ang master dito. andon na sample code pag-aralan mo na lang
+CPBR: 4,"+639168481851",145,"Joy"Ok ^ ito tama Code: [Select] Dim GlobalBuffer As String * 250 ' Sms storage & General storage max is 250 (0 to 249) Dim MobileBuffer As String * 13 ' Mobile phone storage HSerOut ["AT+CPBR=1",CR] ' Read memory location 1 HSerIn 1000,TIMEOUT,[Wait(CR,CR,LF),Str GlobalBuffer] TIMEOUT:' +CPBR: 4,"+639168481851",145,"Joy"' 0000000000111111111122222222223333' 0123456789012345678901234567890123' VarY = 0 VarX = 9 Repeat ' Make a loop as dictated by SMSLength MobileBuffer[VarY]=GlobalBuffer[VarX] ' Store it to MobileBuffer Inc VarX:Inc VarY ' Increment counters Until VarY = 14 ' Finish the job Print At 1,1,Str MobileBuffer
errata:varx = 10
sori ala ako nyan
haha ok na master engr. balitaan kta maraming saLamat
[code]'****************************************************************'* Name : UNTITLED.BAS *'* Author : [select VIEW...EDITOR OPTIONS] *'* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *'* : All Rights Reserved *'* Date : 5/17/2012 *'* Version : 1.0 *'* Notes : *'* : *'****************************************************************Device = 16F877ADeclare XTAL = 4HSERIAL_SPBRG = 25HSERIAL_RCSTA = $90HSERIAL_TXSTA = $24HSERIAL_CLEAR = OnHSERIAL_BAUD = 9600ADCON1 = 7Symbol CR = 13 ' Carriage ReturnSymbol LF = 10 ' Line FeedSymbol CTRL_Z = 26 ' Control + Z keyDim MobileBuffer[13] As Byte ' Mobile phone storageDim GlobalBuffer[13] As Byte ' Sms storage & General storageDim VarX As Byte ' Global variableDim VarY As Byte ' Global variablestart:High PORTA.1DelayMS 500Low PORTA.1DelayMS 4000HSerOut["AT",13]DelayMS 2000HSerOut["AT+CMGF=1",13]DelayMS 2000HSerOut["AT+CFUN=1",13]DelayMS 2000HSerOut["AT+CMEE=2",13]DelayMS 2000HSerOut["AT+COPS=0",13]DelayMS 2000HSerOut ["AT+CPBR=1",CR] ' Read memory location 1HSerIn 1000,TIMEOUT,[Wait(CR,CR,LF),Str GlobalBuffer]TIMEOUT:' +CPBR: 1,"+639*********",145,"name"' 0000000000111111111122222222223333' 0123456789012345678901234567890123' VarY = 0 VarX = 10 Repeat ' Make a loop as dictated by SMSLength MobileBuffer[VarY]=GlobalBuffer[VarX] ' Store it to MobileBuffer Inc VarX:Inc VarY ' Increment counters Until VarY = 14 ' Finish the job HSerOut["AT+CMGS=",34,MobileBuffer[VarY],34,13]DelayMS 2000HSerOut["Test GSM",26]DelayMS 2000End