voltage and temperature values

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> ARM or PPC based Hardware
Author Message
rinumj
DD-WRT Novice


Joined: 04 Sep 2008
Posts: 2

PostPosted: Thu Sep 04, 2008 6:46    Post subject: voltage and temperature values Reply with quote
Greeting all,

I have been using avila-gateworks board with Open WRT drivers,could any one please tell me whats the sysytem commands for reading temperature and voltage from the hardware similar to SHOWVOLT and SHOWTEMP.....


Warm Regards
Rinu M Antony
Sponsor
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 6779
Location: Dresden, Germany

PostPosted: Thu Sep 04, 2008 14:02    Post subject: Reply with quote
its not a command question. you need the drivers for accessing the sensors. the drivers itself shows the values in the sysfs
_________________
one cigarette costs 2 minutes of your life.
one bottle of beer costs 4 minutes of your life.
one working day costs 8 hours of your life.

Yummee:
Linux DD-WRT 4.9.13 #17 SMP PREEMPT Wed Mar 8 00:16:54 CET 2017 armv7l DD-WRT
root@DD-WRT:/sys# nvram get DD_BOARD
Netgear Nighthawk X10
pyro
DD-WRT Novice


Joined: 11 Jan 2007
Posts: 35

PostPosted: Fri Nov 14, 2008 16:45    Post subject: Reply with quote
Put this in your startup command and you can query voltage and temperature via SNMP:

echo "sh temperature cat /sys/class/i2c-adapter/i2c-0/0-0028/temp_input" >> /var/snmp/snmpd.conf ; echo "sh voltage cat /sys/class/i2c-adapter/i2c-0/0-0028/volt" >> /var/snmp/snmpd.conf ; killall -HUP snmpd
SpitFire
DD-WRT User


Joined: 19 Mar 2008
Posts: 119
Location: Μεσοποταμία

PostPosted: Sun Dec 28, 2008 20:00    Post subject: Reply with quote
pyro wrote:
Put this in your startup command and you can query voltage and temperature via SNMP:

echo "sh temperature cat /sys/class/i2c-adapter/i2c-0/0-0028/temp_input" >> /var/snmp/snmpd.conf ; echo "sh voltage cat /sys/class/i2c-adapter/i2c-0/0-0028/volt" >> /var/snmp/snmpd.conf ; killall -HUP snmpd



can any one supply me with the RB532 commands to read temperature and voltage ? is there any sensors in this board to read these readings ?
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17627
Location: Hesse/Germany

PostPosted: Sun Dec 28, 2008 21:50    Post subject: Reply with quote
i dont htink there are any sensors
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
milty456
DD-WRT Novice


Joined: 26 Aug 2011
Posts: 42

PostPosted: Mon Jun 12, 2017 19:22    Post subject: Question Reply with quote
I have a few questions:

What does this do?
Write the temp out to snmpd.conf?
At what inteval? Only on startup?
What does killall -HUP snmpd do at the end?

Thanks

Rich

pyro wrote:
Put this in your startup command and you can query voltage and temperature via SNMP:

echo "sh temperature cat /sys/class/i2c-adapter/i2c-0/0-0028/temp_input" >> /var/snmp/snmpd.conf ; echo "sh voltage cat /sys/class/i2c-adapter/i2c-0/0-0028/volt" >> /var/snmp/snmpd.conf ; killall -HUP snmpd
SE7EN`
DD-WRT Novice


Joined: 03 Aug 2012
Posts: 2

PostPosted: Thu Sep 21, 2017 19:26    Post subject: Temp Sensor Reply with quote
Not to bring up an old topic but I am working on a C# front end controller for DD-WRT and I have been looking at different ways to poll the sensors for temperatures. For my device (which is Broadcom based) I am able to use the following to get cpu temperature via SSH/Telnet.

Code:
cat /proc/dmu/temperature


however, my research is still ongoing.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> ARM or PPC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum