GithubHelp home page GithubHelp logo

Add option for queuing all commands (rather than sending immediately when a device is online) and sending within X seconds of an incoming connection about traccar HOT 4 OPEN

heypete avatar heypete commented on September 25, 2024
Add option for queuing all commands (rather than sending immediately when a device is online) and sending within X seconds of an incoming connection

from traccar.

Comments (4)

tananaev avatar tananaev commented on September 25, 2024

Why not set connection timeout on the server?

from traccar.

heypete avatar heypete commented on September 25, 2024

Why not set connection timeout on the server?

Do you mean the connection timeout described here, either globally or for the specific protocol this devices?

If so, that certainly could be a functional alternative, but the issue may not be universally applicable (other carriers or other devices, even those using the same protocol, might not be affected the same way). Having a per-device option to set a post-check-in window during which commands can be sent immediately vs. being queued would be more flexible and be usable by users who don't run their own server.

Regardless, I'll try changing the connection timeout on the server and see if that improves things. Thank you for the suggestion.

from traccar.

alenvukelic avatar alenvukelic commented on September 25, 2024

Small info from my side, regarding other devices also, for example Teltonika. Since TCP/IP connection is used, and mobile operators put not used connection in some weird sleep state (time differs from one mobile operator to the next and is not guaranteed), there is no way except using ping to determine if connection is open or not.
However, Teltonika devices return ACK packet, or reply message if command is sent successfully.
In short, just sending message to device if connection is open is bad practice. Message should be in queue and removed only when device confirms receiving it.
This would really be a must have feature..

from traccar.

tananaev avatar tananaev commented on September 25, 2024

@alenvukelic let us know once you complete your investigation about this weird state. Once we have all the details on what's happening and why it's happening, we can take it into the consideration.

from traccar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.