NAS326 Temperature
August 21, 2024 06:18AM
Hello,

Been a while since my last post. I've got a Zyxel NAS326 still running the Zyxel embedded OS (busybox). I'm not looking to convert it to Debian at this time but I have been working on setting up environmental and performance monitoring. Right now I'm hung up on temperature. The Zyxel web interface is reporting a CPU temperature of 39-41 degrees Celsius. The only sensor I can find is at /sys/class/thermal/thermal_zone0/temp and it's consistently reporting a value of 79000 to 82000, which to my understanding should be interpreted as 79.000 to 82.000 degrees Celsius.

Can anyone with experience help me understand this value? I'm trying to figure out if 1) the web interface is wrong, 2) I should be dividing the value returned by /sys/class/thermal/thermal_zone0/temp by 2000 instead of 1000, or 3) the only sensor I seem to have access to just isn't the CPU temperature -- though I can't understand why any other temperature in the device would be double what the web interface reports for the CPU.

The device has 2 SSDs installed. Pretty light load, ~10-20% generally.

Thanks for any help.
Re: NAS326 Temperature
August 21, 2024 11:38PM
mantequilla,

> now I'm hung up on temperature.
> The Zyxel web
> interface is reporting a CPU temperature of 39-41
> degrees Celsius.

The above is the correct reading.

> The only sensor I can find is at
> /sys/class/thermal/thermal_zone0/temp and it's
> consistently reporting a value of 79000 to 82000,
> which to my understanding should be interpreted as
> 79.000 to 82.000 degrees Celsius.

The /sys/class/thermal is Kirkwood thermal, provided by the 6282 SoC. But it is not used on Zyxel NAS326. The Zyxel NSA 325, NSA 310s/320s, and NAS326 use i2c reading.

See the Wiki thread for how CPU temperature and fan info are acessed.

Quote

Sensors & LEDs & Fan & WOL

OWFSPlug : 1-Wire File System + Motion Detection Software in a NAND Package
OWFS & Motion Detection (external link)
How to control LEDs in Linux userspace (general)
How to control LEDs in Linux userspace (HDD LEDs triggers)
How to control GPIO in Linux userspace for GPIO-enable fan (if it is undefined in DTS)
Zyxel NSA 310S/320S/325/326 CPU Temperature and Fan Speed reading
Zyxel NAS326 WOL
Zyxel NAS325 Auto-Power Up
Zyxel NAS326 WOL and Auto-Power Up I2C commands
Zyxel NSA320 Auto-Power Up
Setup lm-sensors (example for Lenovo IX2 DL fan control in Debian)

To avoid confusion, you should blacklist the kirkwood_thermal module.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 Temperature
August 22, 2024 10:10AM
@bodhi Thanks for the feedback. My issue is that i2c-tools isn't available in the device and I can't install it, or at least I don't currently have the requisite skills to be able to add it to the existing image. Do you know of any other way to get at the value I need? Fan speed would be nice to have as well, but really I'm just interested in temperature currently.
Re: NAS326 Temperature
August 22, 2024 10:46AM
mantequilla,

> My issue is that
> i2c-tools isn't available in the device and I
> can't install it, or at least I don't currently
> have the requisite skills to be able to add it to
> the existing image. Do you know of any other way
> to get at the value I need?

I'm pretty sure you can find it in stock rootfs. Look for ic2get in /sbin/ or /usr/sbin/. Log in to stock OS using SSH or serial console, and,

ls -l /sbin
ls -l /usr/sbin

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 Temperature
August 22, 2024 12:51PM
Ah, sure enough. I had checked /usr/sbin but not /sbin.

Thanks for your help. You've answered my question and solved it for me.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: