Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active Receiver Switching #936

Merged
merged 12 commits into from
May 11, 2021
Merged

Active Receiver Switching #936

merged 12 commits into from
May 11, 2021

Conversation

NorthernMan54
Copy link
Collaborator

Switching of the active receiver module is available between the RF, RF2, RTL_433 and Pilight Gateway modules, allowing for changing of signal decoders without redploying the openMQTTGateway package. Sending a JSON message to the command topic of the desired receiver will change the active receiver module. This will resolve issue #848

Other minor adjustments/improvements

1 - Improved startup serial logging that includes

  • OpenMQTTGateway Version
  • OpenMQTTGateway Modules

2 - Trace logging of full Gateway module command topic to assist in determining command topic

  • Enabled in RF, RF2, PiLight and RTL_433

3 - Updated RTL_433 Documentation to only include enabled ASK/OOK ( an oops from the original release )
device decoders

4 - Trace logging of MQTT Callback topic

Regression testing was completed with an ESP32 connected to a CC1101 transceiver and with a ESP32 connected to a RXB6 Receiver module. And RF, PiLight and RTL_433 were confirmed to be able to receive signals. I could not confirm RF2 was able to receive as I do not have an appropriate device to test with. Will need to watch this during the development phase in case it does not work correctly.

My Current Backlog

[x] Active switching between signal receivers ( RF, PiLight and RTL_433 ) and a bonus RF2
[ ] Home Assistant Discovery for RTL_433, including Black/White listing devices
[ ] FSK Modulation support for rtl_433_ESP ( waiting for feedback on the feature )
[ ] RTL_433 support for the RX127X Transceiver Chipset

Northern Man added 6 commits April 28, 2021 20:38
Switching of the active receiver module is available between the RF,
RF2, RTL_433 and Pilight Gateway modules, allowing for changing of
signal decoders without redploying the openMQTTGateway package.
Sending a JSON message to the command topic of the desired receiver
will change the active receiver module.

Other minor adjustments/improvements

1 - Improved startup serial logging that includes
- OpenMQTTGateway Version
- OpenMQTTGateway Modules

2 - Trace logging of full Gateway module command topic
 - Enabled in RF, RF2, PiLight and RTL_433

3 - Updated RTL_433 Documentation to only include enabled ASK/OOK
device decoders

4 - Trace logging of MQTT Callback topic
@NorthernMan54
Copy link
Collaborator Author

Just nodemcuv2-all-test failed, need to dig deeper into this

/home/runner/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcuv2-all-test/firmware.elf section `.text1' will not fit in region `iram1_0_seg'
9455
collect2: error: ld returned 1 exit status
9456
*** [.pio/build/nodemcuv2-all-test/firmware.elf] Error 1

Added valueAsASubject support for rtl_433_ESP

- model and id keys are appended to message topic
@1technophile 1technophile added this to the v0.9.7 milestone May 7, 2021
@NorthernMan54
Copy link
Collaborator Author

Removed RF, RF2 and PiLight definition from build to reduce memory footprint of nodemcu build all.

@NorthernMan54
Copy link
Collaborator Author

RF2 has been validated as being able to both receive and transmit ( ESP32 with CC1101 ). I just used two units and had one transmit the RF2 signal and the other setup to receive the RF2 signal.

This should be good to go.

@1technophile 1technophile self-requested a review May 8, 2021 00:28
docs/use/rf.md Outdated Show resolved Hide resolved
main/ZgatewayPilight.ino Outdated Show resolved Hide resolved
main/ZgatewayRF.ino Outdated Show resolved Hide resolved
main/ZgatewayRF.ino Outdated Show resolved Hide resolved
@1technophile
Copy link
Owner

Thanks!

@1technophile 1technophile merged commit f699068 into 1technophile:development May 11, 2021
@NorthernMan54
Copy link
Collaborator Author

Tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants