Configure multiple protocols

henry beltran4 years ago

To fix the failure of constant disconnection of some Chinese gps with h02 protocol, I have added this line in the traccar.xml file:

<entry key='h02.timeout'>1200</entry>
<entry key='status.ignoreOffline'>h02</entry>

now I have another type of gps that has the same very frequent disconnection problem, it is type gps103. What would be the correct way to configure both protocols?

on different lines?:

<entry key='h02.timeout'>1200</entry>
<entry key='gps103.timeout'>1200</entry>

<entry key='status.ignoreOffline'>h02</entry>
<entry key='status.ignoreOffline'>gps103</entry>
Anton Tananaev4 years ago

No, correct is something like this:

<entry key='status.ignoreOffline'>h2,gps103</entry>
Jose B4 years ago

@Henry, what you mean when you said "To fix the failure of constant disconnection of some Chinese ?" (Means: avoid disconection?)

I did not this parameter on https://www.traccar.org/configuration-file/

JB

henry beltran4 years ago

Some Chinese gps constantly disconnect themselves (another type of gps does not disconnect on the same server), to avoid constant notification by the server, the waiting time is increased, and the server ignores the offline status. The disconnection by the gps, is done randomly almost at times instantly a connection and disconnection occurs. To avoid this malfunction I have added this option