Samsung Air-conditioning Control

This project is an exercise in reverse engineering the Samsung Infra Red protocol for control of some Samsung Air-conditioning Units.

The ultimate goal is to monitor building temperature and then control the Air-conditioning to ensure comfort and economy (a smarter thermostat)

The following logic analysis shows the signal for “Turn On” sent by a Samsung remote control for Samsung air-conditioning.

Samsung On Code

Here are the extracted timestamps for the sequence “ON”:

Delay in milliseconds Cumulative Time (milliseconds) Cumulative Time (uSeconds)
0 .0
3 3.0 3,000
9 12.0 12,000
0.5 12.5 12,500
0.5 13.0 13,000
0.5 13.5 13,500
1.5 15.0 15,000
0.5 15.5 15,500
0.5 16.0 16,000
0.5 16.5 16,500
0.5 17.0 17,000
0.5 17.5 17,500
0.5 18.0 18,000
0.5 18.5 18,500
0.5 19.0 19,000
0.5 19.5 19,500
0.5 20.0 20,000
0.5 20.5 20,500
0.5 21.0 21,000
0.5 21.5 21,500
0.5 22.0 22,000
0.5 22.5 22,500
1.5 24.0 24,000
0.5 24.5 24,500
0.5 25.0 25,000
0.5 25.5 25,500
0.5 26.0 26,000
0.5 26.5 26,500
1.5 28.0 28,000
0.5 28.5 28,500
1.5 30.0 30,000
0.5 30.5 30,500
1.5 32.0 32,000
0.5 32.5 32,500
1.5 34.0 34,000
0.5 34.5 34,500
1.5 36.0 36,000
0.5 36.5 36,500
0.5 37.0 37,000
0.5 37.5 37,500
0.5 38.0 38,000
0.5 38.5 38,500
0.5 39.0 39,000
0.5 39.5 39,500
0.5 40.0 40,000
0.5 40.5 40,500
0.5 41.0 41,000
0.5 41.5 41,500
0.5 42.0 42,000
0.5 42.5 42,500
0.5 43.0 43,000
0.5 43.5 43,500
0.5 44.0 44,000
0.5 44.5 44,500
0.5 45.0 45,000
0.5 45.5 45,500
0.5 46.0 46,000
0.5 46.5 46,500
0.5 47.0 47,000
0.5 47.5 47,500
0.5 48.0 48,000
0.5 48.5 48,500
0.5 49.0 49,000
0.5 49.5 49,500
0.5 50.0 50,000
0.5 50.5 50,500
0.5 51.0 51,000
0.5 51.5 51,500
0.5 52.0 52,000
0.5 52.5 52,500
0.5 53.0 53,000
0.5 53.5 53,500
0.5 54.0 54,000
0.5 54.5 54,500
0.5 55.0 55,000
0.5 55.5 55,500
0.5 56.0 56,000
0.5 56.5 56,500
0.5 57.0 57,000
0.5 57.5 57,500
0.5 58.0 58,000
0.5 58.5 58,500
0.5 59.0 59,000
0.5 59.5 59,500
0.5 60.0 60,000
0.5 60.5 60,500
0.5 61.0 61,000
0.5 61.5 61,500
0.5 62.0 62,000
0.5 62.5 62,500
0.5 63.0 63,000
0.5 63.5 63,500
0.5 64.0 64,000
0.5 64.5 64,500
0.5 65.0 65,000
0.5 65.5 65,500
0.5 66.0 66,000
0.5 66.5 66,500
0.5 67.0 67,000
0.5 67.5 67,500
0.5 68.0 68,000
0.5 68.5 68,500
1.5 70.0 70,000
0.5 70.5 70,500
1.5 72.0 72,000
0.5 72.5 72,500
1.5 74.0 74,000
0.5 74.5 74,500
1.5 76.0 76,000
0.5 76.5 76,500
2 78.5 78,500
3 81.5 81,500
9 90.5 90,500
0.5 91.0 91,000
1.5 92.5 92,500
0.5 93.0 93,000
0.5 93.5 93,500
0.5 94.0 94,000
0.5 94.5 94,500
0.5 95.0 95,000
0.5 95.5 95,500
0.5 96.0 96,000
0.5 96.5 96,500
0.5 97.0 97,000
0.5 97.5 97,500
0.5 98.0 98,000
0.5 98.5 98,500
0.5 99.0 99,000
0.5 99.5 99,500
0.5 100.0 100,000
0.5 100.5 100,500
0.5 101.0 101,000
1.5 102.5 102,500
0.5 103.0 103,000
0.5 103.5 103,500
0.5 104.0 104,000
0.5 104.5 104,500
0.5 105.0 105,000
0.5 105.5 105,500
0.5 106.0 106,000
1.5 107.5 107,500
0.5 108.0 108,000
1.5 109.5 109,500
0.5 110.0 110,000
1.5 111.5 111,500
0.5 112.0 112,000
0.5 112.5 112,500
0.5 113.0 113,000
1.5 114.5 114,500
0.5 115.0 115,000
1.5 116.5 116,500
0.5 117.0 117,000
1.5 118.5 118,500
0.5 119.0 119,000
1.5 120.5 120,500
0.5 121.0 121,000
1.5 122.5 122,500
0.5 123.0 123,000
1.5 124.5 124,500
0.5 125.0 125,000
1.5 126.5 126,500
0.5 127.0 127,000
1.5 128.5 128,500
0.5 129.0 129,000
0.5 129.5 129,500
0.5 130.0 130,000
0.5 130.5 130,500
0.5 131.0 131,000
0.5 131.5 131,500
0.5 132.0 132,000
0.5 132.5 132,500
0.5 133.0 133,000
0.5 133.5 133,500
0.5 134.0 134,000
0.5 134.5 134,500
0.5 135.0 135,000
0.5 135.5 135,500
0.5 136.0 136,000
0.5 136.5 136,500
0.5 137.0 137,000
0.5 137.5 137,500
0.5 138.0 138,000
0.5 138.5 138,500
0.5 139.0 139,000
0.5 139.5 139,500
0.5 140.0 140,000
1.5 141.5 141,500
0.5 142.0 142,000
0.5 142.5 142,500
0.5 143.0 143,000
0.5 143.5 143,500
0.5 144.0 144,000
1.5 145.5 145,500
0.5 146.0 146,000
1.5 147.5 147,500
0.5 148.0 148,000
1.5 149.5 149,500
0.5 150.0 150,000
0.5 150.5 150,500
0.5 151.0 151,000
1.5 152.5 152,500
0.5 153.0 153,000
1.5 154.5 154,500
0.5 155.0 155,000
0.5 155.5 155,500
0.5 156.0 156,000
0.5 156.5 156,500
0.5 157.0 157,000
0.5 157.5 157,500
0.5 158.0 158,000
0.5 158.5 158,500
0.5 159.0 159,000
0.5 159.5 159,500
0.5 160.0 160,000
0.5 160.5 160,500
0.5 161.0 161,000
0.5 161.5 161,500
0.5 162.0 162,000
1.5 163.5 163,500
0.5 164.0 164,000
1.5 165.5 165,500
0.5 166.0 166,000
1.5 167.5 167,500
0.5 168.0 168,000
1.5 169.5 169,500
0.5 170.0 170,000

 

 

Change is the only constant…