-
Notifications
You must be signed in to change notification settings - Fork 122
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
Receiving codes not ok. #5
Comments
I do not own a PT2260 remote control. I will need the exact timing of the remote, SYNC bit, '1' and '0' bit. |
The firmware has one issue more, it receives codes not send "NOISE" I receive with this firmware over 200K codes in 12 hours. For PT2264 I have these timings. Maybe having a look at the RCSwitch library https://github.com/sui77/rc-switch.git helps you implement timings for other remotes to. The library supports the following remotes.
I hope this helps you let me know when you have a update and I will test it. |
@AlbertWeterings Right now the source is checking the PT2260 remotes in a range from 9000-11000µs. The second is maybe this line: And this sync check:
The SYNC_LOW == 0 so SYNC_LOW - SYNC_TOLERANCE_0xA1 (1000µs) will produce 0xFC18 Try this short fix in RF_Protocols.h:
This will disable the check on the positive sync and have a SYNC_LOW range from 14000-16000µs. As I said before I don't own a remote with the PT2260 chip so I can't test it... |
Thank you for searching a sollution. Can you compile this into a HEX than I will flash it right away and test if it works. I'm not able to build the HEX myself at the moment. |
@Portisch I have couple of devices that came with Itead's RF Bridge bundle - PIR, door one and remote. They are with 1/3 (25/75 as written in proto definitions here) split for bit pulses. PIR (unmarked, maybe 2260) observed during the day has LOW sync time of 12470..12600µS I am only in the process of tweaking values, but would it make sense to cover all of possible times? Or maybe use different tolerance value, with sync low value at 12500 and ~3000 sync tolerance for PT2260 only. Also, reading rc-switch sources and wiki, the pdf also mentions this - there is a single pulse before the LOW part in sync (1/31 split). I've just ordered some rf receivers, nothing to check with yet besides the bridge. |
@AlbertWeterings Please try the new file: 16e8156 @mcspr Maybe this will be good test to first check on a SYNC_LOW >5000 and <20000µs. Like if the SYNC_LOW is 14400µs the SYNC_HIGH should be than ~464µs. |
@Portisch Sorry it still doesn't receive codes from PT2264. please note the values I have given are the values as they appear in the bridge with original EFM8 firmware. I'm also still receiving "noise" if I set the bridge in learning mode within 5 sec I receive random codes. Will try to figure out timing later today by measuring them on a oscilloscope. |
@AlbertWeterings I have done a new commit e097667. |
@Portisch it is now decoding PT2264 perfect, but it doesn't decode EV1527 anymore. It now also stopped receiving noise b.t.w. Today I have the setup in front of my at my desk so if you want me to experiment just ask. |
Now it should work: 345af76 A test with this simulated remotes where succesfull:
|
@Portisch I can confirm it is now decoding both PT2264 and EV1527. Maybe @mcspr can test this also on his Sonoff sensors now. |
I added an extra duty cycle check on each received bit, may this filter the noise: 3f2a756 Before it just have recognized a bit 0 if it wasn't a bit 1. |
@Portisch just loaded the code I will now monitor if it is still receiving noise. As I have time today I will also have a look at the transmitting issue reported. |
@Portisch Yeah, duty cycle check did it. I am not seeing anything besides radios explicitly activated, just like original firmware. |
@Portisch I don't know if this needs to be checked. If you take it out I will try if it still works. For now I can confirm the Sonoff bridge is not sending anything, not with and not without raw support. |
@Portisch : Still no noise on the receiver that's great !!! Communication between ESP and EFM8 - Nothing is transmitted. Transmitter is connected to P0.0 PIN2 of the EFM8 according to schematic. Raw support on. [FROM EFM8] Received 0xAA Raw support off. [FROM EFM8] Received 0xAA |
Lets go to transmit issue #2 |
Not only sending RF codes doen't go very well at the moment as reported by @franky29. I have flashed multiple versions found at https://github.com/rhx/RF-Bridge-EFM8BB1 and https://github.com/Portisch/RF-Bridge-EFM8BB1 With both I was still able to receive correct codes from a EV1527 remote but receiving codes from a PT2264 remote completely stopped working.
A other downside effect is that somehow out of nothing my unit seemed to receive over 400 codes in less than 15 min where it only received about 100 codes in the past two months.
The text was updated successfully, but these errors were encountered: