Hi,
I have connected simcom module via serial to usb connector as below.
[84879.919584] usb 2-1.2: new full-speed USB device number 4 using ehci-pci
[84880.043503] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[84880.043516] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[84880.043523] usb 2-1.2: Product: CP2102 USB to UART Bridge Controller
[84880.043529] usb 2-1.2: Manufacturer: Silicon Labs
[84880.043534] usb 2-1.2: SerialNumber: 0001
[84880.052084] cp210x 2-1.2:1.0: cp210x converter detected
[84880.052428] usb 2-1.2: cp210x converter now attached to ttyUSB0
I am using "Cutecom" application to send the AT commands to simcom as shown in below screenshot.
https://imgur.com/UBp371r
I have used below commands to send data to simcom,
AT+CIPSTART="TCP","13.126.237.124","5055"
OK
CONNECT OK
AT+CIPSEND=242
> POST /?id=4455666×tamp=1525865872&lat=13.09796922&lon=77.56237438 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: SIMCOM_MODULE
Host: 13.126.237.124:5055
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 0
It is hitting the server but server is neither completing the operation and storing the lat lng values in to database nor showing any error.
The Server log is below:
2018-05-09 11:33:49 INFO: [7B56232B] connected
2018-05-09 11:35:00 DEBUG: [7B56232B: 5055 < 223.237.249.36] HEX: 504f5354202f3f69643d34343535363636266c61743d31332e3039373936393232266c6f6e3d37372e353632333734333820485454502f312e310a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640a557365722d4167656e743a2053494d434f4d5f4d4f44554c450a486f73743a2031332e3132362e3233372e3132343a353035350a436f6e6e656374696f6e3a204b6565702d416c6976650a4163636570742d456e636f64696e673a20677a69700a436f6e74656e742d4c656e6774683a2030
2018-05-09 11:38:35 INFO: [7B56232B] disconnected
2018-05-09 11:38:43 INFO: [CD1D190A] connected
2018-05-09 11:39:23 DEBUG: [CD1D190A: 5055 < 223.237.249.36] HEX: 504f5354202f3f69643d343435353636362674696d657374616d703d31353235383635383732266c61743d31332e3039373936393232266c6f6e3d37372e353632333734333820485454502f312e310a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640a557365722d4167656e743a2053494d434f4d5f4d4f44554c450a486f73743a2031332e3132362e3233372e3132343a353035350a436f6e6e656374696f6e3a204b6565702d416c6976650a4163636570742d456e636f64696e673a20677a69700a436f6e74656e742d4c656e6774683a2030
2018-05-09 11:41:13 INFO: [CD1D190A] disconnected
Please help me to resolve this issue.
Thanks,
Kiran.
Now it started working using below commands.
AT+HTTPINIT
OK
AT+HTTPPARA="URL","http://13.126.237.124:5055/?id=867857039198283&lat=13.093404&lon=77.562561"
OK
AT+HTTPACTION=1
OK
Data is getting saved, but I could see some errors in server log as below.
2018-05-09 13:41:59 INFO: [FD1CB44A] connected
2018-05-09 13:41:59 DEBUG: [FD1CB44A: 5055 < 223.237.238.204] HEX: 504f5354202f3f69643d383637383537303339313938323833266c61743d31332e3039373936393232266c6f6e3d37372e353632333734333820485454502f312e310d0a486f73743a2031332e3132362e3233372e3132343a353035350d0a4163636570743a202a2f2a0d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a2053494d434f4d5f4d4f44554c450d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2018-05-09 13:41:59 DEBUG: [FD1CB44A: 5055 > 223.237.238.204] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2018-05-09 13:42:00 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-05-09 13:42:00 INFO: [FD1CB44A] id: 867857039198283, time: 2018-05-09 13:41:59, lat: 13.09797, lon: 77.56237, speed: 0.0, course: 0.0
2018-05-09 13:42:00 WARN: Empty address
2018-05-09 13:42:00 INFO: [FD1CB44A] disconnected
The error means that your reverse geocoding is not returning address. You can safely ignore it if you don't care about address.
Hi,
I have connected simcom module via serial to usb connector as below.
I am using "Cutecom" application to send the AT commands to simcom as shown in below screenshot.
https://imgur.com/UBp371r
I have used below commands to send data to simcom,
It is hitting the server but server is neither completing the operation and storing the lat lng values in to database nor showing any error.
The Server log is below:
Please help me to resolve this issue.
Thanks,
Kiran.