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

Enabling of GPS positioning #203

Open
marta-dutto opened this issue Oct 28, 2023 · 5 comments
Open

Enabling of GPS positioning #203

marta-dutto opened this issue Oct 28, 2023 · 5 comments

Comments

@marta-dutto
Copy link

Hello! I am using vanetza for my project and I connected a GNSS module in order to use a real GPS positioning with socktap.
Unfortunately, it seems that I was not able to activate the flag SOCKTAP_WITH_GPS in order to use GPS data instead of the fixed position.
In order to set the flag on I used the command SOCKTAP_WITH_GPSD=ON but it didn't work, can you please explain to me the correct procedure to activate the flag?
I think that the only issue is about the activation of this flag. I am attaching a screenshot of the response I got when I tried to set the gpsd parameter on the system.
Thank you very much for your time!
file

@riebl
Copy link
Owner

riebl commented Oct 29, 2023

I suggest to either use ccmake or cmake-gui to enable the CMake variable SOCKTAP_WITH_GPSD. As you have already mentioned, this option is a prerequisite for the gpsd positioning provider and its gpsd-host option. After enabling the CMake option, you have to rebuild the software as well.

@marta-dutto
Copy link
Author

I successfully enabled the option, it seemed to be set automatically on when the GPS antenna is connected.
I was wondering if there are any other parameters to activate since the GPS is working correctly on the device but the data it is not read by socktap.
Thank you very much for your help.

@riebl
Copy link
Owner

riebl commented Nov 7, 2023

socktap simply connects to the gpsd daemon, i.e. it will "see" the same position data as for example gpsmon. Hence, you can verify if positioning is working correctly by running gpsmon in parallel.

@marta-dutto
Copy link
Author

It actually works fine with gpsmon showing consistent data but when running socktap uses the fixed default positioning data. Could be a daemon problem in your opinion?
Thank you very much for your help.

@riebl
Copy link
Owner

riebl commented Nov 14, 2023

Please try again with the latest version, I have just merged PR #207 which might be related to your issue.

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

No branches or pull requests

2 participants