Giter VIP home page Giter VIP logo

Comments (45)

m4rkw avatar m4rkw commented on May 26, 2024

now fixed in master, will look at your other issue shortly

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Still not picking up the IMEI as it is picking up the incorrect modem response.

Debug Output Below

gsm_get_imei() started
Modem Reply:
AT+GSN

gsm_get_imei() result:
O
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
863071016800770

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Argh sorry, try now?

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Getting there.

Now the data being sent is strange.

Debug Output Below

collect_gps_data(): fix acquired
Failed checksums:
0
collect_all_data() completed
Current:
�.�[,80715,12545209,-26.619892,152.859207,5.67,442.50,162.52,161,5]

There also appears to be an issue with retrieving the time from the gsm modem.

Debug Output Below

gsm_get_time() started
Modem Reply:
AT+QI
Modem Reply:
DEAC
Modem Reply:
T
AT+CCLK?

Modem Reply:
+CCLK: "08/07/15,12:55:07+00"

Modem Reply:

Modem Reply:
OK

gsm_get_time() result:
�.�0
gsm_get_time() completed

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Hi,

I've reverted the earlier patch made to fix the gps date/time. Please could you try again and post the output? I'm pretty sure it'll still be broken but I want to rule out additional impact from the earlier patch.

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Hi Mark

Sorry for the delay, sleep beckoned and I obliged.

I have included the full debug log this time to assist your efforts as requested.

As you expected, still broken.

Ian
(GMT +10)

Full Debug Output Below

gsm_on_off() finished
gsm_on_off() started
gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

Modem Reply:
+CCLK: "04/01/01,00:00:42+00"

Modem Reply:

Modem Reply:
OK

gsm_get_time() result:
Ñ.�
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.058,V,,,,,0.00,0.00,050180,,,N_46
$GPV,05,56,115,,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,00_65
$GPGLL,,,,,191813.096,V,N_76
$GPRMC,191814.096,V,,,,,0.00,0.00,080715,,,N_4D
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191814.096,,,,,0,0,,,M,,M,,_43
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191814.096,V,N_71
$GPRMC,191815.096,V,,,,,0.00,0.00,080715,,,N_4C
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191815.096,,,,,0,0,,,M,,M,,_42
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191815.096,V,N_70
$GPRMC,191816.096,V,,,,,0.00,0.00,080715,,,N_4F
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191816.096,,,,,0,0,,,M,,M,,_41
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191816.096,V,N_73
$GPRMC,191817.096,V,,,,,0.00,0.00,080715,,,N_4E
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191817.096,,,,,0,0,,,M,,M,,_40
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191817.096,V,N_72
$GPRMC,191818.096,V,,,,,0.00,0.00,080715,,,N_41
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191818.096,,,,,0,0,,,M,,M,,_4F
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,29,12,56,005,_74
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191818.096,V,N_7D
$GPRMC,191819.096,V,,,,,0.00,0.00,080715,,,N_40
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191819.096,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,28,12,56,005,_75
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,_56
$GPGLL,,,,,191819.096,V,N_7C
$GPRMC,191820.096,V,,,,,0.00,0.00,080715,,,N_4A
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191820.096,,,,,0,0,,,M,,M,,_44
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,27,12,56,005,_7A
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,22_56
$GPGLL,,,,,191820.096,V,N_76
$GPRMC,191821.096,V,,,,,0.00,0.00,080715,,,N_4B
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191821.096,,,,,0,0,,,M,,M,,_45
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,28,12,56,005,_75
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,24_50
$GPGLL,,,,,191821.096,V,N_77
$GPRMC,191822.096,V,,,,,0.00,0.00,080715,,,N_48
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191822.096,,,,,0,0,,,M,,M,,_46
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,28,12,56,005,_75
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,26_52
$GPGLL,,,,,191822.096,V,N_74
$GPRMC,191823.096,V,,,,,0.00,0.00,080715,,,N_49
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191823.096,,,,,0,0,,,M,,M,,_47
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,44,20,59,355,,05,56,115,26,12,56,005,_7B
$GPGSV,4,2,13,29,43,209,37,02,24,132,,21,21,279,,15,11,024,_74
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,25_51
$GPGLL,,,,,191823.096,V,N_75
$GPRMC,191824.096,V,,,,,0.00,0.00,080715,,,N_4E
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191824.096,,,,,0,0,,,M,,M,,_40
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,43,20,59,355,,05,56,115,26,12,56,005,_7C
$GPGSV,4,2,13,29,43,209,37,02,24,132,28,21,21,279,,15,11,024,_7E
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,25_51
$GPGLL,,,,,191824.096,V,N_72
$GPRMC,191825.096,V,,,,,0.00,0.00,080715,,,N_4F
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191825.096,,,,,0,0,,,M,,M,,_41
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,43,20,59,355,,05,56,115,25,12,56,005,_7F
$GPGSV,4,2,13,29,43,209,37,02,24,132,28,21,21,279,,15,11,024,_7E
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,01,70,10,150,23_57
$GPGLL,,,,,191825.096,V,N*73
Failed checksums:
1
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
Ñ.�[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
Ñ.�[]

gsm_send_http(): Length of data packet:
45
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
6
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
6
Modem Reply:
AT+QISEND=6

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:

Modem Reply:
+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Wed, 08 Jul 2015
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/08,19:18:29+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
�7�
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Can not send data, saving to flash memory
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QIDEACT

Modem Reply:
AT+CCLK?

Modem Reply:
+CCLK: "04/01/01,00:01:10+00"

Modem Reply:

Modem Reply:
OK

gsm_get_time() result:
Ñ.�
gsm_get_time() completed
$GPRMC,191826.096,V,,,,,0.00,0.00,080715,,,N_4C
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191826.096,,,,,0,0,,,M,,M,,_42
$G$GPRMC,191841.089,V,,,,,0.06,356.58,080715,,,N_48
$GPVTG,356.58,T,,M,0.06,N,0.12,K,N_3A
$GPGGA,191841.089,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,25,67,268,42,20,60,355,,05,56,115,31,12,56,005,28_7B
$GPGSV,4,2,13,29,43,209,33,02,24,132,29,21,22,279,27,15,11,024,_7D
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,25_47
$GLGSV,1,1,02,87,28,216,35,70,10,150,21_60
$GPGLL,,,,,191841.089,V,N_7F
$GNRMC,191842.089,V,,,,,0.04,356.58,080715,,,N_57
$GPVTG,356.58,T,,M,0.04,N,0.07,K,N_3C
$GPGGA,191842.089,,,,,0,0,,,M,,M,,_4E
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,42,20,60,355,,05,56,115,32,12,56,005,29_79
$GPGSV,4,2,13,29,43,209,33,02,24,132,29,21,22,279,27,15,11,024,_7D
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,24_46
$GLGSV,1,1,02,87,28,216,35,70,10,150,21_60
$GNGLL,,,,,191842.089,V,N_62
$GNRMC,191843.089,V,,,,,0.03,356.58,080715,,,N_51
$GPVTG,356.58,T,,M,0.03,N,0.06,K,N_3A
$GPGGA,191843.089,,,,,0,0,,,M,,M,,_4F
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,42,20,60,355,,05,56,115,33,12,56,005,29_78
$GPGSV,4,2,13,29,44,209,32,02,24,132,29,21,22,279,26,15,11,024,_7A
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,25_47
$GLGSV,1,1,02,87,28,216,36,70,10,150,21_63
$GNGLL,,,,,191843.089,V,N_63
$GNRMC,191844.089,V,,,,,0.10,356.58,080715,,,N_54
$GPVTG,356.58,T,,M,0.10,N,0.19,K,N_36
$GPGGA,191844.089,,,,,0,0,,,M,,M,,_48
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,42,20,60,355,,05,56,115,33,12,56,005,30_70
$GPGSV,4,2,13,29,44,209,32,02,24,132,29,21,22,279,26,15,11,024,_7A
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,27_45
$GLGSV,1,1,03,87,28,216,36,70,10,150,20,75,01,352,_54
$GNGLL,,,,,191844.089,V,N_64
$GNRMC,191845.089,V,,,,,0.10,356.58,080715,,,N_55
$GPVTG,356.58,T,,M,0.10,N,0.19,K,N_36
$GPGGA,191845.089,,,,,0,0,,,M,,M,,_49
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,42,20,60,355,,05,56,115,33,12,56,005,28_79
$GPGSV,4,2,13,29,44,209,32,02,24,132,28,21,22,279,26,15,11,024,_7B
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,240,,24,02,352,_77
$GPGSV,4,4,13,193,,,27_45
$GLGSV,1,1,03,87,28,216,36,70,10,150,20,75,01,352,_54
$GNGLL,,,,,191845.089,V,N_65
$GNRMC,191846.089,V,,,,,0.11,356.58,080715,,,N_57
$GPVTG,356.58,T,,M,0.11,N,0.20,K,N_3D
$GPGGA,191846.089,,,,,0,0,,,M,,M,,_4A
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,42,20,60,355,24,05,56,115,33,12,56,005,28_7F
$GPGSV,4,2,13,29,44,209,31,02,24,132,28,21,22,279,26,15,11,024,_78
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,241,,24,02,352,_76
$GPGSV,4,4,13,193,,,27_45
$GLGSV,1,1,03,87,28,216,35,70,10,150,19,75,01,352,_5D
$GNGLL,,,,,191846.089,V,N_66
$GNRMC,191847.089,V,,,,,0.05,356.58,080715,,,N_53
$GPVTG,356.58,T,,M,0.05,N,0.09,K,N_33
$GPGGA,191847.089,,,,,0,0,,,M,,M,,_4B
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,43,20,60,355,25,05,56,115,33,12,56,005,28_7F
$GPGSV,4,2,13,29,44,209,31,02,24,132,28,21,22,279,25,15,11,024,_7B
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,241,,24,02,352,_76
$GPGSV,4,4,13,193,,,27_45
$GLGSV,1,1,03,87,28,216,34,70,10,150,19,75,01,352,_5C
$GNGLL,,,,,191847.089,V,N_67
$GNRMC,191848.089,V,,,,,0.05,356.58,080715,,,N_5C
$GPVTG,356.58,T,,M,0.05,N,0.09,K,N_33
$GPGGA,191848.089,,,,,0,0,,,M,,M,,_44
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,13,25,67,268,43,20,60,355,23,05,56,115,33,12,56,005,28_79
$GPGSV,4,2,13,29,44,209,31,02,24,132,28,21,22,279,24,15,11,024,_7A
$GPGSV,4,3,13,13,08,057,,10,05,142,,31,04,241,,24,02,352,_76
$GPGSV,4,4,13,193,,,27_45
$GLGSV,1,1,04,87,28,216,34,76,28,307,,70,10,150,19,75,01,352,_64
$GNGLL,,,,,191848.089,V,N_68
$GNRMC,191849.089,V,,,,,0.15,356.58,080715,,,N_5C
$GPVTG,356.58,T,,M,0.15,N,0.27,K,N_3E
$GPGGA,191849.089,,,,,0,0,,,M,,M,,_45
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,14,25,67,268,43,20,60,355,24,50,57,342,,05,56,115,33_74
$GPGSV,4,2,14,12,56,005,28,29,44,209,31,02,24,132,28,21,22,279,24_70
$GPGSV,4,3,14,15,11,024,,13,08,057,,10,05,142,,31,04,241,_73
$GPGSV,4,4,14,24,02,352,,193,,,27_72
$GLGSV,1,1,04,87,28,216,33,76,28,307,,70,10,150,18,75,01,352,_62
$GNGLL,,,,,191849.089,V,N_69
$GNRMC,191850.089,V,,,,,0.02,356.58,080715,,,N_52
$GPVTG,356.58,T,,M,0.02,N,0.05,K,N_38
$GPGGA,191850.089,,,,,0,0,,,M,,M,,_4D
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,14,25,67,268,43,20,60,355,22,50,57,342,,05,56,115,33_72
$GPGSV,4,2,14,12,56,005,28,29,44,209,31,02,24,132,27,21,22,279,24_7F
$GPGSV,4,3,14,15,11,024,,13,08,057,,10,05,142,,31,04,241,_73
$GPGSV,4,4,14,24,02,352,,193,,,27_72
$GLGSV,1,1,04,87,28,216,33,76,28,307,,70,10,150,16,75,01,352,_6C
$GNGLL,,,,,191850.089,V,N_61
$GNRMC,191851.089,V,,,,,0.17,356.58,080715,,,N_57
$GPVTG,356.58,T,,M,0.17,N,0.31,K,N_3B
$GPGGA,191851.089,,,,,0,0,,,M,,M,,_4C
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,14,25,67,268,43,20,60,355,24,50,57,342,,05,56,115,33_74
$GPGSV,4,2,14,12,56,005,29,29,44,209,31,02,24,132,26,21,22,279,24_7F
$GPGSV,4,3,14,15,11,024,,13,08,057,18,10,05,142,,31,04,241,_7A
$GPGSV,4,4,14,24,02,352,,193,,,27_72
$GLGSV,1,1,04,87,28,216,33,76,28,307,,70,10,150,15,75,01,352,_6F
$GNGLL,,,,,191851.089,V,N_60
$GNRMC,191852.089,V,,,,,0.17,356.58,080715,,,N_54
$GPVTG,356.58,T,,M,0.17,N,0.32,K,N_38
$GPGGA,191852.089,,,,,0,0,,,M,,M,,_4F
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,14,25,67,268,43,20,60,355,23,50,57,342,,05,56,115,33_73
$GPGSV,4,2,14,12,56,005,30,29,44,209,30,02,24,132,26,21,22,279,24_76
$GPGSV,4,3,14,15,11,024,,13,08,057,21,10,05,142,,31,04,241,_70
$GPGSV,4,4,14,24,02,352,,193,,,27_72
$GLGSV,2,1,05,87,28,216,33,76,28,307,,77,26,246,,70,10,150,15_6E
$GLGSV,2,2,05,75,01,352,_57
$GNGLL,,,,,191852.089,V,N_63
$GNRMC,191853.089,V,,,,,0.20,356.58,080715,,,N_51
$GPVTG,356.58,T,,M,0.20,N,0.37,K,N_39
$GPGGA,191853.089,,,,,0,0,,,M,,M,,_4E
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,4,1,14,25,67,268,43,20,60,355,22,50,57,342,,05,56,115,33_72
$GPGSV,4,2,14,12,56,005,31,29,44,209,30,02,24,132,25,21,22,279,24_74
$GPGSV,4,3,14,15,11,024,,13,08,057,21,10,05,142,,31,04,241,_70
$GPGSV,4,4,14,24,02,352,,193,,,28_7D
$GLGSV,2,1,05,87,28,216,32,76,28,307,,77,26,246,,70,10,150,16_6C
$GLGSV,2,2,05,75,01,352,_57
$GNGLL,,,,,191853.089Failed checksums:
1
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
Ñ.�[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
DEACT OK

gsm_disconnect() started
Modem Reply:
AT
AT

Modem Reply:
OK

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
Ñ.�[]

gsm_send_http(): Length of data packet:
45
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
6
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
6
Modem Reply:
AT+QISEND=6

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:

Modem Reply:
+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Wed, 08 Jul 2015
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/08,19:18:57+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
�7�
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Can not send data, saving to flash memory
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QI
Modem Reply:
DEACT

Modem Reply:
AT+CCLK?

Modem Reply:
+CCLK: "04/01/01,00:01:37+00"

Modem Reply:

Modem Reply:
OK

gsm_get_time() result:
Ñ.�
gsm_get_time() completed
,V,N_62
$GNRMC,191854.089,V,,,,,0.23,356.58,080715,,,N_55
$GPVTG,356.58,T,,M,0.23,N,0.43,K,N_39
$GPGGA,191854.089,,,,,0,0,,,$GPGSV,4,3,14,15,11,024,,13,08,057,19,10,05,142,,31,04,241,_7B
$GPGSV,4,4,14,24,02,352,,193,,,29_7C
$GLGSV,2,1,05,87,28,216,30,76,28,307,,77,26,246,32,70,10,150,19_60
$GLGSV,2,2,05,75,01,352,_57
$GNGLL,2637.1894,S,15251.5542,E,191908.000,A,A_52
$GNRMC,191909.000,A,2637.1891,S,15251.5547,E,0.41,356.58,080715,,,A*67
Invalid altitude, retrying.

$GPVTG,356.58,T,,M,0.41,N,0.76,K,A_34
$GPGGA,191909.000,2637.1891,S,15251.5547,E,1,7,1.20,365.5,M,39.7,M,,_44
GPS fix received.
Data is current.
Current time set from GPS time:
08/07/15,19:19:09+00
gsm_set_time() started
Modem Reply:

Modem Reply:
DEACT OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
1
collect_all_data() completed
Current:
Ñ.�[,80715,19190900,-26.619818,152.859238,0.76,365.50,356.58,120,7]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:
AT+CCLK="08/07/15,19:19:09+00"

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:
AT
AT

Modem Reply:
OK

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
Ñ.�[,80715,19190900,-26.619818,152.859238,0.76,365.50,356.58,120,7]

gsm_send_http(): Length of data packet:
107
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
68
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
68
Modem Reply:
AT+QISEND=68

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Wed, 08 Jul 2015 19:19:14 GMT

Modem Reply:
C
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/08,19:19:14+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
�7�
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Can not send data, saving to flash memory
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QIDEACT

Modem Reply:
AT+CCLK?

Modem Reply:
+CCLK: "08/07/15,19:19:24+00"

Modem Reply:

Modem Reply:
OK

gsm_get_time() result:
Ñ.�0
gsm_get_time() completed
$GNGSA,A,3,29,25,05,13,193,12,,,,,,,1.48,1.20,0.87_2E
$GNGSA,A,3,87,,,,,,,,,,,,1.48,1.20,0.87_12
$GPGSV,4,1,14,25,67,268,43,,5,56,115,25_75
$GPGSV,4,2,14,12,56,005,30,29,44,209,33,02,24,132,24,21,22,279,_71
$GPGSV,4,3,14,15,11,024,,13,08,057,20,10,05,142,19,31,04,241,_79
$GPGSV,4,4,14,24,02,352,,193,,,26_73
$GLGSV,2,1,05,87,28,216,32,76,28,307,,77,26,246,33,70,10,150,24_6D
$GLGSV,2,2,05,75,01,352,_57
$GNGLL,2637.1875,S,15251.5583,E,191925.000,A,A_5F
$GNRMC,191926.000,A,2637.1877,S,15251.5583,E,0.03,356.58,080715,,,A_6C
GPS fix received.
Data is current.
Current time set from GPS time:
08/07/15,19:19:26+00
gsm_set_time() started
Modem Reply:

Modem Reply:
DEACT OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
2
collect_all_data() completed
Current:
Ñ.�0[,80715,19192600,-26.619795,152.859299,0.06,365.50,356.58,120,7]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:
AT+CCLK="08/07/15,19:19:26+00"

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:
AT
AT

Modem Reply:
OK

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
Ñ.�0[,80715,19192600,-26.619795,152.859299,0.06,365.50,356.58,120,7]

gsm_send_http(): Length of data packet:
108
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
69
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
69
Modem Reply:
AT+QISEND=69

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Wed, 08 Jul 2015 19:19:31 GMT

Modem Reply:
C

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Thanks, it's looking quite broken there, seems like nulls in the start of the data packet. Just pushed a fix that should correct the gsm time collection, please could you try that and re-post the output? I think this is going to be a fairly slow debug cycle but we'll get there :)

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

I re-loaded my working version of the software and captured a working log for reference. I have included the Broken and Working log file.

The data uploading is incorrect.

Working from Pre Remove Delay Version with my date/time parsing.
15/07/09,07:22:39+0[90715,7224800,-26.619829,152.859177,0.37,412.10,206.77,80,12]

Not working from remove Delay Version
09/07/15,07:25:44+0[,90715,7254900,-26.619944,152.858963,0.30,406.30,0.00,93,10]

  • Date is the wrong format
  • There is a comma after the start of the square brackets.

Ian


Here is the Broken log file.


gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

+CCLK: "09/07/15,07:25:11+00"

OK

gsm_get_time() result:
09/07/15,07:25:11+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.294,V,,,,,0.00,0.00,050180,,,N_44
$GPV$GPRMC,235950.294,V,,,,,0.00,0.00,050180,,,N_46
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235950.294,,,,,0,0,,,M,,M,,_4F
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235950.294,V,N_7D
$GPRMC,235951.294,V,,,,,0.00,0.00,050180,,,N_47
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235951.294,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235951.294,V,N_7C
$GPRMC,235952.294,V,,,,,0.00,0.00,050180,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235952.294,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235952.294,V,N_7F
$GPRMC,235952.907,V,,,,,0.00,0.00,050180,,,N_45
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235952.907,,,,,0,0,,,M,,M,,_4C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235952.907,V,N_7E
$GPRMC,235953.907,V,,,,,0.00,0.00,050180,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235953.907,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235953.907,V,N_7F
$GPRMC,072521.095,V,,,,,0.00,0.00,090715,,,N_48
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,072521.095,,,,,0,0,,,M,,M,,_47
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,14,23,63,157,,03,58,351,,16,50,123,,09,41,213,38_72
$GPGSV,4,2,14,07,34,270,42,26,22,138,,32,22,024,,27,16,067,_73
$GPGSV,4,3,14,10,13,221,,19,08,038,,30,08,289,,06,04,251,_7E
$GPGSV,4,4,14,01,02,348,,193,,,_7B
$GLGSV,1,1,00_65
$GPGLL,,,,,072521.095,V,N_75
$GPRMC,072522.095,V,,,,,0.23,0.00,090715,,,N_4A
$GPVTG,0.00,T,,M,0.23,N,0.42,K,N_35
$GPGGA,072522.095,,,,,0,0,,,M,,M,,_44
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,14,23,63,157,,03,58,351,,16,50,123,,09,41,213,39_73
$GPGSV,4,2,14,07,34,270,42,26,22,138,,32,22,024,,27,16,067,_73
$GPGSV,4,3,14,10,13,221,,19,08,038,,30,08,289,,06,04,251,_7E
$GPGSV,4,4,14,01,02,348,,193,,,_7B
$GLGSV,1,1,00_65
$GPGLL,,,,,072522.095,V,N_76
$GPRMC,072523.095,A,2637.1998,S,15251.5356,E,0.48,0.00,090715,,,A*76
Invalid altitude, retrying.

$GPVTG,0.00,T,,M,0.48,N,0.90,K,A_38
$GPGGA,072523.095,2637.1998,S,15251.5356,E,1,5,1.51,384.2,M,39.7,M,,_42
Invalid course, retrying.

$GPGSA,A,3,07,09,19,03,27,,,,,,,,1.77,1.51,0.92_0D
$GPGSV,4,1,15,23,63,157,,03,58,351,29,50,57,342,,16,50,123,_7D
$GPGSV,4,2,15,09,41,213,38,07,34,270,42,26,22,138,26,32,22,024,_72
$GPGSV,4,3,15,27,16,067,24,10,13,221,28,19,08,038,27,30,08,289,_71
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,00_65
$GPGLL,2637.1998,S,15251.5356,E,072523.095,A,A_47
$GPRMC,072524.095,A,2637.2002,S,15251.5368,E,0.42,0.00,090715,,,A_7F
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.42,N,0.77,K,A_3B
$GPGGA,072524.095,2637.2002,S,15251.5368,E,1,5,1.51,378.4,M,39.7,M,,_44
Invalid course, retrying.

$GPGSA,A,3,07,09,19,03,27,,,,,,,,1.77,1.51,0.92_0D
$GPGSV,4,1,15,23,63,157,,03,58,351,28,50,57,342,,16,50,123,_7C
$GPGSV,4,2,15,09,41,213,38,07,34,270,42,26,22,138,25,32,22,024,27_74
$GPGSV,4,3,15,27,16,067,25,10,13,221,30,19,08,038,24,30,08,289,_7A
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,00_65
$GPGLL,2637.2002,S,15251.5368,E,072524.095,A,A_44
$GPRMC,072526.000,A,2637.2003,S,15251.5379,E,0.33,0.00,090715,,,A_76
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.33,N,0.61,K,A_3A
$GPGGA,072526.000,2637.2003,S,15251.5379,E,1,5,1.51,376.5,M,39.7,M,,_44
Invalid course, retrying.

$GPGSA,A,3,07,09,19,03,27,,,,,,,,1.77,1.51,0.92_0D
$GPGSV,4,1,15,23,63,157,,03,58,351,25,50,57,342,,16,50,123,_71
$GPGSV,4,2,15,09,41,213,38,07,34,270,42,26,22,138,23,32,22,024,26_73
$GPGSV,4,3,15,27,16,067,27,10,13,221,29,19,08,038,25,30,08,289,_71
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,00_65
$GPGLL,2637.2003,S,15251.5379,E,072526.000,A,A_4B
$GPRMC,072527.000,A,2637.2001,S,15251.5381,E,0.09,0.00,090715,,,A_7B
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.09,N,0.17,K,A_32
$GPGGA,072527.000,2637.2001,S,15251.5381,E,1,5,1.51,378.7,M,39.7,M,,_4C
Invalid course, retrying.

$GPGSA,A,3,07,09,19,03,27,,,,,,,,1.77,1.51,0.92_0D
$GPGSV,4,1,15,23,63,157,,03,58,351,26,50,57,342,,16,50,123,_72
$GPGSV,4,2,15,09,41,213,38,07,34,270,42,26,22,138,25,32,22,024,29_7A
$GPGSV,4,3,15,27,16,067,26,10,13,221,32,19,08,038,26,30,08,289,_79
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,00_65
$GPGLL,2637.2001,S,15251.5381,E,072527.000,A,A_4F
$GPRMC,072528.000,A,2637.1999,S,15251.5387,E,0.11,0.00,090715,,,A_70
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.11,N,0.21,K,A_3E
$GPGGA,072528.000,2637.1999,S,15251.5387,E,1,5,1.51,382.1,M,39.7,M,,_4D
Invalid course, retrying.

$GPGSA,A,3,07,09,19,03,27,,,,,,,,1.77,1.51,0.92_0D
$GPGSV,4,1,15,23,63,157,,03,58,351,27,50,57,342,,16,50,123,_73
$GPGSV,4,2,15,09,41,213,38,07,34,270,42,26,22,138,27,32,22,024,26_77
$GPGSV,4,3,15,27,16,067,25,10,13,221,31,19,08,038,23,30,08,289,_7C
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,00_65
$GPGLL,2637.1999,S,15251.5387,E,072528.000,A,A_4D
$GPRMC,072529.000,A,2637.1998,S,15251.5390,E,0.01,0.00,090715,,,A_77
GPS fix received.
Data is current.
Current time set from GPS time:
09/07/15,07:25:29+00
gsm_set_time() started
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT+CCLK="09/07/15,07:25:29+00"

Modem Reply:
OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
0
collect_all_data() completed
Current:
09/07/15,07:25:11+0[,90715,7252900,-26.619997,152.858978,0.02,382.10,0.00,151,5]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
09/07/15,07:25:11+0[,90715,7252900,-26.619997,152.858978,0.02,382.10,0.00,151,5]

gsm_send_http(): Length of data packet:
120
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
81
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
81
Modem Reply:
AT+QISEND=81

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:

Modem Reply:
+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Thu, 09 Jul 2015
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/09,07:25:33+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
Õ7�
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Can not send data, saving to flash memory
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+Q
Modem Reply:
IDEACT

Modem Reply:
AT+CCLK?

+CCLK: "09/07/15,07:25:44+00"

OK

gsm_get_time() result:
09/07/15,07:25:44+0
gsm_get_time() completed
$GPVTG,0.00,T,,M,0.01,N,0.03,K,A_3F
$GPGGA,072529.000,2637.1998,S,15251.5390,E,1,6,1.27,385.3,M,39.7,M,,_4C
Invalid course, retrying.

$GPGSA,A,3,07,09$,,01,02,348,,193,,,_4E
$GLGSV,1,1,03,80,58,257,38,70,38,208,35,79,36,162,28_5C
$GNGLL,2637.1971,S,15251.5389,E,072544.000,A,A_51
$GNRMC,072545.000,A,2637.1969,S,15251.5387,E,0.13,0.00,090715,,,A_68
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.13,N,0.24,K,A_39
$GPGGA,072545.000,2637.1969,S,15251.5387,E,1,10,0.93,403.8,M,39.7,M,,_75
Invalid course, retrying.

$GNGSA,A,3,07,09,23,19,03,27,16,,,,,,1.26,0.93,0.85_18
$GNGSA,A,3,70,80,79,,,,,,,,,,1.26,0.93,0.85_1F
$GPGSV,4,1,15,23,63,157,23,03,58,351,27,16,50,123,25,09,41,213,39_71
$GPGSV,4,2,15,07,34,270,37,26,22,138,26,32,22,024,16,27,16,067,19_7B
$GPGSV,4,3,15,10,13,221,28,19,08,038,26,30,08,289,,48,05,082,_76
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,03,80,58,257,37,70,38,208,35,79,36,162,27_5C
$GNGLL,2637.1969,S,15251.5387,E,072545.000,A,A_57
$GNRMC,072546.000,A,2637.1968,S,15251.5384,E,0.19,0.00,090715,,,A*63
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.19,N,0.35,K,A_33
$GPGGA,072546.000,2637.1968,S,15251.5384,E,1,10,0.93,404.4,M,39.7,M,,_7F
Invalid course, retrying.

$GNGSA,A,3,07,09,23,19,03,27,16,,,,,,1.26,0.93,0.85_18
$GNGSA,A,3,70,80,79,,,,,,,,,,1.26,0.93,0.85_1F
$GPGSV,4,1,15,23,63,157,22,03,58,351,26,16,50,123,25,09,41,213,39_71
$GPGSV,4,2,15,07,34,270,37,26,22,138,25,32,22,024,17,27,16,067,20_73
$GPGSV,4,3,15,10,13,221,28,19,08,038,26,30,08,289,,48,05,082,_76
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,03,80,58,257,37,70,38,208,35,79,36,162,27_5C
$GNGLL,2637.1968,S,15251.5384,E,072546.000,A,A_56
$GNRMC,072547.000,A,2637.1967,S,15251.5383,E,0.20,0.00,090715,,,A*60
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.20,N,0.38,K,A_34
$GPGGA,072547.000,2637.1967,S,15251.5383,E,1,10,0.93,405.3,M,39.7,M,,_70
Invalid course, retrying.

$GNGSA,A,3,07,09,23,19,03,27,16,,,,,,1.26,0.93,0.85_18
$GNGSA,A,3,70,80,79,,,,,,,,,,1.26,0.93,0.85_1F
$GPGSV,4,1,15,23,63,157,23,03,58,351,27,16,50,123,25,09,41,213,38_70
$GPGSV,4,2,15,07,34,270,37,26,22,138,25,32,22,024,17,27,16,067,20_73
$GPGSV,4,3,15,10,13,221,28,19,08,038,26,30,08,289,,48,05,082,_76
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,03,80,58,257,37,70,38,208,35,79,36,162,27_5C
$GNGLL,2637.1967,S,15251.5383,E,072547.000,A,A_5F
$GNRMC,072548.000,A,2637.1966,S,15251.5383,E,0.15,0.00,090715,,,A*68
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.15,N,0.28,K,A_33
$GPGGA,072548.000,2637.1966,S,15251.5383,E,1,10,0.93,405.9,M,39.7,M,,_74
Invalid course, retrying.

$GNGSA,A,3,07,09,23,19,03,27,16,,,,,,1.26,0.93,0.85_18
$GNGSA,A,3,70,80,79,,,,,,,,,,1.26,0.93,0.85_1F
$GPGSV,4,1,15,23,63,157,24,03,58,351,27,16,50,123,24,09,41,213,38_76
$GPGSV,4,2,15,07,34,270,37,26,22,138,24,32,22,024,17,27,16,067,19_78
$GPGSV,4,3,15,10,13,221,28,19,08,038,25,30,08,289,,48,05,082,_75
$GPGSV,4,4,15,06,04,251,,01,02,348,,193,,,_4E
$GLGSV,1,1,03,80,58,257,37,70,38,208,35,79,36,162,27_5C
$GNGLL,2637.1966,S,15251.5383,E,072548.000,A,A_51
$GNRMC,072549.000,A,2637.1966,S,15251.5382,E,0.16,0.00,090715,,,A*6B
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.16,N,0.30,K,A_39
$GPGGA,072549.000,2637.1966,S,15251.5382,E,1,10,0.93,406.3,M,39.7,M,,_7D
GPS fix received.
Data is current.
Current time set from GPS time:
09/07/15,07:25:49+00
gsm_set_time() started
Modem Reply:

Modem Reply:
DEACT OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
1
collect_all_data() completed
Current:
09/07/15,07:25:44+0[,90715,7254900,-26.619944,152.858963,0.30,406.30,0.00,93,10]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:
AT+CCLK="09/07/15,07:25:49+00"

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:
AT
AT

Modem Reply:
OK

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
09/07/15,07:25:44+0[,90715,7254900,-26.619944,152.858963,0.30,406.30,0.00,93,10]

gsm_send_http(): Length of data packet:
120
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
81
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
81
Modem Reply:
AT+QISEND=81

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:

Modem Reply:
+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Thu, 09 Jul 2015
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/09,07:25:53+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
Õ7�
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Can not send data, saving to flash memory
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QIDEACT

Modem Reply:
AT+CCLK?

+CCLK: "09/07/15,07:26:04+00"

OK

gsm_get_time() result:
09/07/15,07:26:04+0
gsm_get_time() completed
$GNGSA,A,3,07,09,23,19,03,27,16,,,,,,1.26,0.93,0.85_18
$GNGSA,A,3,70,80,79,,,,,,,,,,1.26,0.93,0.85_1F
$GPGSV,4,1,15,23,63,15$0,A,A_55
$GNRMC,072605.000,A,2637.1969,S,15251.5392,E,0.07,0.00,090715,,,A_6E
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.07,N,0.13,K,A_38
$GPGGA,072605.000,2637.1969,S,15251.5392,E,1,11,0.89,413.0,M,39.7,M,,_75
Invalid course, retrying.

$GNGSA,A,3,07,09,23,19,03,27,10,16,,,,,1.19,0.89,0.78*1C
$GNGSA,A,3,70,80


Here is a working Log File


settings_load() started
settings_load(): setting defaults from config
settings_load(): set config.interval:
10000
mdata.net.au
settings_load() finished
gps_setup() started
gps_setup() started
gps_on_off() started
gps_on_off() finished
gsm_setup() started
gsm_setup() finished
gsm_restart() started
PWRMON is HIGH. Modem already running.
gsm_on_off() started
gsm_on_off() finished
gsm_on_off() started
gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
Modem Reply:

gsm_send_at() completed
gsm_send_at() started
Modem Reply:

+CFUN: 1

+CPIN: READY
AT

OK
AT

OK

gsm_send_at() completed
gsm_set_pin() started
Modem Reply:

Call Ready
AT+CPIN?

+CPIN: READY

OK

gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

OK

Modem Reply:
AT+QINDI=1

OK

Modem Reply:
AT+CMGF=1

OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

OK

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

OK

Modem Reply:
AT+QIDNSIP=1

OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:

Modem Reply:
AT+CCLK?

+CCLK: "04/01/01,00:03:34+00"

OK

gsm_get_time() result:
04/01/01,00:03:34+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,072150.472,V,,,,,0.00,0.00,090715,,,N_47
$GPV4,E,072226.000,A,A_57
$GNRMC,072227.000,A,2637.1902,S,15251.5501,E,0.01,206.77,090715,,,A*69
Invalid altitude, retrying.

$GPVTG,206.77,T,,M,0.01,N,0.02,K,A_3A
$GPGGA,072227.000,2637.1902,S,15251.5501,E,1,12,0.80,412.1,M,39.7,M,,_7A
GPS fix received.
Data is current.
Current time set from GPS time:
09/07/15,07:22:27+00
gsm_set_time() started
Modem Reply:
AT+CCLK="09/07/15,07:22:27+00"

OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
1
collect_all_data() completed
Current:
04/01/01,00:03:34+0[90715,7222700,-26.619837,152.859161,0.02,412.10,206.77,80,12]

gsm_send_at() started
Modem Reply:
AT

OK
AT

OK

gsm_send_at() completed
gsm_disconnect() Disabled.
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

OK

CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:03:34+0[90715,7222700,-26.619837,152.859161,0.02,412.10,206.77,80,12]

gsm_send_http(): Length of data packet:
121
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

gsm_validate_tcp() started.
Modem Reply:

SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
82
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
82
gsm_send_http(): data sent.
parse_receive_reply() started
Modem Reply:
AT+QISEND=82

SEND OK

+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 09 Jul 2015 07:22:38 GMT
C
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/09,07:22:38+00
#eof
OK

0, CLOSED

0, CLOS
Found header packet
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

No more data available.
Data was fully received by the server.
parse_cmd() started
Received commands:
#t:15/07/09,07:22:38+00
#eof
Found settime command.
15/07/09,07:22:38+00
Valid time string found.
gsm_set_time() started
Modem Reply:
AT+CCLK="15/07/09,07:22:38+00"

OK

gsm_set_time() completed
parse_cmd() completed
parse_receive_reply() completed
Data sent successfully.
Sleeping for:
-9921
ms
Error: negative sleep time.
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:

Modem Reply:
AT+CCLK?

+CCLK: "15/07/09,07:22:39+00"

OK

gsm_get_time() result:
15/07/09,07:22:39+0
gsm_get_time() completed
$GNGSA,A,3,23,10,16,09,07,27,03,32,26,,,,1.13,0.80,0.80_15
$GNGSA,A,3,70,80,79,,,,,,,,,,1.13,0.80,0.80_1E
$GPGSV,4,1,15,23,6,1898,S,15251.5506,E,1,12,0.80,412.1,M,39.7,M,,_79
$GNGSA,A,3,23,10,16,09,07,27,03,32,26,,,,1.54,0.80,1.32_1E
$GNGSA,A,3,70,80,79,,,,,,,,,,1.54,0.80,1.32_15
$GPGSV,4,1,15,23,62,160,25,03,59,350,29,42,55,333,,16,51,121,29_70
$GPGSV,4,2,15,09,40,214,40,07,33,272,38,32,24,024,18,26,23,137,22_76
$GPGSV,4,3,15,27,15,065,25,10,12,221,22,19,08,036,21,30,07,290,_75
$GPGSV,4,4,15,06,05,250,,01,03,347,,193,,,_40
$GLGSV,2,1,06,69,83,061,,80,58,262,37,79,38,163,28,70,36,208,39_6D
$GLGSV,2,2,06,68,28,033,26,73,17,304,_66
$GNGLL,2637.1898,S,15251.5506,E,072247.000,A,A_52
$GNRMC,072248.000,A,2637.1898,S,15251.5506,E,0.20,206.77,090715,,,A*66
GPS fix received.
Data is current.
Current time set from GPS time:
09/07/15,07:22:48+00
gsm_set_time() started
Modem Reply:
AT+CCLK="09/07/15,07:22:48+00"

OK

gsm_set_time() completed

GPS already available, breaking
collect_gps_data(): fix acquired
Failed checksums:
2
collect_all_data() completed
Current:
15/07/09,07:22:39+0[90715,7224800,-26.619829,152.859177,0.37,412.10,206.77,80,12]

gsm_send_at() started
Modem Reply:
AT

OK
AT

OK

gsm_send_at() completed
gsm_disconnect() Disabled.
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

OK

CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
15/07/09,07:22:39+0[90715,7224800,-26.619829,152.859177,0.37,412.10,206.77,80,12]

gsm_send_http(): Length of data packet:
121
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

gsm_validate_tcp() started.
Modem Reply:

SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=39

Modem Reply:

SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
82
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
82
gsm_send_http(): data sent.


from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Thanks Ian, it's looking a bit better than last time. Have just pushed another change which hopefully will correct the date/time (using your previous patch on the other issue thread) and a fix for the comma-separation issue. Let me know how it goes.

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Hi Mark

I am concentrating on what is being sent through at the moment and it is still wrong.

Wrong From latest Build
09/07/15,08:05:33+0[,907158053800-26.619926152.8592530.37435.000.001127]

..................................~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wrong Commas Removed

**Correct** from Pre Delay removal
15/07/09,07:22:39+0[90715,7224800,-26.619829,152.859177,0.37,412.10,206.77,80,12]

cheers

Ian

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

try now?

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

👍 It is working and updating the website. Strange that it is working with the dates at the front in different formats? I expect it is taking the date and time from within the [ ] brackets

Current Send
09/07/15,08:30:36+0[90715,8304100,-26.619947,152.859192,0.39,435.10,0.00,100,9]
+++++++
Pre delay removal Send
15/07/09,07:22:39+0[90715,7224800,-26.619829,152.859177,0.37,412.10,206.77,80,12]
+++++++

The only thing that seems out of wack is this part of the log. It is causing a long pause each time. What is it expecting?


Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Thu, 09 Jul 2015
Warning: timed out waiting for last modem reply


from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Hurrah :)

That looks like it's not correctly parsing the response from the server. Could you try a raw post using curl and paste the output?

curl -i -d "imei=IMEI&key=KEY&d=DATAPACKET" -A "OpenTracker3.0" http://updates.geolink.io/index.php

replace IMEI, KEY and DATAPACKET with your imei, key and the full data packet that the opentracker is sending.

Thanks,
Mark

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Also, their server is almost certainly just using it's local clock as the timestamp - that's what I do on mine. No reason to use the timestamp being posted really, unless you need to debug a very slow connection or something.

from opentracker.

Neville77 avatar Neville77 commented on May 26, 2024

I have found a issue with using a server timestamp in the past that when a board has stored polls and then sends them once it has connection again the polls either all come in at the one time or incorrect time. This has caused some issues with accurate tracking.

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Interesting, I've never actually had that happen. Whenever it failed to log it never seemed to successfully store anything, it just lost the data and posted a fresh one on the next cycle. Good point though.

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Mark

As per your request.

Command
curl -i -d "imei=863071016800770&key=cSQ88qShwC3V&d=09/07/15,08:33:09+0[90715,
8331400,-26.619892,152.859222,0.22,430.90,0.00,90,14]" -A "OpenTracker3.0" http://updates.geolink.io/index.php

Output
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 09 Jul 2015 09:27:20 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive

wrong key

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

The server is saying the key is wrong, are you sure that's the right key for your imei in your geolink account? You should probably change it now in any case and omit the new one in future posts ;)

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Hi Mark

Yes, I saw that, which is why I sent the exact command line with it. It will be changed before I use the device again.

I took the key directly from my tracker.h file and have double checked it with the web site.

unit

I am not familiar with curl so had to google it. I was hoping you would have a suggestion as to what I did wrong in the command.

Mark. Feel free to run the curl command with corrections to complete the test. Let me know when you are done and I will change the key.

Ian

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

I can't see anything wrong with that, no idea why it isn't working.. you'll probably have to contact Geolink and ask them why it's not working. I'm in the geolink github organisation as of yesterday but I don't work for them or have access to any of their stuff so I can't look into that on the server side. Sorry :(

from opentracker.

opensourcegps avatar opensourcegps commented on May 26, 2024

key is wrong in curl command:
key=cSQ88qShwC3V

should be:
key=cSQ88qShwC3

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

That dude has better eyes than me!

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@ilevans it's probably wrong in your tracker.h too :)

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

You are correct.
It includes a trailing "V" in the tracker.h file also and it works!
Go figure.

from opentracker.

opensourcegps avatar opensourcegps commented on May 26, 2024

Just to highlight few server side points:

  1. timestamp is used from GPS data.
  2. Extra zeros are added to time/date server side:
   if((strlen($gpspos_time)) == 7)
         $gpspos_time = '0'.$gpspos_time; 

   if((strlen($gpspos_date)) == 5)
         $gpspos_date = '0'.$gpspos_date; 
  1. It is important that reply from server is processed correctly and not split, because modem will set it's time from response and in future it will execute commands (i.e. turn off engine). I think parse_receive_reply() should be switched back to old way of processing modem replies. It looks like broken at the moment.

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@opensourcegps I think parse_receive_reply is expecting to have the whole reply in the modem_reply after line 26:

gsm_wait_for_reply(1,0);

so we can just change that to:

gsm_wait_for_reply(1,1);

and it will then have the whole buffer (rather than breaking at a newline), and probably work, although I'm not sure exactly what the problem you're seeing is..

from opentracker.

opensourcegps avatar opensourcegps commented on May 26, 2024

@m4rkw sounds good. Let's change it so it receives full reply. The problem is as follows:

  1. it does not recognize that data was transmitted. This is important because we are developing new feature that will save data to internal memory for later sending, in case this confirmation not received. This is done by parsing "#eof" from server.
  2. It does not process settime command.

Log exmples:
Working log:

Connection: close

#t:15/07/09,07:22:38+00
#eof
OK

0, CLOSED

0, CLOS
Found header packet
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

No more data available.
Data was fully received by the server.
parse_cmd() started
Received commands:
#t:15/07/09,07:22:38+00
#eof
Found settime command.
15/07/09,07:22:38+00
Valid time string found.
gsm_set_time() started
Modem Reply:
AT+CCLK="15/07/09,07:22:38+00"

OK

gsm_set_time() completed
parse_cmd() completed

Not working log:


parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
OK

Modem Reply:

Modem Reply:
+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,100

Modem Reply:
HTTP/1.1 200 OK

Modem Reply:
Server: nginx/1.8.0

Modem Reply:
Date: Wed, 08 Jul 2015 
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

Modem Reply:
+QIRD: 78.46.45.61:80,TCP,49

Modem Reply:
Connection: close

Modem Reply:

Modem Reply:
#t:15/07/08,19:18:29+00

Modem Reply:
#eof

Modem Reply:
OK

Modem Reply:

Modem Reply:
0, CLOSED

Modem Reply:

Modem Reply:
0, CLOSAT+QIRD=0,1,0,100

Modem Reply:
ERROR

No more data available.
Data was not received by the server.
parse_cmd() started
Received commands:
�7�
parse_cmd() completed

I hope this makes sense.

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Ok, pushed that, need to get back to my actual job for a bit now ;) Mark

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@ilevans are you happy that this issue is resolved now?

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

👎 Unfortunately not @m4rkw .

It is getting stuck in a loop of timeouts.

Ian


Complete Log Below

gsm_on_off() finished
gsm_on_off() started
gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

+CCLK: "04/01/01,00:00:26+00"

OK

gsm_get_time() result:
04/01/01,00:00:26+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.058,V,,,,,0.00,0.00,050180,,,N_46
$GPV$GPRMC,194601.093,V,,,,,0.00,0.00,100180,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194601.093,,,,,0,0,,,M,,M,,_49
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,32,29,,,38,05,,,34,25,,,36_7E
$GLGSV,1,1,00_65
$GPGLL,,,,,194601.093,V,N_7B
$GPRMC,194602.093,V,,,,,0.00,0.00,100180,,,N_47
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194602.093,,,,,0,0,,,M,,M,,_4A
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,32,29,,,38,05,,,34,25,,,36_7E
$GLGSV,1,1,00_65
$GPGLL,,,,,194602.093,V,N_78
$GPRMC,194603.093,V,,,,,0.00,0.00,100180,,,N_46
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194603.093,,,,,0,0,,,M,,M,,_4B
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,31,29,,,38,05,,,34,25,,,36_7D
$GLGSV,1,1,00_65
$GPGLL,,,,,194603.093,V,N_79
$GPRMC,194604.093,V,,,,,0.00,0.00,100180,,,N_41
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194604.093,,,,,0,0,,,M,,M,,_4C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,31,29,,,38,05,,,34,25,,,36_7D
$GLGSV,1,1,00_65
$GPGLL,,,,,194604.093,V,N_7E
$GPRMC,194605.093,V,,,,,0.00,0.00,100180,,,N_40
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194605.093,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,31,29,,,38,05,,,34,25,,,37_7C
$GLGSV,1,1,00_65
$GPGLL,,,,,194605.093,V,N_7F
$GPRMC,194606.093,V,,,,,0.00,0.00,100180,,,N_43
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194606.093,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,30,29,,,38,05,,,34,25,,,37_7D
$GLGSV,1,1,00_65
$GPGLL,,,,,194606.093,V,N_7C
$GPRMC,194607.093,V,,,,,0.00,0.00,100180,,,N_42
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194607.093,,,,,0,0,,,M,,M,,_4F
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,29,29,,,38,05,,,34,25,,,37_75
$GLGSV,1,1,00_65
$GPGLL,,,,,194607.093,V,N_7D
$GPRMC,194608.093,V,,,,,0.00,0.00,100180,,,N_4D
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194608.093,,,,,0,0,,,M,,M,,_40
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,28,29,,,38,05,,,34,25,,,37_74
$GLGSV,1,1,00_65
$GPGLL,,,,,194608.093,V,N_72
$GPRMC,194609.093,V,,,,,0.00,0.00,100180,,,N_4C
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194609.093,,,,,0,0,,,M,,M,,_41
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,04,02,,,27,29,,,38,05,,,34,25,,,37_7B
$GLGSV,1,1,00_65
$GPGLL,,,,,194609.093,V,N_73
$GPRMC,194610.093,V,,,,,0.00,0.00,090715,,,N_46
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194610.093,,,,,0,0,,,M,,M,,_49
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,20,76,359,,25,63,307,37,29,54,194,39,05,46,131,34_7F
$GPGSV,4,2,13,12,39,005,,21,29,265,,15,19,035,,02,15,122,26_71
$GPGSV,4,3,13,13,15,070,,18,12,327,,31,03,254,,26,02,216,_70
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,00_65
$GPGLL,,,,,194610.093,V,N_7B
$GPRMC,194611.093,V,,,,,0.00,0.00,090715,,,N_47
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194611.093,,,,,0,0,,,M,,M,,_48
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,20,76,359,,25,63,307,37,29,54,194,39,05,46,131,34_7F
$GPGSV,4,2,13,12,39,005,,21,29,265,,15,19,035,,02,15,122,25_72
$GPGSV,4,3,13,13,15,070,,18,12,327,,31,03,254,,26,02,216,_70
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,00_65
$GPGLL,,,,,194611.093,V,N_7A
$GPRMC,194612.093,V,,,,,0.00,0.00,090715,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194612.093,,,,,0,0,,,M,,M,,_4B
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,20,76,359,,25,63,307,37,29,54,194,39,05,46,131,35_7E
$GPGSV,4,2,13,12,39,005,,21,29,265,,15,19,035,,02,15,122,24_73
$GPGSV,4,3,13,13,15,070,,18,12,327,,31,03,254,,26,02,216,_70
$GPGSV,4,4,13,193,,,_40
$GLGSV,1,1,00_65
$GPGLL,,,,,194612.093,V,N_79
$GPRMC,194613.093,V,,,,,0.00,0.00,090715,,,N_45
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,194613.093,,,,,0,0,,,M,,M,,_4A
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,4,1,13,20,76,359,,25,63,307,37,29,54,Failed checksums:
0
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
04/01/01,00:00:26+0[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:00:26+0[]

gsm_send_http(): Length of data packet:
60
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
22
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
22
Modem Reply:
AT+QISEND=22

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

Modem Reply:
SEND OK

parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

Modem Reply:

+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 09 Jul 2015 19:46:18 GMT
C
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/09,19:46:18+00
#eof
OK

0, CLOSED

0, CLOS
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Hi Ian, haven't forgotten about you just crazy busy with work atm, will try to get to this over the weekend

Mark

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@ilevans hey i've just pushed a change which should fix this for you, please let me know if it works.

Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

@m4rkw I have downloaded and performed my first test of the revised code and still no joy.

It still appears to be looping continuously after sending to the server. (Extract Below).


Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:10:43+0[180715,19483610,-26.620350,152.859207,1.39,425.90,352.92,105,6]

gsm_send_http(): Length of data packet:
122
gsm_send_http(): Length of header packet:
171
Modem Reply:
AT+QISEND=171

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
84
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
84
Modem Reply:
AT+QISEND=84

Modem Reply:

gsm_send_http(): data sent.
Modem Reply:

SEND OK

Modem Reply:

+QIRDI: 0,1,0

Warning: timed out waiting for last modem reply
parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Sat, 18 Jul 2015 19:48:40 GMT
C
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/18,19:48:40+00
#eof
OK

0, CLOSED

0, CLOS
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR


from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@ilevans last night I tried switching mine into http mode and it does the same thing. I spent some time trying to debug it but I got tripped up by a problem with my server, will hopefully have some more time during the week. Mark

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

No worries m4rkw. I will test it when it is ready. 😄

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

@ilevans i've just pushed a fix blind which might help, i've put the delay statements back into the http sending function that were removed in favour of final response detection. When you have time could you give it a try and post the output? I'm away from home at the moment so can't test it myself.

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Compile Error

gsm.ino: In function 'void gsm_send_http_current()':
gsm:539: error: too few arguments to function 'void gsm_get_reply(int)'
Opentracker_3_0_1.ino:42:6: note: declared here
Exception in thread "Thread-22" java.lang.NullPointerException

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Argh sorry stupid type :S try now?

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

typo haha. oh dear. i think i need coffee

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Still Looping as before

Log file below

gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

+CCLK: "04/01/01,00:00:48+00"

OK

gsm_get_time() result:
04/01/01,00:00:48+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.800,V,,,,,0.00,0.00,050180,,,N_43
$GPV$GPRMC,235949.800,V,,,,,0.00,0.00,050180,,,N_49
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235949.800,,,,,0,0,,,M,,M,,_40
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235949.800,V,N_72
$GPRMC,235950.800,V,,,,,0.00,0.00,050180,,,N_41
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235950.800,,,,,0,0,,,M,,M,,_48
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,36_73
$GLGSV,1,1,00_65
$GPGLL,,,,,235950.800,V,N_7A
$GPRMC,235951.800,V,,,,,0.00,0.00,050180,,,N_40
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235951.800,,,,,0,0,,,M,,M,,_49
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,36_73
$GLGSV,1,1,00_65
$GPGLL,,,,,235951.800,V,N_7B
$GPRMC,235952.800,V,,,,,0.00,0.00,050180,,,N_43
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235952.800,,,,,0,0,,,M,,M,,_4A
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235952.800,V,N_78
$GPRMC,235953.800,V,,,,,0.00,0.00,050180,,,N_42
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235953.800,,,,,0,0,,,M,,M,,_4B
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235953.800,V,N_79
$GPRMC,235954.800,V,,,,,0.00,0.00,050180,,,N_45
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235954.800,,,,,0,0,,,M,,M,,_4C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235954.800,V,N_7E
$GPRMC,235955.800,V,,,,,0.00,0.00,050180,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235955.800,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,35,21,,,35_73
$GLGSV,1,1,00_65
$GPGLL,,,,,235955.800,V,N_7F
$GPRMC,235956.800,V,,,,,0.00,0.00,050180,,,N_47
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235956.800,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,35,21,,,35_73
$GLGSV,1,1,00_65
$GPGLL,,,,,235956.800,V,N_7C
$GPRMC,235957.257,V,,,,,0.00,0.00,050180,,,N_4E
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235957.257,,,,,0,0,,,M,,M,,_47
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,35,21,,,35_73
$GLGSV,1,1,00_65
$GPGLL,,,,,235957.257,V,N_75
$GPRMC,235957.477,V,,,,,0.00,0.00,050180,,,N_4A
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235957.477,,,,,0,0,,,M,,M,,_43
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,29,,,36,21,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235957.477,V,N_71
$GPRMC,191020.306,V,,,,,0.00,0.00,210715,,,N_43
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191020.306,,,,,0,0,,,M,,M,,_46
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,2,1,08,29,58,187,36,05,40,135,,12,33,005,,13,18,075,_76
$GPGSV,2,2,08,26,07,218,,31,01,260,,193,,,,21,,,35_40
$GLGSV,1,1,00_65
$GPGLL,,,,,191020.306,V,N_74
$GPRMC,191021.306,V,,,,,0.00,0.00,210715,,,N_42
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191021.306,,,,,0,0,,,M,,M,,_47
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,2,1,08,29,58,187,36,05,40,135,,12,33,005,,13,18,075,_76
$GPGSV,2,2,08,26,07,218,,31,01,260,,193,,,,21,,,35_40
$GLGSV,1,1,00_65
$GPGLL,,,,,191021.306,V,N_75
$GPRMC,191022.306,V,,,,,0.00,0.00,210715,,,N_41
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191022.306,,,,,0,0,,,M,,M,,_44
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,2,1,08,29,58,187,36,05,40,135,,12,33,005,,13,18,075,_76
$GPGSV,2,2,08,26,07,218,,31,01,260,,193,,,,21,,,35_40
$GLGSV,1,1,00_65
$GPGLL,,,,,191022.306,V,N_76
$GPRMC,191023.306,V,,,,,0.00,0.00,210715,,,N_40
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,191023.306,,,,,0,0,,,M,,M,,_45
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,2,1,08,29,58,187,36,05,40,135,,12,33,005,,13,18,075,_76
$GPGSV,2,2,08,26,07,218,,31,01,260,,193,,,,21,,,35_40
$GLGSV,1,1,00_65
$GPGLL,,,,,191023.306,V,N*77
Failed checksums:
0
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
04/01/01,00:00:48+0[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:00:48+0[]

gsm_send_http(): Length of data packet:
60
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
22
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
22
gsm_send_http(): data sent.
Modem Reply:
AT+QISEND=22

Modem Reply:

SEND OK

Modem Reply:

+QIRDI: 0,1,0

Warning: timed out waiting for last modem reply
parse_receive_reply() started
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Tue, 21 Jul 2015 19:10:34 GMT
C
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/21,19:10:34+00
#eof
OK

0, CLOSED

0, CLOS
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Ok try again?

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

Compile error. . . Need a "}" after gsm:693 by my reckoning.

Given that change, same problem.

Log follows

gsm_startup_cmd() started
gsm_on_off() finished
gsm_on_off() started
gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

+CCLK: "04/01/01,00:00:46+00"

OK

gsm_get_time() result:
04/01/01,00:00:46+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.058,V,,,,,0.00,0.00,050180,,,N_46
$GPV$GPRMC,000000.048,V,,,,,0.00,0.00,060180,,,N_4E
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,000000.048,,,,,0,0,,,M,,M,,_44
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,39_77
$GLGSV,1,1,00_65
$GPGLL,,,,,000000.048,V,N_76
$GPRMC,000001.048,V,,,,,0.00,0.00,060180,,,N_4F
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,000001.048,,,,,0,0,,,M,,M,,_45
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,39_77
$GLGSV,1,1,00_65
$GPGLL,,,,,000001.048,V,N_77
$GPRMC,185357.094,V,,,,,0.00,0.00,090180,,,N_4D
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185357.094,,,,,0,0,,,M,,M,,_48
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,39_77
$GLGSV,1,1,00_65
$GPGLL,,,,,185357.094,V,N_7A
$GPRMC,185358.094,V,,,,,0.00,0.00,090180,,,N_42
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185358.094,,,,,0,0,,,M,,M,,_47
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,40_79
$GLGSV,1,1,00_65
$GPGLL,,,,,185358.094,V,N_75
$GPRMC,185359.094,V,,,,,0.00,0.00,090180,,,N_43
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185359.094,,,,,0,0,,,M,,M,,_46
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,40_79
$GLGSV,1,1,00_65
$GPGLL,,,,,185359.094,V,N_74
$GPRMC,185400.094,V,,,,,0.00,0.00,090180,,,N_48
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185400.094,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,39,29,,,40_79
$GLGSV,1,1,00_65
$GPGLL,,,,,185400.094,V,N_7F
$GPRMC,185401.094,V,,,,,0.00,0.00,090180,,,N_49
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185401.094,,,,,0,0,,,M,,M,,_4C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,38,29,,,40_78
$GLGSV,1,1,00_65
$GPGLL,,,,,185401.094,V,N_7E
$GPRMC,185402.094,V,,,,,0.00,0.00,090180,,,N_4A
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185402.094,,,,,0,0,,,M,,M,,_4F
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,38,29,,,41_79
$GLGSV,1,1,00_65
$GPGLL,,,,,185402.094,V,N_7D
$GPRMC,185403.094,V,,,,,0.00,0.00,090180,,,N_4B
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185403.094,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,38,29,,,41_79
$GLGSV,1,1,00_65
$GPGLL,,,,,185403.094,V,N_7C
$GPRMC,185404.094,V,,,,,0.00,0.00,090180,,,N_4C
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185404.094,,,,,0,0,,,M,,M,,_49
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,37,29,,,41_76
$GLGSV,1,1,00_65
$GPGLL,,,,,185404.094,V,N_7B
$GPRMC,185405.094,V,,,,,0.00,0.00,090180,,,N_4D
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185405.094,,,,,0,0,,,M,,M,,_48
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,37,29,,,41_76
$GLGSV,1,1,00_65
$GPGLL,,,,,185405.094,V,N_7A
$GPRMC,185406.094,V,,,,,0.00,0.00,090180,,,N_4E
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,185406.094,,,,,0,0,,,M,,M,,_4B
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,25,,,37,29,,,41_76
$GLGSV,1,1,00_65
$GPGLL,,,,,185406.094,V,N_79
$GPRMC,185407.094,V,,,,,0.00,0.00,090180,,,N_4F
$GPVTG,0.00Failed checksums:
0
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
04/01/01,00:00:46+0[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:00:46+0[]

gsm_send_http(): Length of data packet:
60
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
22
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
22
gsm_send_http(): data sent.
parse_receive_reply() started
Modem Reply:
AT+QISEND=22

Modem Reply:

SEND OK

Modem Reply:

+QIRDI: 0,1,0

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Wed, 22 Jul 2015 18:54:14 GMT
C
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/22,18:54:14+00
#eof
OK

0, CLOSED

0, CLOS
Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

Warning: timed out waiting for last modem reply
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Ok one more time? I've put the bit of code that parses the http reply back to how it was before all the delay statements were taken out, so it should at least do something different this time..

from opentracker.

ilevans avatar ilevans commented on May 26, 2024

m3rkw 👍

Things are looking good for the sending of the data.
I will carry out further testing as time permits.

I now consider this issue resolved. 😄

thanks

@ilevans

Log output follows (2 sends)

gsm_on_off() finished
gsm_restart() completed
gsm_send_at() started
gsm_send_at() completed
gsm_send_at() started
gsm_send_at() completed
gsm_set_pin() started
gsm_set_pin(): PIN is not requered
gsm_set_pin() completed
gsm_get_imei() started
Modem Reply:
AT+GSN

863071016800770

OK

gsm_get_imei() result:
863071016800770
gsm_get_imei() completed
gsm_startup_cmd() started
Modem Reply:
AT+QISDE=0

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CFUN: 1

Modem Reply:
AT+QINDI=1

Modem Reply:
OK

Modem Reply:
AT+CMGF=1

Modem Reply:
OK

gsm_startup_cmd() completed
gsm_set_apn() started
Modem Reply:
AT+QIREGAPP="mdata.net.au","",""

Modem Reply:
OK

Modem Reply:

Modem Reply:
+CPIN: READY

Modem Reply:
AT+QIDNSCFG="8.8.8.8"

Modem Reply:
OK

Modem Reply:
AT+QIDNSIP=1

Modem Reply:
OK

gsm_set_apn() completed
store_get_index() started
store_get_index(): Found log position:
131320
store_get_index() ended
setup() completed
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+CCLK?

+CCLK: "04/01/01,00:00:57+00"

OK

gsm_get_time() result:
04/01/01,00:00:57+0
gsm_get_time() completed
$PMTK011,MTKGPS_08
$PMTK010,001_2E
$PMTK011,MTKGPS_08
$PMTK010,002_2D
$GPRMC,235943.294,V,,,,,0.00,0.00,050180,,,N_44
$GPV$GPRMC,235950.294,V,,,,,0.00,0.00,050180,,,N_46
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235950.294,,,,,0,0,,,M,,M,,_4F
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,01,07,,,42_79
$GLGSV,1,1,00_65
$GPGLL,,,,,235950.294,V,N_7D
$GPRMC,235951.294,V,,,,,0.00,0.00,050180,,,N_47
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235951.294,,,,,0,0,,,M,,M,,_4E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,31_7F
$GLGSV,1,1,00_65
$GPGLL,,,,,235951.294,V,N_7C
$GPRMC,235952.294,V,,,,,0.00,0.00,050180,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235952.294,,,,,0,0,,,M,,M,,_4D
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,31_7F
$GLGSV,1,1,00_65
$GPGLL,,,,,235952.294,V,N_7F
$GPRMC,235953.294,V,,,,,0.00,0.00,050180,,,N_45
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235953.294,,,,,0,0,,,M,,M,,_4C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,32_7C
$GLGSV,1,1,00_65
$GPGLL,,,,,235953.294,V,N_7E
$GPRMC,235954.294,V,,,,,0.00,0.00,050180,,,N_42
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235954.294,,,,,0,0,,,M,,M,,_4B
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,30_7E
$GLGSV,1,1,00_65
$GPGLL,,,,,235954.294,V,N_79
$GPRMC,235955.294,V,,,,,0.00,0.00,050180,,,N_43
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235955.294,,,,,0,0,,,M,,M,,_4A
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,29_76
$GLGSV,1,1,00_65
$GPGLL,,,,,235955.294,V,N_78
$GPRMC,235956.294,V,,,,,0.00,0.00,050180,,,N_40
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235956.294,,,,,0,0,,,M,,M,,_49
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,02,07,,,42,16,,,29_76
$GLGSV,1,1,00_65
$GPGLL,,,,,235956.294,V,N_7B
$GPRMC,235956.512,V,,,,,0.00,0.00,050180,,,N_49
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235956.512,,,,,0,0,,,M,,M,,_40
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,03,07,,,42,16,,,29,10,,,34_71
$GLGSV,1,1,00_65
$GPGLL,,,,,235956.512,V,N_72
$GPRMC,235957.512,V,,,,,0.00,0.00,050180,,,N_48
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,235957.512,,,,,0,0,,,M,,M,,_41
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,1,1,03,07,,,42,16,,,29,10,,,35_70
$GLGSV,1,1,00_65
$GPGLL,,,,,235957.512,V,N_73
$GPRMC,074709.125,V,,,,,0.00,0.00,230715,,,N_44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N_32
$GPGGA,074709.125,,,,,0,0,,,M,,M,,_43
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,2,1,08,09,71,180,,19,29,067,,30,26,257,,16,20,142,29_78
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,42,10,,,36_77
$GLGSV,1,1,00_65
$GPGLL,,,,,074709.125,V,N_71
$GNRMC,074710.120,V,,,,,0.22,0.00,230715,,,N_57
$GPVTG,0.00,T,,M,0.22,N,0.40,K,N_36
$GPGGA,074710.120,,,,,0,0,,,M,,M,,_4E
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,,19,29,067,,30,26,257,,16,20,142,30_70
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,42,10,,,35_74
$GLGSV,1,1,02,68,71,269,40,78,44,185,28_6F
$GNGLL,,,,,074710.120,V,N_62
$GNRMC,074711.120,V,,,,,0.05,0.00,230715,,,N_53
$GPVTG,0.00,T,,M,0.05,N,0.10,K,N_36
$GPGGA,074711.120,,,,,0,0,,,M,,M,,_4F
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,31,19,29,067,,30,26,257,,16,20,142,30_72
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,42,10,,,34_75
$GLGSV,1,1,02,68,71,269,40,78,44,185,28_6F
$GNGLL,,,,,074711.120,V,N_63
$GNRMC,074712.120,V,,,,,0.04,0.00,230715,,,N_51
$GPVTG,0.00,T,,M,0.04,N,0.08,K,N_3E
$GPGGA,074712.120,,,,,0,0,,,M,,M,,_4C
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,32,19,29,067,,30,26,257,,16,20,142,29_79
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,42,10,,,34_75
$GLGSV,1,1,02,68,71,269,40,78,44,185,27_60
$GNGLL,,,,,074712.120,V,N*60
Failed checksums:
0
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
04/01/01,00:00:57+0[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
Call Ready

Modem Reply:
AT
AT

Modem Reply:
OK

gsm_disconnect() started
Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
04/01/01,00:00:57+0[]

gsm_send_http(): Length of data packet:
60
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
22
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
22
gsm_send_http(): data sent.
parse_receive_reply() started
Modem Reply:
AT+QISEND=22

Modem Reply:

SEND OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 23 Jul 2015 07:47:20 GMT
C
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/23,07:47:20+00
#eof
OK

0, CLOSED

0, CLOS
Found header packet
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

No more data available.
Data was fully received by the server.
parse_cmd() started
Received commands:
#t:15/07/23,07:47:20+00
#eof
Found settime command.
15/07/23,07:47:20+00
Valid time string found.
gsm_set_time() started
Modem Reply:
AT+CCLK="15/07/23,07:47:20+00"

Modem Reply:
OK

gsm_set_time() completed
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Data sent successfully.
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QIDEACT

Modem Reply:
AT+CCLK?

+CCLK: "15/07/23,07:47:20+00"

OK

gsm_get_time() result:
15/07/23,07:47:20+0
gsm_get_time() completed
$GNRMC,074713.089,V,,,,,0.04,0.00,230715,,,N_52
$GPVTG,0.00,T,,M,0.04,N,0.07,K,N_31
$GPGGA,074713.089,,,,,0,0,,,M,,M,,_4F
$G,142,27_74
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,44,10,,,37_70
$GLGSV,1,1,03,68,71,269,40,78,44,185,22,87,09,126,_57
$GNGLL,,,,,074724.089,V,N_67
$GNRMC,074725.089,V,,,,,0.04,0.00,230715,,,N_57
$GPVTG,0.00,T,,M,0.04,N,0.08,K,N_3E
$GPGGA,074725.089,,,,,0,0,,,M,,M,,_4A
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,33,16,20,142,26_74
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,44,10,,,38_7F
$GLGSV,1,1,03,68,71,269,40,78,44,185,21,87,09,126,_54
$GNGLL,,,,,074725.089,V,N_66
$GNRMC,074726.089,V,,,,,0.06,0.00,230715,,,N_56
$GPVTG,0.00,T,,M,0.06,N,0.12,K,N_37
$GPGGA,074726.089,,,,,0,0,,,M,,M,,_49
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,33,16,20,142,25_77
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,44,10,,,38_7F
$GLGSV,1,1,04,68,71,269,40,78,44,185,20,88,15,079,,87,09,126,_68
$GNGLL,,,,,074726.089,V,N_65
$GNRMC,074727.089,V,,,,,0.11,0.00,230715,,,N_51
$GPVTG,0.00,T,,M,0.11,N,0.20,K,N_30
$GPGGA,074727.089,,,,,0,0,,,M,,M,,_48
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,34,16,20,142,25_70
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,45,10,,,38_7E
$GLGSV,1,1,04,68,71,269,40,78,44,185,20,88,15,079,,87,09,126,_68
$GNGLL,,,,,074727.089,V,N_64
$GNRMC,074728.089,V,,,,,0.04,0.00,230715,,,N_5A
$GPVTG,0.00,T,,M,0.04,N,0.07,K,N_31
$GPGGA,074728.089,,,,,0,0,,,M,,M,,_47
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,34,16,20,142,25_70
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,45,10,,,38_7E
$GLGSV,1,1,04,68,71,269,40,78,44,185,19,88,15,079,,87,09,126,_62
$GNGLL,,,,,074728.089,V,N_6B
$GNRMC,074729.089,V,,,,,0.04,0.00,230715,,,N_5B
$GPVTG,0.00,T,,M,0.04,N,0.08,K,N_3E
$GPGGA,074729.089,,,,,0,0,,,M,,M,,_46
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,34,16,20,142,26_73
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,45,10,,,38_7E
$GLGSV,1,1,04,68,71,269,40,78,44,185,18,88,15,079,,87,09,126,_63
$GNGLL,,,,,074729.089,V,N_6A
$GNRMC,074730.089,V,,,,,0.02,0.00,230715,,,N_55
$GPVTG,0.00,T,,M,0.02,N,0.04,K,N_34
$GPGGA,074730.089,,,,,0,0,,,M,,M,,_4E
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,30,19,29,067,,30,26,257,34,16,20,142,27_72
$GPGSV,2,2,08,11,02,028,,193,,,,07,,,45,10,,,38_7E
$GLGSV,1,1,04,68,71,269,40,78,44,185,18,88,15,079,,87,09,126,_63
$GNGLL,,,,,074730.089,V,N_62
$GNRMC,074731.089,V,,,,,0.30,0.00,230715,,,N_55
$GPVTG,0.00,T,,M,0.30,N,0.56,K,N_32
$GPGGA,074731.089,,,,,0,0,,,M,,M,,_4F
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,3,1,09,09,71,180,30,50,57,342,,07,47,223,45,19,29,067,_71
$GPGSV,3,2,09,30,26,257,34,16,20,142,27,11,02,028,,193,,,_75
$GPGSV,3,3,09,10,,,38_7A
$GLGSV,1,1,04,68,71,269,40,78,44,185,18,88,15,079,,87,09,126,_63
$GNGLL,,,,,074731.089,V,N_63
$GNRMC,074732.089,V,,,,,0.37,0.00,230715,,,N_51
$GPVTG,0.00,T,,M,0.37,N,0.69,K,N_39
$GPGGA,074732.089,,,,,0,0,,,M,,M,,_4C
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,29,50,57,342,,07,47,223,45,19,29,067,_79
$GPGSV,2,2,08,30,26,257,34,16,20,142,27,11,02,028,,193,,,_75
$GLGSV,1,1,04,68,71,269,40,78,44,185,19,88,15,079,,87,09,126,_62
$GNGLL,,,,,074732.089,V,N_60
$GNRMC,074733.089,V,,,,,0.17,0.00,230715,,,N_52
$GPVTG,0.00,T,,M,0.17,N,0.31,K,N_36
$GPGGA,074733.089,,,,,0,0,,,M,,M,,_4D
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,29,50,57,342,,07,47,223,45,19,29,067,_79
$GPGSV,2,2,08,30,26,257,34,16,20,142,26,11,02,028,,193,,,_74
$GLGSV,1,1,04,68,71,269,40,78,44,185,20,88,15,079,,87,09,126,28_62
$GNGLL,,,,,074733.089,V,N_61
$GNRMC,074734.089,V,,,,,0.34,0.00,230715,,,N_54
$GPVTG,0.00,T,,M,0.34,N,0.64,K,N_37
$GPGGA,074734.089,,,,,0,0,,,M,,M,,_4A
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,29,50,57,342,,07,47,223,45,19,29,067,_79
$GPGSV,2,2,08,30,26,257,34,16,20,142,27,11,02,028,,193,,,_75
$GLGSV,1,1,04,68,71,269,40,78,44,185,21,88,15,079,,87,09,126,28_63
$GNGLL,,,,,074734.089,V,N_66
$GNRMC,074735.089,V,,,,,0.20,0.00,230715,,,N_50
$GPVTG,0.00,T,,M,0.20,N,0.37,K,N_34
$GPGGA,074735.089,,,,,0,0,,,M,,M,,_4B
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,28,50,57,342,,07,47,223,45,19,29,067,_78
$GPGSV,2,2,08,30,26,257,34,16,20,142,27,11,02,028,,193,,,_75
$GLGSV,1,1,04,68,71,269,40,78,44,185,22,88,15,079,,87,09,126,27_6F
$GNGLL,,,,,074735.089,V,N_67
$GNRMC,074736.089,V,,,,,0.15,0.00,230715,,,N_55
$GPVTG,0.00,T,,M,0.15,N,0.28,K,N_3C
$GPGGA,074736.089,,,,,0,0,,,M,,M,,_48
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,2,1,08,09,71,180,28,50,57,342,,07,47,223,45,19,29,068,_77
$GPGSV,2,2,08,30,26,257,33,16,20,142,27,11,02,028,,193,,,_72
$GLGSV,1,1,04,68,71,269,40,78,44,185,22,88,15,079,,87,09,126,27_6F
$GNGLL,,,,,074736.089,V,N_64
Failed checksums:
1
collect_gps_data(): fix not acquired, given up.
collect_all_data() completed
Current:
15/07/23,07:47:20+0[]

gsm_send_at() started
gsm_send_at() completed
Modem Reply:

Modem Reply:
DEACT OK

gsm_disconnect() started
Modem Reply:
AT
AT

Modem Reply:
OK

Modem Reply:

Modem Reply:
OK

Modem Reply:
AT+QIDEACT

Modem Reply:
DEACT OK

gsm_disconnect(): DEACT OK found
gsm_disconnect() completed
GPRS deactivated.
gsm_connect() started
Connecting to remote server...
0
Modem Reply:
AT+QIOPEN="TCP","updates.geolink.io","80"

Modem Reply:
OK

Modem Reply:

Modem Reply:
CONNECT OK

Connected to remote server:
updates.geolink.io
gsm_connect() completed
gsm_send_http(): sending data.
15/07/23,07:47:20+0[]

gsm_send_http(): Length of data packet:
60
gsm_send_http(): Length of header packet:
170
Modem Reply:
AT+QISEND=170

Modem Reply:

gsm_validate_tcp() started.
Modem Reply:

Modem Reply:
SEND OK

gsm_validate_tcp() data delivered.
gsm_validate_tcp() completed.
gsm_send_http(): Sending IMEI and Key
Modem Reply:
AT+QISEND=38

Modem Reply:

Modem Reply:

Modem Reply:
SEND OK

gsm_send_http(): Sending body
gsm_send_http(): Body packet size:
22
gsm_send_http(): Sending data chunk:
0
gsm_send_http(): chunk length:
22
gsm_send_http(): data sent.
parse_receive_reply() started
Modem Reply:
AT+QISEND=22

Modem Reply:

SEND OK

Modem Reply:
AT+QIRD=0,1,0,100

OK

+QIRDI: 0,1,0

Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 23 Jul 2015 07:47:42 GMT
C
Modem Reply:
AT+QIRD=0,1,0,100

+QIRD: 78.46.45.61:80,TCP,49
Connection: close

#t:15/07/23,07:47:42+00
#eof
OK

0, CLOSED

0, CLOS
Found header packet
Modem Reply:
AT+QIRD=0,1,0,100

ERROR

No more data available.
Data was fully received by the server.
parse_cmd() started
Received commands:
#t:15/07/23,07:47:42+00
#eof
Found settime command.
15/07/23,07:47:42+00
Valid time string found.
gsm_set_time() started
Modem Reply:
AT+CCLK="15/07/23,07:47:42+00"

Modem Reply:
OK

gsm_set_time() completed
parse_cmd() completed
parse_receive_reply() completed
gsm_disconnect() started
gsm_disconnect(): DEACT OK not found.
gsm_disconnect() completed
Data sent successfully.
Ignition status:
0
Ignition is ON!
collect_all_data() started
gsm_get_time() started
Modem Reply:
AT+QIDEACT

Modem Reply:
AT+CCLK?

+CCLK: "15/07/23,07:47:42+00"

OK

gsm_get_time() result:
15/07/23,07:47:42+0
gsm_get_time() completed
$GNRMC,074737.089,V,,,,,0.05,0.00,230715,,,N_55
$GPVTG,0.00,T,,M,0.05,N,0.10,K,N_36
$GPGGA,074737.089,,,,,0,0,,,M,,M,,_49
$G0,142,28,11,02,028,,193,,,_7F
$GPGSV,3,3,09,23,,,23_70
$GLGSV,2,1,05,68,71,269,40,78,44,185,25,69,26,214,29,88,15,079,_6B
$GLGSV,2,2,05,87,09,126,25_54
$GNGLL,,,,,074747.089,V,N_62
$GNRMC,074748.089,V,,,,,0.11,0.00,230715,,,N_58
$GPVTG,0.00,T,,M,0.11,N,0.21,K,N_31
$GPGGA,074748.089,,,,,0,0,,,M,,M,,_41
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GNGSA,A,1,,,,,,,,,,,,,,,_00
$GPGSV,3,1,09,09,71,180,21,42,55,333,,07,47,223,46,19,29,068,_7A
$GPGSV,3,2,09,30,26,257,31,16,20,142,28,11,02,028,,193,,,_7F
$GPGSV,3,3,09,23,,,21_72
$GLGSV,2,1,05,68,71,269,40,78,44,185,25,69,26,214,29,88,15,079,_6B
$GLGSV,2,2,05,87,09,126,25_54
$GNGLL,,,,,074748.089,V,N_6D
$GNRMC,074749.089,A,2637.1944,S,15251.5519,E,0.29,0.00,230715,,,A_6E
Invalid altitude, retrying.

$GPVTG,0.00,T,,M,0.29,N,0.53,K,A_30
$GPGGA,074749.089,2637.1944,S,15251.5519,E,1,7,1.90,430.6,M,39.7,M,,_48
Invalid course, retrying.

$GNGSA,A,3,07,16,09,30,,,,,,,,,2.11,1.90,0.91_14
$GNGSA,A,3,68,78,69,,,,,,,,,,2.11,1.90,0.91_10
$GPGSV,3,1,09,09,71,180,20,42,55,333,28,07,47,223,46,19,29,068,25_76
$GPGSV,3,2,09,30,26,257,31,16,20,142,28,11,02,028,,193,,,_7F
$GPGSV,3,3,09,23,,,20_73
$GLGSV,2,1,05,68,71,269,40,78,44,185,26,69,26,214,29,88,15,079,_68
$GLGSV,2,2,05,87,09,126,24_55
$GNGLL,2637.1944,S,15251.5519,E,074749.089,A,A_50
$GNRMC,074751.000,A,2637.1947,S,15251.5508,E,0.42,0.00,230715,,,A*68
Invalid course, retrying.

$GPVTG,0.00,T,,M,0.42,N,0.78,K,A_34
$GPGGA,074751.000,2637.1947,S,15251.5508,E,1,7,1.90,431.6,M,39.7,M,,_42
Invalid course, retrying.

$GNGSA,A,3,07,16,09,30,,,,,,,,,2.11,1.90,0.91_14
$GNGSA,A,3,68,78,69,,,,,,,,,,2.11,1.90,0.91_10
$GPGSV,3,1,09,09,71,180

from opentracker.

m4rkw avatar m4rkw commented on May 26, 2024

Awesome news :) Sorry it took so long to resolve, I've been crazy with work these last couple of weeks getting ready for a launch and I'm off on holiday to France next week. Really glad I got this fixed for you before I go!

Mark

from opentracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.