Commit Graph

344 Commits

Author SHA1 Message Date
Itaru OGAWA 86965650ae Fix for insufficient initialization for generic decoder. 2022-09-02 08:39:21 +02:00
Anton Ottosson ef5fd6c595 Fix format_mac_address function in parse_mac.cc
Apparently the stream manipulator `std::setw` applies only to the next string written to the stream. Hence the function `format_mac_address` in parse_mac.cc only formatted the first pair of hexadecimal digits correctly. This went unnoticed until now because it only makes a difference for numbers below 0x10.
2021-08-03 17:35:32 +02:00
Bastian Bloessl 6b5a8c1ddc update readme 2021-07-20 12:18:16 +02:00
Bastian Bloessl 4d1befbc05 fix formatting 2021-07-19 08:50:53 +02:00
Anton Ottosson 24f72aaf08 Uniform metadata keys.
This commit makes all metadata keys follow similar formatting: all lowercase, with spaces (as opposed to underlines or other conventions).
2021-07-19 08:14:08 +02:00
Anton Ottosson e620d48c81 Make metadata pipeline more uniform and GR-like.
The Frame Equalizer used to propagate metadata as a dictionary stored in a single tag. Now it instead propagates each entry as a separate tag, which is more in line with how standard GNU Radio blocks do it (see for example PDU to Tagged Stream block). This is also how the Extract CSI block does it.

This modification also removes a lot of unnecessary variables and type conversions (from and to pmt types) in the Decode MAC block.
2021-07-19 08:14:08 +02:00
Anton Ottosson 4f069d6518 Enable debug on Parse MAC in loopback example.
The readme says that if you run the loopback example, then "If everything works as intended you should see some decoded packets on the console". For this to be true out of the box, the debug option on the Parse MAC block must be enabled.
2021-07-19 08:10:13 +02:00
Bastian Bloessl 3d8a172acc delete unused file 2021-07-17 10:10:46 +02:00
Bastian Bloessl a2491b5474 clang format, similar to GNU Radio 2021-07-17 10:07:21 +02:00
Bastian Bloessl 5f7e102e3d cs: coding style 2021-07-17 09:55:17 +02:00
Bastian Bloessl 6cd3b5bd10 update flowgraphs 2021-07-17 09:51:07 +02:00
Bastian Bloessl 4d12149cfb grc: rename CSI block 2021-07-17 09:50:59 +02:00
Anton Ottosson 7e3107282a Added Extract CSI block.
This block takes PDU messages as input, looks for a "csi" entry in the meta dictionary, and if found outputs a complex CSI vector on a stream output. The meta is also sent along as stream tags.
2021-07-14 19:34:12 +02:00
Anton Ottosson 51f7d6b284 Changes in response to discussion with bastibl.
We will not parse the frame body and put it in the metadata. Instead `print_ascii` has been restored for debug output. `format_mac` has been made more complete, with correct hex formatting.
2021-07-13 22:02:43 +02:00
Anton Ottosson 45fd47b6ec Small fix to last commit
If we cannot determine the length of the mac frame body, we should probably not attempt to parse it.
2021-07-13 02:58:23 +02:00
Anton Ottosson 844424404d Parse MAC writes to meta and propagates PDU.
This commit extends the Parse MAC block so that it puts the parsed fields in the metadata dictionary of the incoming PDU and also propagates it on a message output. It does not modify the cdr of the PDU. The 'fer' output has been removed, and instead 'Lost frames' and 'Instantanteous FER' are put in the metadata dictionary.
2021-07-13 02:47:44 +02:00
Anton Ottosson 228d1b1bcc Add beta and csi to decode_mac PDU output.
Also changed to using `std::vector<gr_complex>` type because it was becoming more and more inconvenient to use c-style arrays.
2021-07-09 21:54:38 +02:00
Anton Ottosson 4a3f387d6d Skip guard bands and null subcarrier in get_csi(). Add beta and csi metadata to stream tag from frame equalizer. 2021-07-09 19:34:29 +02:00
Anton Ottosson 0b095e0ff7 Add base::get_csi() to expose d_H. 2021-07-08 23:39:52 +02:00
Anton Ottosson 8ca5dcedde Make d_H inherited from base class.
All equalizer classes had their own private `d_H` vector, despite all being derived from a common `base` class. Now `d_H` is instead a protected member of `base`, and thus accessible to the derived equalizer classes.
2021-07-08 21:51:53 +02:00
Bastian Bloessl d8f45138a2 readme update 2021-07-05 19:41:47 +02:00
Bastian Bloessl e2a59771ed tx flowgraph add hackrf sink 2021-02-03 20:56:21 +01:00
Marcin Borawski 002df040ff Update README.md
Added table of contents and updated the outdated link to Logging docs for GNU Radio.
See #239 .
2020-10-22 15:32:33 +02:00
Bastian Bloessl 0f659b4d50 boost 1.73 fix 2020-08-12 11:49:06 +02:00
Bastian Bloessl ae1286a727 Merge pull request #232 from mychele/maint-3.8
Fixes #231
2020-07-30 09:12:58 +02:00
mychele 7a2cbdb8d8 Fix d_prev_pilots for symbols 0 and 1 in frame_equalizer_impl.cc 2020-07-29 09:42:55 -07:00
Bastian Bloessl d63adab8f1 wifi_tx: disable receive chain 2020-05-31 17:14:09 +02:00
Bastian Bloessl 99f1a4564f cmake: fix sse2 detection 2019-12-17 18:12:36 +01:00
Bastian Bloessl c3e8688859 rename includes to match GR naming scheme 2019-12-17 18:12:31 +01:00
Bastian Bloessl 4f034c9722 cmake: adapt versioning to gr 3.8 2019-08-26 13:24:37 +02:00
Bastian Bloessl 763d55d9f2 new GRC port naming scheme broke flow graphs 2019-07-02 10:09:17 +02:00
Bastian Bloessl a17bd7bf3a update python imports 2019-06-06 17:50:33 +02:00
Bastian Bloessl f66f1eea8a delete obsolete blocks 2019-06-06 13:05:02 +02:00
Bastian Bloessl 14d8dfcb5d cmake: fix include dir name 2019-06-06 12:46:37 +02:00
Bastian Bloessl eea1ffa3bc update readme 2019-06-06 12:11:42 +02:00
Bastian Bloessl 30be96a165 udpate flowgraphs
sorry, new GRC layout is horrible
2019-06-06 12:03:57 +02:00
Bastian Bloessl 9393abbf65 port to 3.8 2019-06-06 12:03:43 +02:00
Bastian Bloessl 39861c37af begin 3.8 porting 2019-03-18 05:58:00 +00:00
Bastian Bloessl 8bffcf7faf update flow graphs (broken) 2018-10-04 14:10:06 +02:00
Bastian Bloessl 358bb5ccaa python: explicit relative imports 2018-10-04 11:28:05 +02:00
Bastian Bloessl fee31310e5 gnuradio does not export python3 version 2018-10-04 11:04:52 +02:00
Bastian Bloessl c80340df6e cmake cleanup 2018-10-04 11:04:39 +02:00
Bastian Bloessl 5c7879feaf del cpp unit 2018-10-04 11:03:59 +02:00
Bastian Bloessl 4555253ab9 delete local modules 2018-10-04 11:03:20 +02:00
Bastian Bloessl 3ccf528a96 del python workaround 2018-10-04 11:03:00 +02:00
Bastian Bloessl b8b91a0c88 update cmake modules 2018-10-04 10:10:45 +02:00
Bastian Bloessl f956d36ce4 del python build utils 2018-10-04 10:08:30 +02:00
Bastian Bloessl 3143469287 convert xml -> yaml 2018-10-04 10:07:53 +02:00
Bastian Bloessl 4cddc2b740 no custom moving avg 2018-10-04 10:06:47 +02:00
Bastian Bloessl d730126586 log4cpp now mandatory 2018-10-04 10:04:50 +02:00