caramoan tour package

caramoan tour package

Author Topic: problem in receiving msg via gsm module and pic16f628a with .bas code  (Read 3057 times)

Offline Didoyskie

  • CR2032 Battery
  • **
  • Posts: 7
  • Pogi/Ganda Points: 0
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #40 on: September 06, 2010, 12:02:30 PM »
gagana yan basta ioff mo ung BOREN nya sa program mo... para kahit hanggang 1.5V maglogic 1 p rin sya.

hint: nabasa ko ung program mo... hmmm imo wag kang umasa sa at+CMGL="all" kasi mahirap syang ifilter lagi.

ung GSM naman magsesend sya ng notification kung may bagong message syang natanggap. dun k magdepend.

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #40 on: September 06, 2010, 12:02:30 PM »

Offline Didoyskie

  • CR2032 Battery
  • **
  • Posts: 7
  • Pogi/Ganda Points: 0
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #41 on: September 06, 2010, 12:07:01 PM »
next page n pala... hehe sorry bago lang dito sa forum eh...

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #41 on: September 06, 2010, 12:07:01 PM »

Offline jungardc2

  • Size AAA Battery
  • ***
  • Posts: 70
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #42 on: September 06, 2010, 12:10:11 PM »
gagana yan basta ioff mo ung BOREN nya sa program mo... para kahit hanggang 1.5V maglogic 1 p rin sya.

hint: nabasa ko ung program mo... hmmm imo wag kang umasa sa at+CMGL="all" kasi mahirap syang ifilter lagi.

ung GSM naman magsesend sya ng notification kung may bagong message syang natanggap. dun k magdepend.
hindi kasi ganun kadali tol..mahaba kasi program ko taps parang dadaan lang siya pagmagcheck sa gsm..mrami kasi ako i/os sa project ko..anyway baka pagoff lang ng BOREN lang un kulang ko
carpe diem..

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #42 on: September 06, 2010, 12:10:11 PM »

Offline Deus Rex

  • LR44 Battery
  • *
  • Posts: 2
  • Pogi/Ganda Points: 0
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #43 on: October 08, 2010, 10:15:36 PM »
hello sir paranz.. mdyo related kasi ang problem namin dito sa thread ninyo.
 pano ba namin to ma modify at mapa work ang aming code. hindi kasi nya ma-end ang process na ito.
kelangan kasi namin ang pag-receive nang "OFF" message pra mg-communicate sa PIC at i-off ang alarm sa pag-trigger nang horn.
(my whole post is in this link: http://www.electronicslab.ph/forum/index.php/topic,20629.0.html at nandito po lahat ang prob namin)


     // Start sa pag parse sa receive message!!

      UART1_Write_Text("AT+CMGR=1\n\r");          //RETRIEVE Receive MESSAGE
      Delay_ms(2);                                //LOADING TIME
      while (cnt < 7) {
            if (UART1_Data_Ready() == 1) {
               UART1_Read_Text(receive,",",10);
               cnt+=3;
            } else {
                   cnt++;
                   Delay_ms(1);
                   }
      }

      cnt=0;
      while (cnt < 20) {
            if (UART1_Data_Ready() == 1) {
               UART1_Read_Text(receive,"OK",70);

               if(strstr(receive, "OFF")) {
                    OFFfound = 1;
               }
               if(strstr(receive, "owner")) {
                    ownerFound = 1;
               }
               break;
            } else {
                   cnt++;
                   Delay_ms(1);
              }
      }
        //UART1_Write_Text("AT+CMGD=1");      // DELETE MESSAGE
       
       if(OFFfound & ownerFound) {
             alarmOut = 0;
             accActOut = 0;
             horntrigger = 0;
             acceltrigger = 0;
             OFFfound = 0;
             ownerFound = 0;
             count = 0;
             //break;
        }
         // end sa pagparse sa message!!!

meron na po talaga akong na post dito pru mdyo kulang pa po kasi..
salamat po.

best regards,
-deus rex

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #43 on: October 08, 2010, 10:15:36 PM »

Offline Deus Rex

  • LR44 Battery
  • *
  • Posts: 2
  • Pogi/Ganda Points: 0
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #44 on: October 08, 2010, 10:18:44 PM »
gamit po pala namin ay PIC16f877A.

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #44 on: October 08, 2010, 10:18:44 PM »

Offline Cute_Worm_1983

  • Size D Battery
  • ******
  • Posts: 418
  • Pogi/Ganda Points: 16
  • Gender: Male
Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #45 on: January 16, 2011, 12:48:12 PM »
baka may idea kayo kung ano possible problem kung bakit hindi ma capture yung string byte galing sa RX ng MCU. gumamit ako ng voltage divider kasi 3.3v to 5v

ginamit ko yung transistor and resistor voltage divider. pero pag nag test ako gamit yung serial LCD nag E-gizmo. nakikita ko naman nagbabato ng data yung GSM module.


ito sample code ko.

void getstring(char *string, int8 max){

int8 index=0;
char c=0;
 
   do{

       c = getc();
       string[index]=c;
       index++;
 
   }while(index < max);
            string[index]=0;
}





 
I love electronicslab.ph

Philippine Electronics Forum

Re: problem in receiving msg via gsm module and pic16f628a with .bas code
« Reply #45 on: January 16, 2011, 12:48:12 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com