【张航】基于Kanzi的车载Android系统

中丹亦

2017/12/31 发布于 技术 分类

2017年,droidcon 第2次来到中国,并将于2017年11月在北京盛大开幕。参会人群包括业界领袖、技术大咖、技术开发者、大众创业者及领域从业者。大会将邀请来自Google、微软、Facebook、Ebay、Intel、Telenav、阿里巴巴、腾讯、小米、乐视、联想等国内外安卓技术与应用领域的大咖,沿袭历年国际大会特色,聚焦行业最前沿技术,碰撞切磋技术火花。

文字内容
1. Android Automotive Powered by KANZI Connected Cockpit Copyright 2008-2017 Thunder Software Co., Ltd. Company Confidential
2. 近现代汽车的变革和汽车电子技术的演进是密不可分的。 v 汽车电子是车体电子控制装置和车载电子控制装置的总称。它包含 § 车体电子控制装置(车身电子ECU),它们包括发动机、底盘、车身电子控制等 § 车载电子控制装置,包括汽车信息系统(行车电脑)、导航系统、汽车音响及电视娱乐系统、 车载通信系统、上网设备等 v 汽车电子的历史演进 近几年Android车机的出货量趋势图 跟Linux、Windows等其他OS的对比? Edge Computing & Embedded AI Enabler 3
3. Android Automotive Features Android N (launched) ü Vehicle system UI ü HVAC management ü AM/FM radio management ü Backup camera management ü Vehicle audio routing ü Host side BT improvements ü VHAL, VNS ü Vehicle OS/App update mechanism(garage mode) Android N.Car (launched) ü Core automotive apps ü Multi-screen (cluster) support ü BT: AVRCP 1.6, MAP 1.1 ü Deep sleep management ü Additional Car APIs ü Audio management improvements ü App whitelisting Android O (& MR1) (in development) ü Quick boot (<12 seconds) ü Treble HIDL migration ü Car Notification Center ü Android Auto Projected support ü Flash management improvements ü Identity management ü Emulator with vehicle net. sim ü Radio improvements ü Car Diagnostics APIs ü Audio improvements ü BT improvements (e.g. auto- connect) ü EVS Android P (planning) ü Multi-zone audio ü Multi-display support ü Dual band hotspot support ü Multi-camera support(360 camera support) ü Vehicle network gatekeeping ü App/OS update size reduce ü More to come… 2016 Q3 Edge Computing & Embedded AI Enabler 2016 Q4 2017 Q3 2018 Q3 4
4. Android Automotive Android Android Automotive APPLICATIONS ALARM・BROWSER・CALCULATOR・CALENDAR・CAMERA・CLOCK・ CONTACTS・DIALER・EMAIL・HOME・IM・MEDIA PLAYER・PHOTO ALBUM ・SMS/MMS・VOICE DIAL CAR DIALER・CAR HOME・CAR MEDIA・CAR MENU DRIVER・CAR MESSAGING・ CAR NOTIFICATION・CAR SYSTEM BAR・CAR SETTINGS・HVAC・RADIO ANDROID CONTENT PROVIDERS・MANAGERS(ACTIVITY, LOCATION, PACKAGE, AUDIO POLICY API・CAR SENSORS・HAVC MANAGER・GLOBAL VOICE TRIGGER FRAMEWORK NOTIFICATION, RESOURCE, TELEPHONY, WINDOW) ・VIEW SYSTEM API・PERSONALIZATION・TRUST AGENT ANDROID RUNTIME ART・CORE LIBRARIES ANDROID SYSTEM SERVICES AUDIO FOCUS・BLUETOOTH STACK・CAR SERVICE・CAR UI MODE・CAR UI PROVIDER・GARAGE MODE・VEHICLE NETWORK SERVICE AUDIO MANAGER・FREETYPE・LIBC・MEDIA FRAMEWORK・OPENGL/ES ・SQLITE・SSL・SURFACE MANAGER・WEBKIT HAL AUDIO・BLUETOOTH・CAMERA・DRM・EXTERNAL STORAGE・ GRAPHICS・INPUT・MEDIA・SENSORS・TV REARVIEW CAMERA HAL・VEHICLE HAL LINUX KERNEL DRIVERS(AUDIO, BINDER(IPC), BLUETOOTH, CAMERA, DISPLAY, KEYPAD, SHARED MEMORY, USB, WIFI) ・POWER MANAGEMENT CAN INTERFACE・DEEP SLEEP・MULTI-PROFILE USB HOST・REARVIEW CAMERA・ QUICKBOOT Edge Computing & Embedded AI Enabler 5
5. Cockpit Products 2017-11-21 Cutting Edge Digital Cluster Connected Infotainment System Edge Computing & Embedded AI Enabler Thundersoft Confidential Head-Up Display Rear Seat Entertainment 6 6
6. Software Architecture of Cockpit Edge Computing & Embedded AI Enabler 7
7. Requirement of Automotive OS v Distributed system • Scalability for connectivity • Interaction between various sub-systems v Unified Human Interface • Consistent HMI style for brands • Easy to customize HMI v Safety and Security • Stable and reliable (ISO-26262) • Tamper-proofing • Cyber-Security 2017-11-21 Edge Computing & Embedded AI Enabler THUNDERSOFT CONFIDENTIAL 8 8
8. What is Kanzi Kanzi UI Engine v Based on OpenGL/ES 2.0 or higher v High-Performance UI engine v Cross Platform Edge Computing & Embedded AI Enabler Kanzi Studio v IDE for Kanzi family toolkit v WYSIWYG v Drag & drop without coding v Simulator for developer and designer Kanzi Connect v Client-Server RPC v Secured Communication v Bearer can be IP, CAN, BT, etc. 9
9. Principal of Kanzi KANZI Connect SOLUTION MODEL DATA USER INPUT REMOTE ACCESS … VIEW KANZI UI SOLUTION LOCALIZATION CONTROL STATE MACHINE (LOGIC) PLATFORM (QNX, Qt, Linux, RTOS, etc.) Edge Computing & Embedded AI Enabler KANZI Logic (ongoing) 10
10. KANZI UI Edge Computing & Embedded AI Enabler 11
11. Data Interaction Logic Scripting Assets 2D / 3D UI Design Screens & Transitions Visual States One click Deploy Edge Computing & Embedded AI Enabler Import Export KZB UI Control Logic State Logic Actions & Triggers Plugins Data Sources Native Code Application Data Compile APK Platform Services Content Database Sensors Run on Android Device 12
12. ANDROID FRAMEWORK Activity KANZI RUNTIME (C++) Surface View Assets .KZB Resource s NDK JNI Gateway Kanzi App Edge Computing & Embedded AI Enabler KANZI ACTIVITY Kanzi Activity Kanzi View Android View #1 Android View #2 Android View #3 DEVICE SCREEN Kanzi UI Combined UI Android UI 13
13. KANZI Connect Edge Computing & Embedded AI Enabler 14
14. KANZI CONNECT ARCHITECTURE (OVERALL) § Kanzi Connect Server - a system that hosts services and allows clients to access them § Kanzi Connect Client – a device that connects to server and consumes digital services § Kanzi Connect Service – a software component that provides integration to platform features or external components and can be used to serve almost any particular use-case Services Kanzi Connect Server Service #2 Service #1 Edge Computing & Embedded AI Enabler Client Application #1 Client Application #2 Client Application #3 15
15. KANZI CONNECT ARCHITECTURE (ANDROID) v Kanzi Connect is written in cross platform C++ v Kanzi Connect offers C++, Java and Rest API Kanzi Connect Client Android Activity(Java) JNI KanziUI libkDanaztai.Ssoources ServicePlugins KanziConnetClient TCP Kanzi Connect Server (Java Service) Server Thread Content Service JNI libconnect_server.so Content Service Service 1 TCP … TCP Provider Provider Service 1 Java Service Impl Kanzi Connect Service Load Jni xxx_service.jar Java API(Auto) TCP Native C++(Auto) libxxx_service.so Edge Computing & Embedded AI Enabler 16
16. SERVICE DEVELOPMENT WORKFLOW 17 DEFINE INTERFACE GENERATE INTERFACE CODE IMPLEMENT LOGIC REGISTER TO SERVER RUN XML IService.hpp Edge Computing & Embedded AI Enabler MyService.hp p & MyService.cpp Or MyService.jav a Server.Registe r (MyService) 11/21/201177
17. State Languag API Manage e r Bindings Version 1.0 Availability in 2018/2019 System Updates Profile Streaming DLNA/RTS P BT / HF Service Adapter s 3rd Party Services Remote Content Android Data Source Kanzi Data Source Conten t Provid er SqLite Data Source Service Managemen t Services Packages Network Diagnostics Lifecycle Policy Remote Services Packet Routing BT Connectio n Adapter Shared Memory TCP / IP SSL HTTP Edge Computing & Embedded AI Enabler Windows QNX Android Linux Persistence Content Content Database System Database SD / Disk File Server 18
18. PLATFORM SERVICE Android Media Player (JAVA) JNI SERVICE INTERFACE Methods Service Interface Events Data Edge Computing & Embedded AI Enabler KANZI PLUGIN OBJECTS Play Action Stop Action Pause Action State Changed Trigger Data Objects APP UI Play Button Stop Button Pause Button Playback Position Cover Image Track Name 19
19. 2 0 Android based KANZI IVI Solution – Short Term v IVI UI Style Overview – Hybrid Solution Status Bar KANZI UI (Launcher,etc.) Navi Bar Status Bar Android UI Navi Bar Status Bar KANZI UI ( others ) Navi Bar Status Bar Android UI Navi Bar Status Bar HTML5 UI Navi Bar Android Native UI Android Transition KANZI UI Business logic v Software Architecture Overview KANZI UI App KANZI UI App Android UI App KANZI Connect Client Instrument Cluster TCP/IP State Machine(Logic) KANZI Connect Client KANZI Connect Service State Machine(Logic) Binder Service & Runtime Framework & System functionalities HW UI Platform 2017-11-21 Edge Computing & Embedded AI Enabler 20
20. T2 H1 U N D KANZI IVI Solution E R S O F T C O N F I D E N T I A L 2017-11-21 PC - Prototyping Edge Computing & Embedded AI Enabler Device – Deployment 21