rc-switch
rc-switch copied to clipboard
control with more than one command
hello, I'm starting now with rf control analysis and I have some questions could someone help me?
I followed the tutorial to add a new protocol but it didn't work I took some samples with SimpleRcScanner and also some samples with an oscilloscope directly on the pin of esp32 are exactly the same as the sample from SimpleRcScanner. follow the data
Button1
5... 4... 3... 2... 1...
12087,607,1008,518,1083,535,1146,473,546,1083,489,1099,543,982,591,1042,487,1103,538,1116,1015,582,1039,487,1100,525,1097,506,514,1104,496,1119,1103,425,606,1026,499,1090,558,1078,488,1095,1066,460,649,1008,1124,473,544,1083,501,1100,1033,495,596,1025,1225,387
Reset your Arduino to scan again...
Button2
5... 4... 3... 2... 1...
12094,508,1013,598,1014,513,1097,522,499,1164,468,1115,504,1106,497,1031,585,1025,502,1115,1112,531,996,604,1005,523,1091,506,516,1094,518,1100,1015,652,474,1050,570,1015,511,1099,506,1103,512,1107,1004,524,1116,528,1082,521,501,1095,1026,586,523,1003,1114,504
Reset your Arduino to scan again...
Button3
5 ... 4... 3... 2... 1...
12100,527,994,615,1000,615,994,531,603,1040,488,1110,505,1111,492,1112,513,1007,592,1034,1112,532,995,603,1014,602,1002,521,589,1020,506,1110,1001,645,492,1032,587,1010,590,1028,498,1097,527,1101,1003,524,610,1032,588,1012,515,1099,1009,601,511,1015,1098,515
Reset your Arduino to scan again...
Button4
5... 4... 3... 2... 1...
13373,607,1001,522,1081,538,1113,520,501,1117,483,1041,581,1014,590,1028,499,1115,497,1144,1000,527,1079,532,1084,517,1098,511,509,1111,491,1031,1127,508,586,1030,499,1095,528,1093,508,1018,591,1020,506,1137,505,1105,1005,598,513,1013,1109,501,520,1101,1133,497
Reset your Arduino to scan again...
raw data full
5... 4... 3... 2... 1...
1107,497,522,1099,497,1118,1104,424,609,1024,1134,453,13472,534,1143,475,1052,579,990,536,596,994,530,1102,480,1107,533,1120,503,1024,597,1001,1095,529,1093,509,1019,599,999,527,659,957,579,1054,1017,573,548,1088,484,1040,611,977,545,1109,1020,576,538,1087,1004,522,600,1004,521,1098,1004,614,584,1049,1005,519,12087,607,1008,518,1083,535,1146,473,546,1083,489,1099,543,982,591,1042,487,1103,538,1116,1015,582,1039,487,1100,525,1097,506,514,1104,496,1119,1103,425,606,1026,499,1090,558,1078,488,1095,1066,460,649,1008,1124,473,544,1083,501,1100,1033,495,596,1025,1225,387,13390,533,989,612,1009,518,1082,536,637,983,542,1084,491,1097,544,983,591,1045,598,990,1138,515,1012,586,1037,489,1098,526,513,1089,514,1104,1001,616,585,943,601,1029,499,1092,546,1087,995,591,549,977,1149,507,512,1087,533,1091,1006,597,524,1004,1097,518,12125,521,1093,506,1086,536,1085,519,500,1117,486,1036,660,957,600,1031,496,1094,549,1087,992,533,1111,477,1143,512,1109,489,531,1093,495,1028,1103,502,591,1027,498,1119,580,1053,499,1025,1131,458,533,1103,1120,466,552,1106,514,1012,1123,475,536,1090,1107,492,13495,524,998,600,1019,507,1085,538,484,1119,501,1114,489,1126,568,959,599,1032,495,1097,1039,594,991,595,1048,479,1142,513,507,1091,530,1092,1003,599,522,1006,591,1026,499,1120,571,1060,1005,585,560,969,1099,533,488,1100,547,1108,1019,578,544,985,1102,519,12085,537,1093,498,1129,524,1097,502,517,1105,487,1036,589,1013,512,1105,496,1120,586,1048,1003,522,1127,463,1101,536,992,595,544,1110,508,1019,1111,487,533,1090,500,1100,525,1095,501,1026,1223,391,613,1021,1006,583,562,1075,490,1037,1121,467,553,1103,1021,573,13407,595,982,543,1093,496,1130,524,497,1101,519,1103,489,1034,592,1010,585,1034,495,1123,1076,555,1002,523,1123,468,1099,536,485,1100,543,1112,1016,512,610,988,515,1108,499,1103,520,1097,1006,520,699,917,1113,520,501,1089,559,1079,994,532,610,978,1147,505,12089,530,1102,490,1089,544,983,605,527,999,626,1027,593,1006,519,1102,491,1110,516,1009,1094,526,1184,432,1107,526,1003,586,550,976,594,1040,1112,477,546,1109,509,1088,536,988,598,1026,1106,497,524,1095,1005,610,606,921,610,1024,1135,456,563,1074,996,585,13469,560,996,529,1112,480,1093,541,482,1103,536,1119,507,1018,604,995,526,1098,495,1106,1022,597,1001,524,
Reset your Arduino to scan again...
5... 4... 3... 2... 1...
1018,588,1031,495,1145,496,1104,1011,518,1097,502,1109,503,518,1099,1020,648,476,1049,1078,504,13475,502,1105,510,1116,556,971,612,501,1023,582,1031,495,1113,501,1115,493,1156,484,1039,1077,524,1090,506,1106,506,1019,594,518,1005,619,1052,1074,513,507,1106,498,1111,505,1019,590,1025,500,1146,997,606,1003,598,1018,503,608,1001,1117,496,526,1151,978,609,12094,508,1013,598,1014,513,1097,522,499,1164,468,1115,504,1106,497,1031,585,1025,502,1115,1112,531,996,604,1005,523,1091,506,516,1094,518,1100,1015,652,474,1050,570,1015,511,1099,506,1103,512,1107,1004,524,1116,528,1082,521,501,1095,1026,586,523,1003,1114,504,13492,531,1077,521,1005,606,1005,626,484,1022,606,1061,467,1117,500,1112,493,1036,580,1029,1086,527,1111,537,989,613,997,530,577,1017,597,1011,1110,502,519,1156,469,1056,562,1023,583,1027,500,1108,1011,604,1005,524,1113,535,572,1030,1091,504,519,1093,1024,505,12099,652,984,617,993,534,1079,520,500,1107,506,1112,500,1162,468,1058,561,1028,498,1111,1001,606,1010,515,1091,531,1109,535,486,1115,495,1099,1022,506,603,1005,604,1019,505,1157,474,1107,515,1009,1100,513,1100,513,1094,527,495,1147,1001,525,581,1019,1102,494,13475,527,1106,543,984,615,995,534,574,1020,507,1100,513,1099,515,1159,467,1058,561,1024,1087,523,1093,516,1008,609,1000,527,606,1039,489,1108,1097,502,520,1090,522,1006,607,1007,519,1150,475,1108,1019,592,1011,516,1099,514,508,1104,1012,637,496,1107,1008,515,12092,607,1003,524,1083,536,1104,540,482,1118,491,1103,513,1014,599,1010,513,1109,503,1160,976,607,1014,511,1092,520,1095,516,504,1116,492,1149,997,531,576,1022,503,1094,520,1091,522,1095,515,1011,1121,545,1075,509,1095,520,503,1106,1015,515,587,1032,1114,526,13442,526,995,613,1000,621,990,533,600,1045,482,1115,497,1098,516,1111,500,1016,599,1011,1119,553,974,608,1011,517,1091,522,584,1026,499,1113,1003,645,489,1035,575,1028,586,1012,513,1094,519,1091,1034,491,1128,549,1069,519,503,1107,1005,603,509,1019,1096,518,12113,615,999,524,1081,531,1082,530,489,1128,482,1161,481,1039,572,1026,499,1102,513,1098,1020,606,1007,509,1118,548,1071,515,505,1108,496,1124,997,518,585,1032,496,1147,493,1106,504,1021,594,1000,1119,486,1123,503,1023,646,477,1049,1079,505,594,1018,1105,501,13490,550,972,612,1006,521,1084,527,492,1118,499,1113,497,1150,
Reset your Arduino to scan again...
5... 4... 3... 2... 1...
1089,523,1115,533,1082,515,507,1111,492,1033,1097,499,524,1102,497,1148,490,1106,513,1014,588,1023,1098,511,511,1102,506,1144,494,1032,1092,506,517,1101,1006,586,12109,529,1107,537,990,607,1008,520,578,1038,488,1107,516,1109,492,1151,490,1035,585,1015,1092,520,1095,513,1015,600,1006,522,612,1033,494,1105,1091,526,497,1097,528,999,599,1029,497,1146,494,1102,1023,590,507,1020,596,1016,509,1107,1007,638,497,1101,1025,498,13474,524,1080,532,1106,542,986,612,496,1121,483,1040,585,1009,517,1108,493,1154,486,1037,1087,514,1089,522,1094,516,1010,603,500,1026,612,1034,1090,509,513,1104,497,1097,529,999,599,1027,610,1035,1089,509,512,1100,503,1025,593,1018,1095,519,504,1143,1001,593,12100,527,994,615,1000,615,994,531,603,1040,488,1110,505,1111,492,1112,513,1007,592,1034,1112,532,995,603,1014,602,1002,521,589,1020,506,1110,1001,645,492,1032,587,1010,590,1028,498,1097,527,1101,1003,524,610,1032,588,1012,515,1099,1009,601,511,1015,1098,515,13493,524,1076,535,1080,529,997,616,489,1035,604,1041,487,1110,506,1111,490,1106,520,1007,1099,526,1111,536,1082,516,1009,604,495,1032,584,1023,1090,526,498,1147,491,1105,513,1013,588,1030,496,1098,1027,599,501,1146,491,1035,585,1014,1095,518,505,1104,1017,595,12123,537,986,612,1003,523,1081,531,579,1030,497,1119,489,1152,490,1034,585,1014,509,1108,1100,495,1032,597,1001,526,1113,530,491,1108,509,1103,1008,602,507,1019,588,1027,499,1145,496,1099,519,1099,1007,520,601,992,533,1098,501,1143,1002,596,520,1009,1097,512,13465,527,1106,540,988,610,1004,610,490,1036,578,1030,497,1115,495,1151,487,1114,505,1017,1090,527,1098,498,1028,597,1002,526,606,1038,580,1019,1091,522,500,1108,509,1018,588,1025,612,1034,495,1101,1022,595,500,1027,599,998,601,1026,1117,530,493,1104,1023,501,12098,599,1018,609,993,533,1106,537,484,1115,501,1111,493,1116,501,1025,582,1034,493,1150,996,602,1014,604,999,526,1100,496,523,1103,501,1143,997,607,509,1012,590,1022,503,1105,512,1105,501,1025,1119,526,588,1009,516,1103,498,1098,1034,494,600,1028,1118,524,13445,531,1087,509,1018,606,996,531,603,1041,574,1025,503,1108,496,1112,504,1024,585,1028,1114,534,1082,515,1011,606,999,527,591,1006,517,1107,1112,535,489,1106,514,1012,591,1023,501,1107,511,1101,1010,640,494,1030,590,1009,516,1101,1005,591,533,1095,1008,516,
Reset your Arduino to scan again...
5... 4... 3... 2... 1...
12115,510,1086,535,1115,518,1009,609,485,1038,585,1010,516,1102,501,1113,495,1147,498,1028,1082,529,1086,516,1098,510,1016,605,491,1033,622,1010,1091,530,493,1099,527,1092,509,1018,590,1024,501,1139,503,1108,499,1100,1022,506,605,1005,1099,523,500,1132,1026,591,13373,607,1001,522,1081,538,1113,520,501,1117,483,1041,581,1014,590,1028,499,1115,497,1144,1000,527,1079,532,1084,517,1098,511,509,1111,491,1031,1127,508,586,1030,499,1095,528,1093,508,1018,591,1020,506,1137,505,1105,1005,598,513,1013,1109,501,520,1101,1133,497,12096,532,1078,524,1002,607,1007,613,484,1041,611,1021,505,1112,488,1105,518,1010,595,1023,1091,523,1119,524,1001,609,997,529,582,1019,596,1012,1093,530,494,1137,514,1010,588,1029,598,997,529,1090,509,1104,506,1020,1127,517,584,1026,1096,508,514,1094,1027,498,13500,530,1071,539,1076,527,1087,521,500,1118,486,1039,611,1023,502,1112,491,1104,521,1098,1008,519,1090,522,1119,524,1082,528,494,1107,510,1016,1103,507,516,1103,499,1134,516,1102,494,1030,595,1001,526,1091,511,1101,1014,632,504,1024,1086,525,499,1103,1019,587,12101,527,1111,530,997,614,991,535,575,1026,501,1108,507,1111,492,1140,510,1017,583,1034,1096,498,1105,514,1011,603,1006,521,615,1026,501,1109,1093,510,511,1097,516,1011,590,1028,501,1133,516,1101,498,1098,525,1000,1108,511,512,1103,1011,633,503,1109,1003,520,13462,524,1081,530,1111,532,996,613,487,1114,505,1019,593,1016,509,1109,494,1141,511,1103,1000,530,1091,505,1098,520,1008,603,501,1026,616,1027,1081,531,495,1105,508,1100,515,1012,610,1009,619,1015,510,1105,496,1097,1034,495,604,1016,1097,516,507,1115,1032,597,12096,514,1008,607,999,614,996,530,607,1033,494,1115,492,1107,510,1101,512,1014,588,1031,1125,509,1070,527,1018,604,1017,505,595,1022,504,1110,1005,617,520,1027,577,1032,584,1017,511,1097,516,1104,498,1027,623,1011,1092,527,497,1098,1029,591,509,1019,1095,516,13486,536,1079,519,1086,530,997,614,491,1034,608,1033,495,1114,492,1108,508,1102,513,1013,1094,525,1125,511,1087,529,999,597,519,1007,596,1026,1089,520,501,1142,500,1111,494,1029,589,1013,511,1098,516,1103,499,1134,1021,506,589,1029,1100,497,525,1093,1016,593,12131,519,1003,612,990,536,1084,514,586,1030,496,1116,494,1146,497,1029,576,1035,494,1107,1100,508,1019,602,1000,526,1124,511,508,1106,498,1097,1031,588,511,
Reset your Arduino to scan again...
Using protocol 6 (HT6P20B) I receive the packet but all the buttons have the same binary identification
Decimal: 235377397 (28Bit) Binary: 1110000001111001001011110101 Tri-State: not applicable PulseLength: 524 microseconds Protocol: 6
Raw data: 12130,604,996,604,976,631,983,662,474,1052,556,1049,478,1133,474,1134,478,1134,480,1045,1103,537,1069,542,985,621,990,537,566,1048,571,1029,1113,538,485,1118,493,1033,1078,534,575,1032,1088,522,1004,634,1010,517,1086,529,582,1019,1093,528,496,1097,1036,
Decimal: 235377397 (28Bit) Binary: 1110000001111001001011110101 Tri-State: not applicable PulseLength: 526 microseconds Protocol: 6
Raw data: 12225,526,995,604,1119,465,1058,611,497,1026,594,1003,524,1094,505,1098,522,1091,522,1004,1144,497,1100,518,1012,587,1026,601,495,1028,626,953,1155,518,505,1092,525,1097,1006,518,598,1005,1113,498,1027,614,1027,594,1004,522,598,1000,1104,522,501,1080,1074,
Decimal: 235377397 (28Bit) Binary: 1110000001111001001011110101 Tri-State: not applicable PulseLength: 526 microseconds Protocol: 6
Raw data: 12119,534,1077,521,1101,495,1109,509,512,1129,512,1103,497,1028,595,1002,521,1103,503,1078,1087,585,1005,522,1101,496,1098,521,502,1093,538,1080,1031,495,641,1001,525,1092,1011,587,525,1098,1009,519,1138,443,1150,525,1003,595,520,1010,1093,525,601,996,1116,
Decimal: 235377397 (28Bit) Binary: 1110000001111001001011110101 Tri-State: not applicable PulseLength: 526 microseconds Protocol: 6
Raw data: 12078,522,1085,523,1100,501,1129,526,496,1100,518,1099,501,1024,598,1006,521,1090,522,1128,1010,594,1017,511,1097,513,1099,510,512,1090,533,1121,1007,525,589,1012,513,1099,1010,590,526,1002,1113,501,1131,520,1091,512,1017,592,513,1014,1103,513,606,996,1132,
From what I could see, only the Button Code data is not being read correctly, I tested two identical controls and the same thing happens. the control is a holtek ht66f ic and to transmit a syn115 ic with a 13,560 crystal at 433mhz
Analyzing more deeply the data transmitted by the control I understood why even creating my protocol I cannot receive a different binary for each button, with an ocilloscope and an SDR I discovered that the control sends a sequence of 8 instructions to each button, being the 4 first the real button and then 4 equal, it seems to me to be some kind of protection not to be copied
the image below shows the recording with just one click on the button
sequence correct
1001110110100010000010100101
1001110110100010000010100101
1001110110100010000010100101
1001110110100010000010100101
Invalid Sequence
1001110110100010001011110101
1001110110100010001011110101
1001110110100010001011110101
1001110110100010001011110101
so my protocol was correct all along, has anyone experienced this and know a way to isolate the last 4 instructions and only use the first 4?