-
Notifications
You must be signed in to change notification settings - Fork 839
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
Adding support for Sanyo AC 72bit protocol #1211
Comments
Hey ya @terrapinlogo I've left some questions on the spreadsheet. It looks like you've done excellent work on the analysis. |
No worries, I have responded to your questions and posted screenshots of the manual pages in sheet 2, they may explain better than I have. |
* `sendSanyoAc()` & `decodeSanyoAc()` support * Update unit tests. * Add basic send and decode unit tests for new protocol. For #1211
@terrapinlogo Hey ya, Can you please download and test the basic support for this protocol I just added in branch: https://github.com/crankyoldgit/IRremoteESP8266/tree/SanyoAc Please let me know how it goes capturing the real remote signals. If it seems to work fine and match up with your collected data, I'll start on the "detailed" support for the protocol. |
I have tested it out and could only get it to detect if I turned the tolerance up to about 50%. I figured the timings were wrong so I took some more recordings with the remote both hot and cold. The data is in the 3rd sheet. I did some analysis and the timings vary by less than 20% so the default 25% should have been plenty. |
Thanks for the feedback. I'll try to look into it shortly. Can you please provide the full |
@terrapinlogo How's the latest update fair? It's based on your spreadsheet averages. |
* Add Power, Mode, Temp, & Fan speed settings. * Add to Common A/C API. * Unit tests for Power, Mode, Temp, & Fan speed. * Update existing Unit tests. * Misc IRac style cleanup. For #1211
I've also added some of the detailed support now as well to that branch.
|
* Add vertical Swing setting support. * This should be the last additional setting for the Common AC API support. The remainder are `IRSanyoAc` class only. For #1211
Vertical Swing support added as well. |
* Refactor set & get functions for temp. * Add Sensor (location) and Sensor Temp. * Default to "Wall"/"AC Unit" for sensor location for Common A/C API. Also use desired temp as sensor temp. For #1211
Now with Sensor (location) & the Sensor's Temp.... |
@terrapinlogo I'm having difficulty locating where the "on timer" time value is being stored/set in the message. Can you please do some tests/collect some data/analysis to find where it is stored/set/passed on etc? I can't see where it is being transmitted in your spreadsheet. |
As far as I could see it was never sent. I suspect the remote just sends an on signal when it needs to turn on |
I'll do a bit of testing today to find out |
Just tested it and it seems to be receiving everything correctly.
I just left it recording for an hour with the on timer set. The remote sets the bits to enable the timer and enter standby mode (00 on the two power bits) when the button is pressed, then an hour later it sends an on command and clears the timer bits (line 101,102 in the spreadsheet). It also sets another bit that I have never seen before in the 4th byte. Some sort of On timer expiry flag I suspect. |
Great.
Okay. If that is the case, I might leave support for the "On Timer" out. |
Reported as working in #1211 (comment)
Beep control added, per conversation in the Spreadsheet. I think that's it for it now, unless you find an (new) issue. The PR will be merged (and close this issue) once the code review is done. |
* Add `toString()` unit test coverage for the Off Timer. For #1211
* Add basic send and decode unit tests for new protocol. * Add various protocol settings: - Power - Desired Temp - Operating Mode - Fan Speed - Vertical Swing - Sleep / Night setback - Off Timer - Temp Sensor Location & Value - Beep - Checksum * Add to Common A/C API. * Unit tests for Sanyo A/C Fixes #1211
_v2.7.9 (20200730)_ **[Bug Fixes]** - Fix mistake in `IRLGAc::convertFan()`. (#1214 #1215) **[Features]** - Add Sanyo A/C (72 bit) protocol with detailed support. (#1211 #1218) - Added modification to Midea unit to support Danby DAC AC units. (#1213) - ToshibaAc: Rework to support Carrier models and add more settings. (#1205 #1212) - Add detailed support for Airwell A/C protocol. (#1202 #1204) **[Misc]** - Pioneer: Update timings based on user collected data. (#1220 #1222) - Samsung36: Adjust timings & update unit tests. (#1220 #1221) - Consolidate common code: Inverted byte pairs (#1219) - Remove duplicate code from `IRToshibaAC::calcChecksum()` (#1207) - Update missing/incorrect doxygen comments (#1203)
_v2.7.9 (20200730)_ **[Bug Fixes]** - Fix mistake in `IRLGAc::convertFan()`. (#1214 #1215) **[Features]** - Add Sanyo A/C (72 bit) protocol with detailed support. (#1211 #1218) - Added modification to Midea unit to support Danby DAC AC units. (#1213) - ToshibaAc: Rework to support Carrier models and add more settings. (#1205 #1212) - Add detailed support for Airwell A/C protocol. (#1202 #1204) **[Misc]** - Pioneer: Update timings based on user collected data. (#1220 #1222) - Samsung36: Adjust timings & update unit tests. (#1220 #1221) - Consolidate common code: Inverted byte pairs (#1219) - Remove duplicate code from `IRToshibaAC::calcChecksum()` (#1207) - Update missing/incorrect doxygen comments (#1203)
FYI, the aforementioned changes have been included in the latest release (v2.7.9) of the library. |
I have two Sanyo AC units that I have decoded that are not currently supported.
SAP-K121AHA Remote RCS-2HS4E Testing was done with this remote mostly, quick check with the other remote and it appears to be identical protocol
SAP-K242AH Remote RCS-2S4E
Manual https://www.manualslib.com/manual/957988/Sanyo-Sap-K91aha.html#product-SAP%E2%80%93K121AHA
Raw data captured and exported from analysIR
Flap 6/Top
Flap 5
Heating
Flap 4
flap 3
Flap 2
Flap 1 / Bottom
On
Using the following settings for analysIR I can reliably decode the remotes. The timings seem to vary a lot with temperature and these have yet to fail.
Header Mark = 8500
Header Space = 4100
Mark = 625
Space0 = 500
Space1 = 1500
Delta = 200
Bits = 72
Carrier = 38000? guessing
I have worked out how each button corresponds to the bits here:
https://docs.google.com/spreadsheets/d/1dYfLsnYvpjV-SgO8pdinpfuBIpSzm8Q1R5SabrLeskw/edit?usp=sharing
The only bits I am unsure of are the address bits, the remotes support addresses but changing them requires breaking a tab and the property is a rental so I would rather not permanently damage anything.
The text was updated successfully, but these errors were encountered: