We searched for several devices to do this "telematics" tasks and we finally arrived to the conclusion that this Freematics device would be the perfect choice.
We have the full datalogger v4 device. with the gps and gsm module.
Everything related to the datalogger works perfectly. The device gets all odb, and gps data and it stores it in the sd card. (datalogger program).
The problems we have are related to the sim800l device (Telelogger program).
what we want to accomplish is quite simple:
Send odb & GPS data over gprs to our server through a POST.
Everything seems to work OK, but we are unable to get the nuts and bolts of the problem, We have been reading the code for hours trying to
discover what is wrong. First, let us show you what happens when we plug in the device :
this is what we got when we power on the odb dongle:
Code: Select all
GPRS...OK
#HTTP.....OK
#VIN:MBJJ7NE2G0161796
#SIGNAL:120
#CHANNEL:............................Error
$GSM
OK
and then in a small loop:
Code: Select all
>$OBD?
>$GSM
+HTTPACTION: 0,603,0
After one day of searching about the 603 code (Its not a standar HTML erro code as we imagined), we have found that is probably a DNS error.
Anyone knows why is this error popping up? Have someone had a similar problem?
we have been reading the code and this happens in the "joinchannel" functon of the "telelogger.ino" program.
Anyone knows what is this function for?. In particular the function does this:
Code: Select all
"AT+HTTPPARA=\"URL\",\"%s/push?", HOST_URL);
which is a get to the server with a "push" parameter.
Is it safe to remove that function? Is is some kind of check function to see if the server is online?
we have also check the at command reference of the sim800l and we do not find anything related to a push parameter.
After a while we get this response from the serial:
Code: Select all
#CHANNEL:.....Error
+HTTPREAD: 50
Cannot GET /push?CSQ=120&VIN=MBJJ7NE2G0161796
And the rest of the code is not executed as the program remains in this forever loop.
we are really exhausted as the documentation is almost non existent, could anyone help us to solve this problem.
thanks a lot.