nimaltd / ask

ASK Remote Receiver/Sender (EV1527,PT2262,PT2264 and ... )
GNU General Public License v3.0
79 stars 18 forks source link

cant receive data #3

Open leventsumaksau opened 3 years ago

leventsumaksau commented 3 years ago

hello i tried your code and watched your youtube video. I couldn't get any data. can you please help me?

nimaltd commented 3 years ago

Hello. Do you get external interrupt? Watch by set breakpoint

luweiqi commented 1 year ago

Hello ,which interrupt should be set? rising edge falling edge or both? Thank you very much!

nimaltd commented 1 year ago

Hello. Both

JohnboyK commented 5 months ago

Hi, at first thank you to the author to join this library. I tried out the example to receive data on an ESP32 from an EV1527 433MHz-button and was NOT able to receive any data. Due to compiling-problems with double definitions with the esp32_hal. The code have not many comments so it was hard to understand whats going wrong. So I decided to copy all the code from header-files and ask.c into my code of example usage, cleared all double definitions and removed the indirect calls to ESP32 fitting procedure calls. This reduces the portability to other processor types, but for ESP32 and ESP8266 on Arduino it should work. NOW it works for me and I RECEIVE Data successful from my EV1527 button. My suggestion to the author of this library: Please prepare a full functional example for ESP32 send and receive. In addition I would appreciate if you join your knowledge HOW you detect the the frame-timing and differentiate between '0' and '1' bit. I tried to reverse engineering this part, but was not successful to understand what the code do... Thank you and greetings from Vienna / Austria / Europe

nimaltd commented 5 months ago

@JohnboyK Hello. it is weird, I have tried ESP32-Arduino without any problem. detecting start of frame: stay more than 5 ms in low. after that, store any change with time stamp into a buffer. then, check all buffer and recognizing data. for example 0: |----|__
1: __|---------|___