jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.54k stars 384 forks source link

How can I get the raw data on DIO2 with interrupt ? #22

Closed AjJordy closed 5 years ago

AjJordy commented 5 years ago

I'm using a ESP32 and a RFM69. I saw something about use the receiveDirect() for this. But I dont know how to use. When I try to see the DIO1 there is the clock (I guess). But in the DIO2 there is noise.

My goal is capture the signal of a RF garage control or similar devices.

jgromes commented 5 years ago

Reading the raw data is not supported by the library and I'm not planning on adding it in the near future. Reasoning behind that is this feature probably wouldn't be used by many people.

The only thing receiveDirect() does is it puts the radio into direct reception mode, so that DIO1 and DIO2 act as serial clock and data output. I have never checked the output to be honest - I never had a use for the serial data stream.

giordand commented 4 years ago

@AjJordy , could you find any solution to this? I'm trying to do exactly the same thing. I have an sx1278 and a 434 mhz radio control

AjJordy commented 4 years ago

I'm using this https://github.com/rrobinet/RFM69X_Library

giordand commented 4 years ago

Ok, but I'm using a Mini SX1278 LoRa Transceiver Module

AjJordy commented 4 years ago

Looking for something like Continuous Mode, Promiscuous Mode. In my case, I needed to configure by SPI each register.

giordand commented 4 years ago

Yes, I did that and I can see that raw data changes when i press the button of my control, but i don't now how to save that signal in order to send it again