urwen / temper

Simple python for accessing TEMPer USB thermometers
MIT License
79 stars 74 forks source link

Unknown firmware TEMPer2_V3.7 #32

Open kalle-ankan opened 2 years ago

kalle-ankan commented 2 years ago

Hi I tried temper.py but I get this error:

Bus 001 Dev 022 1a86:e025 TEMPer2_V3.7 Error: Unknown firmware TEMPer2_V3.7: b'808009b74e2000008001090e4e200000'

Any idea what I can try?

techfixpros commented 2 years ago

This worked for me:

Change

if info['firmware'][:12] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3' ]:

to

if info['firmware'][:12] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3', 'TEMPer2_V3.7' ]:

and this

if vendorid == 0x0c45 and productid == 0x7401: return True if vendorid == 0x413d and productid == 0x2107: return True if vendorid == 0x1a86 and productid == 0x5523: return True

to

if vendorid == 0x0c45 and productid == 0x7401: return True if vendorid == 0x413d and productid == 0x2107: return True if vendorid == 0x1a86 and productid == 0x5523: return True if vendorid == 0x1a86 and productid == 0xe025: return True

Results in pi@piaware:~/Downloads/temper $ sudo ./temper.py Bus 001 Dev 005 1a86:e025 TEMPer2_V3.7 34.31C 93.76F - 23.81C 74.86F

kalle-ankan commented 2 years ago

On 2022-03-31 01:13, John H wrote:

This worked for me:

Change |if info['firmware'][:12] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3' ]:| to |if info['firmware'][:12] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3', 'TEMPer2_V3.7' ]:| Results in @.***:~/Downloads/temper $ sudo ./temper.py --force 0424:2514 --verbose Firmware query: b'0186ff0100000000' Firmware value: b'54454d506572325f56332e3720202020' TEMPer2_V3.7 Data value: b'80800d544e20000080010af04e200000' Firmware query: b'0186ff0100000000' Firmware value: b'54454d506572325f56332e3720202020' TEMPer2_V3.7 Data value: b'80800d4e4e20000080010ae94e200000' Bus 001 Dev 002 0424:2514 TEMPer2_V3.7 34.12C 93.42F - 28.00C 82.40F - Bus 001 Dev 003 0424:2514 TEMPer2_V3.7 34.06C 93.31F - 27.93C 82.27F -|

Thanks

That did work for me.

Message ID: @.***>