-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEMPerHumM12V1.2 0C45:7402 #33
Comments
@G0lph3r Hey, man, did you manage to get it working? I'm currently trying to make it work according to another issue post from ourmoonflass. P.S: I have the exact same model you do |
Yeah, working like a clock on Udoo board. Little bit modified source for myself also if interested I can post. IMHO integration with openHAB is weird = through SNMP, but maybe it's Ok, cause I'm not linux guru. Happy New Year! |
In temper_type.c I modified: snip and added a struct: then i copied the si7005.c and si7005.h and adapted a bit... #include <stdbool.h> #include "type-info.h" bool tempered_type_hid_get_temperature_si7006(
} bool tempered_type_hid_get_humidity_si7006(
} |
Thanks! I'm currently updating the make files to try Diggensag's code; but |
Sorry didn't have private Github, so posting changes vs this project source. My aim was "it working for me, let's forget", so code must be definitely better and IMHO Diggensag wrote it already here. Just search and replace. If you give mail address will send directly to you zipped project. ***** My changes tempered.c ***** My changes ***** My changes ***** My changes ***** My changes ***** My changes ***** My changes si7005.c ***** My changes
***** Source code taken from this github fork
***** My changes
***** Source code taken from this github fork ***** My changes |
I created a repository under https://github.com/Diggensag/TEMPered ... hope i didn´t forget something (i am not firm to git yet). |
Thanks to both of you, I succesfully added the si7006 sensor to the type_hid folder and updated the build files and this sweet sensor is up and running. Thanks a lot! |
Hello, lsusb : dmesg ./hidtest-libusb Device Found unable to open device ./hidtest-hidraw I tryed @JuanKman94 and @Diggensag version. any help ? |
Hi, |
@G0lph3r yes, sure, I posted the log of hidtest-libusb and hidtest-hidraw |
fyi: see #40 for V1.2 and V1.3 support |
and this is now superseded by mwerezak#4 |
Made by PCsensor (http://www.pcsensor.com/index.php?_a=document&doc_id=6), metallic enclosure with blue TXT push button and titled "TEMPerHUM", windows driver TEMPer V24.4.4.zip.
It seems to be (I didn't opened enclosure) that used Silabs Si7006 sensor - http://www.silabs.com/Support%20Documents/TechnicalDocs/Si7006-A10.pdf
Following request bytes - .data = (unsigned char[]){ 0, 1, 0x80, 0x33, 1, 0, 0, 0, 0 }
hid-query /dev/hidraw1 1 0x80 0x33 1
Device /dev/hidraw1 : 0c45:7402 interface 1 : RDing TEMPERHUM1V1.2
Writing data (9 bytes):
00 01 80 33 01 00 00 00 00
Response from device (8 bytes):
80 04 6b 80 43 32 2e 32
where - 80 04 and 2e 32 - technical (not interesting for me at least, please add info if matters)
6b 80 - temperature
43 32 - humidity
from sensor description -
_tempC = ((float)temp)_175.72 / 65536-46.8;
float relhum = ((float)rh)*125 / 65536 - 6;
lsusb -v output
Bus 002 Device 015: ID 0c45:7402 Microdia
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0c45 Microdia
idProduct 0x7402
bcdDevice 0.01
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 65
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 41
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
The text was updated successfully, but these errors were encountered: