Giter Site home page Giter Site logo

Comments (6)

f4exb avatar f4exb commented on August 15, 2024

Yes indeed LMS_GetChipTemperature seems to do the job. I remember now why I haven't included the temperature reading in the plugins GUI right away... This is a problem with multiple instances pertaining to the same physical device since we do not want the temperature test to be called all over the place but only once every n seconds.

It is more complex than it seems to centralize the temperature checking among the plugin instances that pertain to the same physical device. It should probably be done using the device "buddies" and one of the "buddies" has to take the leadership to be the one that polls the temperature. Feasible but not trivial.

from sdrangel.

The-Fred avatar The-Fred commented on August 15, 2024

This sounds like the correct way to do it. I will look at the buddies and see if I can figure it out and try to contribute somehow.

I noticed in the LimeSuiteGui that there are two different places that display the temperature. And they report slightly different numbers.

There is only one sensor listed in the BOM but maybe the FPGA has a temp sensor also or some other part on the board. Also possible that they grab the temp and calculate it differently for each of the displays in LimeSuiteGui. This would not surprise

Here I go coming up with more features...would be a nice to have thing to make the display flash or something annoying when the temps approach critical. These chips and this board is not meant to handle very high temps at all. Different parts have different critical temps but I think I read 70C and I've seen my board report near 60C without doing a lot.

from sdrangel.

f4exb avatar f4exb commented on August 15, 2024

One way to make things not too difficult is to elect a leader among the buddies and this instance will perform the temperature reading then post a message to all its buddies. This leader feature can be made generic.

The election takes place in the mainwindow.cpp where the source and sink instances are created or deleted.

  • When adding a sink or source, if it is the only instance then it is made the leader
  • When adding a sink or source, if there are any buddies then the new instance cannot be a leader
  • When removing a sink or source, if it is not the leader or it is alone then nothing more happens
  • When removing a sink or source, if it is the leader and it had buddies then the first buddy found is elected the leader

from sdrangel.

f4exb avatar f4exb commented on August 15, 2024

Now in dev branch. It's a simple text display on the last line (status) next to the FIFO gauge. I don't think we need something overly big and complex. Mine is stable ~50C. I have heatsinks and aluminium enclosure but no fan.

from sdrangel.

f4exb avatar f4exb commented on August 15, 2024

Implemented in v3.5.1

from sdrangel.

The-Fred avatar The-Fred commented on August 15, 2024

Nice, thanks a lot! Haven't had a chance to try it out yet.

from sdrangel.

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.