Giter Site home page Giter Site logo

Use ring buffer to broadcast messages from WiThrottle such as power status, speed, direction, turnout state about commandstation-ex HOT 7 OPEN

dcc-ex avatar dcc-ex commented on May 30, 2024
Use ring buffer to broadcast messages from WiThrottle such as power status, speed, direction, turnout state

from commandstation-ex.

Comments (7)

Asbelos avatar Asbelos commented on May 30, 2024

This would depend on not having ethernet and wifi at the same time.. and also on the network stack redesign by @grbba

from commandstation-ex.

grbba avatar grbba commented on May 30, 2024

What does that actually mean ? WiThrottle send something else than the actual WiThrottle protocol to the CommandStation ?
What does that to the User Experience and why would/do I need it ?

from commandstation-ex.

Asbelos avatar Asbelos commented on May 30, 2024

from commandstation-ex.

grbba avatar grbba commented on May 30, 2024

So what you are basically saying is that the CS is issuing messages to all connected WiThrottle clients without having received a command before based e.g. on a timer or some other trigger operating in the CommandStation is that right ?

from commandstation-ex.

Asbelos avatar Asbelos commented on May 30, 2024

from commandstation-ex.

grbba avatar grbba commented on May 30, 2024

Sounds reasonable but the only observation i would have is to look into the trade off between the cost off polling and the cost of having the observers looking for changes in the data you want to send. Obviously this can be done this way and indeed would be nice. Second observation would be if the current WiThrottle based clients can handle this type of async data flow ( ED and WiThrottle maybe but all the others around maybe not and i can't remember if in the Doc about WiThrottle on the JMRI website that sort of capability is actually required by the protocol )

from commandstation-ex.

marada1 avatar marada1 commented on May 30, 2024

We have been playing around with the NRF network and CS. The polling does not seem to be an issue so far. The issue so far is communicating to the NRF board. Using a mega and the NRF boards they share a serial port. The solution is to remove the NRF board from the CS which is a good idea and have the CS communicate to the NRF network using serial2 in the case of the Mega or software serial using an Uno. But when the 2 were combined and the serial part disabled, it worked.

from commandstation-ex.

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.