ask icon indicating copy to clipboard operation
ask copied to clipboard

cant receive data

Open leventsumaksau opened this issue 4 years ago • 5 comments

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

leventsumaksau avatar Dec 28 '20 23:12 leventsumaksau

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

nimaltd avatar Dec 29 '20 05:12 nimaltd

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

luweiqi avatar Feb 05 '23 06:02 luweiqi

Hello. Both

nimaltd avatar Feb 05 '23 07:02 nimaltd

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

JohnboyK avatar Apr 23 '24 09:04 JohnboyK

@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: |---------|_

nimaltd avatar Apr 26 '24 17:04 nimaltd