From: drowe67 Date: Sat, 14 Apr 2018 04:00:48 +0000 (+0000) Subject: new horus binary packet with intereleaver and scrambling X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=8fb9a8f6a6bd0860f7d53233d27fc9d9d8668c54;p=freetel-svn-tracking.git new horus binary packet with intereleaver and scrambling git-svn-id: https://svn.code.sf.net/p/freetel/code@3484 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/octave/horus_tx_bits_binary.txt b/codec2-dev/octave/horus_tx_bits_binary.txt index 61e52d95..47bb998a 100644 --- a/codec2-dev/octave/horus_tx_bits_binary.txt +++ b/codec2-dev/octave/horus_tx_bits_binary.txt @@ -1 +1 @@ -0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 0 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 1 0 0 1 1 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 0 0 1 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 1 0 0 0 1 0 0 1 1 1 1 1 0 0 0 1 0 0 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 \ No newline at end of file +0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 1 0 0 0 1 0 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 1 0 0 0 0 1 0 0 1 0 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 0 1 1 0 1 0 0 0 1 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 1 0 1 1 1 1 1 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 1 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 1 0 0 0 0 0 0 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 0 1 0 1 1 0 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 \ No newline at end of file diff --git a/codec2-dev/src/horus_api.c b/codec2-dev/src/horus_api.c index 9ebbd52d..6f358784 100644 --- a/codec2-dev/src/horus_api.c +++ b/codec2-dev/src/horus_api.c @@ -361,6 +361,15 @@ int horus_rx(struct horus *hstates, char ascii_out[], short demod_in[]) { } if (hstates->mode == HORUS_MODE_BINARY) { valid_packet = extract_horus_binary(hstates, ascii_out, uw_loc); + //#define DUMP_BINARY_PACKET + #ifdef DUMP_BINARY_PACKET + FILE *f = fopen("packetbits.txt", "wt"); assert(f != NULL); + for(i=0; imax_packet_len; i++) { + fprintf(f,"%d ", hstates->rx_bits[uw_loc+i]); + } + fclose(f); + exit(0); + #endif } }