Skip to content

Instantly share code, notes, and snippets.

View LuxoftAKutsan's full-sized avatar

Alexander Kutsan (GitHub) LuxoftAKutsan

View GitHub Profile
@LuxoftAKutsan
LuxoftAKutsan / race2.puml
Last active June 2, 2020 10:54
Wifi Raceq
@startuml
!pragma teoz true
title Multiple apps on different devices, MOBILE is an access point
participant HMI
participant SDL
box "Device1"
participant APP1
end box
box "Device2"
<struct name="HMIApplication">
    <description>Data type containing information about application needed by HMI.</description>
    <param name="appName" type="String" maxlength="100" mandatory="true">
      <description>The mobile application name, e.g. "Ford Drive Green".</description>
    </param>
    <param name="ngnMediaScreenAppName" type="String" maxlength="100" mandatory="false">
      <description>Provides an abbreviated version of the app name (if needed), that may be displayed on the NGN media screen.</description>
      <description>If not provided, the appName should be used instead (and may be truncated if too long)</description>
    </param>
add ssh key
install docker
install make
mkdir sdl

Preconditions

For adding custom implementation of Network Interface Listener should be changes CMakelists.txt and added additional implementation of platform_specific_network_interface_listener.cc

Example adding implementation for custom_os

  1. Crete folder src/components/transport_manager/include/transport_manager/tcp/platform_specific/custom_os
  2. Crete file src/components/transport_manager/include/transport_manager/tcp/platform_specific/custom_os/platform_specific_network_interface_listener_impl.h with class PlatformSpecificNetworkInterfaceListener:
    • PlatformSpecificNetworkInterfaceListener should be inherited from NetworkInterfaceListener.
    • PlatformSpecificNetworkInterfaceListener may contain os specific data types and privte functions, it won't affect other SDL classes
  3. Create folder src/components/transport_manager/src/tcp/platform_specific/custom_os :
@LuxoftAKutsan
LuxoftAKutsan / get_bt.py
Last active September 29, 2017 18:14
SDL log analyse
# coding: utf-8
# In[1]:
log_lines = open("/home/akutsan/Downloads/Mackinaw Ford Edge/25 Jul 2017/36.smartdevicelink.log").readlines()
# In[2]:
function ready() {
cvlc ~/Downloads/Jobs\ Done.mp3 --play-and-exit
}
function bad_result() {
echo "Something is wrong" | festival --tts;
}
function notepad++ {
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
apt-get install -y distcc distccmon-gnome
echo "distcc g++ \$@" > /usr/local/bin/distcxx
chmod +x /usr/local/bin/distcxx
# Alienware 13 r2 linux usefull links
http://en.community.dell.com/owners-club/alienware/f/3746/t/19658690
https://wiki.archlinux.org/index.php/Alienware_13
http://askubuntu.com/questions/765838/cannot-enable-wifi-of-alienware-r2-on-ubuntu-16-04-lts
https://github.com/kvalo/ath10k-firmware
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# cp -a QCA6174/ /lib/firmware/ath10k/QCA6174/
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# echo "options ath10k_core skip_otp=y" | tee -a /etc/modprobe.d/ath10k.conf
@LuxoftAKutsan
LuxoftAKutsan / ATF_Stirinct_Mode.md
Last active March 13, 2017 11:01
ATF scrict mode

Currently there is issue on ATF with Times calls.

Problem illustration

Times(0) does not prolongues test execution for waiting not expected event. So not expected RPC comes in scope of next test case and ATF ignores it.

Illustration

https://www.class-central.com/mooc/1725/coursera-algorithmic-thinking-part-1
https://www.class-central.com/mooc/6040/coursera-a-developer-s-guide-to-the-internet-of-things-iot
https://www.class-central.com/mooc/7745/coursera-data-science-math-skills
https://www.class-central.com/mooc/7751/coursera-data-processing-using-python
https://www.class-central.com/mooc/339/coursera-algorithms-part-i
https://www.class-central.com/mooc/1701/openhpi-parallel-programming-concepts
https://www.class-central.com/mooc/1848/udacity-machine-learning-unsupervised-learning
https://www.class-central.com/mooc/2716/stanford-openedx-compilers
https://www.class-central.com/mooc/4013/udacity-intro-to-devops