Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
4d1fa47
Initial commit
AKalinich-Luxoft Aug 9, 2021
18d725f
native part of BLE transport
VadymLuchko Aug 19, 2021
202267d
Merge pull request #297 from CustomSDL/feature/android_ble_cpp
VadymLuchko Aug 19, 2021
3621917
fix atrer rebase Adaptation for sdl foreground service
VadymLuchko Aug 20, 2021
e69b403
Merge pull request #296 from CustomSDL/impl/sdl_servic_adapt
VadymLuchko Aug 20, 2021
d6b2e39
fix BLE stopping
VadymLuchko Aug 24, 2021
67478f6
Update src/components/transport_manager/src/bluetooth_le/ble_server.cc
VadymLuchko Aug 24, 2021
0dcfac8
Merge pull request #298 from CustomSDL/fix/stop_ble_transport
VadymLuchko Aug 27, 2021
7f32022
Fix invalid uses of erase while iterating through sets
VadymLuchko Sep 1, 2021
4ed168d
Merge pull request #299 from CustomSDL/fix/fix_unsubscribe_vehicle_data
VadymLuchko Sep 2, 2021
b7052e6
Make BLE device disconnect properly
AKalinich-Luxoft Sep 5, 2021
b6f0699
Merge pull request #300 from CustomSDL/fix/make_proper_ble_device_dis…
AKalinich-Luxoft Sep 13, 2021
7a2e1e7
Added BLUETOOTH_LE TransportType
VadymLuchko Sep 17, 2021
e27c1fc
Merge pull request #301 from CustomSDL/fix/HMI_BLE_transport_type
VadymLuchko Sep 21, 2021
8f582d2
refactor
VadymLuchko Sep 23, 2021
e8c15fc
parametrisation for AndroidTransportAdapter
VadymLuchko Sep 23, 2021
3dce6e7
compilation flag
VadymLuchko Sep 23, 2021
0706c1b
BLE and BT
VadymLuchko Sep 23, 2021
12d0020
build Flag for android bt
VadymLuchko Sep 24, 2021
1417e40
Add support for 32-bit Android systems
AKalinich-Luxoft Sep 24, 2021
3a0c69b
fixes by review
VadymLuchko Sep 27, 2021
142d4ca
rename params
VadymLuchko Sep 28, 2021
aaff24a
Merge pull request #302 from CustomSDL/imp/generic_android_ipc
VadymLuchko Oct 1, 2021
2ec5180
merge from release/8.0.0
VadymLuchko Oct 5, 2021
f4dc4dc
fix after merge
VadymLuchko Oct 13, 2021
fdd9225
Fix Linux build
AKalinich-Luxoft Oct 18, 2021
3f765bc
Merge branch 'release/8.0.0' into feature/merge_release_8.0.0
VadymLuchko Oct 19, 2021
21f31b3
Merge pull request #304 from CustomSDL/feature/merge_release_8.0.0
AKalinich-Luxoft Oct 19, 2021
e9a14a9
Android section in ini file (#305)
VadymLuchko Oct 20, 2021
38622b2
Delete old MOBILE_API
AKalinich-Luxoft Oct 21, 2021
59f79a7
Update ini file params
AKalinich-Luxoft Oct 21, 2021
c3bc895
Remove ignored git files
AKalinich-Luxoft Oct 21, 2021
3a49a0e
Fix logger static assertion for Android
AKalinich-Luxoft Oct 22, 2021
9fde82a
tags for Android IPCs in log (#308)
VadymLuchko Oct 22, 2021
f6e7b7e
workaround with logger re-init
VadymLuchko Oct 22, 2021
bb767cb
Merge pull request #309 from CustomSDL/fix/sdl_restart_log
AKalinich-Luxoft Oct 22, 2021
763c13e
Revert "workaround with logger re-init"
AKalinich-Luxoft Oct 22, 2021
415a2e7
Add separate types for Android BLE and BT
AKalinich-Luxoft Oct 25, 2021
b84d8cb
Disconnect Android device when app was unregistered
AKalinich-Luxoft Oct 25, 2021
68f3c39
fix transport adapter test
VadymLuchko Oct 26, 2021
3ad71b6
Merge pull request #310 from CustomSDL/fix/fix_transport_test
AKalinich-Luxoft Oct 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions 0001-Reproduce-commit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From dc4dff0e13ad400958867c4e4c024c373578cc5b Mon Sep 17 00:00:00 2001
From: Andrii Kalinich <AKalinich@luxoft.com>
Date: Fri, 23 Oct 2020 18:25:27 -0400
Subject: [PATCH] Reproduce commit

---
.../src/transport_adapter/threaded_socket_connection.cc | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/components/transport_manager/src/transport_adapter/threaded_socket_connection.cc b/src/components/transport_manager/src/transport_adapter/threaded_socket_connection.cc
index eb92599..da5fed1 100644
--- a/src/components/transport_manager/src/transport_adapter/threaded_socket_connection.cc
+++ b/src/components/transport_manager/src/transport_adapter/threaded_socket_connection.cc
@@ -125,14 +125,15 @@ TransportAdapter::Error ThreadedSocketConnection::Start() {

void ThreadedSocketConnection::Finalize() {
SDL_LOG_AUTO_TRACE();
- if (unexpected_disconnect_) {
- SDL_LOG_DEBUG("unexpected_disconnect");
- controller_->ConnectionAborted(
- device_handle(), application_handle(), CommunicationError());
- } else {
+// if (unexpected_disconnect_) {
+// SDL_LOG_DEBUG("unexpected_disconnect");
+// controller_->ConnectionAborted(
+// device_handle(), application_handle(), CommunicationError());
+// } else {
SDL_LOG_DEBUG("not unexpected_disconnect");
controller_->ConnectionFinished(device_handle(), application_handle());
- }
+ // Something is missing here
+// }

ShutdownAndCloseSocket();
}
--
2.7.4

56 changes: 48 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ set (HMI "web" CACHE STRING "HMI type")
option(EXTENDED_MEDIA_MODE "Turn on and off extended Madia Manager features relates to PulseAudio A2DP and GStreamer" OFF)
option(BUILD_SHARED_LIBS "Build all libraries as shared (if ON) or static (if OFF)" OFF)
option(BUILD_BT_SUPPORT "Bluetooth support" ON)
option(BUILD_BLE_SUPPORT "Bluetooth Low Energy support" OFF)
option(BUILD_ANDROID_BT_SUPPORT "Android Bluetooth support" OFF)
option(BUILD_USB_SUPPORT "libusb support" ON)
option(BUILD_CLOUD_APP_SUPPORT "Cloud App Transport Support" ON)
option(BUILD_WEBSOCKET_SERVER_SUPPORT "Web Engine App Transport Support" ON)
option(BUILD_WEBSOCKET_SERVER_SUPPORT "Web Engine App Transport Support" OFF)
option(BUILD_BACKTRACE_SUPPORT "backtrace support" ON)
option(BUILD_TESTS "Possibility to build and run tests" OFF)
option(TELEMETRY_MONITOR "Enable profiling time test util" ON)
Expand Down Expand Up @@ -83,8 +85,8 @@ set(POLICY_OPTION "$ENV{POLICY_TYPE}")
set(SECURITY_OPTION "$ENV{SECURITY_MODE}")
set(COMPONENTS_DIR ${CMAKE_SOURCE_DIR}/src/components)
set(SNAPSHOT_TAG "$ENV{SNAPSHOT_TAG}")
set(CMAKE_CXX_COMPILER $ENV{CMAKE_CXX_COMPILER})
set(CMAKE_C_COMPILER $ENV{CMAKE_C_COMPILER})
#set(CMAKE_CXX_COMPILER $ENV{CMAKE_CXX_COMPILER})
#set(CMAKE_C_COMPILER $ENV{CMAKE_C_COMPILER})
set(BUILDDIR "$ENV{BUILDDIR}")

if (ARCH_TYPE_OPTION)
Expand Down Expand Up @@ -180,6 +182,18 @@ get_property(cValue CACHE BUILD_BT_SUPPORT PROPERTY VALUE)
file(APPEND "${build_config_path}" "//${cHelpString}\n")
file(APPEND "${build_config_path}" "BUILD_BT_SUPPORT:${cType}=${cValue}\n\n")

get_property(cHelpString CACHE BUILD_BLE_SUPPORT PROPERTY HELPSTRING)
get_property(cType CACHE BUILD_BLE_SUPPORT PROPERTY TYPE)
get_property(cValue CACHE BUILD_BLE_SUPPORT PROPERTY VALUE)
file(APPEND "${build_config_path}" "//${cHelpString}\n")
file(APPEND "${build_config_path}" "BUILD_BLE_SUPPORT:${cType}=${cValue}\n\n")

get_property(cHelpString CACHE BUILD_ANDROID_BT_SUPPORT PROPERTY HELPSTRING)
get_property(cType CACHE BUILD_ANDROID_BT_SUPPORT PROPERTY TYPE)
get_property(cValue CACHE BUILD_ANDROID_BT_SUPPORT PROPERTY VALUE)
file(APPEND "${build_config_path}" "//${cHelpString}\n")
file(APPEND "${build_config_path}" "BUILD_ANDROID_BT_SUPPORT:${cType}=${cValue}\n\n")

get_property(cHelpString CACHE BUILD_USB_SUPPORT PROPERTY HELPSTRING)
get_property(cType CACHE BUILD_USB_SUPPORT PROPERTY TYPE)
get_property(cValue CACHE BUILD_USB_SUPPORT PROPERTY VALUE)
Expand Down Expand Up @@ -252,7 +266,7 @@ set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
set(ARCHIVE_OUTPUT_DIRECTORY ./bin)

set(EXCLUDE_ERROR_FLAGS "-Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++0x -Wall -fvisibility=hidden -Werror ${EXCLUDE_ERROR_FLAGS} -Wuninitialized -Wvla")
set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++0x -Wall -fvisibility=hidden ${EXCLUDE_ERROR_FLAGS} -Wuninitialized -Wvla")

if (USE_GOLD_LD)
execute_process(COMMAND ld -v OUTPUT_VARIABLE result)
Expand Down Expand Up @@ -317,6 +331,9 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
SET(BUILD_BT_SUPPORT OFF)
SET(BUILD_BACKTRACE_SUPPORT OFF)
SET(EXTENDED_MEDIA_MODE OFF)
elseif(ANDROID)
SET(BUILD_BLE_SUPPORT ON)
SET(BUILD_ANDROID_BT_SUPPORT ON)
endif()


Expand All @@ -332,6 +349,16 @@ if (BUILD_BT_SUPPORT)
message(STATUS "Bluetooth support enabled")
endif()

if (BUILD_BLE_SUPPORT)
add_definitions(-DBLUETOOTH_LE_SUPPORT)
message(STATUS "Bluetooth Low Energy support enabled")
endif()

if (BUILD_ANDROID_BT_SUPPORT)
add_definitions(-DANDROID_BT_SUPPORT)
message(STATUS "Bluetooth for Android support enabled")
endif()

if (BUILD_CLOUD_APP_SUPPORT)
add_definitions(-DCLOUD_APP_WEBSOCKET_TRANSPORT_SUPPORT)
message(STATUS "Cloud app websocket support enabled")
Expand All @@ -349,7 +376,9 @@ endif()

if(ENABLE_LOG)
add_definitions(-DENABLE_LOG)
if (NOT ANDROID)
set(install-3rd_party_logger "install-3rd_party_logger")
endif ()
message(STATUS "Logger enabled")
endif()

Expand Down Expand Up @@ -432,8 +461,11 @@ include_directories(
# --- 3rd party libs
add_subdirectory(./src/3rd_party EXCLUDE_FROM_ALL)

find_package(OpenSSL REQUIRED)
if(ENABLE_LOG AND ${LOGGER_NAME} STREQUAL "LOG4CXX")
if (NOT ANDROID)
find_package(OpenSSL REQUIRED)
endif()

if(ENABLE_LOG AND ${LOGGER_NAME} STREQUAL "LOG4CXX" AND NOT ANDROID)
message(STATUS "Including log4cxx")
include_directories ( ${LOG4CXX_INCLUDE_DIRECTORY} )
endif()
Expand All @@ -456,8 +488,9 @@ if(ENABLE_IAP2EMULATION)
message(STATUS "IAP2 emulation enabled")
endif()

set(RTLIB rt)
if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(RTLIB rt)
else()
set(RTLIB )
endif()

Expand All @@ -484,6 +517,13 @@ if(BUILD_TESTS)
endif()

# --- 3rd party libs (static)
if (NOT ANDROID)
find_package(OpenSSL REQUIRED)
else()
set(OPENSSL_INCLUDE_DIRECTORY ${CMAKE_SOURCE_DIR}/src/3rd_party-static/openssl/include)
set(OPENSSL_LIBS_DIRECTORY ${CMAKE_SOURCE_DIR}/src/3rd_party-static/openssl/x86_64)
endif()

add_subdirectory(./src/3rd_party-static)

# --- Tools
Expand Down
Loading