merbanan / rtl_433

Program to decode radio transmissions from devices on the ISM bands (and other frequencies)
GNU General Public License v2.0
6.07k stars 1.31k forks source link

rtl_433.c: Missing information about frequency settings #1

Closed 0xFACE closed 11 years ago

0xFACE commented 11 years ago

Trying to tune to cheap humidity-temperature sensor I found there is already undocumented -f parameter to force frequency.
It would be nice to add this information to usage summary.

merbanan commented 11 years ago

The current code can only listen to one type of sensor. I'm working on adding more sensors together with features that will make it easy to analyze the output from random devices that transmit on the 433,92MHz frequency or other bands.

0xFACE commented 11 years ago

Hi, I there is log from my "Tech Line FWS-500" Sensor. Is it normal such noisy output each reading?

The right packet I found is when id=5. temperature=14.3 - that's ok, channel=1 - that's ok (value changes when the channel switch is changed), rid - ok, value changes when the battery is changed

I'm not sure how humidity value is coded.

Registering protocol[01] Rubicson Temperature Sensor Registering protocol[02] Prologue Temperature Sensor Registering protocol[03] Silvercrest Remote Control Found 1 device(s): 0: Generic, RTL2832U DVB-T, SN: 0

Using device 0: Generic RTL2832U (e.g. hama nano) Found Fitipower FC0013 tuner Sample rate set to 48000. Sample rate decimation set to 0. 48000->48000 Bit detection level set to 10000. Tuned to 433920000 Hz. Tuner gain set to 10.000000 dB. Reading samples in async mode... p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

20 00 00 00 00 80 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 20 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

80 00 00 00 00 80 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 80 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->b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1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

80 00 00 00 00 80 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 80 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

80 00 00 00 00 80 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 80 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

80 00 00 00 00 80 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 80 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>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.0 channel = 1 id = 8 rid = 0 hrid = 00 rid = 80 temp = 0.0

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

16 a7 02 3d 18 5a 9c 08 f4 60 button = 1 first reading = 0 temp = 14.3 channel = 1 id = 5 rid = 169 hrid = a9 rid = 16 temp = 179.4

p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11! p->bits_row_idx>11!

0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

20 00 00 00 00 c0 00 00 00 00 button = 0 first reading = 1 temp = 0.0 channel = 1 id = 12 rid = 0 hrid = 00 rid = 20 temp = 0.0

Signal caught, exiting!

User cancel, exiting... root@malina:~/rtl_433/build/src#

merbanan commented 11 years ago

Run with -a and pastebin the log.

0xFACE commented 11 years ago

http://pastebin.com/Ta9Xxi5v

merbanan commented 11 years ago

Excellent. From this log I can see that you captured 2 packets. 225 pulses in each packet. The pulse duration is a constant ~571 samples. The distance between pulses makes up the 0's and 1's. I'll try to add support for this sensor this evening.

0xFACE commented 11 years ago

Great! I can provide additional information to help debug all features (low battery indication, TX button, humidity, etc) Thank you very much :-)

merbanan commented 11 years ago

Try now. The rubicson event printout is still spamming I need to figure out the crc algo for it or just validate the packets better somehow.

merbanan commented 11 years ago

You can remove the register call for the rubicson sensor and then start logging and analyse the bitstream. Hopefully the recovered bits will be in sync. The pattern seems to be 38 bits with 1 startbit and hopefully repeated bits. Run without the -a option.

0xFACE commented 11 years ago

Looks nice. Packet reading is stable. There is only problem with temperature reading - always 0.0 I ran rtl_433 remotely, so I can't see what exactly temperature sensor shows ;-)

http://pastebin.com/341G3WJD

merbanan commented 11 years ago

Well I don't know how to decode the bits into sane values right now so the only thing it does is outputting the bit stream. Don't get distracted by the Rubicson output. But from the logs we can see that it is sending 6 repeated bit patterns. And that the first packet has a bit offset shift of 2 but that the other packets align nicely. The first hex value is from the first line and the second is from the second. And as the first has an offset only the second has a meaning. So start collecting the second hexvalues and match them to a table that has the temperature values and other values.

The only value in your log is this: 55 08 ff e5 10

I am guessing now bits ff e could represent the temperature in 12 bits signed and scaled by 10. Thus we get -0.2 something. If that sounds correct I can add that to the output. But we need more bit patterns so we can figure out more data from the bits.

0xFACE commented 11 years ago

I found temperature coding is the same as Prologue coding. temp = (int16_t)((uint16_t)(bb[1][2] << 8) | (bb[1][3]&0xF0)); temp = temp >> 4;

ID - grabbed from your code: bb[1][0]&0xF0)>>4

Channel - grabbed from your code: (bb[1][1]&0x03)+1)

RID - grabbed from your code: bb[1][0]&0x0F

Humidity is coded coded as integer (without fraction) int8_t hum = ((bb[1][3]&0x0F)<<4)|(bb[1][4]>>4); I'm not C hacker, please correct me if there is need to use cast to int16_t or something ... ;-)

Battery: bb[1][1]&0x08)>>3 0==LOW, 1==OK

TX_Button bb[1][1]&0x04)>>2 1 - Pressed

No idea about first packet meaning. It looks like checksums for the rest 6 packets (it goes to change when rest 6 changes). But I'm not sure.

merbanan commented 11 years ago

So there is only 4 bits of humidity ? Anyway can you log some more sensor readings I'd like to see if we can figure out if there is any checksum.

0xFACE commented 11 years ago

There is problem with HTML entities (less than, greater than symbol) on this site.

hum = ((bb[1][3]&0x0F)<<4)|(bb[1][4]>>4);

ok, now looks ok

0xFACE commented 11 years ago

Warm up from 1C to 20C http://pastebin.com/pwLwSJTr

0xFACE commented 11 years ago

And my attempt to decode: http://pastebin.com/LrsC8kMR

merbanan commented 11 years ago

Ok, am I correct that there is no space for any crc ? That all bits are accounted for. If not can you try to get a reading where only the random id changes and nothing else ?

0xFACE commented 11 years ago

More reliable reading , without noise: http://pastebin.com/6pbpveu1

I'll try to play with random id tomorrow.

0xFACE commented 11 years ago

There is log with random id changes (by battery removal): http://pastebin.com/KvjcZEZF

unfortunately there is a small temperature drift also :(

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 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0

merbanan commented 11 years ago

It looks like there is no room for any crc, just data.

merbanan commented 11 years ago

And the shift is because my code is generalized to be able to handle several variants of transmissions.