Giter Club home page Giter Club logo

Comments (5)

sm7tix avatar sm7tix commented on August 12, 2024

I think I have got it working. By enable --timestamp in inputBase.py
mmProc.addArgument("--timestamp")
and in pocsagDecoder.py extract the timestamp and add the timestamp to the packet. The the packet has the timestamp when it was received. Before it was None and the server added timestamp when it was received.

from bw3-core.

Schrolli91 avatar Schrolli91 commented on August 12, 2024

I am not sure what this flag should change here.

The decoder creates a bwPacket and here the timestamp is generated.

self._packet = {"timestamp": time.time()}

And after sending, the string representation of this packet is feeded to the constructer of the bwPacket and should be read from the packet.

self._packet = eval(str(bwPacket.strip()))

The real problem is, that the clients atm don't read the mm-stream if there is no connection.
So this means, decoding is paused if connection got lost.

from bw3-core.

sm7tix avatar sm7tix commented on August 12, 2024

In my case the client didnt send timestamp before and the server created it because it was None. If the server was down and when the que arrived all alarm got time from server, not from client. With my new code i get a timestamp from client when it was received and
pocsag-files.zip

not when server created timestamp.
Hard to explain but for me it works now. My code is very bad but it works,

from bw3-core.

Schrolli91 avatar Schrolli91 commented on August 12, 2024

it is not NONE or shouldn't be :-D
but the client will receive the packets from a MM-buffer at the moment, the client is reconnected and set the timestamp at this moment. That's a architecture problem in my opinion.

from bw3-core.

sm7tix avatar sm7tix commented on August 12, 2024

from bw3-core.

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.