sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.91k stars 659 forks source link

One important question about protocol format #362

Open VISION-183 opened 4 years ago

VISION-183 commented 4 years ago
                                                                                                                                                    __

It is said {1,5} for an instance means , 1 High and 5 Low that high signal comes first that is --> | | __

but if we want to show 5 Low and 1 High that low signal comes first , what to do ? is it possible ? how to write the protocol ? for example in decoding we understand that '0' bit is denoted by 5 low and 1 high --> ____| |

plus this question i can't figure out the protocol format of this raw data . I would appreciate a lot if somebody help me I paste here two raw data that I got from SimpleRcScanner program .

Sample 1: 412,396,408,396,408,396,408,400,412,392,412,392,412,396,408,396,412,392,416,392,408,396,412,392,412,392,416,392,416,388,416,388,416,392,416,388,416,388,420,388,412,392,416,388,420,388,416,388,412,392,420,388,416,388,420,388,416,388,416,388,416,388,420,388,420,384,420,384,1624,384,420,384,840,404,416,404,420,804,440,380,436,388,440,380,840,404,420,400,424,400,420,800,440,380,844,400,424,400,416,804,844,400,420,800,440,384,440,380,844,800,440,384,844,396,424,800,440,380,444,380,848,796,848,396,424,396,420,800,844,400,428,792,848,796,848,396,424,796,448,376,852,392,428,792,444,380,444,376,852,392,428,392,432,392,424,396,428,392,428,392,428,396,424,396,428,792,852,392,428,392,428,796,444,376,452,372,444,376,448,376,6900,380,432,372,428,376,428,380,428,376,428,376,432,376,428,376,428,376,432,376,428,376,432,372,428,380,432,372,432,376,428,376,432,372,428,380,432,372,428,376,432,376,432,372,428,376,432,376,1628,376,428,376,848,396,428,392,432,792,452,368,452,372,448,376,852,388,428,396,428,392,428,792,452,372,848,396,424,396,436,784,852,392,432,788,452,372,452,368,856,788,452,372,848,392,436,788,448,372,452,372,852,792,848,396,428,392,428,792,856,388,436,784,856,788,852,392,436,784,456,368,856,388,428,792,452,372,456,364,856,388,432,388,436,384,436,388,432,388,432,388,436,388,436,384,432,788,856,388,432,388,440,784,452,368,452,372,448,372,448,372,6908,376,432,372,432,372,432,376,432,372,432,372,436,372,436,368,436,368,444,364,432,372,436,368,436,372,432,372,436,372,436,368,436,368,436,368,436,372,440,364,440,364,444,364,436,368,432,372,1636,368,444,364,852,392,432,388,436,784,456,368,456,364,460,364,856,388,436,384,432,388,436,788,456,364,856,388,436,384,440,784,864,376,440,784,456,364,456,368,856,788,456,364,860,384,436,784,460,368,456,360,860,784,860,384,436,384,440,780,868,376,436,788,864,776,864,380,444,780,460,360,864,380,444,780,456,364,464,360,860,380,440,384,440,380,440,380,444,376,444,380,440,380,440,384,440,780,860,384,440,380,440,780,460,364,468,352,464,360,460,360,

Sample 2 : 404,400,408,396,408,396,408,400,408,396,412,392,412,396,412,392,408,396,412,396,408,396,412,396,408,396,412,392,412,392,412,396,412,392,416,392,412,392,416,388,412,392,420,388,416,388,420,384,416,392,416,388,416,392,420,384,416,388,416,392,416,388,416,388,416,392,416,388,420,384,420,388,416,388,1616,388,824,804,436,388,836,804,840,804,440,384,840,404,416,804,440,384,844,396,420,404,420,400,420,800,440,384,840,404,420,804,840,400,424,396,428,392,424,400,420,400,424,400,420,800,444,380,444,376,844,800,848,396,424,396,424,800,844,396,424,800,844,800,848,396,424,796,448,376,844,396,428,796,444,376,448,376,848,396,424,396,424,396,428,396,424,396,428,392,428,396,428,392,428,792,852,392,428,396,424,796,448,376,444,376,452,372,444,376,6904,376,432,372,436,372,424,380,432,376,424,380,428,376,428,380,424,380,428,376,428,380,432,372,432,372,432,376,428,376,436,372,424,380,428,376,428,380,428,376,428,380,432,372,432,372,432,376,1628,376,836,792,444,380,848,792,856,788,448,376,848,396,428,792,448,376,856,384,432,392,428,392,428,796,444,376,852,392,424,796,852,392,432,392,424,396,432,388,428,396,428,392,428,792,456,368,448,372,852,792,852,392,432,388,428,796,856,388,428,792,856,788,852,392,436,788,452,368,856,388,432,788,452,372,452,372,856,384,444,380,432,388,432,388,432,392,432,388,440,380,436,388,432,788,852,392,436,384,436,788,452,368,460,364,452,368,452,368,6912,372,432,372,432,372,436,372,436,368,436,372,436,368,432,372,436,372,432,372,436,368,436,372,436,368,436,372,432,372,436,368,436,372,436,368,440,364,436,372,432,372,436,372,440,364,436,368,1632,372,840,788,452,372,856,788,860,784,456,364,860,384,436,788,456,364,856,388,440,380,436,384,436,788,452,368,860,384,440,784,856,384,436,388,436,384,440,384,432,388,440,380,436,788,456,364,464,360,864,780,860,384,436,384,440,780,864,380,440,780,864,780,864,380,440,784,460,360,868,376,448,772,464,360,460,364,860,384,440,380,444,376,440,380,444,380,448,372,444,376,440,384,440,780,868,376,444,380,436,784,460,364,460,360,464,360,460,360,