Open kng opened 4 months ago
Can you share a link to the raw IQ file (or cut.raw
) so that I can replicate this locally?
I have seen that if I modify the SatYAML to remove everything except the 4k8 transmitter, then gr_satellites
doesn't terminate. To get it to terminate I need to remove the KISS transports kiss
and kiss3
. Maybe this is what happens in your case?
I think it is the kiss_to_pdu that locks up, using hexdump disables it, right ? Same as removing the kiss/kiss3 in the yaml.
using hexdump disables it, right ?
I think so, but I'd have to check the code.
If the kiss_to_pdu doesn't have anything connected at its input, then I guess it makes sense that it doesn't terminate.
What should we do with this issue? My reading was that if the SatYAML is such that it leaves some kiss_to_pdu
blocks with disconnected input, then the flowgraph will not terminate. This doesn't happen with the gr-satellites SatYAML, but it happens if some transmitters are removed and their corresponding transports are not. So I think this is expected behaviour and this can be closed. Agreed?
I initially thought it was the kiss block that behaved erratically when fed with for example only the escape characters, the other details was more of selecting which blocks that was active.
Probably easier to make a simpler flowgraph and isolate it even more.
It becomes an issue when processing a bunch of file in a batch, because it just locks up forever. I have been thinking of adding a --silent
option or similar, to disable all the frame output in the console. To use when running in a automated environment where only the kiss output or zmq is used, then this becomes less of an issue.
Trying to figure out what's the state of the issue and action to take. My last comment in https://github.com/daniestevez/gr-satellites/issues/614#issuecomment-2295213011 suggested that this is expected behaviour and a non-issue (a particular case of a modified SatYAML that causes the flowgraph to run forever because it leaves some blocks in the flowgraph with a disconnected PDU input). It might be that I missed something.
While measuring deviation on observation 9873340 I noticed that the gr_satellites app did not exit after running through the file.
gr_satellites lilacsat-2 --iq --rawint16 iq_9873340_48000.raw --samp_rate 48000
seems to work fine. I did cut out a piece of a seemingly strong framedd bs=$((4*48000)) if=iq_9873340_48000.raw of=cut.raw skip=314 count=2
and ran with a satyaml that only contains the 4k8 transmitter because I wanted to look at the waveform.gr_satellites LilacSat-2_48.yml --iq --rawint16 cut.raw --samp_rate 48000 --dump_path dump --disable_dc_block
It prints one pdu and does not exit, the dump files does not get bigger and on cpu hogging going on. When I add--hexdump
it prints two frames and exits cleanly. The last one contains a bunch ofC0
which is KISS FEND character.