caramoan tour package

caramoan tour package

Author Topic: sim900d interface with pic16f877a  (Read 1710 times)

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #40 on: May 03, 2012, 11:47:43 AM »

Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1909
  • Pogi/Ganda Points: 152
Re: sim900d interface with pic16f877a
« Reply #41 on: May 03, 2012, 11:49:07 AM »
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. ;D ;D ;D

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #41 on: May 03, 2012, 11:49:07 AM »

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: sim900d interface with pic16f877a
« Reply #42 on: May 03, 2012, 11:50:52 AM »
tinext ko na si joy. tanong mo sa kanya kung ilang number ang nag appear. ;D ;D ;D

OT:

si bitoy yan sir... :D :D :D hala ka!
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #42 on: May 03, 2012, 11:50:52 AM »

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: sim900d interface with pic16f877a
« Reply #43 on: May 03, 2012, 11:52:31 AM »
Ok
AT+CPBR=1
+CPBR: 1,"09261428272",129,"Ram"

OK
AT+CPBR=2
+CPBR: 2,"09153078153",129,"Beyong"

OK
AT+CPBR=3
+CPBR: 3,"09156174948",129,"Pau"

OK
AT+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.

+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
I'm a Mechanically trained, electronic to me is just an hobby and if I can do it, so can you!
Don't get discouraged by those so called "EXPERT"! I can tell you most of the time they "TALK" only but with no practical results.
Seldom people succeed the first time, just keep on trying!

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #43 on: May 03, 2012, 11:52:31 AM »

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #44 on: May 03, 2012, 11:57:54 AM »
+CPBR: 4,"+639168481851",145,"Joy"

Ok
 
^ ito tama

PatuLong na lng pano ideclare as variable sa proton ung inoutput ng AT+CPBR=1 master salamat

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #44 on: May 03, 2012, 11:57:54 AM »

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #45 on: May 03, 2012, 12:02:03 PM »


master,
 
129 Unknown type (IDSN Format Number)
161 National number type (IDSN)
145 International number Type (ISDN)
177 Network Specific Number (ISDN)

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: sim900d interface with pic16f877a
« Reply #46 on: May 03, 2012, 12:02:16 PM »
Kailangan pala dapat naka +63 para valid. :D :D


OT:

Titext ko rin daw si Joy kung kamusta na ang project na to. ;) ;)
Computer Engineering National Organization registration thread


Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: sim900d interface with pic16f877a
« Reply #47 on: May 03, 2012, 12:03:08 PM »
yun nalaman ko din kung ano yung 129 and 145

+1 dito prof

Salamat sir iceberg. ;D ;D
Computer Engineering National Organization registration thread


Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #48 on: May 03, 2012, 12:05:55 PM »
+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

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: sim900d interface with pic16f877a
« Reply #49 on: May 03, 2012, 12:07:41 PM »
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.  ;D ;D ;D

andon na sample code pag-aralan mo na lang
I'm a Mechanically trained, electronic to me is just an hobby and if I can do it, so can you!
Don't get discouraged by those so called "EXPERT"! I can tell you most of the time they "TALK" only but with no practical results.
Seldom people succeed the first time, just keep on trying!

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #50 on: May 03, 2012, 12:09:32 PM »
engr ako hindi master... si carlsberg ang master dito.  ;D ;D ;D

andon na sample code pag-aralan mo na lang

Hehehe sige engr try ko balitaan ko kayo ;D ;D ;D

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: sim900d interface with pic16f877a
« Reply #51 on: May 03, 2012, 12:11:21 PM »
engr ako hindi master... si carlsberg ang master dito.  ;D ;D ;D

andon na sample code pag-aralan mo na lang

OT:

nge! FYI sir dacuycoy, may title kana dito sa elab. Master Eng'r. Dacuycoy dapat yung pangalan mo kaya palitan mo na :D

@TS

bait ni Master Eng'r Dacuycoy no? :D :D :D may example code kana TS kaya mo na yan.. salamat pala dun sa 129 145 etc. :D
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: sim900d interface with pic16f877a
« Reply #52 on: May 03, 2012, 12:13:30 PM »
+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

bat ang simple simple talaga mag coding sa proton!! hirap nito sa mikroC e... :(
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: sim900d interface with pic16f877a
« Reply #53 on: May 03, 2012, 12:15:13 PM »
errata:
varx = 10
I'm a Mechanically trained, electronic to me is just an hobby and if I can do it, so can you!
Don't get discouraged by those so called "EXPERT"! I can tell you most of the time they "TALK" only but with no practical results.
Seldom people succeed the first time, just keep on trying!

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #54 on: May 03, 2012, 01:34:39 PM »
errata:
varx = 10


Master engr. penge nman link ng proton na pde iDL ng error na proton ko ;D

+1 pt

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: sim900d interface with pic16f877a
« Reply #55 on: May 03, 2012, 01:37:13 PM »
sori ala ako nyan  ;D ;D ;D
I'm a Mechanically trained, electronic to me is just an hobby and if I can do it, so can you!
Don't get discouraged by those so called "EXPERT"! I can tell you most of the time they "TALK" only but with no practical results.
Seldom people succeed the first time, just keep on trying!

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #56 on: May 03, 2012, 01:39:24 PM »
sori ala ako nyan  ;D ;D ;D

haha ok na master engr. balitaan kta ;D maraming saLamat ;D

Offline e-tronix

  • Lead Acid Battery
  • *******
  • Posts: 981
  • Pogi/Ganda Points: 26
Re: sim900d interface with pic16f877a
« Reply #57 on: May 06, 2012, 09:34:31 AM »
ptambay

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #58 on: May 17, 2012, 08:58:50 PM »
haha ok na master engr. balitaan kta ;D maraming saLamat ;D

Code: [Select]
Code: [Select]
[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 = 16F877A
Declare XTAL = 4
HSERIAL_SPBRG = 25
HSERIAL_RCSTA = $90
HSERIAL_TXSTA = $24
HSERIAL_CLEAR = On
HSERIAL_BAUD = 9600
ADCON1 = 7

Symbol CR            =    13   ' Carriage Return
Symbol LF            =    10   ' Line Feed
Symbol CTRL_Z        =    26   ' Control + Z key

Dim MobileBuffer[13] As Byte    ' Mobile phone storage
Dim GlobalBuffer[13] As Byte   ' Sms storage & General storage
Dim VarX As Byte                ' Global variable
Dim VarY As Byte                ' Global variable

start:
High PORTA.1
DelayMS 500
Low PORTA.1
DelayMS 4000
HSerOut["AT",13]
DelayMS 2000
HSerOut["AT+CMGF=1",13]
DelayMS 2000
HSerOut["AT+CFUN=1",13]
DelayMS 2000
HSerOut["AT+CMEE=2",13]
DelayMS 2000
HSerOut["AT+COPS=0",13]
DelayMS 2000
HSerOut ["AT+CPBR=1",CR]      ' Read memory location 1
HSerIn 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 2000
HSerOut["Test GSM",26]
DelayMS 2000
End
[/code]
  
ok na ba yan engr?

Offline ninjatuna

  • CR2032 Battery
  • **
  • Posts: 38
  • Pogi/Ganda Points: 0
Re: sim900d interface with pic16f877a
« Reply #59 on: May 17, 2012, 09:48:00 PM »


Code: [Select]
[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 = 16F877A
Declare XTAL = 4
HSERIAL_SPBRG = 25
HSERIAL_RCSTA = $90
HSERIAL_TXSTA = $24
HSERIAL_CLEAR = On
HSERIAL_BAUD = 9600
ADCON1 = 7

Symbol CR            =    13   ' Carriage Return
Symbol LF            =    10   ' Line Feed
Symbol CTRL_Z        =    26   ' Control + Z key

Dim MobileBuffer[13] As Byte    ' Mobile phone storage
Dim GlobalBuffer[13] As Byte   ' Sms storage & General storage
Dim VarX As Byte                ' Global variable
Dim VarY As Byte                ' Global variable

start:
High PORTA.1
DelayMS 500
Low PORTA.1
DelayMS 4000
HSerOut["AT",13]
DelayMS 2000
HSerOut["AT+CMGF=1",13]
DelayMS 2000
HSerOut["AT+CFUN=1",13]
DelayMS 2000
HSerOut["AT+CMEE=2",13]
DelayMS 2000
HSerOut["AT+COPS=0",13]
DelayMS 2000
HSerOut ["AT+CPBR=1",CR]      ' Read memory location 1
HSerIn 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 2000
HSerOut["Test GSM",26]
DelayMS 2000
End

engr. eto na pla code ko tama ba flow?[/code]

Philippine Electronics Forum

Re: sim900d interface with pic16f877a
« Reply #59 on: May 17, 2012, 09:48:00 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com