I am at loss here, can not seem to be able to connect Traccar to the GPS tracker

ac9 years ago
Are you sure that it’s device in the log or it’s just you testing open port 5 times? If device, looks like it doesn’t send any data.

I am not sure what you are trying to say here, but this is the log file in from tracker-server.log.
I start the server manually and wait couple minutes before I log in. After few minutes, the following messages appear in the log file.

Anton Tananaev9 years ago

Have you used a port check link I provided earlier? If yes, it might be the result of the check. If no, then it's likely device's activity, but unfortunately looks like it doesn't send any data.

ac9 years ago

yes, I have used your link and 4-5 different sites, the ports are open. One peculiar thing, when the server is stopped, the ports close, as soon as I start the service (traccar server) the ports open. Is this normal behavior?

Anton Tananaev9 years ago

To check if the port is open those tools connect to it and disconnect straight away. That explains why you have several "Closing connection by disconnect" messages, those are not from your device.

Ports are open by the Traccar service, so tools will report ports as closed if the service is not running.

ac9 years ago

Hello Anton, sorry I should have updated earlier, I finally got the data in the traccar from the GPS devices, just did not have time to run the HEX decoder so I can match the profile. Would do this when I get home later on.

Also, Michel above posted a link to his server and it looks a lot different than the one that I have, with even language support. Is this additional options that I can enable or a new version of the traccar server? I did download the newest version from here: https://www.traccar.org/download/
thanks

PS: By the way, I can translate Greek if you want me to.

Anton Tananaev9 years ago

He is using unofficial MOD UI web interface developed by Vitaly Litvak which is based on old version of Traccar web interface.

In the next official release which is coming very soon there will be support for multiple languages. It would be great if you could provide Greek translation. You need to translation single quoted string in this file:

https://raw.githubusercontent.com/tananaev/traccar/master/web/l10n/en.js

ac9 years ago

I will wait for the official release, by the way I got one tracker to talk to the server, so far so good, need to add one more (that's the Chinese one, so wish me luck with the protocol lol)

Yes, I will definitely do the translation, do you have a time frame of completion?

Anton Tananaev9 years ago

I was hoping to finish everything this week, but there are some technical problem I haven't solved yet, so it might be delayed.

ac9 years ago

I will have the translation by the end of the week.

So I can communicate with the traccar server with the cellphone client at port 5005, but not with the car tracker (generic chinese GPS103B). I tried all ports, but there is no communication with the server whatsoever. I even had my friend point his GPS tracker (exact same model) to my server with no results.

This is what I got by leaving these two GPS trackers pointing to the server over night:

2015-07-30 07:41:12 DEBUG: [5392CDAD: 5022 <- 222.186.21.180] - HEX: 5353482d322e302d6c6962737368325f312e342e330d0a
2015-07-30 07:41:17 WARN: An existing connection was forcibly closed by the remote host - IOException ( < ...)
2015-07-30 07:41:17 INFO: Closing connection by exception
2015-07-30 07:41:17 INFO: Closing connection by disconnect
2015-07-30 07:41:21 DEBUG: [43C572AE: 5022 <- 222.186.21.180] - HEX: 5353482d322e302d6c6962737368325f312e342e330d0a
2015-07-30 07:41:26 WARN: An existing connection was forcibly closed by the remote host - IOException ( < ...)
2015-07-30 07:41:26 INFO: Closing connection by exception
2015-07-30 07:41:26 INFO: Closing connection by disconnect


what in the world is 5022 <- 222.186.21.180
something tries to talk to my part 5022?

By the way, I had the same tracker configured with GPS orange and it worked flawlessly (of course at different port which I also tried with no success). I used the Xenon TK103-2 protocol there (the Xenon TK103 would not work).

Ports used so far: 5001, 5002, 5006, 5013, 5023, 5036 and couple more, but there is zero communication with the server.

Any suggestions?

Anton Tananaev9 years ago

Those log messages mean that something tried to connect to port 5022, but it's not a device. Looks like a port scanner or something.

Try to configure your device with the demo server (http://demo.traccar.org).

ac9 years ago

I think I found the issue:

The communication between the GPS tracker and the Traccar has turned the device's GPRS mode off (there was some brief communication with the server). I am trying to restore it by sending SMS "GPRSpassword" and while I get back a response "GPRS ok!", a "checkpassword" command after indicates that the device still has its GPRS OFF.

I know this because earlier today, I had a friend point his device to my Traccar server at port 5001 and we did get some communication for few minutes, however his GPRS function is OFF now and he can not enable it even if pointing to his previous working server (not Traccar).

Anton is this a possibility or my guess is a wild dream?

thanks

Anton Tananaev9 years ago

Traccar doesn't send any commands to the device, so I don't think it's possible. I think more likely it's a bug in the device's firmware and it stopped working because of that. Another possibility is that there is something wrong with SIM card. Try to put it into a mobile phone and see if data connection works.

ac9 years ago

SIM card works on a cellphone, was able to make calls and browse the internet through mobile data.

Both GPS trackers were working fine (both on GPS orange server) before. This is very strange behavior. I am looking into whether the SIM card company changed their APN settings.

Anton Tananaev9 years ago

Very unlikely that they changed APN.