kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
rs41: Reed-Solomon/CRC
rodzic
39355781a8
commit
c98259388b
|
@ -244,5 +244,40 @@ f7372fcbc581987e308817c31384d68ae2c98ebf25109b8f
|
|||
>>> print ''.join('%02x'%x for x in code2[-24:])
|
||||
194b64bc59ee1c5e3e7b3722bf8fed7799c3c511b749fa54
|
||||
|
||||
>>> par='8f9b1025bf8ec9e28ad68413c31788307e9881c5cb2f37f754fa09b711c5c39977ed8fbf22377b3e5e1cee59fc644b19'.decode('hex')
|
||||
>>> parrev=par[::-1]
|
||||
>>> parrev.encode('hex')
|
||||
'194b64fc59ee1c5e3e7b3722bf8fed7799c3c511b709fa54f7372fcbc581987e308817c31384d68ae2c98ebf25109b8f'
|
||||
|
||||
194b64fc59ee1c5e3e7b3722bf8fed7799c3c511b709fa54 f7372fcbc581987e308817c31384d68ae2c98ebf25109b8f
|
||||
194b64bc59ee1c5e3e7b3722bf8fed7799c3c511b749fa54 f7372fcbc581987e308817c31384d68ae2c98ebf25109b8f
|
||||
^ ^
|
||||
(wenn Fehler nur in den Paritaetsbytes auftreten, sind sie leicht zu finden)
|
||||
|
||||
|
||||
[RS-DECODER]
|
||||
|
||||
./ecc-rs_vaisala 8635f44093df1a608f9b1025bf8ec9e28ad68413c31788307e9881c5cb2f37f754fa09b711c5c39977ed8fbf22377b3e5e1cee59fc644b19f0792896134b343032303234341c00000100000c00007a0007320f00000000008920bac20000000000000092697a2ae9030226fd015de502363208522a075f330874040228fd015de502000000000000000000000000000000e7917c1e4d0750f1921703fb01f8068d1fd811f70bd604d50afa17f913d90c8b20f9a16a7d5921103501ff440000006c1f00cd977e059ab7009566fd191d1affd82fbf143fb8ff5277180991faff9ca1d10d441b01927bf211dd190190999f0553a1ff9120b10c3847ff06eeee0e571301a2c0891c000000cddd1a0882d10011167b153c154217941930005fc50b1eb9fde107d2050902115a537ea6ed343030313030303120313037393020202033312e37203036373520303334392030373030203132383636203630303520313339333120363031342031343038322035383830203738313420383032372031303039203930392039353631353632203935303839323220343238383339313633382032393335383636203539343238203335323439203636393920333738332034363837203637303120363930312037393939049a762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f35a
|
||||
codeword1
|
||||
errors: 0
|
||||
F3000000000000000000000000000000000000000000002D9A3939203036313720383433372039363932333834353638333238363938322032383520363135203020303137302031373038203834203136313931353020363220303039332037303731202039302030303034A6531109D2E1B90B5F3094423C7B11D108DD000089A2130EEEFF38B191A1059901DDF2921B0DA1FF911852B8142FFF1DFD95B70597006C00440110596AF98BD9F9FAD5D6F7D88DF8FB17F1071E910000000000000000E5012804085F2A0836E50126032A6900000000BA8900000F077A00000100343232341328F0F7372FCBC581987E308817C31384D68AE2C98EBF25109B8F
|
||||
codeword2
|
||||
errors: 2
|
||||
pos: 234 252
|
||||
5A000000000000000000000000000000000000000000000076043937313920303637362038333936203435203239203635392033313338343239303932353639393939302032383438203835323031343020333320303636383130372034303536202E332030373131303130ED7E5A020507FD1EC500191715151600821ACD001CC00157EE06470C20FF539F9019117B0144D19CFA0977FF3FBFD81A1966009A7ECD1F0000FF35217DA1200C13170A040B111F06010392504D7CE700000000000000025DFD027433075232025DFD02E97A92000000C2200000003200000C00001C3430304B9679194B64BC59EE1C5E3E7B3722BF8FED7799C3C511B749FA54
|
||||
frame:
|
||||
8635f44093df1a608f9b1025bf8ec9e28ad68413c31788307e9881c5cb2f37f754fa49b711c5c39977ed8fbf22377b3e5e1cee59bc644b19f0792896134b343032303234341c00000100000c00007a0007320f00000000008920bac20000000000000092697a2ae9030226fd015de502363208522a075f330874040228fd015de502000000000000000000000000000000e7917c1e4d0750f1921703fb01f8068d1fd811f70bd604d50afa17f913d90c8b20f9a16a7d5921103501ff440000006c1f00cd977e059ab7009566fd191d1affd82fbf143fb8ff5277180991faff9ca1d10d441b01927bf211dd190190999f0553a1ff9120b10c3847ff06eeee0e571301a2c0891c000000cddd1a0882d10011167b153c154217941930005fc50b1eb9fde107d2050902115a537ea6ed343030313030303120313037393020202033312e37203036373520303334392030373030203132383636203630303520313339333120363031342031343038322035383830203738313420383032372031303039203930392039353631353632203935303839323220343238383339313633382032393335383636203539343238203335323439203636393920333738332034363837203637303120363930312037393939049a762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f35a
|
||||
|
||||
./ecc-rs_vaisala 8635f44093df1a60421080e56396389c102cf6db9276308a11f9f8792cb620beae0662688bba0eb2c0bdfa3bd10f0368c07ad0ac33c77046f0792888134b343032303234341c00000100000d00007a000732013230323434254e00002c011205b43ca475537a2a95050229fd015be502d931084d2a075b3308ed060228fd015de50200000000000000000000000000000061d67c1e4d07a0ba92170e9003fa01f813b40c921ed811fa0bf504d20af920fa17f765137d59950b3501ffc43086200a1101420000000521008f527605b1b600faa7e10e3b1301acce8e1c78c5ff0de3c41479b6ff48781a09dcfdffa2f1c30d51190151e0e4113d1701e27da60504a4ffdb2511085bd1003f05bd0c8346ffda787b156d2f421735a22f00f88b0b1ea7fe220b23030902112a417ea5d0343030333030303120313036313320202033312e362030363733203033353220303730302031323235312033383030203133343036203535333920313430353820353239332037383030203830323120373334203931392039353533383738203937323839373820343238383338353332362032393032313631203539313039203335303539203637303020333738352034363838203636393920363839392038303030c8e4762e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bf08
|
||||
codeword1
|
||||
errors: 1
|
||||
pos: 136
|
||||
BF000000000000000000000000000000000000000000000076C830383938203936383620383330372035352030392036323920323533383438393239383835393939343731302030373332203534203335363431303820353220303032332037303631202031302030303034A54111092322A70BF82F35426D7BDA460C05005B11DBA4057D013DE450190DF1FFDC1A48B614E3FF788EAC130EA700B1768F210000010A86C4010B5913F7FAF9D2F5FAD892B4F8FA9017BA071ED60000000000000000E5012806085B2A08D9E50129052A53A4B4122C0025343001077A00000100343232341328F0BE20B62C79F8F9118A307692DBF62C109C389663E5801042
|
||||
codeword2
|
||||
errors: 2
|
||||
pos: 106 176
|
||||
0800000000000000000000000000000000000000000000002EE43030203936393620383435372030363930333931353131303236333838322037383720373335203120332032383038203935383031393520303320303331323130372035303336202E332033363131303130D07E2A02030BFE1E8B00A2172F1578FF83BD3FD10825FF04A6E21711E00151C3A2FD0978FF79C40DC51CCE013BE1FAB6055200050042112030FF35957D6517200A040B111F0C1301030E92A04D7C6100000000000000025DFD02ED33074D31025BFD02957A753C0501004E3432323200000D00001C3430304B88794670C733ACD07AC068030FD13BFABDC0B20EBA8B686206AE
|
||||
frame:
|
||||
8635f44093df1a60421080e56396389c102cf6db9276308a11f9f8792cb620beae0662688bba0eb2c0bdfa3bd10f0368c07ad0ac33c77046f0792888134b343032303234341c00000100000d00007a000732013230323434254e00002c011205b43ca475537a2a95050229fd015be502d931084d2a075b3308ed060228fd015de50200000000000000000000000000000061d67c1e4d07a0ba92170e9003fa01f813b40c921fd811fa0bf504d20af920fa17f765137d59950b3501ffc43086200a1101420000000521008f527605b1b600faa7e10e3b1301acce8e1c78c5ff0de3c41479b6ff48781a09dcfdffa2f1c30d51190150e0e4113d1701e27da60504a4ffdb2511085bd1003f05bd0c8346ffda787b156d2f421735a22f00f88b0b1ea7fe220b23030902112a417ea5d0343030313030303120313036313320202033312e362030363733203033353220303730302031323235312033383030203133343036203535333920313430353820353239332037383030203830323120373334203931392039353533383738203937323839373820343238383338353332362032393032313631203539313039203335303539203637303020333738352034363838203636393920363839392038303030c8e4762e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bf08
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue