-
Notifications
You must be signed in to change notification settings - Fork 19
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
On ESP32 transceiver stops receiving after first transmission #2
Comments
Hey! May the force be with you obi wan |
Hi, Thx for your reply. The cover actions from my config look like this:
So I am calling the "endTransmission" via lambda but somehow it might not be setting the transceiver back to RX May the force be with you too :) |
Hi! this is my version of cc1101.h if you're interested
|
Do i still need to call the start transmission and stop transmission ? |
Yes, you absolutely do. You also have to call setRX the same way from yaml file if you want to set it back to RX mode after transmission. |
I'm new to HA and ESPHome. I already installed ESPHome to my ESP32 devkit C4. I connected my CC1101 like this because I had success with this config with another firmware. Could you please post your complete ESP32 yaml file? Where to put the cc1101.h? Where can I follow arbitrary RF signals being received? Once I found the interesting signal (like key presses from a remote) - how to define a "button" in HA to send (repeat) this signal? |
The complete yaml is any of the two yaml files in this repo. |
Here's a utility to analyze raw signals btw: |
I haven't tried it with the esp32 myself, but somebody did in the issues of this repo, try searching in the issues of this repo :) Regarding the file, you'll have to copy it to where EspHome stores its yaml files (google HomeAssistant file explorer or ssh), or maybe try including the the GitHub url of the file, it may work |
ssh'd into HA, placed @ob1w4nken0b1's
|
Use GPIO numbers: |
Eventually I used GPIOx and bare numbers in |
From there i suggest you read the remote_receiver and remote_transmitter components in the esphome docs abd then take a look at the utility I posted above. Good luck! |
Hello there, just a little piece of advice, I've the 433Mhz module, same yours, I've 8 pin, but I don't find any information about connection to esp32. Thanks ps: Do you think it's correct this: - platform: custom
lambda: |-
auto my_sensor = new CC1101(
GPIO18, // SCK
GPIO19, // MISO
GPIO23, // MOSI
GPIO02, // CSN
GPIO16, // GDO0
200, // bandwidth_in_khz
433.92 // freq_in_mhz
);
App.register_component(my_sensor);
return {my_sensor};
sensors:
id: transciver_1
name: "${name} RF RSSI"
unit_of_measurement: dBm
entity_category: diagnostic
remote_transmitter:
- id: transmitter_1
pin: GPIO16
carrier_duty_percent: 100%
remote_receiver:
- id: receiver_1
pin: GPIO16
dump:
- raw |
What do we need to add in the YAML with this? Thanks |
See the yaml file in this repo |
HI , Any chance of getting a copy of your yaml file as well please. |
Except you would have to modify the yaml to define the GDO2 pin, correct? |
did you make it work for esp32? |
Never got mine working. |
@brunopiras I believe CSN should be GPIO5 as shown here That said, I tried for a few days to get an ESP 32S working and gave up and just hooked up another 8266 and it worked right away. |
I never tried. You can google if the library I'm using is compatible with the esp32. The library is called ELECHOUSE_CC1101_SRC_DRV |
Sorry it is this one: https://github.com/LSatan/SmartRC-CC1101-Driver-Lib which derives from the one I mentioned. It states in the readme that the author made some fixes for the esp32. You may want to dig there |
Try the new cc1101 and yaml files. GDO2 not necessary in esp32 anymore. |
I can confirm ESP32 to be working with esphome with seperate RX/TX pins. |
Hi,
Thanks for the awesome work, I would really love to see this implemented as official component for ESPHome.
The only issue i have is that on ESP32 the transceiver stops receiving after the first transmission...I tested both basic and advanced .yaml configs from your repo so the issue seems to be in CC1101.h code
If you can give any clues about what can cause the issue i can test it
Regards
The text was updated successfully, but these errors were encountered: