Skip to content

Commit

Permalink
Signal and Receiver Tuning (#60)
Browse files Browse the repository at this point in the history
* Signal Tuning for Philips AJ3650

Receiver logic was dropping first and last bit of signal

* Update philips.md

* Receiver Tuning

* Longer term test - south-lilygo

* Remove spaces from skylink model

* Skylink

* Further tuning from @diepeterpan

* Final Test Run

* Final before release

* Fix failed tests
  • Loading branch information
NorthernMan54 authored Feb 26, 2023
1 parent 3b22bac commit 1afb885
Show file tree
Hide file tree
Showing 15 changed files with 1,230 additions and 846 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is the [LILYGO® LoRa32 V2.1_1.6.1 433Mhz](https://www.lilygo.cc/products/l

The initial port implements only enables a subset of the available modulations and device decoders, and is limited to devices I have access to and can test with.

* One comment about the cc1101 transceiver module, I have found that the receiver is not as sensitive as a rtl_sdr and I get about 1/2 the range.
* One comment about the cc1101 transceiver module, I have found that the receiver is not as sensitive as a rtl_sdr and I get about 1/2 the range.

## Enabled rtl_433 Demodulation modules

Expand Down Expand Up @@ -102,6 +102,8 @@ Registering protocol [99] "Hyundai WS SENZOR Remote Temperature Sensor"
Registering protocol [100] "WT0124 Pool Thermometer"
Registering protocol [101] "X10 RF"
Registering protocol [102] "X10 Security"
Registering protocol [103] "Cotech 36-7959, SwitchDocLabs FT020T wireless weather station with USB"
Registering protocol [104] "Honeywell Door/Window Sensor, 2Gig DW10/DW11, RE208 repeater"
```

The gaps in the numbers are device decoders disabled by default.
Expand All @@ -126,6 +128,10 @@ This is the [AI-Thinker R01 - SX1278](https://docs.ai-thinker.com/en/lora/man) m

This is the [ESP32 DOIT DevKit V1](https://docs.platformio.org/en/latest/boards/espressif32/esp32doit-devkit-v1.html) board I used for development.

Wiring for ESP32 DOIT DevKit V1 and AI-Thinker R01 - SX1278

![image](https://github.com/diepeterpan/rtl_433_ESP/blob/master/docs/Ai-Thinker-Ra-01-Schematic-Diagram.png)

## Wiring and Building the Example

Details are [here](example/OOK_Receiver/README.md)
Expand Down Expand Up @@ -169,7 +175,7 @@ MY_DEVICES ; Only include my personal subset of devices
NO_DEAF_WORKAROUND ; Workaround for issue #16 ( by default the workaround is enabaled )
PUBLISH_UNPARSED ; Enable publishing of MQTT messages for unparsed signals, e.g. {model":"unknown","protocol":"signal parsing failed"…
RAW_SIGNAL_DEBUG ; display raw received messages
RSSI_SAMPLES ; Number of rssi samples to collect for average calculation, defaults to 50,000
RSSI_SAMPLES ; Number of rssi samples to collect for average calculation, defaults to 50,000
RSSI_THRESHOLD ; Delta applied to average RSSI value to calculate RSSI Signal Threshold, defaults to 9
RTL_DEBUG ; Enable RTL_433 device decoder verbose mode for all device decoders ( 0=normal, 1=verbose, 2=verbose decoders, 3=debug decoders, 4=trace decoding. )
RTL_VERBOSE=## ; Enable RTL_433 device decoder verbose mode, ## is the decoder # from the appropriate memcpy line in rtl_433_ESP.cpp
Expand Down Expand Up @@ -226,7 +232,7 @@ When using a non standard SPI configuration ( Standard config is SCK - 18, MISO
RF_MODULE_SCK ; SPI Clock
RF_MODULE_MISO ; SPI Serial Output
RF_MODULE_MOSI ; SPI Serial Input
RF_MODULE_CS ; SPI Chip select
RF_MODULE_CS ; SPI Chip select

## Porting approach

Expand All @@ -239,7 +245,7 @@ RF_MODULE_CS ; SPI Chip select

* Copy of only used files in src/rtl_433, with minimal modifications
- abuf.c - No changes made
- bitbuffer.c - No changes made
- bitbuffer.c - No changes made
- data.c - Defined out unneeded functions ( #ifndef ESP32 )
- decoder_util.c - No changes made
- list.c - No changes made
Expand All @@ -248,7 +254,7 @@ RF_MODULE_CS ; SPI Chip select
- r_util.c - No changes made
- util.c - No changes made

* include directory is a copy
* include directory is a copy
- abuf.h - No changes made
- am_analyze.h - No changes made
- baseband.h - No changes made
Expand Down Expand Up @@ -354,4 +360,4 @@ January 2023
* [Using low-cost wireless sensors in the unlicensed bands](https://lwn.net/Articles/921497/)

Febuary 2023
* [OpenMQTTGateway Connects Many Things to Your Home Automation](https://www.youtube.com/watch?v=_gdXR1uklaY)
* [OpenMQTTGateway Connects Many Things to Your Home Automation](https://www.youtube.com/watch?v=_gdXR1uklaY)
4 changes: 2 additions & 2 deletions contrib/skylink_ha-434tl.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ static int skylink_motion_callback(r_device *decoder, bitbuffer_t *bitbuffer)

/* Get time now */
data = data_make(
"model", "", DATA_STRING, "Skylink HA-434TL motion sensor",
"motion", "", DATA_STRING, motion ? "true" : "false",
"model", "", DATA_STRING, "Skylink_HA-434TL_motion",
"motion", "", DATA_INT, motion ? 1 : 0,
"id", "", DATA_STRING, code_str,
"raw", "", DATA_STRING, raw_str,
NULL);
Expand Down
Binary file added docs/Ai-Thinker-Ra-01-Schematic-Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sx1276_77_78_79.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion include/rtl_433_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@
DECL(wt1024) \
DECL(X10_RF) \
DECL(x10_sec) \
DECL(cotech_36_7959) \
DECL(honeywell) \
/* Add new decoders here. */
#define NUMOFDEVICES 102
#define NUMOFDEVICES 104
/* Add new decoders here. */
#else
/**
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/NorthernMan54/rtl_433_ESP.git"
},
"version": "0.1.6",
"version": "0.1.7",
"license": "GPL-3.0",
"frameworks": "arduino",
"platforms": [
Expand Down
Loading

0 comments on commit 1afb885

Please sign in to comment.