GT06 not showing in page

carinavb 6 hours ago

Hello, We bought a 4G Car Tracker, model: KS199D-4G. It appears to be a GT06 clone. The IMEI starts with 8665, and the Traccar logs show the following:

2026-06-08 13:40:18 INFO: [b48e6e75: gt06 < 186.157.103.157] HEX: 78780d0108665570814533850181ed800d0a

I configured it with port 5023. It sends strings, but I don't see the device on the website, and I don't see any updates. Could you please help me? Thank you very much.

Anton Tananaev 4 hours ago

Do you want to provide full logs? What you provided is just a login message.

carinavb 4 hours ago

Hello Anton, thanks for your answer, here is the log:

2026-06-08 15:46:58  INFO: [a3e01060: gt06 < 181.238.21.180] HEX: 78780a134606040b0102e060290d0a
2026-06-08 15:46:58  INFO: [a3e01060: gt06 > 181.238.21.180] HEX: 7878051302e02cc60d0a
2026-06-08 15:46:58  INFO: Query not provided: database.updateDeviceExtended
2026-06-08 15:46:58  WARN: Failed to store position - Column 'timestamp' cannot be null - SQLIntegrityConstraintViolationException (... < QueryBuilder:480 < DataManager:458 < DefaultDataHandler:40 < ...)
2026-06-08 15:46:58  WARN: [a3e01060] error - NullPointerException (DeviceManager:383 < *:351 < FuelDropEventHandler:50 < BaseEventHandler:29 < ...)
2026-06-08 15:46:58  INFO: [a3e01060] disconnected
2026-06-08 15:46:58  INFO: Query not provided: database.insertEvent
2026-06-08 15:46:58  INFO: Query not provided: database.updateDeviceExtended
2026-06-08 15:47:06  INFO: [682cae02] connected
2026-06-08 15:47:06  INFO: [682cae02: gt06 < 181.238.21.172] HEX: 78780d01086655708145338502e1a4ee0d0a
2026-06-08 15:47:06  INFO: [682cae02: gt06 > 181.238.21.172] HEX: 7878050102e10d620d0a
2026-06-08 15:47:06  INFO: Query not provided: database.insertEvent
2026-06-08 15:47:06  INFO: Query not provided: database.updateDeviceExtended
2026-06-08 15:47:08  INFO: [682cae02: gt06 < 181.238.21.172] HEX: 78780a134606040b0102e2433b0d0a
2026-06-08 15:47:08  INFO: [682cae02: gt06 > 181.238.21.172] HEX: 7878051302e20fd40d0a
2026-06-08 15:47:08  INFO: Query not provided: database.updateDeviceExtended
2026-06-08 15:47:08  WARN: Failed to store position - Column 'timestamp' cannot be null - SQLIntegrityConstraintViolationException (... < QueryBuilder:480 < DataManager:458 < DefaultDataHandler:40 < ...)
2026-06-08 15:47:08  WARN: [682cae02] error - NullPointerException (DeviceManager:383 < *:351 < FuelDropEventHandler:50 < BaseEventHandler:29 < ...)
2026-06-08 15:47:08  INFO: [682cae02] disconnected
2026-06-08 15:47:08  INFO: Query not provided: database.insertEvent
2026-06-08 15:47:08  INFO: Query not provided: database.updateDeviceExtended
Anton Tananaev 4 hours ago

So many red flags. You didn't think it's important to include all those errors and warnings immediately?

carinavb 3 hours ago

I apologize, this device is giving me a lot of trouble; even the commands aren't the ones I was given in the manual that came with it. I apologize again. Searching online, I found that I could add this to the traccar.xml file, but some errors disappear and others appear. Since I have the server running with other devices, I'm afraid that the ones that are working will stop working, so I removed everything until I could see what you suggested.

    <entry key='database.insertPosition'>
        INSERT INTO EventData (accountID, deviceID, timestamp, statusCode, latitude, longitude, speedKPH, heading, altitude, address)
        VALUES (
            (SELECT accountID FROM Device WHERE deviceID = :deviceId LIMIT 1), 
            :deviceId, 
            UNIX_TIMESTAMP(:deviceTime), 0, :latitude, :longitude, (:speed * 1.852), :course, :altitude, :address
        );
    </entry>

    <entry key='database.updateLatestPosition'>
        UPDATE Device SET 
            lastGPSTimestamp = UNIX_TIMESTAMP(:deviceTime), 
            lastValidLatitude = :latitude, 
            lastValidLongitude = :longitude, 
            lastUpdateTime = UNIX_TIMESTAMP(NOW())
        WHERE deviceID = :deviceId;
    </entry>

  
    <entry key='database.updateDeviceExtended'>
        UPDATE Device SET lastGPSTimestamp = UNIX_TIMESTAMP(NOW()), lastUpdateTime = UNIX_TIMESTAMP(NOW())
        WHERE deviceID = :deviceId;
    </entry>

  
    <entry key='database.selectDevice'>
        SELECT deviceID AS id, uniqueID FROM Device WHERE uniqueID = :uniqueId;
    </entry>


    <entry key='database.updateDeviceStatus'>
        UPDATE Device SET lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE deviceID = :deviceId;
    </entry>
Anton Tananaev 3 hours ago

I think you also completely forgot to mention that you're using some extremely old version of Traccar. Based on the conversation so far, it doesn't look like you value my time.