Commit Graph

71 Commits

Author SHA1 Message Date
stevie 725a8442bb BUG: fails to correlate on 32 bit platforms. CAUSE: ulong initializer to bitset 64bits on amd64 but 32bits on 686 and is being truncated. FIX: abandon bitset and use a uint64_t instead.
git-svn-id: http://op25.osmocom.org/svn/trunk@115 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-29 01:26:29 +00:00
stevie 842310577f Fail softly - don't bomb out when device is unavailable.
git-svn-id: http://op25.osmocom.org/svn/trunk@112 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-16 04:48:25 +00:00
stevie 0ab01d0e1e Bring TUN/TAP interface up when program begins.
Change interface to data_unit.
 Make LDU1/2 call the IMBE decoder.

git-svn-id: http://op25.osmocom.org/svn/trunk@111 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-15 07:46:10 +00:00
stevie 8d4a3efd65 Fix the one and only self-test which was broken by the constructor signature change.
git-svn-id: http://op25.osmocom.org/svn/trunk@110 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-10 22:29:52 +00:00
stevie 62bc46494e Add TUN/TAP interface (to WireShark sniffer).
Remove work-in-progress on decoder code (accidentally committed).
Remove message queue interface to decoder.

git-svn-id: http://op25.osmocom.org/svn/trunk@108 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-06 10:38:11 +00:00
stevie c34b3918b9 Remove reference to imbe_error_corrector.
git-svn-id: http://op25.osmocom.org/svn/trunk@107 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-05 05:53:41 +00:00
stevie b55f317616 Re-encode NAC using BCH after decoding.
git-svn-id: http://op25.osmocom.org/svn/trunk@106 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-03 06:55:07 +00:00
stevie b663a32a62 Add bit extraction tables into LDU1/LDU2.
Default decode_body in abstract_data_unit simply marshalls data for WireShark.

git-svn-id: http://op25.osmocom.org/svn/trunk@105 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-03 04:07:44 +00:00
stevie 7650800ade Have data_unit::make_data_unit accept the frame body in a const_bit_vector.
Move BCH decoding back into op25_decoder_ff, it belongs there.
Refactor so different classes do the expected jobs (even though no class actually does anything yet).

git-svn-id: http://op25.osmocom.org/svn/trunk@104 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-02 02:47:56 +00:00
stevie 26e24d1145 Add imbe_decoder interface, drop bch.cc, use bitset<N> to represent NID fields, add bit swabbing, implement BCH decoding using IT++.
git-svn-id: http://op25.osmocom.org/svn/trunk@103 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-01 04:24:15 +00:00
stevie 8ffe3f8129 Change names of concrete data_unit classes to same form.
Add imbe_decoder interface which.
Add new error-correction and decoding functions to abstract_data_unit.

git-svn-id: http://op25.osmocom.org/svn/trunk@99 65a5c917-d112-43f1-993d-58c26a4786be
2008-11-09 22:41:29 +00:00
stevie 6320608644 Consume and produce (silence) or else it gets unhappy.
git-svn-id: http://op25.osmocom.org/svn/trunk@98 65a5c917-d112-43f1-993d-58c26a4786be
2008-11-07 10:14:00 +00:00
stevie d6c3403daf Add new decode method.
git-svn-id: http://op25.osmocom.org/svn/trunk@96 65a5c917-d112-43f1-993d-58c26a4786be
2008-11-02 11:34:28 +00:00
stevie 729913bfae Fix compile errors caused by gcc upgrade.
git-svn-id: http://op25.osmocom.org/svn/trunk@94 65a5c917-d112-43f1-993d-58c26a4786be
2008-10-29 11:41:41 +00:00
stevie ead89bda24 Abandon idea of P25 decoder being a sink. This means subclassing gr_block instead of gr_sync_block, some name changes and allowing for audio output from the block.
git-svn-id: http://op25.osmocom.org/svn/trunk@91 65a5c917-d112-43f1-993d-58c26a4786be
2008-09-09 09:03:37 +00:00
stevie e816a8c913 Remove BCH decoder. Do not remove status symbols so early in processing.
git-svn-id: http://op25.osmocom.org/svn/trunk@90 65a5c917-d112-43f1-993d-58c26a4786be
2008-09-06 21:25:58 +00:00
stevie 504a4f8b54 Add BCH decoding of network ID (NAC/DUID)
git-svn-id: http://op25.osmocom.org/svn/trunk@89 65a5c917-d112-43f1-993d-58c26a4786be
2008-06-16 09:41:24 +00:00
stevie 8c5fbfa263 Correct so FS/NetworkID symbols count toward data unit size. Add debugging printf.
git-svn-id: http://op25.osmocom.org/svn/trunk@81 65a5c917-d112-43f1-993d-58c26a4786be
2008-06-09 20:58:52 +00:00
stevie 4822bf70d6 Quick! Save it before I delete it again.
git-svn-id: http://op25.osmocom.org/svn/trunk@70 65a5c917-d112-43f1-993d-58c26a4786be
2008-05-31 22:26:53 +00:00
stevie 5cd8bbe666 Add test vector.
git-svn-id: http://op25.osmocom.org/svn/trunk@63 65a5c917-d112-43f1-993d-58c26a4786be
2008-05-18 07:19:09 +00:00
stevie ceb3382ebc Add empty project for apco_p25_decode block.
git-svn-id: http://op25.osmocom.org/svn/trunk@62 65a5c917-d112-43f1-993d-58c26a4786be
2008-05-16 10:14:58 +00:00