Skip to content

Deepcool LD Series Digital support for non-Windows OS using HIDAPI

Notifications You must be signed in to change notification settings

asdfzdfj/deepcool-ld-digital-hidapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepcool LD Series Digital support for non-Windows OS

using HIDAPI

should works on Linux, FreeBSD and other places where hidapi is supported

requirements

python3, hidapi pytohn bindings, and system's hidapi library

additionally, psutil for conveniences in gathering sensors data, but that's not the main point

device usage

the main piece is in ld_series.py

initialization

write the two packets in ld_series.INIT_SEQUENCE to the device, note that the packets are already complete and ready to be used in hidapi device.write() command

make and send the report data

use ld_series.make_report(power, temp, usage, use_fahrenheit=False) to generate a report packet from supplied values, then write them to the device using hidapi device.write() command

supported values:

  • power (uint, should be watts)
  • temperature (float32, in degC, or degF with use_fahrenheit=True)
  • usage (uint, cpu percent)

example

quick example:

import hidapi
import ld_series

dev = hidapi.device()
dev.open(ld_series.VID, ld_series.PID)

# init sequence
for packet in ld_series.INIT_SEQUENCE:
    dev.write(packet)

# send some data
report = ld_series.make_report(power=0, temp=30, usage=7)
dev.write(report)

# close device when exit
dev.close()

also check out basic_main.py for (my own) real world uses

About

Deepcool LD Series Digital support for non-Windows OS using HIDAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages