tk102 Opengts dcserver problem

Help
2013-01-08
2013-06-12
  • Alexander B
    Alexander B
    2013-01-08

    Sup Guys, lets see..

    I can get the data from my tk102 to my server, but for the second period of "sending data" from my tk102 to my server, i get some troubles…normally after 3 or 4 tries more sending data, the server can incluse the data on the sql…and it's the same all the time…here is the LOG is someone can help me with this please :)!

    INFO_|01/08 03:41:00|Main.main:155] -------------------------------------------
    Generic TK102/TK103
    Version: 0.1.5
    Copyright 2007-2012, GeoTelematic Solutions, Inc.


    Minimum speed      : 3.0 km/h
    Estimating Odometer: true
    Simulating Geozone : true
    Packet Length      : End-Of-Stream


    Starting TCP listener thread on port 31272  …
    Starting UDP listener thread on port 31272  …
    Remote client port: /201.220.235.13:35350
    Begin TCP communication: 201.220.235.13
    Receive: ##,imei:359710040705940,A;
    TK103 Header: ##,imei:359710040705940,A;
    TCP Response 0x4C4F4144
    Receive: imei:359710040705940,tracker,1301080242,,F,064219.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080242,,F,064219.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627339
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0
    Event:  Location
    Address URL: http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&addressdetails=1&zoom=18&email=&lat=-33.32838&lon=-70.51493
    EventData address:  -33.32838/-70.51493: Lo Barnechea, Región Metropolitana de Santiago, Chile
    Receive: imei:359710040705940,tracker,1301080242,,F,064248.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080242,,F,064248.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627368
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0
    Receive: imei:359710040705940,tracker,1301080243,,F,064318.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080243,,F,064318.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627398
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0
    Receive: 359710040705940;
    Parsing(TK102): 359710040705940;
    Invalid number of fields
    Session timeout
    End of session …
    End TCP communication: 201.220.235.13
    Remote client port: /201.220.235.13:35351
    Begin TCP communication: 201.220.235.13
    Receive: ##,imei:359710040705940,A;
    TK103 Header: ##,imei:359710040705940,A;
    TCP Response 0x4C4F4144
    Receive: imei:359710040705940,tracker,1301080245,,F,064549.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080245,,F,064549.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627549
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0
    Event:  Location
    Address URL: http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&addressdetails=1&zoom=18&email=&lat=-33.32838&lon=-70.51493
    EventData address:  -33.32838/-70.51493: Lo Barnechea, Región Metropolitana de Santiago, Chile
    Receive: imei:359710040705940,tracker,1301080246,,F,064619.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080246,,F,064619.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627579
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0
    Receive: imei:359710040705940,tracker,1301080246,,F,064649.000,A,3319.7028,S,07030.8959,W,0.00,0;
    Parsing(TK103): imei:359710040705940,tracker,1301080246,,F,064649.000,A,3319.7028,S,07030.8959,W,0.00,0;
    IMEI     : 359710040705940
    Timestamp: 1357627609
    GPS      : -33.32838/-70.51493
    UniqueID  : 359710040705940
    DeviceID  : magallanes/359710040705940
    Speed    : 0.0 km/h 0.0
    OdometerKM: 0.0

    This always happens at the end of "OdometerKM: 0.0" after this the server sometimes fill the data on mysql o give me an error, anyone can help me?. I'm running the last version of OpenGts and all my ports are free of firewalls…Selinux Down, Iptables Down etc etc.

    Thanks!

     
  • madhusudhana
    madhusudhana
    2013-02-18

    Hi s0b69

    Add the fallowing lines in the TrackClientPacketHandler.java in tk10x server.
            /* estimate GPS-based odometer */
            if (odomKM <= 0.0) {
                // calculate odometer
                odomKM = (ESTIMATE_ODOMETER && validGPS)?
                    device.getNextOdometerKM(geoPoint) :
                    device.getLastOdometerKM();
            } else {
                // bounds-check odometer
                odomKM = device.adjustOdometerKM(odomKM);
            }
            Print.logInfo("OdometerKM: " + odomKM);

    Regards,
    Madhu

     
  • Alexander B
    Alexander B
    2013-02-21

    Hello madhu781

    Thank you for your reply… I saw the file TrackClientPacketHandler.java in the tk10x server but it has already that commands :(

    The version is 2.4.7