temper icon indicating copy to clipboard operation
temper copied to clipboard

Unknown firmware TEMPerHUM_V3.9: b'8020096d18d80000'

Open mgutierrezp opened this issue 2 years ago • 2 comments

Hi,

I'm getting this message: Bus 001 Dev 006 1a86:e025 TEMPerHUM_V3.9 Error: Unknown firmware TEMPerHUM_V3.9: b'8020096d18d80000'

any idea?

EDIT: has nothing to do with a kernel update. It never worked

mgutierrezp avatar Oct 07 '22 20:10 mgutierrezp

i added following code at line 234 (empty line), watch intendation:

if info['firmware'][:16] == 'TEMPerHUM_V3.9':
  info['firmware'] = info['firmware'][:16]
  #Bytes 3-4 hold the device temp, divide by 100
  self._parse_bytes('internal temperature', 2, 100.0, bytes, info, self.verbose)
  #Bytes 11-12 hold the external temp, divide by 100
  self._parse_bytes('external temperature', 10, 100.0, bytes, info, self.verbose)
  #Bytes 5-6 hold the device humidity, divide by 100
  self._parse_bytes('internal humidity', 4, 100.0, bytes, info)      
  return info

print(info['firmware'][:16])

adubravac avatar Oct 19 '22 11:10 adubravac

i added following code at line 234 (empty line), watch intendation:

if info['firmware'][:16] == 'TEMPerHUM_V3.9':
  info['firmware'] = info['firmware'][:16]
  #Bytes 3-4 hold the device temp, divide by 100
  self._parse_bytes('internal temperature', 2, 100.0, bytes, info, self.verbose)
  #Bytes 11-12 hold the external temp, divide by 100
  self._parse_bytes('external temperature', 10, 100.0, bytes, info, self.verbose)
  #Bytes 5-6 hold the device humidity, divide by 100
  self._parse_bytes('internal humidity', 4, 100.0, bytes, info)      
  return info

print(info['firmware'][:16])

works great! thanks for the tip!

mgutierrezp avatar Nov 07 '22 11:11 mgutierrezp

@mgutierrezp Is the humidity sensor internal or external? Can you describe the device physically or post a couple pictures? I'd like to add it to the device grid and fill out the details.

eode avatar Nov 23 '22 12:11 eode

the sensor is internal. This is the device:

image image

m

mgutierrezp avatar Nov 23 '22 12:11 mgutierrezp

Awesome. Thank you, I've updated the code and will release a new version shortly.

eode avatar Nov 23 '22 13:11 eode

@mgutierrezp by the way, does this have a temperature sensor as well, or humidity only?

eode avatar Nov 24 '22 12:11 eode

@mgutierrezp by the way, does this have a temperature sensor as well, or humidity only?

temperature and humidity (internal). I can read both values correctly with the code above

mgutierrezp avatar Nov 24 '22 12:11 mgutierrezp

Thanks. The PyPi package ~skills~ should work for you now.

eode avatar Nov 26 '22 03:11 eode

great, thanks for your kind support!

mgutierrezp avatar Nov 26 '22 10:11 mgutierrezp