mhostetter / gr-adsb

GNU Radio OOT module for demodulating and decoding ADS-B packets
GNU General Public License v3.0
143 stars 43 forks source link

No GUI Mode #51

Closed tkotonkla closed 1 year ago

tkotonkla commented 1 year ago

Could I use the ADS-B demodulator block without the QT GUI Time sink or another block? Because I need to run this file in No GUI Mode via the python file in raspberry pi in no desktop mode.

mhostetter commented 1 year ago

Yes, you can. Just disable the QT GUI blocks and set the flowgraph to No GUI Mode.

tkotonkla commented 1 year ago

Thank you so much for your response, sir. When I follow your suggestion, The ADS-B demodulator block changed to a red block. I think it requires some output after I disable the QT GUI Time Sink block. How I fix it?

mhostetter commented 1 year ago

Ah, yes. You'll need to connect the orange output that currently goes to the QT GUI Time Sink to a Null Sink. See here: https://wiki.gnuradio.org/index.php/Null_Sink.

tkotonkla commented 1 year ago

Thank you, sir. It working. I have another question about ZMQ Pub. I try to write a python script file to get the raw data but it doesn't work. Could you advise on how to retrieve the data?

mhostetter commented 1 year ago

Please refer to the webserver.py implementation. It shows how to setup a ZMQ subscriber and receive the decoded ADS-B packets.

https://github.com/mhostetter/gr-adsb/blob/5d0361d208072574e1a3a200fca07c0b334f16d0/web/webserver.py#L44-L55

tkotonkla commented 1 year ago

Awesome, I have done everything. Thank you, sir.