Error on OSMAND protocol

Ray3 years ago

Hello,

I use this string to send to my server:

GET /?id=9991234×tamp=2022-03-0921:41:18.000&lat=-26.619913&lon=152.859238&speed=0.72&altitude=433.10&heading=108.42&hdop=81&sat=11&batt=11.43&ignition=OFF HTTP/1.1

After i run this i see its connected to the server. But then the log shows the following:

2022-03-09 16:24:50  INFO: [e91083da: osmand > 192.168.15.41] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 16:24:50  WARN: [e91083da] error - java.lang.String cannot be cast to java.lang.Boolean - ClassCastException (ExtendedModel:105 < IgnitionEventHandler:47 < BaseEventHandler:29 < ...)

Can anyone tell me what this means?

If i remove the GET it does not connect to my server.

BTW first time i use manual send string to server. Could be i make hughe mistake but i can not find it

Regards,

Ronaldo3 years ago

you don't have to send "GET", you have to send the ip and port of the server...

the timestamp needs to be in Unix format

Anton Tananaev3 years ago

Your ignition value is wrong. Try without it.

Ray3 years ago

Thank you for your anwsers,

I have tried following strings:

Without the ignition:

 ?id=9991234×tamp=2022-03-09T16:00:18Z&lat=-26.619913&lon=152.859238&speed=0.72&altitude=433.10&heading=108.42&hdop=81&sat=11&batt=11.43

Without the ?:
Without the ignition:

id=9991234×tamp=2022-03-09T16:00:18Z&lat=-26.619913&lon=152.859238&speed=0.72&altitude=433.10&heading=108.42&hdop=81&sat=11&batt=11.43

When i use the H02 protocol it works but in this protocol the Lat and Lon are really wierd. I get the position from a machine that can only use lat and lon like in the osmand protocol.

I also get back a time stamp from server and i see everything on the webinterface.

Still do not get why osmand is not working!

Anton Tananaev3 years ago

Are you going to provide logs? Does your device close connection right after sending data? Do you have geocoding enabled?

Ray3 years ago

Hello Anton,

The device is not disconnecting as you can see in log. It keeps sending till i disconnect.

Here is server config:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key='config.default'>./conf/default.xml</entry>
    
  
    <entry key='filter.enable'>true</entry>
    <entry key='filter.duplicate'>true</entry>
    <entry key='filter.zero'>true</entry>		
    <entry key='filter.distance'>40</entry>
    <entry key='filter.skipAttributes.enable'>true</entry>
    <entry key='filter.skipAttributes'>alarm</entry>
    <entry key='filter.accuracy'>20</entry>
    
  

    <entry key='mail.smtp.host'>***</entry>
    <entry key='mail.smtp.port'>**</entry>
    <entry key='mail.smtp.ssl.enable'>true</entry>
    <entry key='mail.smtp.from'>**</entry>
    <entry key='mail.smtp.auth'>true</entry>
    <entry key='mail.smtp.username'>***</entry>
    <entry key='mail.smtp.password'>****</entry>
    
    <entry key='notificator.types'>web,sms</entry>
    <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
    <entry key='sms.http.url'>h***</entry>
    <entry key='sms.http.user'>***</entry>
    <entry key='sms.http.password'>***</entry>
    <entry key='sms.http.template'>
    {
        "to": "{phone}",
        "body": "{message}"
    }
    
    </entry>

And this is log:

2022-03-09 18:48:41  INFO: [a6488788] connected
2022-03-09 18:48:45  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:48:45  INFO: [a6488788: osmand > 192.168.15.41] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 18:48:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:49:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:50:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:51:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:52:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d2d32362e363139393133266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:53:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:00  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:10  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032333332303435303838372c20332e393939323930363333313830353538266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:20  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e363530322c20332e393939323930363333313830353538266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:30  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20332e393939323930363333313830353538266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:40  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c2030363333313830353538266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:50  INFO: [a6488788: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20266c6f6e3d3135322e3835393233382673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:54:57  INFO: [a6488788] disconnected
2022-03-09 18:54:58  INFO: [344b6b64] connected
2022-03-09 18:55:00  INFO: [344b6b64: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:00  INFO: [344b6b64: osmand > 192.168.15.41] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 18:55:04  INFO: [344b6b64: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:10  INFO: [344b6b64: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:20  INFO: [344b6b64: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431363a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:30  INFO: [344b6b64: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:31  INFO: [344b6b64] disconnected
2022-03-09 18:55:31  INFO: [c4f71c36] connected
2022-03-09 18:55:32  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:32  INFO: [c4f71c36: osmand > 192.168.15.41] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 18:55:40  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:55:50  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:56:00  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:56:10  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:56:20  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a
2022-03-09 18:56:30  INFO: [c4f71c36: osmand < 192.168.15.41] HEX: 3f69643d393939313233342674696d657374616d703d323032322d30332d30395431393a30303a31385a266c61743d35312e36353032332c20266c6f6e3d332e39393932392673706565643d302e373226616c7469747564653d3433332e31302668656164696e673d3130382e34322668646f703d3831267361743d313126626174743d31312e34330d0a

Hope you see more then me

Anton Tananaev3 years ago

You need to send proper HTTP requests. OsmAnd is HTTP-based protocol.

I see that Ronaldo provided false information above. Please ignore that comment.

Ray3 years ago

And do you have an example for this? or documentation? i based most on your topic https://www.traccar.org/osmand/
Or do you mean GET or POST?

Anton Tananaev3 years ago

Server supports both GET and POST, so you can use either.

Ray3 years ago

If i use the GET method it gives me the error shown as above:

2022-03-09 16:24:50  INFO: [e91083da: osmand > 192.168.15.41] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 16:24:50  WARN: [e91083da] error - java.lang.String cannot be cast to java.lang.Boolean - ClassCastException (ExtendedModel:105 < IgnitionEventHandler:47 < BaseEventHandler:29 < ...)

The POST method doesnt do anything.

But i will start reading.

When i dont get it fixed i will return.

Thank you for your precious time Anton

Regards,

Anton Tananaev3 years ago

Where's the request?

Ray3 years ago

Euhmm.. request?

i just Send this:

GET /?id=9991234×tamp=2022-03-0921:41:18.000&lat=-26.619913&lon=152.859238&speed=0.72&altitude=433.10&heading=108.42&hdop=81&sat=11&batt=11.43&ignition=OFF HTTP/1.1

Where should it be?

Anton Tananaev3 years ago

And I asked you to try without "ignition". I still see ignition there.

Ray3 years ago

I did try with out ignition as mentioned above. But without the GET.
So i need to remove iginiton and add the GET?

We are not all wizards like you :)

Anton Tananaev3 years ago

Why did you remove GET?