You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -322,13 +322,13 @@ The RSSI Threshold for signal detection is automatically determined based on the
322
322
323
323
For background see section 2.1.3.2. of SX127X Data sheet
324
324
325
-
To tune the SX127X OOK RSSI FIXED Threshold two values are used to determine if the threhold needs to be increased or decreased. The first is the noise recevied between signals. If the number of noise bits received between signals is greater than 100, then the threshold is incremented. Second is the unparsed signals. If an unparsed signal is received, but it has less than 20 pulses, the threhold is decremented.
325
+
To tune the SX127X OOK RSSI FIXED Threshold two values are used to determine if the threshold needs to be increased or decreased. The first is the noise received between signals. If the number of noise bits received between signals is greater than 100, then the threshold is incremented. Second is the unparsed signals. If an unparsed signal is received, but it has less than 20 pulses, the threshold is decremented.
326
326
327
327
The first approach is what is recommended in the SX127X datasheet, and the second is a control to lower the threshold if it is too high and incomplete signals are received.
328
328
329
329
# Compile definition options
330
330
331
-
```
331
+
```plaintext
332
332
DEMOD_DEBUG ; enable verbose debugging of signal processing
333
333
DEVICE_DEBUG ; Validate fields are mapped to response object ( rtl_433 )
334
334
MEMORY_DEBUG ; display heap usage information
@@ -351,58 +351,75 @@ OOK_MODULATION ; Enable OOK Device Decoders, setting to false enables FSK
351
351
352
352
## RF Module Wiring
353
353
354
+
```plaintext
354
355
ONBOARD_LED ; GPIO pin to toggle during signal reception ( Typically onboard LED )
356
+
```
355
357
356
358
### SX1276 Module Options
357
359
360
+
```plaintext
358
361
RF_SX1276 ; Enable support for SX1276 Transceiver
359
-
OOK_FIXED_THRESHOLD ; Inital OOK threshold ( See 2.1.3.2. of datasheet ), defaults to 90
362
+
OOK_FIXED_THRESHOLD ; Initial OOK threshold ( See 2.1.3.2. of datasheet ), defaults to 90
360
363
AUTOOOKFIX ; Set to enable automatic setting of OOK_FIXED_THRESHOLD based on noise level between signals
364
+
```
361
365
362
-
### SX1276 Module Wiring ( Required if not using standard configuraton )
366
+
### SX1276 Module Wiring ( Required if not using standard configuration )
363
367
368
+
```plaintext
364
369
RF_MODULE_CS ; SX1276 SPI Chip select
365
370
RF_MODULE_DIO0 ; SX1276 DIO0 PIN
366
371
RF_MODULE_RST ; SX1276 RST PIN
367
372
RF_MODULE_DIO1 ; SX1276 DIO1 PIN
373
+
```
368
374
369
375
### SX1278 Module Options
370
376
377
+
```plaintext
371
378
RF_SX1278 - Enable support for SX1276
372
-
OOK_FIXED_THRESHOLD ; Inital OOK threshold ( See 2.1.3.2. of datasheet ), defaults to 90
379
+
OOK_FIXED_THRESHOLD ; Initial OOK threshold ( See 2.1.3.2. of datasheet ), defaults to 90
373
380
AUTOOOKFIX ; Set to enable automatic setting of OOK_FIXED_THRESHOLD based on noise level between signals
381
+
```
374
382
375
-
### SX1278 Module Wiring ( Required if not using standard configuraton )
383
+
### SX1278 Module Wiring ( Required if not using standard configuration )
376
384
385
+
```plaintext
377
386
RF_MODULE_CS ; SX1278 SPI Chip select
378
387
RF_MODULE_DIO0 ; SX1278 DIO0 PIN
379
388
RF_MODULE_RST ; SX1278 RST PIN
380
389
RF_MODULE_DIO1 ; SX1278 DIO1 PIN
390
+
```
381
391
382
392
### CC1101 Module Options
383
393
394
+
```plaintext
384
395
RF_CC1101 ; Enable support for CC1101 Transceiver
385
396
NO_DEAF_WORKAROUND ; Workaround for issue #16 ( by default the workaround is enabaled )
397
+
```
386
398
387
399
### CC1101 Module Wiring
388
400
401
+
```plaintext
389
402
RF_MODULE_CS ; CC1101 SPI Chip select
390
403
RF_MODULE_GDO0 ; CC1101 GDOO PIN
391
404
RF_MODULE_GDO2 ; CC1101 GDO2 PIN
405
+
```
392
406
393
-
## RF Module SPI Wiring ( Required if not using standard configuraton )
407
+
## RF Module SPI Wiring ( Required if not using standard configuration )
394
408
395
409
When using a non standard SPI configuration ( Standard config is SCK - 18, MISO - 19, MOSI - 23, CS - 5)
396
410
411
+
```plaintext
397
412
RF_MODULE_SCK ; SPI Clock
398
413
RF_MODULE_MISO ; SPI Serial Output
399
414
RF_MODULE_MOSI ; SPI Serial Input
400
415
RF_MODULE_CS ; SPI Chip select
416
+
```
401
417
402
418
## Porting approach
403
419
404
420
Copying src files
405
421
422
+
```plaintext
406
423
Copying rtl_433/src abuf.c to src/rtl_433
407
424
Copying rtl_433/src bitbuffer.c to src/rtl_433
408
425
Copying rtl_433/src compat_time.c to src/rtl_433
@@ -414,15 +431,19 @@ Copying rtl_433/src output_log.c to src/rtl_433
414
431
Copying rtl_433/src pulse_data.c to src/rtl_433
415
432
Copying rtl_433/src r_util.c to src/rtl_433
416
433
Copying rtl_433/src util.c to src/rtl_433
434
+
```
417
435
418
436
These src files need copying and updating
419
437
438
+
```shell
420
439
cp ../rtl_433/src/pulse_analyzer.c ../src/rtl_433
421
440
cp ../rtl_433/src/pulse_slicer.c ../src/rtl_433
422
441
cp ../rtl_433/src/r_api.c ../src/rtl_433
442
+
```
423
443
424
444
Copying include files
425
445
446
+
```plaintext
426
447
Copying rtl_433/include abuf.h to include
427
448
Copying rtl_433/include bitbuffer.h to include
428
449
Copying rtl_433/include compat_time.h to include
@@ -441,19 +462,22 @@ Copying rtl_433/include r_device.h to include
441
462
Copying rtl_433/include r_util.h to include
442
463
Copying rtl_433/include rfraw.h to include
443
464
Copying rtl_433/include util.h to include
465
+
```
444
466
445
467
These include files need copying and updating
446
468
469
+
```shell
447
470
cp ../rtl_433/include/data.h ../include
448
471
cp ../rtl_433/include/pulse_data.h ../include
449
472
cp ../rtl_433/include/r_private.h ../include
450
473
cp ../rtl_433/include/rtl_433.h ../include
474
+
```
451
475
452
476
## Codebase conflicts
453
477
454
478
* ESPiLight and rtl_433 conflict on silvercrest
455
479
456
-
```
480
+
```plaintext
457
481
.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: Warning: size of symbol `silvercrest' changed from 4 in .pio/build/rtl_433-9e0770/libb28/libESPiLight.a(protocol.c.o) to 76 in .pio/build/rtl_433-9e0770/lib395/librtl_433_ESP.a(silvercrest.c.o)
458
482
```
459
483
@@ -477,5 +501,5 @@ January 2023
477
501
*[RTL 433 ON ESP32 DEVICE - MQTT HOME ASSISTANT](https://youtube.com/watch?v=H-JXWbWjJYE&feature=shares)
478
502
*[Using low-cost wireless sensors in the unlicensed bands](https://lwn.net/Articles/921497/)
479
503
480
-
Febuary 2023
504
+
February 2023
481
505
*[OpenMQTTGateway Connects Many Things to Your Home Automation](https://www.youtube.com/watch?v=_gdXR1uklaY)
0 commit comments