Skip to content

Commit

Permalink
Timing & template changes for Samsung FJM series
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniA committed Mar 28, 2017
1 parent 199c113 commit 077f3af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions SamsungHeatpumpIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void SamsungAQVHeatpumpIR::sendSamsung(IRSender& IR, uint8_t powerMode, uint8_t
IR.space(0);
}

// Samsung FJM (RJ040F2HXEA / 2XMH026FNEA) heatpump control (remote control P/N ARH-465)
// Samsung FJM (RJ040F2HXEA / MH026FNEA) heatpump control (remote control P/N ARH-465)

void SamsungFJMHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd)
{
Expand Down Expand Up @@ -293,7 +293,8 @@ void SamsungFJMHeatpumpIR::sendSamsung(IRSender& IR, uint8_t powerMode, uint8_t

static const uint8_t samsungHeader[] PROGMEM = { 0x02, 0x92, 0x0F, 0x00, 0x00, 0x00, 0xF0 };

uint8_t samsungTemplate[] = { 0x01, 0x00, 0x0E, 0x01, 0x00, 0x00, 0xF0 };
// uint8_t samsungTemplate[] = { 0x01, 0x00, 0x0E, 0x01, 0x00, 0x00, 0xF0 }; //Orig
uint8_t samsungTemplate[] = { 0x01, 0x00, 0x0F, 0x01, 0x00, 0x00, 0xF0 };
// 0 1 2 3 4 5 6
// 7 8 9 10 11 12 13 <- byte in whole sequence

Expand Down
13 changes: 9 additions & 4 deletions SamsungHeatpumpIR.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Samsung AQV12PSBN / AQV09ASA heatpump control (remote control P/N zzz)
Samsung FJM (RJ040F2HXEA / 2XMH026FNEA) heatpump control (remote control P/N ARH-465)
Samsung FJM (RJ040F2HXEA / MH026FNEA) heatpump control (remote control P/N ARH-465)
*/
#ifndef SamsungHeatpumpIR_h
#define SamsungHeatpumpIR_h
Expand All @@ -14,13 +14,18 @@
#define SAMSUNG_AIRCON1_ONE_SPACE 1500
#define SAMSUNG_AIRCON1_ZERO_SPACE 500
#define SAMSUNG_AIRCON1_MSG_SPACE 2000

#define SAMSUNG_AIRCON2_HDR_MARK 2900
/* Orig
#define SAMSUNG_AIRCON2_HDR_MARK 3000
#define SAMSUNG_AIRCON2_HDR_SPACE 9150
#define SAMSUNG_AIRCON2_BIT_MARK 360
#define SAMSUNG_AIRCON2_ONE_SPACE 1600
#define SAMSUNG_AIRCON2_ZERO_SPACE 630

*/
#define SAMSUNG_AIRCON2_HDR_MARK 2920
#define SAMSUNG_AIRCON2_HDR_SPACE 8960
#define SAMSUNG_AIRCON2_BIT_MARK 490
#define SAMSUNG_AIRCON2_ONE_SPACE 1560
#define SAMSUNG_AIRCON2_ZERO_SPACE 546

// Samsung codes
#define SAMSUNG_AIRCON1_MODE_AUTO 0x00 // Operating mode
Expand Down

0 comments on commit 077f3af

Please sign in to comment.