I have recieved a tekelek766 lorawan device. Registered it and it is talking to the TTN.
However I have asked the company for the payload and they have not provided me the documentation to interpret the data. They keep asking me about who I bought it from and what support I am getting from the company. I think is a little strange taking into account the spirit of IoT.
Does anyone know where I can get this document from please.
Also if you have any php scripts to convert the payload into the grafana influx database. This would be appreciated but not a problem if not.
At a commercial level, companies can try to offload their support to the reseller - I personally donât as I try to make my documentation so clear that we get very few support issues and then only deal with the âinterestingâ issues.
It does seem unusual that there are no documents on their website to help with this.
But they have asked you to go back to the people who sold it to you - what do they say?
The company is a distributer, and I bought from Germany, so waiting a response from them. That was a few days ago.
Tekelek only asked who did I buy the product from, and what support agreements do I have with them⊠to which I replied accordingly. ânoneâ the company is wholesale, much like RS Components or CPC. Interestingly and prior to this, I asked to purchase the devices from the company them selves, to be told no, go through their distributor. The contact given didnt get back to me, so searched and bought elsewhere.
Strange the company dont have any documentation, but I suspect they want people to use them for services and charge for thier time/portal etc, so as to generate income fro doing so.
Just a wild idea, if no description is to be found anywhere: any chance itâs sending ASCII textâŠ? (An example payload might easily confirm or confute that.)
Do you have any example payloads for different temperatures, especially values of 33°C and above?
The two example values in the documentation (0x1B being 27°C, and 0xF2 being -14°C), happen to be regular signed integers. But the âgreater than 32â (rather than 127) in the following surprises me:
Temperature ranges -20°C to +50°C (Variable range -127 â 127)
- ([256 or 0] - Byte)
If the decimal conversion of the byte is greater than 32 then the number required for the formula is 256 otherwise the number required for the formula is 0.
That makes me wonder how temperatures of 33°C and above would be sent. I donât think thatâs possible at all with this formula?
The decoder that @descartes found also assumes a standard signed integer. (Note that var temp0 = p.readInt8(6) is not supported in the JavaScript version that TTN Payload Formats use.) And another decoder uses the value 50, rather than 32, which probably works as the documented range is -20°C to +50°C. But for a standard signed integer, it should really be 127 (or, when using bitwise operators, if (value & 0x80) ...).
Iâd assume that the following should do:
// Sign-extend a single byte to 32 bits to make JavaScript understand
// negative values, by shifting 24 bits to the left, followed by a
// sign-propagating right shift of the same number of bits.
temp1 = bytes[6]<<24>>24;
temp2 = bytes[10]<<24>>24;
temp3 = bytes[14]<<24>>24;
temp4 = bytes[18]<<24>>24;
Here is payload data that will definately have temperatures above 33DegC however, the distance will be very small, because its been sitting in a small area in a warm place.
Thanks for this, I found it really helpful. I am using it in Chirpstack and it seems to be working fine.
I just wanted to ask if this was your final version? Also, why are there 4 level values and 4 temp values?
Apologies if this is covered somewhere, but I am finding it incredibly difficult to find any documentation on this. If anyone can point me in the direction of where I can see it, that would be great.
Hello, I have tried to copy and paste the js script in TTN Payload Converter section, but i t doesnât work (ReferenceError: module is not defined at :151:1(15)) I have tried to test it with the string â1000000001121B7701131BAA01121BA90114F274â. Someone can help me ? Kind Regards, Marco.
Hi Nick, after some try and errors, I have been able to write a working decoder for the TEK 766 Sensor. Here below the code. With a Input â30000001010836008A00630168060070FFAAâ (port:48) the output is :
{
âtemperatureâ: -1,
âullageâ: 112
}
function decodeUplink(input) {
var data = {};
var temp = 0.0;
var offset = 0;
if (input.fPort==16)
{
data.ullage = (input.bytes[4] << 8) + input.bytes[5];
temp=input.bytes[6]
if (temp>50)
{
offset=256;
}
else
{
offset=0;
}
data.temperature = -(offset-temp);
}