Open jh4xsy opened 3 days ago
I'm copying here something I wrote to someone else by email.
I believe this is a bug in the proxy_mmt_gui application. The ZMQ PUB Message Sink block is the intended way of sending data to this application, since the flowgraphs in gr-lilacsat/examples/ASRTU-1 also use this block. What this block does is to serialize the PDU as a PMT and send that as a ZMQ message:
https://github.com/gnuradio/gnuradio/blob/main/gr-zeromq/lib/pub_msg_sink_impl.cc#L65
The correct way of processing this message in another application is to deserialize it using the PMT library. However, proxy_mmt_gui doesn't do this. It looks like it skips the first 10 bytes of the message and expects to find the PDU bytes after that:
It might be true that this is the case for a PDU without metadata, but:
What happens in this case is that the PDU from gr-satellites contains some metadata (the (transmitter . 9k6 BPSK downlink) (rs_errors . 0) that gets printed in the VERBOSE PDU DEBUG PRINT), and proxy_mmt_gui is incorrectly interpreting these as part of the PDU data (as you found by doing an ASCII decode of the extra bytes).
As a workaround I think you should be able to use the PDU Remove block (actually two copies of it) to remove the metadata before sending it to the ZMQ PUB Message Sink, but this is far from being a good solution.
Thanks reply.
I understood that the extra data is metadata.
The gr-satellites's metadata size varies depending on the number of rs_errors. But proxy_mmmt_gui's metadata size is fixed: hard coded.
Humm.... I agree proxy_mmt_gui should fix this.
At ASRTU-1 observation #10554932, I got this 223 bytes data by using gr-satellies.
I also sent this to other application "proxy_mmt_gui" (part of gr-lilacsat) by ZMQ PUB socket, then I got 55+223 bytes data. The extra 55 bytes are as follows, containing the strings "smitter", "9k6 BPSK downlink" and "rs_errors".
Is it possilbe to delete these data?
I used GNU Radio 3.8 + gr-satellies with ASRTU-1 support.