Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: How to show only $GPGGA sentence in GPS using Arduino mcu? on: March 01, 2013, 09:33:56 am
sure?
2  Using Arduino / Programming Questions / Re: How to show only $GPGGA sentence in GPS using Arduino mcu? on: March 01, 2013, 06:45:42 am
hmmm if
Serial.print("$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"); //can turn on only the second sentence (GPRMC)

Serial.print("$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"); //can turn on GPRMC and GGA

how bout turn only GGA?
3  Using Arduino / Programming Questions / Re: How to show only $GPGGA sentence in GPS using Arduino mcu? on: February 28, 2013, 09:19:40 am
are you representing all the people here? you said "we" ? what i'm asking is for advice, procedures, or hints for experienced programmers who have handled the same project like mine and who are knowledgeable in using the gps. 
4  Using Arduino / Programming Questions / Re: How to show only $GPGGA sentence in GPS using Arduino mcu? on: February 28, 2013, 08:36:15 am
how?
5  Using Arduino / Programming Questions / How to show only $GPGGA sentence in GPS using Arduino mcu? on: February 28, 2013, 08:24:09 am
How to show only $GPGGA sentence in GPS using Arduino mcu?
6  Using Arduino / Programming Questions / Re: Is it possible to send full $GPGGA line via GSM? on: January 27, 2013, 03:24:35 am
i want to send only the line of $GPGGA using GSM every 5 seconds.... ... is it easy? smiley-razz

i'm using arduino board with 2 hardware uart
7  Using Arduino / Programming Questions / Is it possible to send full $GPGGA line via GSM? on: January 27, 2013, 01:58:01 am
Is it possible to send full $GPGGA line via GSM?  smiley-neutral
8  Using Arduino / Programming Questions / Re: How to send via GSM the GPGGA line in GPS Shield using MCU with 2 h/w uart? on: January 24, 2013, 07:37:13 am
How to call gps and gsm in arduino using 2 uart sir?

void setup()
{
Serial.begin(9600); // gsm module?
Serial1.begin(9600); //gsp shield?
}

is this ok?
9  Using Arduino / Programming Questions / Re: How to send via GSM the GPGGA line in GPS Shield using MCU with 2 h/w uart? on: January 22, 2013, 10:03:04 am
the Gizduino may have more than one hardware serial port is irrelevant as far as those two shields are concerned. Unless you do some pin bending.

yes sir... i bend pins Rx = 0 and Tx = 1 on my GPS Shield and wired them on my MCU lower pins Rx = 2  and Tx = 3...

my Gsm Module that is connected on pins Rx = 0 and Tx = 1 is parallelled in the middle of my microcontroller and my GPS shield sir smiley

10  Using Arduino / Programming Questions / Re: How to send via GSM the GPGGA line in GPS Shield using MCU with 2 h/w uart? on: January 21, 2013, 09:29:35 am
I used this code for GSM and microcontroller only,, and it works:

/*
  GSM Send Sketch for Arduino
 
  Initializes GSM Module and sends an SMS to recipient
 
  The circuit:
  *Arduino pin 0 (RX) - GSM Module (TX)
  *Arduino pin 1 (TX) - GSM Module (RX)
 
  Created 2010
  by Meann Zabanal
  Modified
  by John for GSM Shield testing
*/

char Rx_data[50];
unsigned char Rx_index = 0;
int i = 0;
char msg[160];
int sig;

void setup() {
  Serial.begin(9600);
 
  initGSM();
  send_msg("***********, "Hello");
}

void loop() {
  //none
}

void send_msg(char *number, char *msg)
{
  char at_cmgs_cmd[30] = {'\0'};
  char msg1[160] = {'\0'};
  char ctl_z = 0x1A;

  sprintf(msg1, "%s%c", msg, ctl_z);
  sprintf(at_cmgs_cmd, "AT+CMGS=\"%s\"\r\n",number);
 
  sendGSM(at_cmgs_cmd);
  delay(100);
  delay(100);
  delay(100);
  sendGSM(msg1);
  delay(100);
}

void sendGSM(char *string){
  Serial.write(string);
  delay(90);
}

void clearString(char *strArray) {
  int j;
  for (j = 100; j > 0; j--)
    strArray[j] = 0x00;
}

void send_cmd(char *at_cmd, char clr){
  char *stat = '\0';
  while(!stat){
    sendGSM(at_cmd);
    delay(90);
    readSerialString(Rx_data);
   
    stat = strstr(Rx_data, "OK");
  }
  if (clr){
    clearString(Rx_data);
    delay(200);
    stat = '\0';
  }
}

void initGSM(){
 
  send_cmd("AT\r\n",1);                 
//  send_cmd("ATE0\r\n",1); // Turn off automatic echo of the GSM Module   
   
  send_cmd("AT+CMGF=1\r\n",1);         // Set message format to text mode
  //Sucess
 
  Serial.println("Success");
   
  delay(1000);
  delay(1000);
  delay(1000);
}

void readSerialString (char *strArray) {
 
  if(!Serial.available()) {
    return;
  }
 
  while(Serial.available()) {
    strArray = Serial.read();
    i++;
  }
}

//----------------------------------------------------AND This is my code for GPS Shield and MCU(works)-------------------------------
void setup()
{
  Serial.begin(9600);
 
}

void loop() // run over and over
{
    while(!(Serial.available())){}
      Serial.write(Serial.read());
}


my problem is how to combine their code when i'm using 2 hardware uarts?? smiley-sad
11  Using Arduino / Programming Questions / How to send via GSM the GPGGA line in GPS Shield using MCU with 2 h/w uart? on: January 21, 2013, 09:19:05 am
 HELP!! smiley-confuse
these r my boards:
GPS Shield             http://www.e-gizmo.com/KIT/gps%20shield.html
GSMGPRS Shield    http://www.e-gizmo.com/KIT/gsm%20shield.html
Gizduino+(Arduino) microcontroller with 2 h/w uart  http://www.e-gizmo.com/KIT/gizduino+%20164,324,644.html
Pages: [1]