Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
application::doip::ObdToDoipConverter Class Reference

A OBD service class to handle OBD queries asynchronously. More...

#include <obd_to_doip_converter.h>

Inheritance diagram for application::doip::ObdToDoipConverter:

Public Member Functions

 ObdToDoipConverter (AsyncBsdSocketLib::Poller *poller, std::string ipAddress, uint16_t port)
 Constructor. More...
 
bool TryGetResponse (const std::vector< uint8_t > &pid, std::vector< uint8_t > &response) const override
 
bool TryGetResponseAsync (const std::vector< uint8_t > &pid) override
 

Detailed Description

A OBD service class to handle OBD queries asynchronously.

The class based on the queried PID may convert the query to a UDS message and send it via DoIP to a UDS server.

Constructor & Destructor Documentation

◆ ObdToDoipConverter()

application::doip::ObdToDoipConverter::ObdToDoipConverter ( AsyncBsdSocketLib::Poller *  poller,
std::string  ipAddress,
uint16_t  port 
)

Constructor.

Parameters
pollerGlobal poller for network communication
ipAddressDoIP server IPv4 address
portDoIP server TCP listening port number
Exceptions
std::runtime_errorThrows when the DoIP client initialization failed