       }
       else {   
        if ( b == ',' ) {
+          strcpy(altitudeUnit,buffer);
           Serial.print("ALTITUDE unit  : ");
-          Serial.println(buffer);
-          altitudeUnit=buffer;
+          Serial.println(altitudeUnit);
           state =PS_READ_GEOID_SEPARATION;
           resetBuffer();
   

      }
      else {
        if ( b == ',' ) {
          Serial.print("POSITION FIX   : ");
          Serial.println(buffer);
          positionFix=buffer; 
          state = PS_READ_NUM_SAT;
          resetBuffer();
          //delay(500); don't do this!

 * SendGPSLocation()
 * This procedure open a GPRS data connection and send latitude and longitude for server.
 * After data is sent it disconnect from server.
 * Send data to server using format "latitude,longitude" = "llll.llll,lllll.llll"
 * obs. no \0 at end like string.
 ******************************************************************************************/

void SendGPSLocation(){  
  //char data2db[]="410.869,111.222";
  char data2db[20];
    
  //get the local ip number
  //GPRS.println("AT+CIFSR");
  if(!sim808_check_with_cmd("AT+CIFSR\r\n","OK\r\n",CMD)){  
    Serial.println("AT+CIFSR => FAIL");    
  }else Serial.println("AT+CIFSR => OK");
  

   
  //Get the remote IP address
  //GPRS.println("AT+CDNSGIP=\"ardugps.hopto.org\"");
  if(!sim808_check_with_cmd("AT+CDNSGIP=\"ardugps.hopto.org\"\r\n","OK\r\n",CMD)){  
    Serial.println("AT+CDNSGIP => FAIL");    
  }else Serial.println("AT+CDNSGIP => OK");  
  delay(5000);
  
  //start a connection to TCP to URL and port 
  if(!sim808_check_with_cmd("AT+CIPSTART=\"TCP\",\"ardugps.hopto.org\",6789\r\n","OK\r\n",CMD)){  
    Serial.println("AT+CIPSTART => FAIL");    
  }else Serial.println("AT+CIPSTART => OK");
  delay(5000);

  //copy latitude and longitude to send via TCP server
  memset(data2db,'\0',sizeof(data2db));
  strcpy(data2db,latitude);
  strcat(data2db,",");
  strcat(data2db,longitude);
  
  if(!SendDataCIPSEND(data2db,sizeof(data2db))){
    Serial.println("CIPSEND => FAIL");
  } else Serial.println("CIPSEND => OK");
  delay(5000);

  if (!CheckConnectionStatus()) {
    Serial.println("Uno was not connected to Server");
  }
  else{
    sim808_check_with_cmd("AT+CIPCLOSE\r\n", "CLOSE OK\r\n", CMD);
    Serial.println("Uno execute disconnection from Server");
  }
  delay(3000);

}//end procedure

/*************************************************************************************
 * SendDataCIPSEND()
