i have an LHT65N with SHT31 external Sensor. But I can’t get it in the right working mode, to get the results from the external Sensor. The User Manual says für SHT31 you have to set EXT=11. So I sent Downlink A2 11 but it doesn’t work. Receiving Downlink commands it self works, I can change TX Intervall and EXT value. If I Send A02 00 for example then no more values are transmitted. If I send A02 01 again, die LHT starts with sending values. So connectivity is ok, it’s only the Problem to get it in the right working mode for the SHT31 external sensor.
I don’t know how to get the Firmware Version. I only have OTA Access to the device. I bought it 2 weeks ago. I ordered the LHT65 with SHT31 Sensor as package. So I thought it will work out of the box.
Today I made some more tests. Maybe I found the Problem. In the Decoder is no section for Ext=11 but I couldn’t find a proper decoder on Draginos Dropbox.
Does somebody know how I can get a proper decoder?
That’s the decoder I’m using right now
function str_pad(byte){
var zero = ‘00’;
var hex= byte.toString(16);
var tmp = 2-hex.length;
return zero.substr(0,tmp) + hex + " ";
}
function decodeUplink(input) {
var port = input.fPort;
var bytes = input.bytes;
var Ext= bytes[6]&0x0F;
var poll_message_status=(bytes[6]&0x40)>>6;
var Connect=(bytes[6]&0x80)>>7;
var data = {};
switch (input.fPort) {
case 2:
if(Ext==0x09)
{
data.TempC_DS=parseFloat(((bytes[0]<<24>>16 | bytes[1])/100).toFixed(2));
data.Bat_status=bytes[4]>>6;
}
else
{
data.BatV= ((bytes[0]<<8 | bytes[1]) & 0x3FFF)/1000;
data.Bat_status=bytes[0]>>6;
}