Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • milestone 1 - Spring GENIVI Virtual Tech Summit (124-14 7 May 2021)
  • milestone 2 - internal milestone (early Q3 - mid- 17 July)
  • milestone 3 - Fall All Member Meeting (Virtual ?) 26-30   October ?
  • milestone 4 - January 2021 2022 – (originally planned for CES , now general milestone?)

Communication framework architecture

...

#ComponentPlan / ActivitiesStatus of chosen software components
(Implementation details of PoC)
Alt. SW components / Implementation for Production Systems
(star) (WIP, future)
Owner
1In-vehicle
State storage
(laptop simulator)
  • Custom code + in-memory database (+ persistence) + connection to feeder
  • Either locally cached during uptime of system or
  • Stored and indexed in a database to allow access to historical data
    • Selection of database
    • Implementation of database schema

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-106

  • Custom control code (Python or C++)
  • + sqlite binding, OK for PoC

→ (tick) Implemented by a shared sqlite database file.  The "API" is simply interacting with the database using SQL statements and/or sqlite bindings.

Note: statestorage executable in a one-shot thing that sets up the database.  The gen2-server accesses the actual database directly using sqlite binding.


Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-107

  • Custom code

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-108

Keith

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-109


2

In-vehicle

VSS2 translation (a.k.a. VSS feeder)
(laptop simulator)

  • Implementation of SOME/IP client?
  • or simple simulator
  • or Vehicle Driving Simulator (LG?  OpenDS? or GENIVI GitHub version?)
    • = set up simulator, make it drive around track, get list of available signals, write code to convert signals to VSS...
    • Signals are fed over DDS to AutoWare or Apollo autonomous driving stacks.
    • Sim needs a high-end graphics machine
  • Look if VSI or VSD should play a part
  • New: live_simulator which is feeding a real-time playback of existing timestamped data.
  • Implement CAN + VSS translation support (e.g. reuse from Bosch code project)

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-110

  • (tick)  live-simulator implemented by Ulf feeds data taken from an existing "ovds" database and feeds it into statestorage.
  • Example ovds database to feed live simulator now exists.

Additional options:

  • Custom code, feeding simple simulated data
  • (warning) Implement CAN + VSS translation support (e.g. reuse from Bosch code project)
  • Then (future) run full vehicle driving simulator

→  continue driving-simulator track
and "playback" simulator in parallel.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-111





not assigned

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-112

Jira
serverJIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-149

3

In-vehicle

Data Package

  • Collecting VSS2 data into snapshots and bundles according to Value measurement Data serialization / value formats
  • Presenting data packages to the Data server
  • Possibly closely related to the State storage schema

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-113

Start with results of Apache NiFi track
to fulfil this need. (no resource / no concrete plan for NiFi at the moment)
(error) No recent progress

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-114

(tick) VISS specification defines how to fetch "historical" collected data.

(tick) VISS server W3C_VehicleSignalInterfaceImpl implementation will record data (if an interface is triggered from the vehicle, use case is "going out of mobile service area").  Also, the messages for fetching data (according to VISS) is implemented. 


Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-115
Gunnar → Ulf
4

In-vehicle

Data server
(laptop simulator)

  • Data server implementation for W3C Gen2
    • Reference implementation exists in GitHub MEAE-GOT
    • Ulf can work together with someone how to connect to an existing API of "state storage"
    • (also talk to Kuksa project - VISS+REST server)

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-116

Use server directory from W3C_VehicleSignalInterfaceImpl

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-117

Gen2 implementation now uses ovds.db file. 
(tick) On-demand requests are fetched from database.
Timed subscriptions are also supported, i.e. send updates at regular intervals.

(warning) There is not yet implementation of a trigger to the gen 2 server from the database when a new value is written (SQLite supports trigger in theory).


Ulf

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-154

5

OEM Cloud

Vehicle client

  • W3C Gen2 protocol (VISS Websocket Pub/Sub)
  • Options:
    • Ulf wrote the client using Go-lang, stored in MEAE-GOT/W3C.
    • Sanjeev involved in writing a client using Javascript.
    • Curl script
    • Custom code + HTTP library (e.g. written in python) custom code + libcurl binding
    • No clear answer.  Depends on use-case.  What is the rate of data for example?
  • This program shall also store the data into the data lake program (or directly into the database used as data lake)

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-118

Written in Go, some similar code as in W3C Gen 2 reference server

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-119

(tick)  Demo includes this function already..  In ccs-client repo.
Client reads data from data server in vehicle via the VISSv2 protocol, and writes it into the OVDS database.

(tick) Vehicle client can be set to either to HTTP Get or WebSocket subscription feature.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-120

Ulf
6

OEM Cloud

VSS2 database

  • Selection of libraries and database
    • Define database schema → Start with Ulf's proposal for DB schema

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-121

Postgres was discussed.
Use SQLite first.

Currently the translation path to UUID.   Translation is in a separate database, compared to the signal database.  A future possibility is two tables in a single database, making it possible to use SQL JOIN statements.

→ now using Path as ID.  This also simplifies supporting multiple VSS versions (where paths might differ) at the same time.


  • Custom control code (Python or C++) → implemented in Go.
  • + Sqlite binding, OK for PoC, or other database such as postgresql.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-122

(tick) Implemented in In ccs-client repo.
This is the OVDS server.
It exposes a REST protocol that is used by the client. which may be easier since it is a single operation and not having to look into both databases.  (See JOIN idea on the left for alternative).  
REST protocol can also deliver full time series.

(warning) Should we split up the software into more logical repositories?  → Agreed, but not as urgent.

In production more likely to be an object store database instead of a RDBS.

Sanjeev looking at Apache ecosystem and Hortonworks/Cloudera platform capabilities.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-124


Ulf

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-125


7

OEM Cloud

Identity management

  • Implementation of end-user login and authentication using OpenID
    • Lots of candidates.  Responsible implementer should propose a good alternative.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-126

(error) TODO
Later. (Programming language / technology preference could be influenced by the programmer)



--
8

OEM Cloud

Access management

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-127

(error) TODO

Later.  (Programming language / technology preference could be influenced by the programmer)



--
9

OEM Cloud

Resource Management
 = Data server API

  • Implementation of basic API management
  • Resource Mgmt is the ExVe naming.
  • Implementation of a GraphQL API using the VSS2 schema 
  • Interface to the client, is of course defined by GraphQL+schema.
  • Interface to database (GraphQLDatabaseIF) is described above

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-128

GraphQL → Apache Apollo?

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-129


Located in vss-graphql repo

  • (tick) Has one schema.
  • (tick) Proposal (PR in vss-tools) for GraphQL schema generator now exists.
  • (tick) Has Apollo server in docker

    TODO (error) Needs to implement the connection from GraphQL (Apollo) to database.
    It could use the REST protocol of the OVDS server, or directly SQLite database.
  • ^^ Important to fix!!! ^^




(Alexander Domin)


Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-130







JIRA TODO:  Implement the connection between GraphQL and OVDS database.


10

Neutral Server

Data Marketplace

  • Separate instance that consumes the OEM Cloud OAuth2 and GraphQL APIs
    • We could implement a very simplistic neutral server using the published API of High Mobility, but an open implementation.
    • Security, consent and other complicates things.   Leave those details out.

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-131

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-132

In vss-graphql-client-swift repository

(tick) Has programming framework/example (in SWIFT) to access data via graphql.

  • This could show a way for 3rd party applications to access the OEM/GraphQL interface directly but possibly a more limited REST-API is more realistic for 3rd part app access

(blue star) TODO: Expose a neutral-server API to third party applications.

Nothing in particular to develop →  It would just be a proxy (for the GraphQL and/or REST) – same technologies as our current OEM connection would be used by the Neutral Server.

The API would be quite transparent if VSS is exposed directly, but the Neutral Server API might expose different functions also. (question)

But enriched functions / anonymized aggregated data might be provided by Neutral Server.


Kevin
113rd Party Application
  • Example applications exist on High Mobility's GitHub
  • One instance that consumes the Neutral Server/Data Marketplace APIs
    • Use an example application from HM
    • For example an app that just shows the data (written in Node.js)
  • One instance that consumes the OEM Cloud OAuth2 and GraphQL APIs
    • Modify the application to use the OEM API directly

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-133

Jira
serverJIRA
serverId121ddff2-c571-320f-9e4d-d5b9371533bd
keyCCS-134

(tick)  New sample app
Connecting directly to OEM cloud for now, via GraphQL.

For connecting to Neutral server instead:

  • Example/standard API work needed. The example apps are using High Mobility's API.  → See above

(warning) See above, it is first required to define Neutral Server API.


Kevin

...