• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


NEXA NBA-001 (thermometer & hygrometer)
#1
I need support to get pilight to decode device NEXA NBA-001 (thermometer/hygrometer). I have read the read section however, I wonder if it could be of better interest to provide the output of rtf_433 instead:

rtl_433 -G
Code:
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 433.920MHz.
2018-08-03 11:39:46 : HIDEKI TS04 sensor
Rolling Code: 5
Channel: 1
Battery: OK
Temperature: 66.7 C
Humidity: 33 %



rtl_433 -A
Code:
Detected OOK package @ 2018-08-03 12:06:41
2018-08-03 12:06:41 : HIDEKI TS04 sensor
Rolling Code: 15
Channel: 1
Battery: OK
Temperature: 66.6 C
Humidity: 33 %
Analyzing pulses...
Total count:   65,  width: 22010 (88.0 ms)
Pulse width distribution:
[ 0] count:   26,  width:   240 [238;250] ( 960 us)
[ 1] count:   38,  width:   117 [114;119] ( 468 us)
[ 2] count:    1,  width:    26 [26;26] ( 104 us)
Gap width distribution:
[ 0] count:   26,  width:   248 [247;252] ( 992 us)
[ 1] count:   38,  width:   126 [124;128] ( 504 us)
Pulse period distribution:
[ 0] count:   20,  width:   488 [486;500] (1952 us)
[ 1] count:   12,  width:   366 [365;368] (1464 us)
[ 2] count:   32,  width:   244 [241;246] ( 976 us)
Level estimates [high, low]:  15913,      7
Frequency offsets [F1, F2]:   -6900,      0 (-26.3 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with sync/delimiter
Attempting demodulation... short_limit: 117, long_limit: 240, reset_limit: 253, sync_width: 26
pulse_demod_pwm_precise(): Analyzer Device
bitbuffer:: Number of rows: 2
[00] {64} 1c b9 a5 b7 75 bf 1b 63
[01] { 0}                         :


Please advise.

(please dismiss the temperature value since I have hacked the device for other purposes. More information on the hack is to come/share)
 
Reply
#2
The code to decode the protocol can be found at https://github.com/merbanan/rtl_433/blob...s/hideki.c

Any help on this is appreciated.
 
Reply
#3
And here you go a couple of raw strings in case signal reproduction is needed for testing:


67.4C - 38%
Code:
hardware: 433gpio
pulse: 34
rawlen: 125
pulselen: 1795

Raw code:
912 554 422 531 924 1030 432 544 435 550 922 1025 436 536 438 537 440 535 442 546 920 1028 923 543 444 534 440 1022 925 1030 429 546 925 1033 917 1033 428 548 434 545 925 1026 431 541 433 548 922 545 431 1030 924 1029 436 537 443 542 431 546 916 1038 423 558 428 545 433 543 917 1028 430 551 437 555 420 544 437 535 920 1032 926 541 434 543 439 1029 427 547 435 549 428 546 914 1030 918 1043 915 1038 917 551 420 551 434 547 429 1032 431 545 425 548 430 557 422 551 427 544 917 1034 929 538 429 1033 917 1041 419 557 61060



59.9C - 39%
Code:
hardware: 433gpio
pulse: 34
rawlen: 121
pulselen: 1795

Raw code:
901 590 374 568 400 562 905 578 397 818 168 1047 892 577 398 578 410 1051 409 628 837 1060 893 565 412 574 411 1053 885 1070 395 577 892 1065 893 1061 398 567 409 577 883 1069 893 567 405 576 400 1076 877 578 399 584 395 1071 391 574 889 575 398 1061 410 582 401 568 401 574 884 1070 396 567 904 568 402 580 399 1061 887 1084 384 588 398 587 386 576 398 577 399 589 386 588 885 1061 886 1069 884 1068 893 1069 878 1072 882 1068 879 1080 391 591 871 1081 381 577 402 575 405 577 402 587 873 1080 383 578 61052



71.5C - 39%
Code:
hardware: 433gpio
pulse: 34
rawlen: 121
pulselen: 1795

Raw code:
903 574 399 552 918 1046 924 1037 408 553 912 547 420 565 412 1049 417 559 906 1049 908 560 422 565 410 1049 896 1060 411 554 907 1040 917 1043 412 555 418 562 915 1052 894 559 421 1050 410 563 906 564 459 518 416 558 409 1065 892 1050 912 564 411 559 412 564 413 1050 910 1047 900 569 403 565 411 1049 902 1061 411 563 415 565 441 535 407 568 409 569 407 569 902 1047 903 1062 888 1072 401 567 408 562 905 1049 409 575 895 1048 409 568 407 570 409 578 896 1059 403 564 410 567 410 564 901 1057 411 556 61050
 
Reply
#4
Another dump, now using "rtl_433 -a" simultaneously with pilight-debug:

63.1C & 31% with "rtl_433 -a"
Code:
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 433.920MHz.
*** signal_start = 315948, signal_end = 429343
signal_len = 113395,  pulses = 204
Iteration 1. t: 178    min: 116 (135)    max: 240 (69)    delta 7985
Iteration 2. t: 178    min: 116 (135)    max: 240 (69)    delta 0
Pulse coding: Short pulse length 116 - Long pulse length 240

Short distance: 125, long distance: 248, packet distance: 13685

p_limit: 178
bitbuffer:: Number of rows: 3
[00] {69} e0 11 96 a2 22 88 3a 10 40
[01] {67} e0 11 96 62 22 88 3b 0e 00
[02] {68} e0 11 96 a2 22 88 3b 08 80

63.1C & 31% with "pilight-debug"
Code:
pulse:        34
rawlen:        125
pulselen:    1798

Raw code:
1038 413 389 552 424 554 420 555 421 557 424 548 430 563 895 568 410 554 431 1047 415 554 907 1048 899 565 420 556 422 1048 902 1048 472 507 932 1034 890 1057 403 567 419 552 917 1046 891 567 429 547 421 564 401 1062 901 565 408 559 422 1048 413 557 914 1061 413 552 410 574 403 566 892 1060 409 558 908 570 405 567 410 566 410 1054 900 565 414 564 411 1070 395 564 415 552 421 564 898 1058 907 1051 892 1056 410 580 883 1059 895 582 391 573 412 1061 400 564 408 568 901 1048 906 1057 891 575 411 1046 412 577 398 570 61158

And this is how to interpret it according to rtl_433 documentation. See post #2 above. 
Code:
//    11111001 0  11110101 0  01110011 1 01111010 1  11001100 0  01000011 1  01000110 1  00111111  0 00001001 0  00010111 0
//    SYNC+HEAD P   RC cha P           P     Nr.? P   .1° 1°  P   10°  BV P   1%  10% P  ????SYNC    -------Check?------- P

//TS04:
//    00000000  11111111  22222222  33333333  44444444  55555555  66666666  77777777  88888888 99999999
//    SYNC+HEAD cha   RC                Nr.?    1° .1°  VB   10°   10%  1%  SYNC????  -----Check?------
 
Reply
#5
@curlymo (as contributor to the development of ninjablocks_weather.c)

It seems to me that this device (NEXA NBA-001) makes use of BMC encoding as Ninja Blocks Weather Sensor does. I wonder if we could reuse the Ninja Blocks Weather Sensor code and adapt it to this device by changing the pulse constants as well as the binary configuration of the diverse variables.
 
Reply
#6
Yes, just takes ninjablocks as the reference protocol and adapt it to what you need. When you got it working, do a PR and i'll merge it.
 
Reply
#7
I have done some reverse engineering on both codes pilight ninjablocks_weather.c and rtl_433 hideki.c to try adapt Hideki to pilight. Can somebody explain what the following piece of code does (hideki.c)?


Code:
bitrow_t *bb = bitbuffer->bb;
uint8_t *b = bb[0];
uint8_t packet[HIDEKI_BYTES_PER_ROW];

packet[i] = b[i+offset] << (i%8);
packet[i] |= b[i+offset+1] >> (8 - i%8);

I would expect packet array getting an integer after adding 8-bits from the b-bit array (pointer) but I cannot figure out how this is achieved.
 
Reply
#8
Do you know what bitwise operators are?
 
Reply
#9
(08-14-2018, 07:24 PM)curlymo Wrote: Do you know what bitwise operators are?

yes I do and how convenient they are to deal with bit-wise operations or arithmetic operations but this one puzzles me.
 
Reply
#10
Have you added debug lines to see what the actual bit values are before and after.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  FT007TH Thermo-/Hygrometer, Protocol: Alecto V3 sandnabba 1 44 3 hours ago
Last Post: sandnabba
  freetec pt-250 (pool thermometer) izeman 7 1,885 01-15-2018, 09:40 PM
Last Post: curlymo
  FreeTec IPX8 Pool Thermometer wseifert 0 571 09-05-2017, 12:22 PM
Last Post: wseifert
  hama ts33c temperature/hygrometer martinr 2 3,401 06-16-2016, 09:19 PM
Last Post: satsatt
  Cresta TX320 temperature/hygrometer (hideki protocol) Bram 13 12,384 06-10-2015, 08:54 PM
Last Post: esdeboer
Question Nexa Dimmer (arctech_switch) nils 6 5,167 02-26-2015, 09:15 PM
Last Post: Josef
  Nexa Devices seca2 0 1,654 08-13-2014, 12:47 AM
Last Post: seca2
  [Fully Supported] Nexa Switch Protocol kitsune 3 4,051 01-10-2014, 08:10 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)