---
# System prepended metadata

title: Vanetza Usage

---

# Vanetza Usage

- Build **socktap** applications in **tools** folder
    - change the CMake option **BUILD_SOCKTAP** to **ON** in CMakeLists.txt
    - some bugs in security.cpp ...

in col.13
```diff=
#include <vanetza/security/v2/sign_service.hpp>
#include <vanetza/security/v2/static_certificate_provider.hpp>
#include <vanetza/security/v2/trust_store.hpp>
- #include <vanetza/security/v2/verify_service.hpp>
#include <stdexcept>
```
in col.57
```diff=
std::unique_ptr<security::SignService> sign_service { new 
    security::v2::StraightSignService(*cert_provider, *backend, sign_header_policy) };
std::unique_ptr<security::VerifyService> verify_service { new
-   security::v2::StraightVerifyService(runtime, *cert_provider, cert_validator, *backend, cert_cache, sign_header_policy, positioning) };
+   security::StraightVerifyService(runtime, *backend, positioning) };
```
in CMakeLists.txt, col.20
```diff=
if(EXISTS ${PROJECT_BINARY_DIR}/conanbuildinfo.cmake)
    include(${PROJECT_BINARY_DIR}/conanbuildinfo.cmake)
    conan_basic_setup(TARGETS)
-   set(Boost_NO_SYSTEM_PATHS ON)
+   # set(Boost_NO_SYSTEM_PATHS ON)
    set(GeographicLib_PREFER_PACKAGE_CONFIG OFF)
endif()

+ set (BOOST_ROOT "/usr/local/boost_1_82_0")
+ set (BOOST_LIBRARYDIR "/usr/local/boost_1_82_0/lib")
+ set (Boost_NO_BOOST_CMAKE ON)
+ include_directories(${Boost_INCLUDE_DIRS})
+ link_directories(${Boost_LIBRARY_DIRS})
```

- **ca** sends Cooperative Awareness Messages (CAM)
    - Data format follows ITS facilities layer protocol that operates the CAM transmission
![image alt](https://i.imgur.com/UpEBEJj.png)
- **hello** sends simple BTP-B message with the binary payload 0xc0ffee
![image alt](https://i.imgur.com/v84gm0q.png)


### TODO

- Applying a real GPS device in Vanetza.