RFControl icon indicating copy to clipboard operation
RFControl copied to clipboard

Decoding help

Open kiralikbeyin opened this issue 7 years ago • 1 comments

My remotes are sending the same code but i see different raw values like this; First press; 372, 956, 1020, 312, 1004, 328, 984, 352, 308, 1012, 972, 364, 296, 1028, 956, 376, 944, 392, 928, 412, 248, 1068, 924, 412, 256, 1064, 928, 396, 268, 1052, 276, 1044, 284, 1036, 292, 1028, 304, 1016, 308, 1016, 976, 356, 972, 356, 304, 1016, 312, 1016, 312, 10248 Second press; 388, 932, 1044, 292, 1020, 308, 1012, 320, 344, 976, 1004, 328, 332, 988, 996, 328, 992, 344, 980, 348, 316, 1004, 980, 348, 316, 1004, 980, 356, 304, 1012, 316, 1008, 320, 1000, 324, 996, 328, 992, 332, 992, 992, 336, 984, 352, 308, 1012, 316, 1008, 320, 10224 Third press; 388, 936, 1040, 292, 1024, 304, 1012, 320, 344, 976, 1008, 324, 340, 980, 1000, 328, 996, 336, 988, 348, 312, 1008, 980, 348, 312, 1008, 984, 352, 304, 1020, 308, 1012, 316, 1004, 320, 1004, 324, 1000, 324, 996, 988, 340, 980, 352, 312, 1016, 308, 1012, 316, 10236 Forth press; 384, 936, 1044, 288, 1028, 312, 1012, 312, 348, 980, 1004, 328, 332, 988, 1000, 336, 988, 344, 980, 348, 316, 1004, 984, 356, 308, 1008, 980, 356, 308, 1012, 316, 1008, 320, 1004, 320, 1004, 324, 1000, 328, 992, 996, 340, 980, 356, 308, 1012, 312, 1012, 320, 10240 Fifth press; 388, 940, 1040, 288, 1028, 304, 1016, 316, 348, 976, 1008, 324, 336, 988, 1000, 336, 992, 336, 984, 348, 316, 1008, 984, 352, 312, 1008, 980, 356, 308, 1012, 316, 1012, 316, 1004, 324, 1000, 324, 1000, 332, 988, 996, 344, 976, 356, 308, 1016, 312, 1012, 320, 10244 Sixst press; 400, 932, 1044, 296, 1024, 312, 1012, 324, 344, 984, 1004, 332, 332, 996, 1000, 340, 988, 344, 984, 352, 316, 1016, 976, 356, 312, 1016, 980, 360, 304, 1016, 320, 1004, 324, 1008, 328, 996, 336, 992, 336, 992, 1000, 340, 988, 348, 316, 1008, 328, 1000, 332, 10264 I want to show current status of a lightswitch (or a motion sensor/door sensor) so how can i understand all these raws come from the same source - it is a ON command from my remote controller? Note this is not related with pimatic i am using the lib stand alone

kiralikbeyin avatar Apr 24 '17 12:04 kiralikbeyin

So I should start by saying I'm not an expert in all this yet, but it looks to me like your remote is sending the same code each time. The numbers you're seeing are pulse widths, so on the first press, 372, 965, 1020 is more or less the same pulse widths as 388, 932, 1044. They're only different numbers here because the pulse widths were very slightly different each time. What you do with that information is somewhat unclear ;-)

As for my own problem, I'm trying to get the data from an Aercus WS3083 weather station. I'm running a 'get everything" sniffer, which mostly just reads line noise (because none of the actual data decodes seem to get anything at all):

void loop() {
  if(1){
    if(RFControl::existNewDuration()){
      Serial.print(RFControl::getLastDuration() * RFControl::getPulseLengthDivider());
      Serial.print(", ");
      static byte line=0;
      line++;
      if(line>=16){
        line=0;
        Serial.write('\n');
      }
    }
  }
}

When I press the reset button on the station, the screen update visibly slows down, and I seem to get data for a good 3-4 seconds. However, I'm struggling to find the 'preamble' that gets sent before the data (and can't really see the data either). Here's a chunk of output, including some line noise, the preamble and some of the data:

168, 136, 244, 4816, 172, 2428, 124, 904, 124, 320, 2392, 1084, 136, 360, 2372, 3432,
68, 5124, 160, 160, 1872, 2720, 144, 192, 1940, 3532, 144, 140, 2176, 1904, 152, 176,
1836, 1904, 132, 136, 2308, 1144, 144, 168, 2284, 268, 140, 252, 420, 348, 2356, 408,
124, 124, 924, 2272, 1300, 144, 272, 2300, 6300, 112, 204, 1404, 2000, 164, 152, 1696,
656, 304, 736, 2260, 12696, 120, 276, 1796, 13832, 2140, 24764, 144, 224, 1968, 2728, 184,
140, 1956, 8916, 132, 192, 1796, 2648, 2336, 3596, 140, 184, 2112, 1652, 120, 216, 2004,
3644, 2336, 7796, 136, 184, 1884, 3200, 144, 196, 1436, 14372, 124, 168, 2304, 13716, 128,
260, 1832, 3860, 152, 152, 1752, 4732, 192, 8136, 124, 212, 1672, 5664, 184, 116, 2100,
3496, 184, 108, 2108, 4748, 176, 100, 1992, 340, 332, 6068, 180, 8740, 2364, 11304, 204,
17008, 180, 180, 2124, 14644, 152, 240, 1880, 13716, 140, 232, 1864, 13772, 144, 228, 1840,
13792, 140, 244, 1852, 13768, 136, 244, 1840, 13808, 112, 272, 1776, 13772, 144, 228, 1860,
13764, 168, 196, 1920, 13732, 152, 224, 1860, 13736, 152, 220, 1856, 39008, 132, 244, 1528,
1728, 160, 160, 1956, 13712, 188, 192, 1912, 13720, 196, 164, 1972, 5184, 1780, 6664, 2308,
11196, 116, 236, 1680, 472, 220, 820, 2168, 7348, 108, 228, 1428, 3684, 2344, 13688, 128,
248, 1828, 13764, 172, 208, 1884, 13736, 120, 264, 1896, 13712, 168, 220, 1856, 13764, 156,
224, 1840, 13772, 132, 252, 1808, 13768, 168, 204, 1920, 13740, 148, 236, 1884, 13704, 216,
156, 1856, 13784, 176, 196, 1860, 13744, 180, 184, 1884, 13748, 200, 184, 1868, 13772, 128,
264, 1852, 13744, 140, 248, 1824, 13780, 160, 228, 1808, 13828, 112, 284, 1740, 13828, 164,
244, 1768, 2944, 120, 232, 2192, 6784, 128, 208, 1880, 13780, 128, 244, 1912, 13708, 148,
224, 1796, 13836, 172, 212, 1860, 13732, 188, 188, 1856, 13768, 152, 208, 1876, 13788, 124,
244, 1836, 13792, 120, 268, 1792, 13804, 152, 208, 1832, 13812, 136, 248, 1840, 13768, 120,
256, 1824, 13768, 156, 224, 1924, 13724, 140, 228, 1888, 13720, 160, 204, 1864, 11120, 124,
256, 1528, 752, 228, 824, 2152, 12804, 136, 240, 1828, 13764, 188, 180, 1968, 13672, 180,
192, 1900, 13724, 144, 232, 1840, 13804, 124, 256, 1844, 13744, 168, 200, 1824, 13812, 128,
256, 1816, 13788, 160, 208, 1884, 13756, 148, 224, 1844, 13784, 148, 236, 1816, 13800, 116,
260, 1860, 13736, 176, 196, 1852, 13796, 136, 244, 1880, 13708, 148, 212, 1888, 13756, 152,
228, 1812, 13796, 164, 212, 1844, 13796, 140, 236, 1824, 13800, 144, 240, 1796, 13840, 100,
272, 1812, 13772, 108, 280, 1816, 13812, 156, 244, 1740, 13832, 124, 248, 1808, 13804, 164,
208, 1872, 13732, 168, 200, 1868, 13764, 140, 244, 1832, 13808, 124, 256, 1788, 13804, 176,
200, 1844, 13788, 144, 232, 1832, 13816, 112, 264, 1768, 13852, 108, 268, 1792, 13832, 116,
264, 1744, 13876, 136, 244, 1772, 29428, 156, 216, 2160, 13808, 132, 248, 2028, 13608, 100,
284, 1840, 13748, 172, 196, 1884, 13756, 156, 224, 1880, 13744, 116, 252, 1808, 13816, 104,

Towards the bottom of that lot, there looks to be a fairly obvious pattern, but I can't figure out how to decypher it, or how to have the library 'trigger' on this data to receive it properly. Any help on where to go next would be much appreciated.

coofercat avatar Jan 22 '18 21:01 coofercat