temperature sensors - page 2 - Feature Requests - CHDK Forum

temperature sensors

  • 28 Replies
  • 15393 Views
*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: temperature sensors
« Reply #10 on: 26 / July / 2008, 07:46:30 »
Advertisements
PhyrePhox just managed to get the adresses for SX100 1.00C:

Code: [Select]
NHSTUB(GetBatteryTemperature, 0xFFC3A350)
NHSTUB(GetCCDTemperature, 0xFFC3A2E0)
NHSTUB(GetOpticalTemperature, 0xFFC3A3C0)


*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: temperature sensors
« Reply #11 on: 26 / July / 2008, 08:57:53 »
Quote
edit: attached build for s3is.
Nice!
I got at start-up:
opt: 24
ccd: 26
batt: 27
Room temp. (crappy thermo.): 24

Two questions for the more knowledgeable:

1.- Is the ccd temperature rise due to exposure to light or is it a consequence of being an electronic device? Or both?

2.- How the heck the camera can know the battery temperature? I guess the ccd has a tiny temp sensor somewhere, like PC microprocessors. But I doubt there is a sensor close to the battery compartment. Is this figure indirectly calculated? Maybe there is a formula that returns temperature given actual current flow or something?

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: temperature sensors
« Reply #12 on: 26 / July / 2008, 09:09:12 »
1.- Is the ccd temperature rise due to exposure to light or is it a consequence of being an electronic device? Or both?

Electric power dissipation.

2.- How the heck the camera can know the battery temperature? I guess the ccd has a tiny temp sensor somewhere, like PC microprocessors. But I doubt there is a sensor close to the battery compartment. Is this figure indirectly calculated? Maybe there is a formula that returns temperature given actual current flow or something?

A battery heat sensor may be thermally coupled to one of the battery terminals, which are metal and thus tend to warm up to pretty much the same temperature as the battery. Also, our battery compartments are not ventilated, so it may suffice to measure its ambient temperature. Whichever option happens to be mechanically cheapest...

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: temperature sensors
« Reply #13 on: 26 / July / 2008, 09:22:38 »
Its not that i found the adresses on my own,ida practically rubbed my nose into it! Had it set up the wrong way at first,reyalP helped me. Then for the sx100 i tried it loading the same way,but that was wrong,being a dryos device startadress etc are different.the wiki doesnt say so,i'm gonna change that.
Anyhow,finding these adresses is basically now only a matter of time.not brains. Loading a dump the first time into ida takes about 20 minutes on my slow box.
Expect a thermometer for all cams all to soon!


*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: temperature sensors
« Reply #14 on: 26 / July / 2008, 09:30:41 »

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: temperature sensors
« Reply #15 on: 26 / July / 2008, 09:57:41 »
...Anyhow,finding these adresses is basically now only a matter of time.not brains. Loading a dump the first time into ida takes about 20 minutes on my slow box.

Hi PhyrePhoX,
are you working on an old 80486 :lol or have you just forgotten to strip the zeros in the beginning of the dump ? 
...or you can load your dump "as-is" directly to IDA with specifying the offset of data...

(hehe - ok, not my idea/work, thx to GrAnd...)

GrAnd posted a great "tutorial", including 2 videos for using IDA, great stuff: Porting chdk to the G9, i'm not sure whether you've seen that...

*

Offline LjL

  • ****
  • 266
  • A720IS
Re: temperature sensors
« Reply #16 on: 26 / July / 2008, 10:11:43 »
What's wrong with 486s? :P

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: temperature sensors
« Reply #17 on: 26 / July / 2008, 10:36:52 »
What's wrong with 486s? :P
Nothing - i love this generation of CPU's, i also use some of them daily in business, controlling measuring instruments, running under Win 3.11 !
I also have my old 8086, full functional, with dual 360k 5.25 inch floppy drives, 512kB RAM, Hercules CGA...perhaps i should try to compile CHDK on it  :lol ...better i'll try this with my 286-12 with 2MB (!!!) RAM, assisted by an original IIT 2C87 coprocessor (thats the one used in the space shuttles as i remember), bought ages ago to shade simple 3D on AutoCAD 12 (DOS) faster...


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: temperature sensors
« Reply #18 on: 26 / July / 2008, 13:52:21 »
well my box is a 1.4 pentium mobile or centrino even, not the fastest one, considering also its a laptop and windows is running on it (running or creeping, don't know :D).

getting a dump into IDA isnt a problem anymore, now i know most of the offset stuff etc, but applying the script and signature file takes ages. luckily, this process has to happen only once for each camera, as IDA builds an own database with all the stuff in it (quiete huge if you ask me, almost 40 MB for a 4 MB dumpfile :D). it's time people not only start sponsoring cameras, but PCs as well ;) j/king

*

Offline reyalp

  • ******
  • 14111
Re: temperature sensors
« Reply #19 on: 26 / July / 2008, 16:41:06 »
FWIW, the addresses for the a540 should be
Quote
NHSTUB(GetOpticalTemperature, 0xFFC1D01C)
NHSTUB(GetBatteryTemperature, 0xFFC1D044)
NHSTUB(GetCCDTemperature, 0xFFC1D030)
It appears that on this camera optical and CCD always give the same value. It's possible this in an error on my part,  but looking through the code seems to be set up to fallback to the other sensors if one isn't present.

edit:
BTW, is there any posts or documentation on adding signatures to be used generating stubs_entry.S ?
« Last Edit: 26 / July / 2008, 17:04:32 by reyalp »
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal