The Philippine Electronics and Technology Forum
February 10, 2012, 04:34:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: 1 ... 3 4 [5]   Go Down
  Print  
Author Topic: Problem in thesis..GSM module and analyzing SMS  (Read 7095 times)
Kaizer03
Nuclear Reactor
****

Pogi/Ganda Points: 217
Offline Offline

Posts: 4516


C#<-->Android<-->Java


WWW
« Reply #80 on: February 04, 2010, 09:02:34 AM »

Bka meron naman poh kayung maisasuggest na pamalit sa 7805 5v voltage regulator kasi poh mukang kulang yung current rating niya para suplayan yung 1 namen na pic16f84a na may nakakabit na dalawang 5v relay sa output nia and 1 din pohng pic16f877a na my nakakabit na 4 5v relay and GSM modem poh...kahit poh konten circuit manipulation para mapataas yung output current ng voltage regulator khit mga 3A poh sana...dbah poh mas okei na na mataas yung output current pra ndi maxadong maginit ung regulator...sana poh matulungan nio kame...salamat!!


yeah check mo yung sinabe ni tita rdp, yung 'Current Boost Regulator' meron din sa ibang datashet pero masmaganda yung sa national..

kung gusto mo  ng component na 5V regulator na 3A, you can check 78T05, sa farnell at rs ata ako nakakita nito last year.. pero syempre mas mahal ito=)
Logged

Lend a hand for those who are in need!=)

Stop Hijacking!=) More Technical Posts!=)
DataSheets are enough to answer your questions! Wink

Kaizer Killer EX Pre-Alpha
The Philippine Electronics and Technology Forum
« Reply #80 on: February 04, 2010, 09:02:34 AM »

 Logged
louis26
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Posts: 6



« Reply #81 on: February 04, 2010, 11:16:10 AM »

ganun poh ba..?nasa magkanp nmn poh kaya yung mahal na yun??nasa 300 poh ba??Salamat...
Logged
Kaizer03
Nuclear Reactor
****

Pogi/Ganda Points: 217
Offline Offline

Posts: 4516


C#<-->Android<-->Java


WWW
« Reply #82 on: February 04, 2010, 11:25:00 AM »

di naman =)

http://ph.farnell.com/jsp/search/browse.jsp;jsessionid=Y5TYMW14YMBHICWNBBSRFTY?N=0&Ntk=gensearch_001&Ntt=78t05&Ntx=mode+matchallpartial&suggestions=false&ref=globalsearch&_requestid=160805
Logged

Lend a hand for those who are in need!=)

Stop Hijacking!=) More Technical Posts!=)
DataSheets are enough to answer your questions! Wink

Kaizer Killer EX Pre-Alpha
louis26
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Posts: 6



« Reply #83 on: February 04, 2010, 10:00:17 PM »

Salamat!..try ko tumingin sa deeco kung meron cla kpg ala n talaga akong makita sa malapit punta nlang ako sa farnell sa makati poh dibah?..Point for your kindness..salamat ulet!..
Logged
louis26
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Posts: 6



« Reply #84 on: February 11, 2010, 12:20:30 AM »

mga sir patulong poh ulet kasi poh ngttry aqng magprogram ngaun..gamit ko poh ung less than 200 pesos programmer galing dito sa forum na to..gamit ko pong software is icprog..while programming poh okei naman sya alang error gang mtapos ung programming..taz after programming nireread ko poh sya okei naman poh preho lang xa na iniupload ko na hex file..kea lang poh kapag tinetest ko na xa ndi gumagana yung blinker ko poh taz kapag narreread poh ako ulet iba na yung laman nia or should i say na may mga part na bumalik sa pgging 3fff nia..taz nagvolt meter poh aq sa mclr 12v lang poh sya upon programming..okei lang poh ba un na 12v??pic16f877a poh yung pinoprogram ko poh..help naman poh...
Logged
louis26
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Posts: 6



« Reply #85 on: February 11, 2010, 11:57:19 PM »

okey na poh xa.. Grin Grin mali pla yung binigay saken na resistor imbis na 10k,1k yung binigay sken taz kulang lang pla ako ng decoupling capacitor..hehe liit lang na bgay pinahirapan ako ng husto..hirap tlga pag newbie.. Grin Grin taz kelangan pla naka high ang mclr pra magblink ang led kpg ala nun ndi pla magbiblink..ala kasi akong kinoconnect dun kpag ngsasimulate ako sa proteus..naguluhan 2loy ako..sabihin ko na din sa forum na eto bka meron din katulad ko na medyo engeng eh para ndi nama :Pn mahirapan..hehehe
Logged
mini_mouse ^_^
Size C Battery
*****

Pogi/Ganda Points: 4
Offline Offline

Gender: Female
Posts: 187


...All is Well...


« Reply #86 on: March 08, 2010, 11:26:12 AM »

...hello po,may project din po kami na i-turn on andoff ung device through text... tanong kolang if successful ung ptoject mo...nagwork na kasi ung samin kaso lang, nasira... tinutroubleshoot pa... Sad
Logged

...I'm thankful each and every day, coz I found you...
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #87 on: March 08, 2010, 03:26:13 PM »

Ano naging problema?
Logged
ΔЅịMų
Diesel Generator
*

Pogi/Ganda Points: 82
Offline Offline

Gender: Male
Posts: 1661


"Live Curious"


« Reply #88 on: March 08, 2010, 10:10:18 PM »

kasama ko poh c stepipai... nag work na poh xa, pro after 4 trials, di na nag-wprk... di namin alam kung wat ang problema.. may idea poh ba d2 on how to put a received msg comming from the gsm to an array?... pra poh ma compare namin... may code na poh kmi kya lang, di na nag wowork... thesis project poh namin..
Logged

by giving people the power to share, we're making the world more transparent.
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #89 on: March 08, 2010, 10:18:15 PM »

post your code  Cheesy
Logged

Simpler designs are usually better.
ΔЅịMų
Diesel Generator
*

Pogi/Ganda Points: 82
Offline Offline

Gender: Male
Posts: 1661


"Live Curious"


« Reply #90 on: March 08, 2010, 10:29:41 PM »

#include <ez8.h>
#include <sio.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <uart.h>
#include <gpio.h>
#include <ctype.h>

#define MSG_LEN 250
#define SER_BUFFER_SIZE      32      
#define SER_FIFO_MASK       (SER_BUFFER_SIZE-1)

char rxfifo[SER_BUFFER_SIZE];
volatile unsigned char rxiptr, rxoptr;
unsigned char txfifo[SER_BUFFER_SIZE];
volatile unsigned char txiptr, txoptr;
unsigned char ser_tmp;



unsigned int action_flag;
int sms_len=0;
unsigned int rx_count;
unsigned int msg_index, info_index;
char rx_buffer[];
const char a[]="DEVICE1OFF";
const char b[]="DEVICEOFF2";
const char c[]="DEVICEOFF3";
const char d[]="DEVICEOFF4";
const char e[]="DEVICEON1";
const char f[]="DEVICEON2";
const char g[]="DEVICEON3";
const char h[]="DEVICEON4";
char i[10];
char msg[MSG_LEN];
//const unsigned int SIM=40;
//int cmpresult1,cmpresult2,cmpresult3,cmpresult4;


static unsigned char is_equal(const signed char *s, unsigned int len)
{
   unsigned char i=0;

   if (sms_len < len)
   {
      return 0;
   }
   
   while(len)
   {
      --len;
      ++i;
   }
   return 1;
}

//************************************************DELAY************************************************
void delay (int duration)
{   int i, j;
      for (i=0;i<duration;i++)
      {   for (j=0;j<325;j++);
      }
}
void init_port()
{   

   PCDD=0x00;    //all ports output
   PAAF=0x30;    //PA4 and PA5 alternate functions   
}
/*void ser_int_tx()                   
{      
      U0TXD = txfifo[txoptr];            
      ++txoptr;               
      txoptr &= SER_FIFO_MASK;         
      if (txoptr==txiptr)
         {          
            IRQ0ENH &= ~0x08;         
            IRQ0ENL &= ~0x08;         
         }
}
*/
void ser_int_rx()                   
{      
      rxfifo[rxiptr++]=U0RXD;            
      ser_tmp=(rxiptr+1) & SER_FIFO_MASK;
      if (ser_tmp!=rxoptr)
         {
            rxiptr=ser_tmp;
         }
}

void at()
{
   printf("AT");
   putch(13);
   delay(100);

}
void cnmi()
{
   printf("AT+CNMI=3,1,0,0,0");
   putch(13);
   delay(100);
}
void sms()
{
   printf("AT+CMGF=1");
   putch(13);
   delay(100);
}
void gsm_config_ok()
{
   printf("AT+CMGS=\"09059306532\"");
   delay(100);
   putch(13);
   printf("Device Configurtion Successfull. Device is now ready.");
   putch(26);
   delay(100);
}
void disecho()
{
   printf("ATE0");
   putch(13);
   delay(100);
}
void init_gsm()
{
   at();
   sms();
   cnmi;
   disecho();
   gsm_config_ok();
}

void action()
{
   if (is_equal("+CMTI:",6))
   {
      printf("AT+CMGR=1");
      putch(13);
      if (strcmp(rxfifo,a))
      {
         printf("AT+CMGS=\"09059306532\"");
         delay(100);
         putch(13);
         printf("Program Successful.");
         putch(26);
         delay(100);
      }
   }

}
void uart()
{
   init_uart(0,5529600,9600);   //init UART
   select_port(0);
}
#pragma interrupt
void isr_rx()
{
   DI();
   ser_int_rx();
   action_flag=1;
   EI();
}
void uart0_action()
{
   DI();
   IRQ0ENH |= 0x18;
   IRQ0ENL |= 0x18;
   SET_VECTOR (UART0_RX,isr_rx);
   IRQ0 &= ~0x18;
   U0CTL0 |= 0xc0;
}


void main()
{
   action_flag=0;
   init_port();
   uart();
   uart0_action();
   init_gsm();
while(1)
   {   
      if (action_flag=1)
      {
         action();
         delay(100);
      }
   }
}
Logged

by giving people the power to share, we're making the world more transparent.
ΔЅịMų
Diesel Generator
*

Pogi/Ganda Points: 82
Offline Offline

Gender: Male
Posts: 1661


"Live Curious"


« Reply #91 on: March 08, 2010, 10:31:36 PM »

yan na poh mga sir.. bali, mag sesend lang ako nang DEVICE1OFF na word sa GSM ko, mag rereply xa as "Programming Successful"...
Logged

by giving people the power to share, we're making the world more transparent.
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #92 on: March 09, 2010, 04:19:43 AM »

It is better if you'll use PDU mode in decoding the message since the location of the message in text mode varies.

ex.

upon first reading the gsm will give you
+CMGR: "REC UNREAD","+639217640883",,"04/09/16,11:23:06+12"CRLFMESSAGE V1CRLFCRLFOKCRLF###..

after reading it again
+CMGR: "REC READ","+639217640883",,"04/09/16,11:23:06+12"CRLFMESSAGE V1CRLFCRLFOKCRLF###..

CR=Carriage Return
LF=Line feed
Logged
mini_mouse ^_^
Size C Battery
*****

Pogi/Ganda Points: 4
Offline Offline

Gender: Female
Posts: 187


...All is Well...


« Reply #93 on: March 09, 2010, 02:45:58 PM »

...ah, dapat pala PDU mode ang gagamitin namin... Sad................ tnx poh...


@louis26:

kamusta na po ung project nyo? working na ba talaga?
Logged

...I'm thankful each and every day, coz I found you...
ΔЅịMų
Diesel Generator
*

Pogi/Ganda Points: 82
Offline Offline

Gender: Male
Posts: 1661


"Live Curious"


« Reply #94 on: March 09, 2010, 05:04:53 PM »

It is better if you'll use PDU mode in decoding the message since the location of the message in text mode varies.

ex.

upon first reading the gsm will give you
+CMGR: "REC UNREAD","+639217640883",,"04/09/16,11:23:06+12"CRLFMESSAGE V1CRLFCRLFOKCRLF###..

after reading it again
+CMGR: "REC READ","+639217640883",,"04/09/16,11:23:06+12"CRLFMESSAGE V1CRLFCRLFOKCRLF###..

CR=Carriage Return
LF=Line feed

ahh.. oki poh sir.... in PDU mode poh, pwde ko na ma parse ung msg? ung project poh kc namin sir is about home automation...
ganito poh ung process sir:

SMS message -------> array --------> compare
if the msg is equal to "DEVICE1OFF", then i-off nang mcu ung device1 sir tpos send xa nang confirmation msg na "Device 1 has successfully turned off".
Logged

by giving people the power to share, we're making the world more transparent.
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #95 on: March 09, 2010, 05:22:25 PM »

check nyo to http://www.electronicslab.ph/forum/index.php/topic,13813.80.html

post 92 & 93 ... it is written in Proton pero andon ang comparison ng PDU mode  Wink
Logged

Simpler designs are usually better.
ΔЅịMų
Diesel Generator
*

Pogi/Ganda Points: 82
Offline Offline

Gender: Male
Posts: 1661


"Live Curious"


« Reply #96 on: March 09, 2010, 06:57:36 PM »

check nyo to http://www.electronicslab.ph/forum/index.php/topic,13813.80.html

post 92 & 93 ... it is written in Proton pero andon ang comparison ng PDU mode  Wink

thank you poh miss hannah... Smiley Smiley
Logged

by giving people the power to share, we're making the world more transparent.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: 1 ... 3 4 [5]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Let start analyzing Analog microelectronics: Bandgap Reference
Microelectronics
blackfin 11 1243 Last post September 27, 2009, 10:18:57 PM
by blackfin
Another thesis problem
COE Students
mariellove 4 851 Last post November 30, 2009, 07:47:19 PM
by mariellove
Problem with LMX9838 bluetooth module: Need Assistance
Personal, Academic and Commercial Electronics Projects
horde_fuego 3 1024 Last post December 22, 2009, 10:37:14 PM
by horde_fuego
problem in receiving msg via gsm module and pic16f628a with .bas code « 1 2 3 »
PIC Microcontrollers
jungardc2 45 2119 Last post January 16, 2011, 12:48:12 PM
by Cute_Worm_1983
PIC16f877a ccp2 module problem....
Microcontroller/Microprocessor Unit Projects and Programming
un_leashedslash 2 410 Last post September 11, 2010, 08:36:08 PM
by un_leashedslash
Thesis.SMS module circuit for earthquake alarming system.
Thesis and Project Proposal
ece.lourence 4 124 Last post July 20, 2011, 12:12:00 AM
by ece.lourence
thesis project using cellphone as GSM Module/Modem
Cellular Phones and Accessories
Phthonos 6 249 Last post August 30, 2011, 03:51:23 PM
by Phthonos
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!