From 4175b4d28fe79e5a01d04625b5a50da6214b86b1 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 16 May 2017 00:21:26 +0200 Subject: Reworking diagnostic manager to use BCM sockets. Use 2 sockets: - TX sockets on active_diagnostic_request class as we need X sockets using the same CAN ID "7DF" with different timing settings - RX socket on diagnostic_manager object as we need to read the same CAN ID and process them the same way, there isn't so much need to split them. Change-Id: I7338fd751a033a1d0e8912ee554e2c72c43961c3 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp') diff --git a/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp b/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp index 2a939ed8..4018b6be 100644 --- a/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp +++ b/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.cpp @@ -146,6 +146,11 @@ frequency_clock_t& active_diagnostic_request_t::get_timeout_clock() return timeout_clock_; } +utils::socketcan_bcm_t& active_diagnostic_request_t::get_socket() +{ + return socket_; +} + void active_diagnostic_request_t::set_handle(DiagnosticShims& shims, DiagnosticRequest* request) { handle_ = new DiagnosticRequestHandle(generate_diagnostic_request(&shims, request, nullptr)); -- cgit 1.2.3-korg