summaryrefslogtreecommitdiffstats
path: root/can-config-generator/README.md
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-14 13:24:07 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-14 13:24:07 +0200
commit49fe0eec8f17698fc5f86d0abe01777af1fb2b23 (patch)
tree356cd3e3261934a3fb90786e1789ee4ad001cbe5 /can-config-generator/README.md
parent044ef27d3667a114964549f89c63ab1ea6655877 (diff)
Change directory architecture to use 2 separated projects.
Each projects, binder and generator, has to be compiled separatly. CAN-binder will host high and low level binding CAN-config-generator only the generator used for low level binding. build.sh script just launch both build in their respective dir. Change-Id: Ic77932660fcca507b23a631d4e4e790f608880ae Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'can-config-generator/README.md')
-rw-r--r--can-config-generator/README.md111
1 files changed, 0 insertions, 111 deletions
diff --git a/can-config-generator/README.md b/can-config-generator/README.md
deleted file mode 100644
index d4127b8..0000000
--- a/can-config-generator/README.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# CAN Configuration Generator
-
-## Abstract
-
-This tool is used to generate a configuration source file for the [Low Level CAN bus binding](https://github.com/iotbzh/CAN_signaling).
-This binding needs a configuration provided as a C++ source file.
-As long this binding is based on [OpenXC vi-firmware](https://github.com/openxc/vi-firmware), this generator use the JSON format from the [python generator](https://github.com/openxc/openxc-python).
-The reference documentation of the JSON file can be found [here](https://github.com/openxc/vi-firmware/blob/master/docs/config/reference.rst).
-
-## Getting started
-
-### Build requirements
-
-* CMake version 3.0 or later
-* G++, Clang++ or any C++11 complient compiler.
-
-* Make sure you already set up the AGL SDK using the following [SDK Quick Setup Guide](http://docs.iot.bzh/docs/getting_started/en/dev/reference/setup-sdk-environment.html). Alternatively, please refer to official guides available on [AGL Developer Site](http://docs.automotivelinux.org/docs/devguides/en/dev/#guides).
-
-> **CAUTION** Don't source the environment file to get this project compile. We just use CMake from SDK environment, so make sure to not have CMake on the system or remove it if needed with ```sudo apt-get remove cmake```.
-
-## Compile
-
-```bash
-$ export PATH=$PATH:/xdt/sdk/sysroots/x86_64-aglsdk-linux/usr/bin
-$ export WD=$(pwd)
-$ git clone https://github.com/iotbzh/can-config-generator.git
-$ cd can-config-generator
-$ mkdir -p build
-$ cd build
-$ cmake -G "Unix Makefiles" ..
-$ make
-```
-
-### Naming convention
-
-We chose a doted naming convention because it's a well know schema.
-
-It separates and organize names into hierarchy. From the left to right, you describe your names using the more common ancestor at the left then more you go to the right the more it will be accurate.
-
-Let's take an example, here is an example about standard PID name following this convention:
-
-```
-engine.load
-engine.coolant.temperature
-fuel.pressure
-intake.manifold.pressure
-engine.speed
-vehicle.speed
-intake.air.temperature
-mass.airflow
-throttle.position
-running.time
-EGR.error
-fuel.level
-barometric.pressure
-commanded.throttle.position
-ethanol.fuel.percentage
-accelerator.pedal.position
-hybrid.battery-pack.remaining.life
-engine.oil.temperature
-engine.torque
-```
-
-> **NOTE** It's recommended that you follow this naming convention to name your CAN signals.
->
-> There is only character `*` that is forbidden in names because it's used as wildcard for subscription and unsubscrition.
->
-> This described in the below chapter.
-
-### Available decoder
-
-You can use some basic decoder provided by default by the binding which are:
-
-* decoder_t::noopDecoder : Default decoder if not specified, return raw value from signal's bitfield.
-* decoder_t::booleanDecoder : Coerces a numerical value to a boolean.
-* decoder_t::stateDecoder : Find and return the corresponding string state for a CAN signal's raw integer value.
-
-## Generate your config file
-
-To generate your config file you just have to run the generator using the `-m` option to specify your JSON file.
-
-```bash
-./can-config-generator -m ../tests/basic.json -o configuration-generated.cpp
-```
-
-If you omit the `-o` option, then code is generated on the stdout.
-You also can specify a header and a footer file.
-These files must be valid C++ fragment as long as they will be inserted as is.
-Use the `-h` option to display help.
-
-## Supported OpenXC items
-
-As long as the low level CAN signaling binding doesn't fully support OpenXC yet, this generator is also limited.
-For instance, `initializers`, `loopers`, `commands` and `handlers` nodes are ignored for now.
-This generator will follow OpenXC support status of the low level CAN signaling binding.
-
-The `buses` item will not be supported by this generator because the binding use another way to declare and configure buses. Please refer to the binding's documentation.
-
-## Known issues
-
-* Each `diagnostic_message` must define the same `bus` as the binding will use only one bus.
-
-## Dependencies
-
-* [json](https://github.com/nlohmann/json) by nlohmann
-
-## License
-
-Copyright 2017 - iotbzh
-
-Licensed under the [Apache License 2.0](https://github.com/iotbzh/can-config-generator/blob/master/LICENSE)