Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Send GPS info over internet

Status
Not open for further replies.

pokhraj_d

Newbie level 2
Joined
Oct 27, 2017
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
24
Hi,
I have GSM+GPS 808 Module. I want to send GPS data to TCP server over internet.
I did the following sketch:

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <SoftwareSerial.h>
 
#define RXPIN 6
#define TXPIN 5
char ip_data [40]="This is sms from GSM";
SoftwareSerial myGsm(TXPIN , RXPIN);  //5 is for TX and 6 is for RX
 
void setup() {
  Serial.begin(115200);
  myGsm.begin(9600); // connect gps sensor
  delay(2000);
gpsSerial.println("AT+CGPSPWR=1");
  printSerialData();
  delay(2000);
  gpsSerial.println("AT+CGPSRST=1");
  printSerialData();
  delay(2000);
  myGsm.println("AT+CIPSHUT");
delay(1000);
printSerialData();
myGsm.println("AT+CIPMUX=0");
delay(2000);
printSerialData();
myGsm.println("AT+CGATT=1");
delay(1000);
printSerialData();
//myGsm.println("AT+CIPCSGP="1","voda.com"");
//delay(5000);
printSerialData();
myGsm.println("AT+CSTT="voda.com","",""");
delay(1000);
printSerialData();
myGsm.println("AT+CIICR");
delay(6000);
printSerialData();
myGsm.println("AT+CIFSR");
delay(6000);
printSerialData();
myGsm.println("AT+CIPSTART="TCP","xxx.xxx.xxx.xxx","Port Number"");
delay(5000);
printSerialData();
delay(5000);
myGsm.println("AT+CIPSEND");



Now how Do I send the GPS data received from GPS 808 module.

Thanks-
Pokhraj
 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top