riebl / vanetza

Open-source implementation of the ETSI C-ITS protocol stack
Other
202 stars 158 forks source link

Socktap - How to send GPS coordinates from gps reciever? #182

Closed Krupass closed 1 year ago

Krupass commented 1 year ago

Hello, I successfully managed to send from one device to another static latitude and longitude with sudo socktap --interface=wlp5s0 --security=none --applications=ca --positioning=static --latitude=48.131231 --longitude=11.45645464. But when I send the command without the positioning, latitude and longitude, it still sends the "static" coordinates. When I check the position from GPS reciever with cgps or gpsmon I get the right coordinates.

I check the recieved coordinates with sudo tshark -i wlp5s0 -V -T fields -e frame.number -e frame.time_delta -e eth.src -e eth.dst -e geonw.src_pos.long -e geonw.src_pos.lat -e frame.len.

kenog commented 1 year ago

Hi,

did you set SOCKTAP_WITH_GPSD when compiling?

Best regards Keno

Krupass commented 1 year ago

No, do I need to recompile or is there a way to do it without recompiling (I would prefer it)?

kenog commented 1 year ago

That's a cmake option which influences which code is compiled into vanetza. If the option is not set, the gpsd-related code is missing in Vanetza. So you have to recompile, yes.

Krupass commented 1 year ago

Ok, thank you. So when compiling again SOCKTAP_WITH_GPSD should be set to ON?

kenog commented 1 year ago

Yes, something like cmake .. -DBUILD_SOCKTAP=ON -DSOCKTAP_WITH_GPSD=ON should do it.

Krupass commented 1 year ago

Thank you very much

Have a nice day, Krupass.