Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature offset at pluto_temp.sh #11

Open
Mane76 opened this issue Dec 14, 2024 · 4 comments
Open

Temperature offset at pluto_temp.sh #11

Mane76 opened this issue Dec 14, 2024 · 4 comments

Comments

@Mane76
Copy link

Mane76 commented Dec 14, 2024

When using pluto_temp.sh on a version "C" there is a temperature difference shown between FPGA and Tuner of approx 20°C.
Even if the pluto is started from "cold" and massive heat-sinks are connected to FPGA and Tuner this temperature difference is shown - which seems not to be correct.

Any information to the background of this difference is highly welcome.

BR
Manfred

@mhennerich
Copy link
Contributor

Hi Manfred,

First of all the temperature readings are die temperatures.
Even if you have a high thermal conductivity cooling solutions, the temperatures will never be the same.

Besides this the temp sensor on the AD936x TRX requires a one-point calibration, please see here:
https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361#die_temperature_reading

-Michael

@Mane76
Copy link
Author

Mane76 commented Dec 19, 2024

Hello Michael,
thank you for your fast reply - will work with that.

BR
Manfred

@Mane76
Copy link
Author

Mane76 commented Dec 19, 2024

Hello Michael, sorry to bother you again short before christmas:

I read the link about one point calibration and understood this is valid for the AD936x temp readings.
When I look in your code the lines related to the AD936x are

pluto_temp=$(iio_attr ${uri} -c ad9361-phy temp0 input)
pluto=$(awk "BEGIN {printf("%.1f", ${pluto_temp} / 1000)}")

pluto is displayed as °C. Is the procedure described in the link done in the background ? So is the temp displayed already the "calibrated" temp reading ?

In contradiction, the lines in the code related to the FPGA / xadc show a work work with an offset

xadc_raw=$(iio_attr ${uri} -c xadc temp0 raw)
xadc_offset=$(iio_attr ${uri} -c xadc temp0 offset)
xadc_scale=$(iio_attr ${uri} -c xadc temp0 scale)
xadc=$(awk "BEGIN {printf("%.1f", (${xadc_raw} + ${xadc_offset}) * ${xadc_scale}/1000)}")

xadc is dispayed as °C.

So to sum up and in short words, do the both temps shown by the script represent the "correct" die temperatures will all "calibration" in it ?

BR
Manfred

@DG9BFC
Copy link

DG9BFC commented Dec 23, 2024

can i log into a pluto with putty and modify that offset?
if yes ... how?
BR sigi dg9bfc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants