Temperature Sensor in my BBB

2,647 views
Skip to first unread message

junky...@hotmail.com

unread,
Nov 29, 2013, 1:49:22 AM11/29/13
to beagl...@googlegroups.com
I was using my BBB recently and noticed that it gets pretty hot when it runs for more than a few minutes (I've never really touched it while it's on before). It doesn't seem to be a problem, but I was wondering if the BBB had a built-in temperature sensor. I know some laptops have internal thermometers, so does the BBB have one? It's meant as a minimal device, so I would imagine it doesn't, but it would be nice to know if it does!

Gerald Coley

unread,
Nov 29, 2013, 9:27:17 AM11/29/13
to beagl...@googlegroups.com
That is normal operation. When you hold your finger on it your skin heats up making it hot The longer you hold it, the hotter it feels.

The processor has on on-chip temperature sensor. You can read about it in the TRM found at http://www.ti.com/product/am3359

Gerald


On Fri, Nov 29, 2013 at 12:49 AM, <junky...@hotmail.com> wrote:
I was using my BBB recently and noticed that it gets pretty hot when it runs for more than a few minutes (I've never really touched it while it's on before). It doesn't seem to be a problem, but I was wondering if the BBB had a built-in temperature sensor. I know some laptops have internal thermometers, so does the BBB have one? It's meant as a minimal device, so I would imagine it doesn't, but it would be nice to know if it does!

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

junky...@hotmail.com

unread,
Nov 29, 2013, 4:01:47 PM11/29/13
to beagl...@googlegroups.com
It doesn't seem to be my finger heating it up; it hurts after half a second or so, and I don't think that the human body temperature is enough to hurt the human body, generally speaking ;). Anyway, do you know how I can access it? I have a few packages that should be able to read built-in temperature sensors, but none of them are able to locate it automatically and I have no idea what to give it for 'Sensor location'. I don't see anything mounted in /dev/ that could be helpful and I don't know enough about Linux to know where else it could be. What is the 'location' that I need to access it?

Gerald Coley

unread,
Nov 29, 2013, 4:12:04 PM11/29/13
to beagl...@googlegroups.com
I do not know how to access it. You can read the TRM and see if there is a mechanism for accessing it and if so, what the address is.

Gerald

Junkytomato

unread,
Nov 29, 2013, 4:23:50 PM11/29/13
to beagl...@googlegroups.com

Maybe I should have asked this originally… What does ‘TRM’ mean?

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/e4XDrG-9s68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Gerald Coley

unread,
Nov 29, 2013, 4:27:01 PM11/29/13
to beagl...@googlegroups.com
Technical Reference Manual. It can be found at the link I sent you.

"You can read about it in the TRM found at http://www.ti.com/product/am3359"

It describes how the processor works and all the functions of the processor. It has all the addresses for all the internal components. Just do a search for Temperature sensor.

Gerald

Mark A. Yoder

unread,
Nov 30, 2013, 12:00:56 PM11/30/13
to beagl...@googlegroups.com
Indeed there is a temp sensor.  I looked in up in the TRM and then wrote this script to read it.

#!/bin/bash
# Reads internal temperature of AM335x
# 0x44e1_0000 is the starting address of the Control Module (Table 2.2 p 171 of TRM)
# 0x0448 is the address of the bandgap_crtl register which has 
#           8 bits (8-15) of temperature (Table 9-19 p 1137)
devmem2 0x44e10448 w
devmem2 0x44e10449 b
cat /sys/devices/ocp.2/44e10448.bandgap/temp1_input

/dev/mem opened.
Memory mapped at address 0xb6ff5000.
Read at address  0x44E10448 (0xb6ff5448): 0x0000301E
/dev/mem opened.
Memory mapped at address 0xb6f71000.
Read at address  0x44E10449 (0xb6f71449): 0x30
48000

I used devmem2 to read the register directly.  The last command uses the Linux interface to read it.  I'm guessing the units are C, but the manual doesn't say.

--Mark

Maxim Podbereznyy

unread,
Nov 30, 2013, 2:18:19 PM11/30/13
to beagleboard
48 degrees is not enough to hurt your finger


2013/11/30 Mark A. Yoder <mark.a...@gmail.com>

William Pretty Security

unread,
Nov 30, 2013, 2:26:01 PM11/30/13
to beagl...@googlegroups.com

No. But if room temp is about 20C then that’s 28C above room temp .

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3629/6880 - Release Date: 11/30/13


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3629/6869 - Release Date: 11/26/13

Junkytomato

unread,
Nov 30, 2013, 7:30:00 PM11/30/13
to beagl...@googlegroups.com

I just tried to run your script on my BBB (running Debian) and it came up with a few errors:

·         Devmem2 is not installed. I would assume that this is some sort of a utility to read from memory? How can I install it?

·         The directory ‘44e10448.bandgap’ doesn’t exist. Is there something that I have to mount manually?

Junkytomato

unread,
Nov 30, 2013, 9:43:58 PM11/30/13
to beagl...@googlegroups.com

I just compiled devmem2 from source and your script is reading from memory correctly now. But the second read is returning 0x00 and it still can’t find that directory.

Mark A. Yoder

unread,
Dec 2, 2013, 9:43:42 AM12/2/13
to beagl...@googlegroups.com, junky...@hotmail.com
Hmmm....  I'm running Angstrum with the 3.8 kernel.  What are you running?

--Mark

Junkytomato

unread,
Dec 2, 2013, 10:24:50 AM12/2/13
to beagl...@googlegroups.com

I tested it on Debian, but I also have an SD card for Ubuntu and Angstrom on-board. Should I test it in one of those?

 

From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of Mark A. Yoder
Sent: Monday, December 2, 2013 6:44 AM
To: beagl...@googlegroups.com
Cc: junky...@hotmail.com
Subject: Re: [beagleboard] Temperature Sensor in my BBB

 

Hmmm....  I'm running Angstrum with the 3.8 kernel.  What are you running?

--

Mark A. Yoder

unread,
Dec 2, 2013, 4:01:59 PM12/2/13
to beagl...@googlegroups.com, junky...@hotmail.com
It looks like /sys/devices/ocp.2/44e10448.bandgap/tmp1_input is on my 2013.09.04 Angstrum image, but not on the older 2013.06.20 image.  Looks like I need up upgrade the BBB in my office.

--Mark

me me

unread,
Dec 2, 2013, 6:27:41 PM12/2/13
to beagl...@googlegroups.com
Does that mean that I should try in Angstrom?

Sent from my Windows Phone

From: Mark A. Yoder
Sent: ‎12/‎2/‎2013 1:02 PM

Junkytomato

unread,
Dec 2, 2013, 7:54:31 PM12/2/13
to beagl...@googlegroups.com

OK… Is it just me or does this Google group seem broken? Everything is delayed by up to a day, I get duplicates of many of the emails, and now it’s showing some of my e-mails as from an account with the first and last names ‘me’ and ‘me’. I have no idea where that string came from, but it seems that something’s wrong. Does anybody know why this is happening?

 

From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of me me


Sent: Monday, December 2, 2013 3:28 PM
To: beagl...@googlegroups.com

Gerald Coley

unread,
Dec 2, 2013, 8:28:56 PM12/2/13
to beagl...@googlegroups.com
You are not a subscriber. All your emails are moderated as a result. If you want them the go through fast, then sign up. Otherwise they will be posted as soon as I get them approved.

Gerald


You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Alexander Holler

unread,
Dec 3, 2013, 5:02:22 AM12/3/13
to beagl...@googlegroups.com
Am 03.12.2013 01:54, schrieb Junkytomato:
> OK. Is it just me or does this Google group seem broken? Everything is
> delayed by up to a day, I get duplicates of many of the emails, and now it's
> showing some of my e-mails as from an account with the first and last names
> 'me' and 'me'. I have no idea where that string came from, but it seems that
> something's wrong. Does anybody know why this is happening?

I think it's a problem on your side.

>
>
>
> From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On
> Behalf Of me me
> Sent: Monday, December 2, 2013 3:28 PM
> To: beagl...@googlegroups.com
> Subject: RE: [beagleboard] Temperature Sensor in my BBB
>
>
>
> Does that mean that I should try in Angstrom?
>
> Sent from my Windows Phone

Maybe that is the real problem.

Regards,

Alexander Holler

Message has been deleted

Andrew Goh

unread,
Sep 10, 2016, 5:08:02 PM9/10/16
to BeagleBoard
hi this is an old thread
but i just tried with devmem2
apparently i simply gets a value 0x20
that apparently mean the temperature sensor is off (TRM table 9-19)

i tried writing a zero byte (to turn it on/reset it)
devmem2 0x44e10448 b 0

but it seemed i continue to get 0x20 in return
any 1 has similar response from BBB?

devmem2 may need to be downloaded and compiled on the BBB itself:
http://www.makelinux.net/books/embedded_linux_kernel_and_drivers/text152
Reply all
Reply to author
Forward
0 new messages