Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No GUI Mode #51

Closed
tkotonkla opened this issue Jan 10, 2023 · 6 comments
Closed

No GUI Mode #51

tkotonkla opened this issue Jan 10, 2023 · 6 comments
Labels

Comments

@tkotonkla
Copy link

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
Copy link
Owner

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

@tkotonkla
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

gr-adsb/web/webserver.py

Lines 44 to 55 in 5d0361d

def zmq_thread():
# Establish ZMQ context and socket
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.setsockopt(zmq.SUBSCRIBE, b"")
socket.connect("tcp:https://{:s}:{:d}".format(ZMQ_ADDRESS, ZMQ_PORT))
while True:
# Receive decoded ADS-B message from the decoder over ZMQ
pdu_bin = socket.recv()
pdu = pmt.deserialize_str(pdu_bin)
plane = pmt.to_python(pmt.car(pdu))

@tkotonkla
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants