Traccar Server running on Windows 2012 Location Update

balaramadasan8 years ago

Hi

I had configured the traccar server with our public ip. I installed the traccar client on my GSM (Samsung Galaxy s6). Port was retained at 5055 and the public ip is 188.135.51.77
though the client says location is updated i am unable to see the location details in the Server Map.

I have given the imei number of the gsm. When i changed the server to demo2.traccar.org it is able to find the device and plot on the map.

Can you please suggest whats wrong in the server setup i have done!!

Thanks much appreciated.

Anton Tananaev8 years ago
balaramadasan8 years ago

Thank you for the immediate response.

I do not see the hex in the server logs and the last entry says server was started.

my public ip is 188.135.51.77 and i have opened the port 5055
i access the same instance locally from x.x.x.x and the port is 4334

i am able to access the traccar using the public ip.
i have currently connected my samsung galaxy phone pointing to my public ip and port 5055
though it says location updated, i do not see the device in the web console.

Any pointers please..

thank you

Anton Tananaev8 years ago

Does it say anything else on the status screen?

balaramadasan8 years ago

the last few bit of my server log is this

2017-02-05 14:33:23  INFO: Shutting down server...
2017-02-05 14:33:23  INFO: [1F64E5A4] disconnected
2017-02-05 14:33:23  INFO: [D3761EC0] disconnected
2017-02-05 14:33:23  INFO: [1E9CC9DA] disconnected
2017-02-05 14:34:07  INFO: Operating system name: Windows Server 2012 R2 version: 6.3 architecture: amd64
2017-02-05 14:34:07  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.102-b14
2017-02-05 14:34:07  INFO: Memory limit heap: 1484mb non-heap: 0mb
2017-02-05 14:34:07  INFO: Character encoding: UTF-8 charset: UTF-8
2017-02-05 14:34:07  INFO: Version: 3.9-SNAPSHOT
2017-02-05 14:34:11  INFO: Starting server...
2017-02-05 15:17:05  INFO: [9E6C6724] connected
2017-02-05 15:17:06 DEBUG: [9E6C6724: 5055 < 192.168.10.208] HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e31302e32313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e303b20574f57363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35352e302e323838332e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e380d0a0d0a
2017-02-05 15:17:06 DEBUG: [9E6C6724: 5055 > 192.168.10.208] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-02-05 15:17:06 DEBUG: [9E6C6724: 5055 < 192.168.10.208] HEX: 474554202f66617669636f6e2e69636f20485454502f312e310d0a486f73743a203139322e3136382e31302e32313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e303b20574f57363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35352e302e323838332e3837205361666172692f3533372e33360d0a4163636570743a20696d6167652f776562702c696d6167652f2a2c2a2f2a3b713d302e380d0a526566657265723a20687474703a2f2f3139322e3136382e31302e32313a353035352f0d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e380d0a0d0a
2017-02-05 15:17:06 DEBUG: [9E6C6724: 5055 > 192.168.10.208] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-02-05 15:17:08  INFO: [C51DE2B0] connected
2017-02-05 15:17:09  INFO: [A896BCCC] connected
2017-02-05 15:17:09  INFO: [5B202699] connected
2017-02-05 15:17:09 DEBUG: [9E6C6724: 5055 < 192.168.10.208] HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e31302e32313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e303b20574f57363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35352e302e323838332e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e380d0a0d0a
2017-02-05 15:17:09 DEBUG: [9E6C6724: 5055 > 192.168.10.208] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-02-05 15:17:09 DEBUG: [9E6C6724: 5055 < 192.168.10.208] HEX: 474554202f66617669636f6e2e69636f20485454502f312e310d0a486f73743a203139322e3136382e31302e32313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e303b20574f57363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35352e302e323838332e3837205361666172692f3533372e33360d0a4163636570743a20696d6167652f776562702c696d6167652f2a2c2a2f2a3b713d302e380d0a526566657265723a20687474703a2f2f3139322e3136382e31302e32313a353035352f0d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e380d0a0d0a
2017-02-05 15:17:09 DEBUG: [9E6C6724: 5055 > 192.168.10.208] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-02-05 15:17:19  INFO: [C51DE2B0] disconnected
2017-02-05 15:17:19  INFO: [5B202699] disconnected
2017-02-05 15:17:19  INFO: [A896BCCC] disconnected
2017-02-05 15:23:55  INFO: [9E6C6724] disconnected

in the web page there is nothing displayed in the last updated column

Anton Tananaev8 years ago

That's not what I asked for. I asked what you see on the status screen in the app.

balaramadasan8 years ago

Sorry about that..

It says every 30 seconds Location Update. no error or any other message

Anton Tananaev8 years ago

It means that your device sends somewhere, but looks like it's not your server. Make sure the IP is set correctly in the app.

balaramadasan8 years ago

hi

i have checked the app and also changed the ip to my dns name which technova1.ddns.net
and i have remapped the port 7755

i have gone through certain forums of yours and found that 5055 should be the port for the client app? is that so or can it be any port of our choice?

please note that this is only for the GSM client which we are trying to establish after which we would be going to test the gps tracker devices...

We dont see any logs being generated on our server. In order to debug and set it up is there any commercials for the same? if so how do i subscribe to it and how soon can i get it done?

Thanks

balaramadasan8 years ago

hi Finally i got the 5055 port working and my gsm is shown on the web interface and is periodically updated.

I had now connected a Chinese GPS Watch Phone which as per the sms protocol document says to configure 7755.

however i have connected to same using 5001, 5002, 5006, 5013,5023, 5036.

i now receive some messages on the server log from this GPS Watch phone but does not update the last updated data.

Below are the messages i recieve as hex

Hexa:

5b33472a343730303530353935362a303030392a4c4b2c302c302c35365d

Decode:

[3G*4700505956*0009*LK,0,0,56]

Hexa:

5b33472a343730303530353935362a303134342a55442c3035303231372c3135343132352c562c32332e3631313539392c4e2c35382e353430323431322c452c302e30302c302e302c302e302c302c39322c35372c302c302c30303030303030302c372c3235352c3432322c322c383030362c31343339312c3134312c383030362c31383537322c3133312c383030362c31313936332c3133312c383030362c31313936322c3132382c383030362c31313937322c3132362c383030362c31313937312c3132342c383030362c31333935332c3132342c332c4449524543542d5a73576f726b43656e74726520333032352c39653a39333a34653a33653a33643a31312c2d34382c4449524543542d5579576f726b43656e74726520333032352c39653a39333a34653a33653a34333a61642c2d36302c4f53546f746f5f444536392c30383a31313a39363a36353a64653a36392c2d37325d

Decode:

[3G*4700505956*0144*UD,050217,154125,V,23.611599,N,58.5402412,E,0.00,0.0,0.0,0,92,57,0,0,00000000,7,255,422,2,8006,14391,141,8006,18572,131,8006,11963,131,8006,11962,128,8006,11972,126,8006,11971,124,8006,13953,124,3,DIRECT-ZsWorkCentre 3025,9e:93:4e:3e:3d:11,-48,DIRECT-UyWorkCentre 3025,9e:93:4e:3e:43:ad,-60,OSToto_DE69,08:11:96:65:de:69,-72]

Can you please suggest what is wrong and help me in the right direction please...

Thank you

Anton Tananaev8 years ago

Your device is using "watch" protocol, so port 5093 is the right one. I wonder why you haven't tried it.

balaramadasan8 years ago

Thank you Very much Anton. Its been Excellent Support. Thank you for providing Traccar its really an excellent platform.

balaramadasan8 years ago

Hi Anton

since last 2 hours the Traccar service does not go up. every time we restart the service its down within 3 seconds

i found this on the event logs

Aborted connection 58 to db: 'altdb' user: 'test' host: 'FTSVMSVR21.fortuneoman.com' (Got an error reading communication packets)For more information, see Help and Support Center at http://www.mysql.com.

Could you please help us out.

Thanks

Anton Tananaev8 years ago

You have to check server logs.

balaramadasan8 years ago

Hello Anton

2017-02-06 17:28:12  WARN: Unknown device - 4700505956 (37.40.17.51)
2017-02-06 17:28:14 DEBUG: [6824521A: 5093 < 37.40.17.51] HEX: 5b33472a343730303530353935362a303046362a5544322c3036303231372c3133303533312c562c32332e3631313635342c4e2c35382e353430343238322c452c302e30302c302e302c302e302c302c39342c38322c302c302c30303030303030382c342c3235352c3432322c322c383030362c31313937332c3134322c383030362c31313936322c3133302c383030362c31343339312c3132382c383030362c31313937312c3132342c322c4449524543542d5a73576f726b43656e74726520333032352c39653a39333a34653a33653a33643a31312c2d35322c4449524543542d5579576f726b43656e74726520333032352c39653a39333a34653a33653a34333a61642c2d36355d
2017-02-06 17:28:14  WARN: Unknown device - 4700505956 (37.40.17.51)
2017-02-06 17:28:16 DEBUG: [6824521A: 5093 < 37.40.17.51] HEX: 5b33472a343730303530353935362a303035442a5544322c3036303231372c3133313731382c562c32332e3631313635342c4e2c35382e353430343238322c452c302e30302c302e302c302e302c302c302c35302c302c302c30303030303030302c312c302c302c302c302c302c3131305d
2017-02-06 17:28:16  WARN: Unknown device - 4700505956 (37.40.17.51)
2017-02-06 17:28:18  INFO: Shutting down server...
2017-02-06 17:28:19 DEBUG: [6824521A: 5093 < 37.40.17.51] HEX: 5b33472a343730303530353935362a303046342a5544322c3036303231372c3133313734332c562c32332e3631313635342c4e2c35382e353430343238322c452c302e30302c302e302c302e302c302c39372c38372c302c302c30303030303030382c342c302c3432322c322c383030362c31313937332c3134332c383030362c31313936332c3134312c383030362c31343339312c3133342c383030362c31313937312c3132362c322c4449524543542d5a73576f726b43656e74726520333032352c39653a39333a34653a33653a33643a31312c2d35332c4449524543542d5579576f726b43656e74726520333032352c39653a39333a34653a33653a34333a61642c2d36375d
2017-02-06 17:28:19  WARN: Unknown device - 4700505956 (37.40.17.51)
2017-02-06 17:28:19  INFO: [6824521A] disconnected
2017-02-06 17:28:19  INFO: [539A45AB] disconnected
2017-02-06 17:28:22  INFO: Operating system name: Windows Server 2012 R2 version: 6.3 architecture: amd64
2017-02-06 17:28:22  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.102-b14
2017-02-06 17:28:22  INFO: Memory limit heap: 1484mb non-heap: 0mb
2017-02-06 17:28:22  INFO: Character encoding: UTF-8 charset: UTF-8
2017-02-06 17:28:22  INFO: Version: 3.9-SNAPSHOT
2017-02-06 17:55:40  INFO: Operating system name: Windows Server 2012 R2 version: 6.3 architecture: amd64

This is the extract of the server logs during that time.

What i had configured is 3 devices to send data periodically at 20 Seconds interval to the server. It was working fine almost 6 hours and then it started to shut down itself.

Now i created another Mysql Schema and mapped the credentials to it. Also i have made the 3 devices to send data every 2 minutes. Since then it has been ok.