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

Cool stuff ... but how can I use it? #6

Closed
shuwang1 opened this issue Jan 29, 2020 · 4 comments
Closed

Cool stuff ... but how can I use it? #6

shuwang1 opened this issue Jan 29, 2020 · 4 comments
Labels
question Further information is requested

Comments

@shuwang1
Copy link

I think this looks really cool! However, how can I use it?

Does it only need to listen to the RTCM reports? Say ... I have a GNSS measurement engine, which output RTCM report on 192.168.1.1/1234. Then, I just add this IP info to GNSS-SDR monitor and that is it, right?

@acebrianjuan
Copy link
Owner

acebrianjuan commented Feb 2, 2020

Hi Shu Wang,

This GUI is designed to receive real-time data from GNSS-SDR over the network either locally (GNSS-SDR and GUI instances running on the same machine) or remotely (GNSS-SDR and GUI instances running on different machines).

gui-modes

The data that is required by the GUI to work comes from GNSS-SDR via two serialization streams over UDP: the Monitor block streaming and the PVT block streaming, which are independent from each other and provide different kinds of information. In addition, the GUI provides a widget for communicating with the receiver interactive interface (Telecommand via TCP/IP) by allowing you to send special commands to GNSS-SDR.

GeneralBlockDiagram
Figure: GNSS-SDR general block diagram from the documentation page: https://gnss-sdr.org/docs/sp-blocks/. The Monitor block streaming and PVT block streaming are highlighted in red. The Telecommand module is highlighted in green.

Therefore, if you want to use the GUI, it is essential that at least you activate both serialization data streams in your GNSS-SDR receiver configuration file by following these instructions:

In your configuration file, append the following lines to the #PVT CONFIG# section. Put the IP address of the machine where the GUI is running and choose a port number at your own discretion. I am using the loopback address and port 1111 as an example.

PVT.enable_monitor=true
PVT.monitor_client_addresses=127.0.0.1
PVT.monitor_udp_port=1111

This will activate the serialized stream of PVT data to the GUI, which will let you see the position reported by the receiver on a live map as well as a charts of the reported altitude and dilution of precision.

Next, add the following chunk in the #MONITOR CONFIG# section. Again, choose the IP address of the machine where the GUI is running and a port number that work best for you.

Monitor.enable_monitor=true
Monitor.decimation_factor=1
Monitor.client_addresses=127.0.0.1
Monitor.udp_port=1112

This will activate the serialized stream of data from the Monitor block to the GUI, which will let you see a table-like widget with the status of each channel accompanied by data readings of the acquisition and tracking stages.

Making sure that the GUI setup matches that of the GNSS-SDR configuration file is a critical step for the connection to work. In the menu bar of the GUI go to Edit > Preferences, and verify that the port numbers are correct.

Finally, if you want to make use of the Telecommand functionality (which is something I would recommend), append the following lines to the #GLOBAL OPTIONS# section of the configuration file.

GNSS-SDR.telecommand_enabled=true
GNSS-SDR.telecommand_tcp_port=3333

And then enter the IP address and TCP port number in the widget.

telecommand-widget

This will let you send commands to control the GNSS-SDR instance that you are monitoring with the GUI.

Once you complete these steps you are all set.

I hope this information is useful for you.
Cheers,
Álvaro

@acebrianjuan
Copy link
Owner

I have added the instructions from my comment to the README file in commit 79ff0e2

@acebrianjuan acebrianjuan unpinned this issue Jul 5, 2020
@dengxu3
Copy link

dengxu3 commented Mar 31, 2021

I can't help thinking that are the preference default values of GNSS_Synchro port and Moniter_pvt port opposite?
I mean it should 1111 for Moniter_Pvt port value. Am I right? It's kind of confusing.
@acebrianjuan

@acebrianjuan
Copy link
Owner

Hi @dengxu3,

I can't help thinking that are the preference default values of GNSS_Synchro port and Moniter_pvt port opposite?

Yes, that is correct. I mixed up the port numbers in the instructions by mistake.

I mean it should 1111 for Moniter_Pvt port value. Am I right? It's kind of confusing.

Yes, you are right.

I have just pushed a quick fix in 55037f5 updating the screenshot of the Preferences window.
However, I probably need to rework the instructions in the README file to make them more clear. In addition, given that, as of late, a number of users (including yourself) have reported being confused by the port names I will address issue #11 ASAP.

Thank you for reporting the error.

Regards,
Álvaro

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

No branches or pull requests

3 participants