OpenDTMP client & Odometer

Help
tea4two
2009-02-07
2013-06-12
  • tea4two
    tea4two
    2009-02-07

    I'm using OpenDMTP client with gtsdmtp server, It works fine, but I can't see any Odometer values.

    On the client side the props.dat file has Odometer values, but on the server side I can't see anything.
    In the client GPS receiver send only GPRMC values.

    Using DMTP, odometer is "client side" or "server side" (estimate-odometer) ?

    I need to enable it before compile or at run time ?
    If yes on client or server side ?

    Regards,
    - Pierluigi

     
    • Martin Flynn
      Martin Flynn
      2009-02-07

      Hi Pierluigi,
      This sounds like an issue on the client.  The OpenDMTP field types include both constants "FIELD_DISTANCE" (a 'trip' distance register) and "FIELD_ODOMETER".  The default standard data packet types (hex 30 and 31) include 'FIELD_DISTANCE' in the data packet.  You'll need to either make sure that the FIELD_DISTANCE field gets populated with the odometer value, or create a new custom packet type that specifies FIELD-ODOMETER, instead of FIELD_DISTANCE.
      Best Regards,
      - Martin

       
  • Renato Beltran
    Renato Beltran
    2010-09-14

    I develop a template device client to communicate with template server  and it´s working fine! and also i see Estimate  Odometer values.
    I also made opendmtp client device (200 units) these are installed on trucks and cars, but Odometer doesnt show any value, it remains in 0.0.
    I was looking in my protocol and in the stream sended to Server it doesnt send DISTANCE VALUE, for i didn´t know how to estimate it. I was thinking i would be able to set it up server side but i dont know how to start

    any idea???

     
  • Christos Pras
    Christos Pras
    2010-09-14

    Hi renatobeltran,

    What kind of hardware do you use for the opendmtp client? (pda, mobile phones, …..)

     
  • Renato Beltran
    Renato Beltran
    2010-09-14

    well, i implement a part of this protocol in a electronic device, Microchip microcontroller with Simcom GSM/GPRS/GPS module, its working fine, buti found  OpenDMTP protocol takes a lot of RAM memory in my microcontroller.

    I´ve notice that it´s better for me to change protocol for a lighter one.

    Regards!

     
  • Renato Beltran
    Renato Beltran
    2010-09-14

    Hi to all,

    I just did this in the gtsdmtp server side (DeviceDBimpl.java)

    comment this line
    //evdb.setFieldValue(EventData.FLD_odometerKM     , ((odometerKM != 0.0)? odometerKM : distanceKM));
           
    added this:
            GeoPoint puntoGPS = evdb.getGeoPoint();
            Device dispositivo = getDevice();
           
            double odomKM = 0.0;
            if (odomKM <= 0.0) {
            odomKM = (puntoGPS.isValid())?
            dispositivo.getNextOdometerKM(puntoGPS):
            dispositivo.getLastOdometerKM();
            }else{
            odomKM = dispositivo.adjustOdometerKM(odomKM);
            }
    here i rewrite new value:
            evdb.setFieldValue(EventData.FLD_odometerKM     , odomKM);

    It appear to Work, in DMTP server SIDE!!!!!

     

  • Anonymous
    2013-03-08

    Hi tea4two. I have the same problem. You could solve it?

     

  • Anonymous
    2013-03-08

    i want enable estimateOdometer on the DMTP server side. how i can do?

     
  • tea4two
    tea4two
    2013-03-09

    It was a long time ago….. I don't remember, but it seems to me that in the latest OpenGTS releases on the server side is already present the code to read the field FLD_OdometerKM.

    So you must check if there is an option in the Client side to enable this feature.

    If your problem is not solved, post again with more details.

    Please, change your nickname in something that is human readable.

    Regards,
    - Pierluigi

     

  • Anonymous
    2013-03-09

    Hi.

    the gtsdmpt server in dcservers.xml: <Property key="estimateOdometer">true</Property> no exists. So how i can enable this property?

    im with 2.4.7 version.

     
  • Martin Flynn
    Martin Flynn
    2013-03-11

    Hello Jeremy,
    "estimatedOdometer" support for the "gtsdmtp" DCS will be in the next release.
    Best Regards,
    - Martin

     

  • Anonymous
    2013-03-11

    Thats its a great notice. Thanks Martin!