3 smartDeviceCore is an application which manages the transport, connection and communication between a head unit and mobile device.
7 Ubuntu 12.04.1 LTS 32-bit OS on the PC with USB-dongle
8 Application has been tested using 2 types of USB-dongle:
14 For start application we need:
15 libbluetooth3, the BlueZ library
17 sudo apt-get install libbluetooth3
18 To start web-based HMI we need web-browser with web-socket RFC6455 support.
19 For example Google Chromium. Install it using:
20 sudo apt-get install chromium-browser
21 In current implementation Chromium is required for autostart HMI feature.
22 For HMI autostart please create in the executable folder file named hmi_link.
23 This file should contain one string with full path to HMI index.html file.
25 /home/user/projects/smart_device_link/src/components/HMI/index.html
30 Switch Bluetooth on a mobile device ON and make the device discoverable.
31 Pair mobile device with PC using Ubuntu tools.
32 Device should contain SmartDeviceLink compatible application installed.
33 Start application with command:
35 Application starts to search devices and starts HMI in cromium-browser.
36 In case HMI has not been started please start web-based HMI manually in browser opening src/components/HMI/index.html.
37 SmartDeviceLinkCore is searching Bluetooth devices with a correspondibg service.
38 Go to info menu in HMI and press App button.
39 Press change Devices button.
40 Select the device from a list.
41 Application opens all available ports on devices and starts communication.
42 Returning to the App menu all applications will be shown in a list.
46 You can have colorized log output of smartDeviceLinkCore's messages in the terminal with the help of grc:
48 1. Make sure grc is installed:
49 sudo apt-get install grc
51 2. Copy the config files from the grc/ directory into ~/.grc/ directory:
55 3. Add an alias to your shell's config (usually, ~/.bashrc or ~/.zshrc):
56 alias grca='grc -es --colour=auto'
58 Either restart the shell session or source the edited file:
63 4. Start the smartDeviceLink core with the following command:
64 grca ./smartDeviceLinkCore