Missing time stamp

Philip10 years ago

Hello

When i send the following string the date changes but the time remains the same.
http://192.168.1.3:5001","imei:1234,tracker,1501261303,16234900601,F,112909.397,A,5134.4669,N,04354.3287,E,0.11,;"&Chr(13)&Chr(10))

1501261303 supposed to be the time date,changing the date works but the time remains the same when i change it.

The log

2015-04-27 20:46:00 DEBUG: [39BDA3C0: 5001 <- 192.168.1.20] - HEX: 504f5354202f20485454502f312e310d0a436f6e74656e742d4c656e6774683a2038390d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a486f73743a203139322e3136382e312e333a353030310d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a0d0a696d65693a313233342c747261636b65722c313530313236313330332c31363233343930303630312c462c3131323930392e3339372c412c353133342e343636392c4e2c30343335342e333238372c452c302e31312c3b0d0a
2015-04-27 20:46:00  INFO: device: 9, time: Mon Jan 26 11:29:09 UTC 2015, lat: 51.574448333333336, lon: 43.905478333333335

Any help is deeply appreciated.

Philip

Anton Tananaev10 years ago

Traccar takes time from the UTC value (number after 'F'). In your example it's 112909.397 (11:29:09 UTC).

Philip10 years ago

I found the problem in the string before i could read the answer.

http://www.javased.com/?source_dir=traccar/src/org/traccar/protocol/Gps103ProtocolDecoder.java

I am not a JAVA programmer , can you change the title of the web interface for me to CunaCC.

Tnx in advance

Anton Tananaev10 years ago

Yes, I can change the title. Please send me an email to support@traccar.org to discuss it.