Re: [NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 2)

2013-05-31 Thread Luis Coronado
Upgraded my icinga/cacti box to -current, latest ugold patch applied. All
good:

from dmesg

OpenBSD 5.3-current (GENERIC.MP) #0: Wed May 29 09:47:39 CST 2013
r...@sbrnms..xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP

uhidev0 at uhub3 port 1 configuration 1 interface 0 RDing TEMPerV1.2 rev
2.00/0.01 addr 2
uhidev0: iclass 3/1, 1 report id
ugold0 at uhidev0 reportid 1
uhidev1 at uhub3 port 1 configuration 1 interface 1 RDing TEMPerV1.2 rev
2.00/0.01 addr 2
uhidev1: iclass 3/1
ugold1 at uhidev1
ugold1: type ds75/12bit (temperature)
uhidev2 at uhub5 port 1 configuration 1 interface 0 RDing TEMPerV1.2 rev
2.00/0.01 addr 2
uhidev2: iclass 3/1, 1 report id
ugold2 at uhidev2 reportid 1
uhidev3 at uhub5 port 1 configuration 1 interface 1 RDing TEMPerV1.2 rev
2.00/0.01 addr 2
uhidev3: iclass 3/1
ugold3 at uhidev3
ugold3: type ds75/12bit (temperature)

sysctl hw.sensors.ugold*

hw.sensors.ugold1.temp0=21.87 degC (inner)
hw.sensors.ugold3.temp0=24.25 degC (inner)

-luis


On Sun, May 12, 2013 at 12:41 PM, SASANO Takayoshi u...@mx5.nisiq.netwrote:

 Hello,

 Here is the driver for Microdia's USB TEMPer with some fixes.

 http://www.uaa.org.uk/gomitext/2013/20130513/20130513.diff

 - removed intermediate buffer (sc_ibuf), all USB interrupt responses
   will be processed in ugold_intr().
 - use uhidev_set_report() to issue HID command.
 - add ugold* at uhidev? into GENERIC for alpha, amd64, armish, hppa, i386,
   landisk, loongson, macppc, sgi (IP27, IP30, IP32), socppc and sparc64.

 Regards,
 
 SASANO Takayoshi u...@mx5.nisiq.net




Re: [NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 2)

2013-05-27 Thread Benoit Lecocq
On 05/12/13 20:41, SASANO Takayoshi wrote:
 Hello,
 
 Here is the driver for Microdia's USB TEMPer with some fixes.
 
 http://www.uaa.org.uk/gomitext/2013/20130513/20130513.diff
 
 - removed intermediate buffer (sc_ibuf), all USB interrupt responses
   will be processed in ugold_intr().
 - use uhidev_set_report() to issue HID command.
 - add ugold* at uhidev? into GENERIC for alpha, amd64, armish, hppa, i386,
   landisk, loongson, macppc, sgi (IP27, IP30, IP32), socppc and sparc64.
 
 Regards,
 
 SASANO Takayoshi u...@mx5.nisiq.net
 

Hi,

I have tried it on amd64 and it works fine :

uhidev4 at uhub3 port 1 configuration 1 interface 0 RDing TEMPerV1.4
rev 2.00/0.01 addr 3
uhidev4: iclass 3/1, 1 report id
ugold0 at uhidev4 reportid 1
uhidev5 at uhub3 port 1 configuration 1 interface 1 RDing TEMPerV1.4
rev 2.00/0.01 addr 3
uhidev5: iclass 3/1
ugold1 at uhidev5
ugold1: type ds75/12bit (temperature)


# sysctl hw.sensors.ugold1
hw.sensors.ugold1.temp0=23.37 degC (inner)

Cheers,
benoit