Starting decoder rework

~ Changed indentation layout
~ Replaced some functions from utilities.h with more performant ones
(tested in gr-lora-benchmarks)
+ Added message if spreading factor is set outside of compatible range
+ Added this keyword for class members
+ Added NDEBUG macro to be able to completely remove debugging (for
performance improvement)
~ Extracted multiplications from loops to a precalculation instead
~ Reworked flow of most of the functions
* TODO: Change find_preamble algorithm for better detection
* TODO: Change detect_downchirp algorithm for better sync
pull/27/head
Wosser1sProductions 2017-02-23 21:12:40 +01:00
rodzic 447487380b
commit dbadd1aacb
4 zmienionych plików z 927 dodań i 895 usunięć

Plik diff jest za duży Load Diff

Wyświetl plik

@ -21,112 +21,124 @@
#ifndef INCLUDED_LORA_DECODER_IMPL_H #ifndef INCLUDED_LORA_DECODER_IMPL_H
#define INCLUDED_LORA_DECODER_IMPL_H #define INCLUDED_LORA_DECODER_IMPL_H
#include <lora/decoder.h> #include <liquid/liquid.h>
#include "lora/decoder.h"
#include <list> #include <list>
#include <string> #include <string>
#include <vector> #include <vector>
#include <deque>
#include <fstream> #include <fstream>
#define DECIMATOR_FILTER_SIZE 2*8*1+1 // 2*decim_factor*delay+1 #define DECIMATOR_FILTER_SIZE (2*8*1 + 1) // 2*decim_factor*delay+1
namespace gr { namespace gr {
namespace lora { namespace lora {
typedef enum decoder_state { enum class DecoderState {
DETECT, DETECT,
SYNC, SYNC,
PAUSE, PAUSE,
DECODE_HEADER, DECODE_HEADER,
DECODE_PAYLOAD, DECODE_PAYLOAD,
STOP STOP
} decoder_state; };
class decoder_impl : public decoder class decoder_impl : public decoder {
{ private:
private: DecoderState d_state;
decoder_state d_state;
std::vector<gr_complex> d_downchirp;
std::vector<gr_complex> d_upchirp;
std::vector<float> d_downchirp_ifreq;
std::vector<float> d_upchirp_ifreq;
std::vector<gr_complex> d_fft;
std::vector<gr_complex> d_mult;
uint8_t d_sf;
uint32_t d_bw;
uint8_t d_cr;
double d_bits_per_second;
uint32_t d_delay_after_sync;
uint32_t d_samples_per_second;
double d_symbols_per_second;
uint32_t d_bits_per_symbol;
uint32_t d_samples_per_symbol;
uint32_t d_number_of_bins;
uint32_t d_number_of_bins_hdr;
uint32_t d_compression;
uint32_t d_payload_symbols;
uint32_t d_payload_length;
uint32_t d_corr_fails;
std::vector<unsigned int> d_words;
std::vector<uint8_t> d_demodulated;
std::vector<uint8_t> d_words_deshuffled;
std::vector<uint8_t> d_words_dewhitened;
std::vector<uint8_t> d_data;
std::ofstream d_debug_samples;
std::ofstream d_debug;
fftplan d_q;
float d_decim_h[DECIMATOR_FILTER_SIZE];
uint32_t d_corr_decim_factor;
int d_decim_factor;
firdecim_crcf d_decim;
float d_cfo_estimation;
int d_cfo_step;
double d_dt;
bool calc_energy_threshold(gr_complex* samples, int window_size, float threshold); /// using std::complex = gr_complex
void build_ideal_chirps(void); std::vector<gr_complex> d_downchirp;
void samples_to_file(const std::string path, const gr_complex* v, int length, int elem_size); std::vector<gr_complex> d_upchirp;
void samples_debug(const gr_complex* v, int length); std::vector<float> d_downchirp_ifreq;
float sliding_norm_cross_correlate(const float *samples_1, const float *samples_2, uint32_t window, uint32_t slide, int32_t* index); std::vector<float> d_upchirp_ifreq;
float norm_cross_correlate(const float *samples_1, const float *samples_2, uint32_t window); std::vector<gr_complex> d_fft;
float detect_downchirp(const gr_complex *samples, uint32_t window); std::vector<gr_complex> d_mult;
float detect_upchirp(const gr_complex *samples_1, uint32_t window, uint32_t slide, int32_t* index);
float cross_correlate(const gr_complex *samples_1, const gr_complex *samples_2, int window);
unsigned int get_shift_fft(gr_complex* samples);
void determine_cfo(const gr_complex* samples);
void correct_cfo(gr_complex* samples, int num_samples);
int find_preamble_start(gr_complex* samples);
int find_preamble_start_fast(gr_complex* samples, uint32_t len);
unsigned int max_frequency_gradient_idx(gr_complex* samples);
bool demodulate(gr_complex* samples, bool is_header);
void deinterleave(int ppm);
int decode(uint8_t* out_data, bool is_header);
void deshuffle(const uint8_t* shuffle_pattern, bool is_header);
void dewhiten(const uint8_t* prng);
void hamming_decode(uint8_t* out_data);
void nibble_reverse(uint8_t* out_data, int len);
float stddev(const float *values, int len, float mean);
inline void instantaneous_phase(const gr_complex* in_samples, float* out_iphase, uint32_t window);
void instantaneous_frequency(const gr_complex* in_samples, float* out_ifreq, uint32_t window);
uint8_t lookup_cr(uint8_t bytevalue);
void msg_raw_chirp_debug(const gr_complex *raw_samples, uint32_t num_samples);
void msg_lora_frame(const uint8_t *frame_bytes, uint32_t frame_len);
uint8_t d_sf;
uint32_t d_bw;
uint8_t d_cr;
double d_bits_per_second;
uint32_t d_delay_after_sync;
uint32_t d_samples_per_second;
double d_symbols_per_second;
uint32_t d_bits_per_symbol;
uint32_t d_samples_per_symbol;
uint32_t d_number_of_bins;
uint32_t d_number_of_bins_hdr;
uint32_t d_compression;
uint32_t d_payload_symbols;
uint32_t d_payload_length;
uint32_t d_corr_fails;
public: std::vector<unsigned int> d_words;
decoder_impl(float samp_rate, int sf); std::vector<uint8_t> d_demodulated;
~decoder_impl(); std::vector<uint8_t> d_words_deshuffled;
std::vector<uint8_t> d_words_dewhitened;
std::vector<uint8_t> d_data;
// Where all the action really happens std::ofstream d_debug_samples;
int work(int noutput_items, std::ofstream d_debug;
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
// GRC interfaces fftplan d_q;
virtual void set_sf(uint8_t sf);
virtual void set_samp_rate(float samp_rate);
};
} // namespace lora float d_decim_h[DECIMATOR_FILTER_SIZE];
uint32_t d_corr_decim_factor;
int d_decim_factor;
firdecim_crcf d_decim = nullptr;
float d_cfo_estimation;
int d_cfo_step;
double d_dt;
bool calc_energy_threshold(gr_complex *samples, int window_size, float threshold);
void build_ideal_chirps(void);
void samples_to_file(const std::string path, const gr_complex *v, uint32_t length, uint32_t elem_size);
void samples_debug(const gr_complex *v, uint32_t length);
float sliding_norm_cross_correlate(const float *samples_1, const float *samples_2, uint32_t window, uint32_t slide, int32_t *index);
float norm_cross_correlate(const float *samples_1, const float *samples_2, uint32_t window);
float detect_downchirp(const gr_complex *samples, uint32_t window);
float detect_upchirp(const gr_complex *samples_1, uint32_t window, uint32_t slide, int32_t *index);
float cross_correlate(const gr_complex *samples_1, const gr_complex *samples_2, int window);
unsigned int get_shift_fft(gr_complex *samples);
void determine_cfo(const gr_complex *samples);
void correct_cfo(gr_complex *samples, uint32_t num_samples);
int find_preamble_start(gr_complex *samples);
int find_preamble_start_fast(gr_complex *samples, uint32_t len);
unsigned int max_frequency_gradient_idx(gr_complex *samples);
bool demodulate(gr_complex *samples, bool is_header);
void deinterleave(uint32_t ppm);
int decode(uint8_t *out_data, bool is_header);
void deshuffle(const uint8_t *shuffle_pattern, bool is_header);
void dewhiten(const uint8_t *prng);
void hamming_decode(uint8_t *out_data);
void nibble_reverse(uint8_t *out_data, int len);
float stddev(const float *values, uint32_t len, float mean);
inline void instantaneous_phase(const gr_complex *in_samples, float *out_iphase, uint32_t window);
void instantaneous_frequency(const gr_complex *in_samples, float *out_ifreq, uint32_t window);
uint8_t lookup_cr(uint8_t bytevalue);
void msg_raw_chirp_debug(const gr_complex *raw_samples, uint32_t num_samples);
void msg_lora_frame(const uint8_t *frame_bytes, uint32_t frame_len);
public:
decoder_impl(float samp_rate, uint8_t sf);
~decoder_impl();
/// Where all the action really happens
int work(int noutput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items);
/// GRC interfaces
virtual void set_sf(uint8_t sf);
virtual void set_samp_rate(float samp_rate);
};
} // namespace lora
} // namespace gr } // namespace gr
#endif /* INCLUDED_LORA_DECODER_IMPL_H */ #endif /* INCLUDED_LORA_DECODER_IMPL_H */

Wyświetl plik

@ -2,35 +2,35 @@
#define TABLES_H #define TABLES_H
namespace gr { namespace gr {
namespace lora { namespace lora {
const uint8_t prng_header[] = { const uint8_t prng_header[] = {
0x22, 0x11, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x22, 0x11, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}; };
const uint8_t prng_payload_sf7[] = { // OK const uint8_t pr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c, 0xe4, 0x54, 0x38, 0x44, 0xec, 0x34, 0xbc, 0xd4, 0x54, 0x24, 0xc, 0x68, 0xd4, 0xf4, 0xe4, 0xb4, 0x38, 0x74, 0xa4, 0x28, 0x5c, 0x50, 0x2c, 0x24, 0xb8, 0x68, 0x80, 0xbc, 0xc8, 0x54, 0xe8, 0xc, 0x88, 0x9c, 0x8c, 0x4, 0x0, 0x8, 0x68, 0xb8, 0xe4, 0x90, 0xb0, 0x84, 0x14, 0x20, 0x74, 0x4c, 0x38, 0x60, 0x1c, 0x70, 0xa4, 0x44, 0x4c, 0x6c, 0x60, 0x30, 0x38, 0x3c, 0xec, 0x80, 0xbc, 0xc8, 0x1c, 0xa0, 0xec, 0x68, 0xe4, 0xf4, 0xf8, 0xb4, 0xf4, 0x3c, 0xc, 0xc8, 0xc4, 0x60, 0xe0, 0x38, 0x10, 0xa4, 0x18, 0x14, 0x4, 0xcc, 0x8, 0xc0, 0xb8, 0x34, 0xd8, 0x9c, 0x64, 0xc4, 0x10, 0x58, 0x50, 0xa0, 0xac, 0xd0, 0xd8, 0x44, 0xdc, 0x34, 0xa0, 0xd4, 0x98, 0x6c, 0xa4, 0x88, 0x4c, 0xc4, 0x28, 0xa8, 0x90, 0xb8, 0x3c, 0x80, 0x90, 0xc8, 0xcc, 0xe8, 0x88, 0xc0, 0xd4, 0x24, 0xac, 0x98, 0x90
}; };
const uint8_t prng_payload_sf8[] = { const uint8_t prng_payload_sf8[] = {
0xbd, 0xdf, 0xa4, 0xfb, 0x16, 0x7f, 0x85, 0xfe, 0x40, 0xdf, 0x5b, 0xb0, 0xa2, 0x9e, 0xd0, 0x86, 0x26, 0x20, 0x68, 0x4f, 0xf7, 0x2a, 0xb6, 0xd3, 0x5e, 0x46, 0x97, 0x7c, 0x43, 0x7f, 0xe3, 0xb5, 0x73, 0x3e, 0x45, 0x83, 0x25, 0xcb, 0x9b, 0xe0, 0xc7, 0x13, 0x10, 0x51, 0x8, 0xad, 0x2, 0x98, 0x40,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xfd, 0x2b, 0xf2, 0x83, 0xf5, 0x64, 0x25, 0x5e, 0x33, 0x49, 0x50, 0xfb, 0x64, 0xd5, 0xa2, 0x41, 0x21, 0x85, 0x5c, 0x41, 0x25, 0x4d, 0x9, 0xe6, 0xe3, 0xa5, 0x79, 0xd9, 0x77, 0x6, 0x6e, 0x4c, 0xc0, 0x77, 0x35, 0xfc, 0x11, 0xd5, 0x5d, 0xa, 0x97, 0x50, 0x5, 0xa9, 0xe9, 0xb3, 0x7b, 0x79, 0x96, 0x15, 0x13, 0x4, 0x8f, 0x62, 0x91, 0x5e, 0x74, 0x12, 0x75, 0x9e, 0x3e, 0xad, 0x4b, 0x97, 0xe3, 0xf0, 0x8a, 0x3, 0x41, 0x60, 0xd1, 0xd2, 0x4b, 0xbb, 0xda, 0x3f, 0x3d
}; };
const uint8_t prng_payload_sf9[] = { const uint8_t prng_payload_sf9[] = {
0xfd, 0xbe, 0x94, 0xef, 0x1a, 0xf7, 0x7, 0xfd, 0x1, 0xff, 0xb, 0x94, 0xba, 0x1a, 0xda, 0x7, 0x64, 0x1, 0x78, 0xb, 0xdf, 0xba, 0xb0, 0xda, 0x9e, 0x64, 0x86, 0x78, 0xb, 0xdf, 0xf1, 0xb0, 0x3b, 0x9e, 0x57, 0x86, 0x2d, 0xb, 0xb9, 0xf1, 0x83, 0x3b, 0x80, 0x57, 0x1, 0x2d, 0x40, 0xb9, 0x10, 0x83, 0x47, 0x80, 0xa8, 0x3, 0x99, 0x41, 0xa3, 0x12, 0x5f, 0x3, 0x69, 0x8, 0x79, 0x98, 0xf4, 0xa7, 0xe, 0x5f, 0xcf, 0x6d, 0xe9, 0x79, 0xab, 0xf6, 0xb9, 0x2e, 0xd8, 0xcf, 0x2e, 0x41, 0xd1, 0x2b, 0x26, 0xb9, 0x68, 0xb8, 0xb8, 0x22, 0x1c, 0xd1, 0x7, 0x27, 0x60, 0x48, 0x14, 0xb8, 0x88, 0x9c, 0x48, 0x86, 0xa1, 0x60, 0x3, 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7, 0x9b, 0x40, 0x94, 0xa, 0x89, 0x2, 0xa0, 0xb7, 0x66, 0x43, 0x77, 0xb6, 0xc7, 0x3e, 0x3f, 0xdf
}; };
const uint8_t prng_payload_sf10[] = { const uint8_t prng_payload_sf10[] = {
0xfd, 0xfe, 0xf4, 0xdf, 0xe, 0xfb, 0x8f, 0x7f, 0x2, 0xfe, 0x4b, 0xb4, 0xea, 0x3e, 0xc2, 0x83, 0x6a, 0x88, 0xfa, 0x48, 0xfe, 0xaa, 0xf4, 0xf2, 0x4e, 0x62, 0xab, 0xf8, 0xd1, 0xfc, 0xe0, 0xb4, 0x73, 0x7e, 0x65, 0x83, 0x21, 0xcb, 0x93, 0x72, 0x87, 0x32, 0x40, 0x75, 0x50, 0x29, 0x2c, 0x19, 0x9a, 0x84, 0x4a, 0x0, 0xea, 0x30, 0xa9, 0x4, 0x8b, 0x88, 0x49, 0xa, 0xe2, 0x2a, 0x38, 0xb9, 0xa4, 0xa3, 0x16, 0xdf, 0xcd, 0x60, 0x4b, 0x7b, 0xea, 0x94, 0x89, 0x1a, 0xd0, 0x47, 0x28, 0x60, 0xd3, 0xaa, 0x26, 0xb9, 0x68, 0xb8, 0xb8, 0x22, 0x1c, 0xd1, 0x6, 0x65, 0x40, 0x18, 0x30, 0xa0, 0x3c, 0x92, 0xc9, 0x4c, 0xe2, 0x1, 0x73, 0x64, 0x2e, 0x34, 0xd0, 0x83, 0x20, 0xe2, 0x18, 0x32, 0x8e, 0x7c, 0x9a, 0xf8, 0xd5, 0x32, 0x46, 0x1e, 0xe0, 0xcd, 0x73, 0xca, 0x25, 0x8d, 0x7a, 0x64, 0xfe, 0x6a, 0xb5, 0x33, 0x5d, 0x35, 0xbd, 0x72, 0x96, 0xf0, 0x1b, 0xbf, 0x2, 0x1c, 0x40, 0xad, 0x30, 0x9e, 0x47, 0x55, 0x30, 0x4, 0xd3, 0x2, 0x6d, 0x62, 0xe2, 0x3f, 0x6a, 0x26, 0xb1, 0x41, 0x54, 0x2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0x1c, 0x54, 0x7b, 0xed, 0xb3, 0xfe, 0xdd, 0xbf, 0x6, 0xc4, 0xc, 0x29, 0x46, 0xa7, 0x70, 0x8, 0xf5, 0xc, 0xd5, 0xd1, 0x61, 0x4f, 0x93, 0x80, 0x12, 0x4f, 0xc3, 0x20, 0x80, 0x43, 0x67, 0x49, 0xc2, 0xab, 0x6f, 0x5d, 0xf3, 0xef, 0x51, 0xe8, 0x81, 0xfb, 0xb5, 0xc9, 0x51, 0x72, 0x2e, 0x7e, 0xf8, 0x2e, 0xf7, 0xab, 0xd7, 0x86, 0x6a, 0xa3, 0xb1, 0x9, 0x7e, 0x91, 0x52, 0x4, 0x98, 0x2a, 0x8b, 0xd4, 0x48, 0x64, 0x0, 0xe2, 0x4c, 0x41, 0x28, 0x7c, 0xda, 0xac, 0x26, 0x93, 0xb3, 0x34, 0x49, 0x14, 0x52, 0x69, 0xa, 0x76, 0xd0, 0x75, 0xe, 0xc, 0x2c, 0xc4, 0x2b, 0x4, 0xf0, 0x42, 0x36, 0x6c, 0x3c, 0x89, 0x89, 0xab, 0x3a, 0x8e, 0xdd, 0xca, 0xa7, 0xeb, 0xbe, 0xa9, 0xd3, 0xe4, 0x94, 0xe7, 0xe0, 0xf9, 0xb8, 0x3e, 0xf9, 0xe7, 0xac, 0xd3, 0x9, 0x79, 0x61, 0x80, 0x82, 0x41, 0x31, 0x48, 0xa0, 0x50, 0x96, 0x2, 0x26, 0x64, 0x85, 0x16
}; };
const uint8_t prng_payload_sf11[] = { const uint8_t prng_payload_sf11[] = {
0xfd, 0xfe, 0xb4, 0xbf, 0x3e, 0x8f, 0xa3, 0xd3, 0xd0, 0x75, 0x4, 0xfe, 0xc1, 0xb5, 0xea, 0x3e, 0xc2, 0xc3, 0x4a, 0x80, 0x6e, 0x2c, 0x7a, 0x59, 0xfe, 0x6a, 0x94, 0x82, 0x2a, 0x7a, 0x47, 0x62, 0x84, 0xf8, 0x42, 0xfd, 0xa0, 0x94, 0x43, 0x4a, 0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, 0xb6, 0xb3, 0xe3, 0x9c, 0xb2, 0xf, 0x75, 0xd0, 0x22, 0x10, 0xd7, 0x2d, 0x8d, 0x76, 0x91, 0x37, 0x8f, 0x35, 0xd1, 0x22, 0x0, 0xc4, 0x25, 0x5c, 0xfe, 0xf0, 0x36, 0xbc, 0x35, 0x8e, 0x42, 0xe8, 0xa4, 0x3, 0xfc, 0xd2, 0x7d, 0xa6, 0xbc, 0xba, 0xcf, 0xc8, 0xb8, 0x15, 0x23, 0x54, 0x58, 0xb3, 0x2f, 0x5f, 0xb2, 0x9c, 0xa8, 0x89, 0x65, 0x39, 0x54, 0x38, 0xb3, 0xd7, 0x5b, 0x8c, 0xdc, 0xa6, 0x99, 0xb1, 0x79, 0x18, 0x38, 0x10, 0x57, 0xc0
}; };
const uint8_t prng_payload_sf12[] = { const uint8_t prng_payload_sf12[] = {
0xfd, 0x7c, 0xb4, 0xff, 0x5f, 0x9f, 0xd7, 0xab, 0x28, 0x73, 0x91, 0xff, 0xc5, 0xb5, 0xab, 0x1c, 0x92, 0xe7, 0x76, 0x74, 0x54, 0x9f, 0xfd, 0xc3, 0x7f, 0xa9, 0xb5, 0xd2, 0x5e, 0x46, 0xb7, 0x5c, 0x47, 0x7f, 0xfb, 0xff, 0xef, 0x35, 0x33, 0x1d, 0x15, 0xe7, 0x3d, 0x5f, 0x85, 0x5d, 0x91, 0xea, 0x87, 0xb7, 0x2, 0x55, 0x41, 0x4d, 0x30, 0xed, 0x18, 0x17, 0x11, 0x8d, 0x4c, 0x2, 0xab, 0xa0, 0xd9, 0x24, 0xd7, 0x24, 0x3, 0x97, 0x43, 0x1, 0x62, 0x8a, 0x7b, 0x99, 0xf4, 0xa6, 0x4e, 0x6f, 0xbb, 0x55, 0x49, 0xed, 0xea, 0x73, 0xbb, 0x36, 0xd9, 0x3e, 0x9c, 0xe3, 0xb2, 0x97, 0x24, 0xe1, 0x51, 0x38, 0x6f, 0x9e, 0x38, 0xec, 0x64, 0xbe, 0x54, 0x1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, 0x5f
}; };
} }
} }
#endif /* TABLES_H */ #endif /* TABLES_H */

Wyświetl plik

@ -1,87 +1,70 @@
#ifndef UTILITIES_H #ifndef UTILITIES_H
#define UTILITIES_H #define UTILITIES_H
#include <cstdint>
namespace gr { namespace gr {
namespace lora { namespace lora {
template <typename T> template <typename T>
std::string to_bin(T v, int element_len_bits) { std::string to_bin(T v, uint32_t bitwidth) {
T mask = 0; unsigned long long maxpow = bitwidth ? (1ull << (bitwidth - 1)) : 0,
unsigned int maxpow = element_len_bits; mask;
std::string result = ""; std::string result = "";
for(int i = 0; i < maxpow; i++) { for (mask = 0x1; mask <= maxpow; mask <<= 1) {
mask = pow(2, i); result += (v & mask) ? "1" : "0";
//std::cout << (unsigned int)v << " AND " << mask << " is " << (v & mask) << std::endl;
if((v & mask) > 0) {
result += "1";
} else {
result += "0";
}
}
return result;
}
template <typename T>
inline void print_vector(std::ostream& out, std::vector<T>& v, std::string prefix, int element_len_bits) {
out << prefix << ": ";
for(int i = 0; i < v.size(); i++) {
out << to_bin(v[i], element_len_bits) << ", ";
}
out << std::endl << std::flush;
}
template <typename T>
inline void print_vector_raw(std::ostream& out, std::vector<T>& v, int element_len_bits) {
for(int i = 0; i < v.size(); i++) {
out << to_bin(v[i], element_len_bits);
}
out << std::flush;
}
bool check_parity(std::string word, bool even) {
int count = 0;
for(int i = 0; i < 7; i++) {
if(word[i] == '1')
count += 1;
}
if(even)
return ((count % 2) == 0);
else
return (((count+1) % 2) == 0);
}
uint32_t select_bits(uint32_t data, uint8_t* indices, uint8_t n) {
uint32_t result = 0;
for(uint32_t j = 0; j < n; j++) {
uint32_t power = pow(2, indices[j]);
if((data & power) > 0) {
result += pow(2, j);
}
} }
return result; return result;
} }
void fec_extract_data_only(uint8_t* in_data, uint32_t len, uint8_t* indices, uint8_t n, uint8_t* out_data) { template <typename T>
uint8_t out_index = 0; inline void print_vector(std::ostream& out, std::vector<T>& v, std::string prefix, int element_len_bits) {
out << prefix << ": ";
for(uint32_t i = 0; i < len; i+=2) { for (T x : v)
uint8_t d1 = 0; out << to_bin(x, element_len_bits) << ", ";
d1 = select_bits(in_data[i], indices, n) & 0xff;
out << std::endl << std::flush;
}
uint8_t d2 = 0; template <typename T>
if(i+1 < len) inline void print_vector_raw(std::ostream& out, std::vector<T>& v, int element_len_bits) {
d2 = select_bits(in_data[i+1], indices, n) & 0xff;
out_data[out_index] = (d1 << 4) | d2; for (T x : v)
out_index++; out << to_bin(x, element_len_bits);
out << std::flush;
}
bool check_parity(std::string& word, bool even) {
size_t count = 0, i = 0;
while(i < 7) {
if (word[i++] == '1')
++count;
}
return (count & 0x1) == (even ? 0 : 1);
}
uint32_t select_bits(uint32_t data, uint8_t *indices, uint8_t n) {
uint32_t r = 0;
for(uint8_t i = 0; i < n; ++i)
r |= (data & (1 << indices[i])) ? (1 << i) : 0;
return r;
}
void fec_extract_data_only(uint8_t *in_data, uint32_t len, uint8_t *indices, uint8_t n, uint8_t *out_data) {
for (uint32_t i = 0, out_index = 0; i < len; i += 2) {
uint8_t d1 = (select_bits(in_data[i], indices, n) & 0xff) << 4;
d1 |= (i + 1 < len) ? select_bits(in_data[i + 1], indices, n) & 0xff : 0;
out_data[out_index++] = d1;
} }
} }
@ -127,11 +110,7 @@ namespace gr {
// p4 01010101 // p4 01010101
// Syndrome matrix = columns of "cover bits" above // Syndrome matrix = columns of "cover bits" above
uint8_t H[16]; uint8_t H[16] = { 0 };
for(uint8_t i = 0; i < 16; i++) {
H[i] = 0;
}
uint8_t i0 = pack_nibble(1, 0, 0, 0); uint8_t i0 = pack_nibble(1, 0, 0, 0);
uint8_t i1 = pack_nibble(0, 1, 1, 1); uint8_t i1 = pack_nibble(0, 1, 1, 1);
@ -164,9 +143,8 @@ namespace gr {
uint8_t syndrome = pack_nibble((uint8_t)(p1 != p1c), (uint8_t)(p2 != p2c), (uint8_t)(p3 != p3c), (uint8_t)(p4 != p4c)); uint8_t syndrome = pack_nibble((uint8_t)(p1 != p1c), (uint8_t)(p2 != p2c), (uint8_t)(p3 != p3c), (uint8_t)(p4 != p4c));
if(syndrome != 0) { if (syndrome) {
uint8_t index = H[syndrome]; v ^= pow2[ H[syndrome] ];
v = v ^ pow2[index];
} }
uint8_t d1 = bit(v, 1); uint8_t d1 = bit(v, 1);
@ -178,22 +156,16 @@ namespace gr {
} }
// Manual Hamming // Manual Hamming
void hamming_decode_soft(uint8_t* words, uint32_t len, uint8_t* out_data) { void hamming_decode_soft(uint8_t *words, uint32_t len, uint8_t *out_data) {
uint32_t out_index = 0; for (uint32_t i = 0, out_index = 0; i < len; i += 2) {
for(int i = 0; i < len; i+=2) { uint8_t d1 = hamming_decode_soft_byte(words[i]) << 4;
uint8_t d1 = 0; d1 |= (i + 1 < len) ? hamming_decode_soft_byte(words[i + 1]) : 0;
d1 = hamming_decode_soft_byte(words[i]);
uint8_t d2 = 0; out_data[out_index++] = d1;
if(i+1 < len)
d2 = hamming_decode_soft_byte(words[i+1]);
out_data[out_index] = (d1 << 4) | d2;
out_index++;
} }
} }
} }
} }
#endif /* UTILITIES_H */ #endif /* UTILITIES_H */