Skip to content
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 a protocol.... #178

Open
MrSJDDevelopments opened this issue Aug 3, 2024 · 1 comment
Open

Adding a protocol.... #178

MrSJDDevelopments opened this issue Aug 3, 2024 · 1 comment

Comments

@MrSJDDevelopments
Copy link

MrSJDDevelopments commented Aug 3, 2024

Hi All,

Ive successfully managed to dump my AC remote & i believe I've managed to gather the correct info required to be able to control it through this library. Is there any possibility it could be added or someone could help me add it?.

----- AC Unit brand -----
electriQ - [I believe its a rebadge / redesign of a TROTEC unit]

----- Protocol ------
TROTEC_3550 - Reported protocol when using IRremoteDumpV3

----- Code -----
0x5503000100002180FA (72 Bits)

----- Raw Dump -----

decoded: Power: On, Mode: 1 (Cool), Temp: 16C, Fan: 2 (Medium), Swing(V): On, Timer: Off

rawData[147] = {12038, 5156,  518, 524,  572, 1974,  518, 524,  572, 1974,  520, 522,  572, 1974,  518, 526,  572, 1976,  518, 524,  518, 524,  518, 524,  494, 548,  518, 524,  496, 548,  570, 1974,  572, 1974,  496, 548,  518, 526,  518, 524,  518, 526,  494, 550,  494, 548,  494, 548,  518, 524,  518, 524,  494, 548,  518, 526,  518, 524,  518, 524,  518, 526,  494, 550,  572, 1974,  518, 524,  494, 548,  518, 524,  494, 548,  518, 524,  518, 526,  494, 548,  518, 526,  494, 548,  518, 526,  494, 548,  494, 548,  494, 548,  494, 550,  494, 548,  518, 526,  494, 550,  516, 526,  572, 1974,  518, 526,  494, 548,  494, 548,  494, 548,  570, 1976,  570, 1974,  494, 548,  518, 526,  494, 550,  496, 548,  494, 550,  494, 548,  494, 550,  570, 1974,  570, 1976,  570, 1976,  570, 1976,  570, 1974,  494, 550,  570, 1976,  494, 548,  494};  // TROTEC_3550
state[9] = {0x55, 0x03, 0x00, 0x01, 0x00, 0x00, 0x21, 0x80, 0xFA};

----- Trotec3550 Protocol Structure -----

[9 bits] = {0x55, 0x03, 0x00, 0x01, 0x00, 0x00, 0x21, 0x80, 0xFA};
// Byte 0 - Intro (0x55)
// Byte 1 - SwingV, Power, TimerSet, TempC
// Byte 2 - TimerHrs
// Byte 3 - TempF
// Byte 4 - Unknown
// Byte 5 - Unknown
// Byte 6 -  Mode, Fan
// Byte 7 - Celsius // DegC or DegF
// Byte 8 - Sum

----- Timings -----

Trotec3550HdrMark = 12000;
Trotec3550HdrSpace = 5130;
Trotec3550BitMark = 550;
Trotec3550OneSpace = 1950;
Trotec3550ZeroSpace = 500;
@ToniA
Copy link
Owner

ToniA commented Aug 10, 2024

Hi, I'm happy to receive pull requests to this library. You could refer to PR https://github.com/ToniA/arduino-heatpumpir/pull/151/files, for example, to see how a new model is added:

  • you need to add your new model into the HeatpumpIRFactory, so that you can create new instances of it
  • you need to provide the implementation
    • the header file should contain all constants, and the definition of your device-specific class, which has the HeatpumpIR class as its parent class
    • the cpp file has the implementation, in the simplest form it has a constructor, generic public 'send' method (transforms the generic parameter format into device-specific parameter format, validates parameter ranges etc) and a private 'send' method which will then implement the actual sending of the IR signal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants