Traccar return OK response. You must be doing something wrong. What do you see in the log (tracker-server.log)?
Dear Anston
Thank for coming back.
My Arduino/SIMCOM send a URL. When I past it into a browser, it return an empty page, and an OK should be printed, isn't?
But I think I undertsood my error.
My AT+ATTPREAD return that answer when there is no caracters returned
AT+HTTPREAD=0,100
OK
and it return
AT+HTTPREAD=0,100
+HTTPREAD:0,200
OK (It the OK from the server)
OK (It's the OK from the command
As I am waiting for +HTTPREAD:, it wait until it come, and as there is no OK from Traccar, it wait the delay I choose (30s.)
If you said, it return an OK, why I can not see it?
What do you think I did wrong?
Thank
2015-10-19 22:27:07 DEBUG: [D81BB0AB: 5055 > 178.198.72.62] HEX: 485454502f312e3120323030204f4b0d0a0d0a 2015-10-19 22:27:07 INFO: [D81BB0AB] disconnected 2015-10-19 22:27:07 INFO: [D81BB0AB] id: 1, time: Mon Oct 19 20:23:17 CEST 2015, lat: 44.215813, lon: 2.144025, speed: 0.0, course: 0.0 2015-10-19 22:27:13 INFO: [9B29B5D3] connected 2015-10-19 22:27:13 DEBUG: [9B29B5D3: 5055 < 194.230.155.169] HEX: 474554202f3f69643d3836353036373032303339343734312668646f703d56266c61743d34362e323135383133266c6f6e3d362e31343430323526626174743d38332674696d657374616d703d323031352d31302d313925323032303a32373a313020485454502f312e310d0a486f73743a206269706d652e64796e646e732e6f72673a353035350d0a4163636570743a202a2f2a0d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a2053494d434f4d5f4d4f44554c450d0a0d0a 2015-10-19 22:27:13 DEBUG: [9B29B5D3: 5055 > 194.230.155.169] HEX: 485454502f312e3120323030204f4b0d0a0d0a 2015-10-19 22:27:13 INFO: [9B29B5D3] disconnected 2015-10-19 22:27:13 INFO: [9B29B5D3] id: 1, time: Mon Oct 19 20:27:10 CEST 2015, lat: 46.215813, lon: 6.144025, speed: 0.0, course: 0.0 2015-10-19 22:27:53 INFO: [1B7F3B9A] connected 2015-10-19 22:27:53 DEBUG: [1B7F3B9A: 5055 < 194.230.159.71] HEX: 474554202f3f69643d3836353036373032303339343734312668646f703d56266c61743d34362e323135383133266c6f6e3d362e31343430323526626174743d38332674696d657374616d703d323031352d31302d313925323032303a32373a353120485454502f312e310d0a486f73743a206269706d652e64796e646e732e6f72673a353035350d0a4163636570743a202a2f2a0d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a2053494d434f4d5f4d4f44554c450d0a0d0a 2015-10-19 22:27:53 DEBUG: [1B7F3B9A: 5055 > 194.230.159.71] HEX: 485454502f312e3120323030204f4b0d0a0d0a 2015-10-19 22:27:53 INFO: [1B7F3B9A] disconnected 2015-10-19 22:27:53 INFO: Position filtered from 1 2015-10-19 22:28:33 INFO: [A840A4A4] connected 2015-10-19 22:28:33 DEBUG: [A840A4A4: 5055 < 194.230.155.221] HEX: 474554202f3f69643d3836353036373032303339343734312668646f703d56266c61743d34362e323135383133266c6f6e3d362e31343430323526626174743d38332674696d657374616d703d323031352d31302d313925323032303a32383a333220485454502f312e310d0a486f73743a206269706d652e64796e646e732e6f72673a353035350d0a4163636570743a202a2f2a0d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a2053494d434f4d5f4d4f44554c450d0a0d0a 2015-10-19 22:28:33 DEBUG: [A840A4A4: 5055 > 194.230.155.221] HEX: 485454502f312e3120323030204f4b0d0a0d0a 2015-10-19 22:28:33 INFO: [A840A4A4] disconnected 2015-10-19 22:28:33 INFO: Position filtered from 1 2015-10-19 22:29:12 INFO: [CAF8D8A6] connected 2015-10-19 22:29:12 DEBUG: [CAF8D8A6: 5055 < 194.230.159.80] HEX: 474554202f3f69643d3836353036373032303339343734312668646f703d41266c61743d34362e323136363637266c6f6e3d362e3133333333332673706565643d352e37323726636f757273653d3331312e393826626174743d38332674696d657374616d703d323031352d31302d313925323032303a32393a303720485454502f312e310d0a486f73743a206269706d652e64796e646e732e6f72673a353035350d0a4163636570743a202a2f2a0d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a2053494d434f4d5f4d4f44554c450d0a0d0a 2015-10-19 22:29:12 DEBUG: [CAF8D8A6: 5055 > 194.230.159.80] HEX: 485454502f312e3120323030204f4b0d0a0d0a 2015-10-19 22:29:12 INFO: [CAF8D8A6] disconnected 2015-10-19 22:29:12 INFO: Position filtered from 1 (END)
If you decode responses from the server (5055 > 178.198.72.62), you will see that the server responds with OK immediately:
HTTP/1.1 200 OK
OK Great, thank
May I ask you something else?
That parameter
<entry key='filter.enable'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.distance'>4000</entry>
<entry key='filter.zero'>true</entry>
It filter position which are before 4km or more longer than 4km?
Should I restart the Traccar after changing the conf files?
It filters locations with less than specified distance. Ans yes, you need to restart service after changing the config file.
Great
Thank Anton for your great support, I really appreciate.
Nut excuse me if I abuse. I have another question....
In my OsmAnd protocol I add hdop parameter and I use the value V or A to distinguish the status of my location (Cell or GPS). That great.
Could list me all available parameters?
I tried
course (but it did not save into the course filed)
sta
stat
sat
satellite
If I create a sensor, it will craete a parameter, or it nothing to do with?
many thank
I am very happy with Traccar
You can take a look at the decoder to get an idea of what parameters are supported:
https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/OsmAndProtocolDecoder.java
As for course, you can use either "bearing" or "heading".
Great Anton. Thank thank a lot.
But let me instist :o) about 'course'. I can not see it the OsmAndProtocolDecode.java.
It's not available, isn't?
If yes, where is locate that file in my installation (Ubuntu 14.4) Would it be possile I modify that file to have that option.
Sorry to abuse of your availability
Course is available, but the URL parameter name should be "bearing" or "heading".
Great, thank a lot
Hi @pierrot10,
Please help me to resolve this issue, https://www.traccar.org/forums/topic/traccar-not-saving-data-sent-from-simcom-using-osmand-protocol/
Thanks,
Kiran.
Good evening,
When I send my URL following that protocol
http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}
I am working with An Arduino and a SIM808 module. I am using AT command.
When I use the AT+ATTPPARA command to send my URL, there is another command AT+HTTPREAD to read the answer of the web server.
The Traccar server took about 30 sec to answer.
Previously I used to work with OpenGTS and it return me an answer after a couple of seconds.
The difference is that OpenGTS return me a value and an OK what Traccar does not do (excepted of I am wrong)
Is there a way to settup Traccar to retunr a response as an OK if the datas have been successefully saved into the database?
Many thank for your help.
Cheers and nice evening