apps/low-level-can-service.git
7 years agoUpdate CMake logic making external libs global
Romain Forlot [Fri, 14 Apr 2017 07:28:48 +0000 (09:28 +0200)]
Update CMake logic making external libs global

Each external libraries is a target that can be linked to a target project.

Change-Id: I4564eaa1c96c877c42f2a420599e27279f48d378
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix wrong target name variable.
Romain Forlot [Tue, 11 Apr 2017 15:55:57 +0000 (17:55 +0200)]
Fix wrong target name variable.

Change-Id: I946dc9c44ecc6f9976c4accb65fc4b1efb4c7ca3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdapt CMakeFile including can-config-generator tool.
Romain Forlot [Tue, 11 Apr 2017 15:55:13 +0000 (17:55 +0200)]
Adapt CMakeFile including can-config-generator tool.

Change-Id: I154d3976c0ab91ded20c07c44a1a586a98f3057f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdd 'can-config-generator/' from commit 'b7591d16c2686214d5d8dcc0739a233f15aee5db'
Romain Forlot [Tue, 11 Apr 2017 13:49:47 +0000 (15:49 +0200)]
Add 'can-config-generator/' from commit 'b7591d16c2686214d5d8dcc0739a233f15aee5db'

git-subtree-dir: can-config-generator
git-subtree-mainline: 9e444ade872bc436cf12bc12d03c3a5d51ac0b9e
git-subtree-split: b7591d16c2686214d5d8dcc0739a233f15aee5db

7 years agoRemove boost library dependency.
Romain Forlot [Tue, 11 Apr 2017 13:47:26 +0000 (15:47 +0200)]
Remove boost library dependency.

Use a simple optarg parser.

Change-Id: If0cd9da9db24a7889573e32f6b8ace33702c2c35
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoHandle project new architecture using new CMakeFile
Romain Forlot [Tue, 11 Apr 2017 10:55:23 +0000 (12:55 +0200)]
Handle project new architecture using new CMakeFile

Change-Id: I672a9b49d9d5a3953ba6dccaafbbd738839f64a6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
# Conflicts:
# low-can-binding/libs/bitfield-c
# low-can-binding/libs/isotp-c
# low-can-binding/libs/openxc-message-format

7 years agoUnsubscribe instead of subscribe if can't adding to recurring request
Romain Forlot [Mon, 3 Apr 2017 22:18:55 +0000 (00:18 +0200)]
Unsubscribe instead of subscribe if can't adding to recurring request

Not useful to get a subscription on an adding error.

Change-Id: I211016a1cbeb9cd5677cd8f8c7a28ccc93ef9a34
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding K2L CAN signals to toyota examples.
Romain Forlot [Mon, 3 Apr 2017 22:17:23 +0000 (00:17 +0200)]
Adding K2L CAN signals to toyota examples.

Change-Id: I147c439217dcc1f0709bd55f670ff1893cc77262
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: make no clients event works with CAN subscription
Romain Forlot [Mon, 3 Apr 2017 22:07:16 +0000 (00:07 +0200)]
Fix: make no clients event works with CAN subscription

Is there is no diagnostic message corresponding then do nothing

Change-Id: Ib6627b3c10b1b7a0a46d41323a6623efe808a015
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded Citreon sample while traveling to Karlsruhe
Romain Forlot [Sun, 2 Apr 2017 21:49:09 +0000 (23:49 +0200)]
Added Citreon sample while traveling to Karlsruhe

Change-Id: I7a6e5a7a068f205394b01e2b5ce00e59292d2182
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong period operation without unit multiplicator
Romain Forlot [Sun, 2 Apr 2017 21:46:56 +0000 (23:46 +0200)]
Fix: wrong period operation without unit multiplicator

Possible divsion by 0. Don't know if it is good to keep different time unit
instead having one unit for project...

Change-Id: I73cfc1ab72d3420d337f10a9b79bdf305a3a2bc7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoUse by default can0
Romain Forlot [Thu, 30 Mar 2017 15:54:41 +0000 (17:54 +0200)]
Use by default can0

Change-Id: Idc4fd2f2d6d447d6b9e947d5b3129dc564a4bc5c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoCleaning
Romain Forlot [Thu, 30 Mar 2017 15:23:17 +0000 (17:23 +0200)]
Cleaning

Change-Id: I5ef9bad2ef398d3d293c3fc2edc18271042455f4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoHandle simultaneous subscription to diagnostic messages.
Romain Forlot [Thu, 30 Mar 2017 15:23:02 +0000 (17:23 +0200)]
Handle simultaneous subscription to diagnostic messages.

Delay new recurring requests if there are already existing in flight and
cleanup active request to correctly set in_flight_ flag to false else new
request can't be launched as there is always an old one considered running...

Modify a little bit DEBUG message and cleanup useless code.

Change-Id: I39f865bbc6d00188d3cddd1d81437b9e3ca51269
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoHandle cancel active diag requet when there are no more subscribers
Romain Forlot [Thu, 30 Mar 2017 15:19:59 +0000 (17:19 +0200)]
Handle cancel active diag requet when there are no more subscribers

When push events if there is no more subscribers to that event then call
a function that will cleanup that request from diagnostic manager queue.

Change-Id: I8153701074453444a5bba6f1374401bdf230f7e6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: unsubscription to diagnostic messages.
Romain Forlot [Thu, 30 Mar 2017 08:24:57 +0000 (10:24 +0200)]
Fix: unsubscription to diagnostic messages.

Unsubscriptions weren't managed anymore since we handle supported flag in
diagnostic messages. Now it's back, unsubscription against appfw is done
as well as canceling recurring active diagnostic request.

Change-Id: I22ebba771646624cb323e72dd7bf21027b6c6ba7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoGet recurring requests suspend proof.
Romain Forlot [Thu, 30 Mar 2017 08:23:04 +0000 (10:23 +0200)]
Get recurring requests suspend proof.

Change to CLOCK_BOOTTIME instead of CLOCK_MONOTONIC

Change-Id: Iaa1a65a80e3aaa8e622ea1e3eb4b6a36b4dcd225
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: Empty every queue before unlock mutex.
Romain Forlot [Thu, 30 Mar 2017 08:22:14 +0000 (10:22 +0200)]
Fix: Empty every queue before unlock mutex.

Make sure that we finish to process every message in queue before refill them
cause' CAN read run faster than decoding and pushing event. So it's a try to get
all message processed.

Change-Id: Idce2bc4d79920adc2bf478177c4e3defed39867b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove detail in DEBUG message at recurring request submission
Romain Forlot [Wed, 29 Mar 2017 12:35:29 +0000 (14:35 +0200)]
Improve detail in DEBUG message at recurring request submission

Change-Id: I93d0cbcae8e2cdf1144ffd981c93a109682c1685
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoPort configuration parsing to a separate object.
Romain Forlot [Tue, 28 Mar 2017 15:52:17 +0000 (17:52 +0200)]
Port configuration parsing to a separate object.

Change-Id: If5da63d2fdd498dcb6dde10469acaa91b00e60df
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove documentation and added can samples
Romain Forlot [Tue, 28 Mar 2017 13:15:20 +0000 (15:15 +0200)]
Improve documentation and added can samples

This explicit use cases with virtual CAN device or Porter board CAN devices
Also, it add a complete trip with "vehicle.speed" obd2 signal recurring requests.
to be use with canplayer to replay a real car trip.

Change-Id: I66c762fa23ed409c812765d6d82e78138edbd455
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoErase compilation WARNING.
Romain Forlot [Mon, 27 Mar 2017 16:50:24 +0000 (18:50 +0200)]
Erase compilation WARNING.

Useless tests and type cast about numbers.

Change-Id: I6fe13b7dfec8529520730f83e83d2dd3da3a674c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong pointer validity check...
Romain Forlot [Fri, 24 Mar 2017 17:17:58 +0000 (18:17 +0100)]
Fix: wrong pointer validity check...

Change-Id: Ia47159fb18797681fb1dd132be5173e167d8850b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: don't clean recurring request except if forced
Romain Forlot [Fri, 24 Mar 2017 17:17:42 +0000 (18:17 +0100)]
Fix: don't clean recurring request except if forced

Change-Id: I669fc1f0b078e151dfb0cbb17c3d626bb43930d2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: commands typo
Forlot Romain [IoT.bzh] [Fri, 31 Mar 2017 15:55:49 +0000 (17:55 +0200)]
Fix: commands typo

Merge pull request #1 from shogun656/master

7 years agoUpdate README.md
Wesam Haddad [Fri, 31 Mar 2017 14:33:27 +0000 (10:33 -0400)]
Update README.md

was annoying me :)

7 years agoAdded some new OBD2 signals
Romain Forlot [Fri, 31 Mar 2017 08:21:20 +0000 (10:21 +0200)]
Added some new OBD2 signals

Change-Id: Ied85c5acef8e9ce215c01166180fc07d5c5b0dcd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoComments.
Romain Forlot [Wed, 22 Mar 2017 17:58:12 +0000 (17:58 +0000)]
Comments.

Point to branch v1.0 instead of master

Change-Id: I70b6b0e35dbbdd78840fda893c6028b2e3975afc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMax in flight requests set to 8
Romain Forlot [Wed, 22 Mar 2017 17:10:30 +0000 (17:10 +0000)]
Max in flight requests set to 8

Change-Id: If2acf83a0f01741c90cab15e10188b2aeffd88b3

7 years agoAdded configuration-generated file to ignored file
Romain Forlot [Wed, 22 Mar 2017 16:44:25 +0000 (16:44 +0000)]
Added configuration-generated file to ignored file

Change-Id: I2a04c0852c2b6c87391cf282c30cbcb669226c1d

7 years agoSend diag request only if not other one with some id running
Romain Forlot [Wed, 22 Mar 2017 16:40:15 +0000 (16:40 +0000)]
Send diag request only if not other one with some id running

Fix: elapsed function return that do not compute elapsed_time at first time
Fix: reworked should_send() to get it work with our scheduling workflow
Reschedule trying to send request if recurring even it is in flight.

Change-Id: Idce54cb9bf62616c891a8a25a6c478f931350bc7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: make sure install execute sequentially
Forlot Romain [IoT.bzh] [Wed, 22 Mar 2017 14:17:25 +0000 (15:17 +0100)]
Fix: make sure install execute sequentially

7 years agoFix cover image (use imagemagick convert).
Sebastien Douheret [Wed, 22 Mar 2017 13:25:13 +0000 (14:25 +0100)]
Fix cover image (use imagemagick convert).

Fix initial svg page size to avoid image distortion,
and generate "real" jpg image using imagemagick convert tool

7 years agoFix: typo
Romain Forlot [Wed, 22 Mar 2017 10:53:24 +0000 (10:53 +0000)]
Fix: typo

Change-Id: I0e0753a520471129987d26e0a03be732fc311d02
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoJustify text
Sebastien Douheret [Wed, 22 Mar 2017 10:32:38 +0000 (11:32 +0100)]
Justify text

7 years agoFix typo
Sebastien Douheret [Wed, 22 Mar 2017 10:15:26 +0000 (11:15 +0100)]
Fix typo

7 years agoPrint status when pdf file has been generated.
Sebastien Douheret [Tue, 21 Mar 2017 08:27:12 +0000 (09:27 +0100)]
Print status when pdf file has been generated.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
7 years agoUpdate README according to the documentation of CAN_signaling
Romain Forlot [Wed, 22 Mar 2017 10:02:32 +0000 (10:02 +0000)]
Update README according to the documentation of CAN_signaling

Change-Id: I5daa7e0a815c84bc3e373888aef64518ef344449
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoSpecification of defaults available decoder.
Romain Forlot [Wed, 22 Mar 2017 08:29:24 +0000 (08:29 +0000)]
Specification of defaults available decoder.

Change-Id: Ifde336309bd6358ee20bd8c45a06daf5ba3329c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong decoder specified about OBD2 signals.
Romain Forlot [Tue, 21 Mar 2017 23:36:45 +0000 (23:36 +0000)]
Fix: wrong decoder specified about OBD2 signals.

Change-Id: I7c1a85a66fcc3a0ecdc11a4fc1c8626410b5ade3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake CMake file version according its usage.
Romain Forlot [Tue, 21 Mar 2017 23:36:19 +0000 (23:36 +0000)]
Make CMake file version according its usage.

target_compile_feature isn't compatible with 3.0

Change-Id: I38b68b9946abc6270b0ac66ee9ff93a044e336e6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agodocs: fix Installation guide
Stephane Desneux [Tue, 21 Mar 2017 22:35:49 +0000 (23:35 +0100)]
docs: fix Installation guide

Change-Id: Ibd16454f0cbc7f2a3e17f8cf0580174de3df87e3
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
7 years agoMake copy to sdcard more reliable
Romain Forlot [Tue, 21 Mar 2017 18:48:26 +0000 (18:48 +0000)]
Make copy to sdcard more reliable

Change-Id: Ia7e9875f6999aa50f386c82945a430db93664254
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding sourcing yocto build env file
Romain Forlot [Tue, 21 Mar 2017 18:07:39 +0000 (18:07 +0000)]
Adding sourcing yocto build env file

Change-Id: I8950fb17cf7431070772379d1b8ce52a0a689fbd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoReworking execution order to make it more simple.
Romain Forlot [Tue, 21 Mar 2017 18:06:47 +0000 (18:06 +0000)]
Reworking execution order to make it more simple.

Rework clone order as well as directory location to make sure cloning in
separate directory.

Change-Id: I2ac3adecf363af7b702462d4a5af1f2c84220900
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded a CAUTION mention and fix some commands
Romain Forlot [Tue, 21 Mar 2017 15:40:37 +0000 (15:40 +0000)]
Added a CAUTION mention and fix some commands

Change-Id: I460f73da5efb0e9156b53ba35fef598dc6c46a7d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: use the cmake from SDK instead from docker image
Romain Forlot [Tue, 21 Mar 2017 14:07:51 +0000 (14:07 +0000)]
Fix: use the cmake from SDK instead from docker image

CMake from docker image isn't at the right version, to get one with a more
recent version we have to use the one built for the SDK.
Some cleanup of CMD output uneeded and typo

Change-Id: I8cb30f9b8203f8c4ff1cd771e4773264a9cddc6b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange binder to binding in title in use with gitbook
Romain Forlot [Tue, 21 Mar 2017 13:12:26 +0000 (13:12 +0000)]
Change binder to binding in title in use with gitbook

Change-Id: Ia1474c5ae8e88a5a139f26e9da0c5d96898e7499
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoDetail some instructions.
Romain Forlot [Tue, 21 Mar 2017 13:12:03 +0000 (13:12 +0000)]
Detail some instructions.

Some instructions miss some details to get properly executed.

Change-Id: I973a21f31fb685bbd82021101989cbc03764a23f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoTypo
Romain Forlot [Tue, 21 Mar 2017 10:18:46 +0000 (10:18 +0000)]
Typo

Change-Id: Ic820ac312553bd5b8b630ad2d2cbbdcc4bb590f7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake IoTBZH smaller.
Romain Forlot [Tue, 21 Mar 2017 10:35:44 +0000 (10:35 +0000)]
Make IoTBZH smaller.

Change-Id: I02d94a2a787a55fa890edd20f8b1f92a6ecfe23f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoPath from CANoe db to JSON files using OpenXC utilities.
Romain Forlot [Tue, 21 Mar 2017 10:35:22 +0000 (10:35 +0000)]
Path from CANoe db to JSON files using OpenXC utilities.

Added naming convention description.

Change-Id: Id2524dcde2af3c82f49166f3e662f75580dbc6a1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Conflicts:
docs/2-Installation.md

7 years agoDocumentation: reviewed and updated
Stephane Desneux [Mon, 20 Mar 2017 18:29:41 +0000 (19:29 +0100)]
Documentation: reviewed and updated

Some fixes:
* document title
* gitbook-plugin-richquotes disabled due to bad rendering
* TOC titles and ordering

Change-Id: I09b133f45a32b179ca4d1e8e13ea3b1e2fdb795b

7 years agoFix comment
Sebastien Douheret [Mon, 20 Mar 2017 16:26:07 +0000 (17:26 +0100)]
Fix comment

7 years agoUse svg instead of png image in cover root svg file
Sebastien Douheret [Mon, 20 Mar 2017 16:25:53 +0000 (17:25 +0100)]
Use svg instead of png image in cover root svg file

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
7 years agoRemove root cover file cover.xcf, now replace by cove.svg
Sebastien Douheret [Mon, 20 Mar 2017 14:35:09 +0000 (15:35 +0100)]
Remove root cover file cover.xcf, now replace by cove.svg

7 years agoUse bash script to generate doc instead of cmake
Sebastien Douheret [Mon, 20 Mar 2017 14:34:01 +0000 (15:34 +0100)]
Use bash script to generate doc instead of cmake

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
7 years agoAdd documentation cover
Sebastien Douheret [Mon, 20 Mar 2017 13:52:23 +0000 (14:52 +0100)]
Add documentation cover

7 years agoAdding instructions to monitor CAN traffic.
Romain Forlot [Mon, 20 Mar 2017 13:50:06 +0000 (13:50 +0000)]
Adding instructions to monitor CAN traffic.

Change-Id: I80668eaccb25d8df07025aed3563bfc9d94a1271
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRename to the standard name Doxygen config file
Romain Forlot [Mon, 20 Mar 2017 13:49:49 +0000 (13:49 +0000)]
Rename to the standard name Doxygen config file

Change-Id: I160f62e0e1ff516fb3ec3333decccceb89872c0d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMore accurate diagram since we do not use OpenXC generator
Romain Forlot [Mon, 20 Mar 2017 13:28:58 +0000 (13:28 +0000)]
More accurate diagram since we do not use OpenXC generator

Change-Id: I06266d4a08f1717978c2c7f14abeab3867fe7b64
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove documentation with config generation instructions
Romain Forlot [Mon, 20 Mar 2017 13:28:28 +0000 (13:28 +0000)]
Improve documentation with config generation instructions

Meld can-config-generator instruction in installation documentation
to have an all included documentation about CAN binding.
Fix: set the exact reference about the OBD2<->DB9 cable.

Change-Id: I97f14e8f2deadbea10050a50379bb72629074f6b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoexplain why buses node is not supported.
Loïc Collignon [IoT.bzh] [Mon, 20 Mar 2017 13:00:29 +0000 (14:00 +0100)]
explain why buses node is not supported.

7 years agoAdd targets to build documentation with instructions.
Romain Forlot [Mon, 20 Mar 2017 12:44:45 +0000 (12:44 +0000)]
Add targets to build documentation with instructions.

Change-Id: I037ab5d94e17147aba998131e92c1ec920293fa9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoUse gitbook to manage documentation
Sebastien Douheret [Mon, 20 Mar 2017 10:13:28 +0000 (11:13 +0100)]
Use gitbook to manage documentation

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
7 years agoUpdate toyota example
Romain Forlot [Mon, 20 Mar 2017 10:10:34 +0000 (10:10 +0000)]
Update toyota example

Change-Id: Ied4f715b486a2d4ef2b5ba4d49bbc339f95bffad
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoSpellchecking and typo
Romain Forlot [Mon, 20 Mar 2017 10:10:18 +0000 (10:10 +0000)]
Spellchecking and typo

Change-Id: I1f1c2cbc68e3c25d827657e2d08822e45a59d275
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMerge pull request #1 from claneys/patch-1
Loïc Collignon [IoT.bzh] [Mon, 20 Mar 2017 09:24:37 +0000 (10:24 +0100)]
Merge pull request #1 from claneys/patch-1

README Typo

7 years agoREADME Typo
Forlot Romain [IoT.bzh] [Mon, 20 Mar 2017 09:18:04 +0000 (10:18 +0100)]
README Typo

7 years agoMake error goes back to the subscribed clients when unsupported.
Romain Forlot [Mon, 20 Mar 2017 09:11:58 +0000 (09:11 +0000)]
Make error goes back to the subscribed clients when unsupported.

Change-Id: Ic864803c8dffdab3cc9bf5bf281ce032600a732f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: Avoid segfault if diagnostic bus isn't correctly set.
Romain Forlot [Mon, 20 Mar 2017 09:08:12 +0000 (09:08 +0000)]
Fix: Avoid segfault if diagnostic bus isn't correctly set.

There is a segfault when binding configuration doesn't matches configuration
generated. Improve general CAN bus device initialization.

Change-Id: I17ea94ee54841d09ac63a7ffad303a88d99e0173
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix bad handling unsupported OBD2 messages subscription.
Romain Forlot [Sun, 19 Mar 2017 01:47:26 +0000 (02:47 +0100)]
Fix bad handling unsupported OBD2 messages subscription.

Testing supported boolean wrong and gave a null pointer to a function that
doesn't check the pointer validity.

Change-Id: I49e88a68f266546dbd257b0fdade860cead1322d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove Toyota examples.
Romain Forlot [Sat, 18 Mar 2017 16:52:34 +0000 (16:52 +0000)]
Improve Toyota examples.

Generate a new version of the configuration generated for Toyota Auris 2010.
Remove the one from src directory. It has to be paste prior to build the binding
once generated.

Change-Id: I0b8e5415df0d0fade70dfa193ad45770c6db38dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoupdated documentation.
Loïc Collignon [Fri, 17 Mar 2017 22:31:21 +0000 (23:31 +0100)]
updated documentation.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agofixed compilation error on iotbzh's docker image.
Loïc Collignon [Fri, 17 Mar 2017 22:30:57 +0000 (23:30 +0100)]
fixed compilation error on iotbzh's docker image.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agofixed CMakeLists.txt when used whith a 3.0 version of cmake.
Loïc Collignon [Fri, 17 Mar 2017 22:29:11 +0000 (23:29 +0100)]
fixed CMakeLists.txt when used whith a 3.0 version of cmake.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoadded toyota's exemple.
Loïc Collignon [Fri, 17 Mar 2017 12:23:11 +0000 (13:23 +0100)]
added toyota's exemple.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoTypo and formating and rework somes sentences.
Romain Forlot [Fri, 17 Mar 2017 11:55:47 +0000 (12:55 +0100)]
Typo and formating and rework somes sentences.

Change-Id: If222728bfc9120065fd56f0877d3736634f6fc52
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoComments fixes, typo and formating.
Romain Forlot [Fri, 17 Mar 2017 11:48:46 +0000 (12:48 +0100)]
Comments fixes, typo and formating.

No more warning when generate the docs and all comments follow the same
formating.

Change-Id: I80d4c5c2d64401c2e53a550c60155680c4f968ce
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agomoved exemples files.
Loïc Collignon [Fri, 17 Mar 2017 11:37:13 +0000 (12:37 +0100)]
moved exemples files.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoadded support for diagnostic messages.
Loïc Collignon [Fri, 17 Mar 2017 10:49:27 +0000 (11:49 +0100)]
added support for diagnostic messages.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoadded the test/basic.json file to the Visual Studio project.
Loïc Collignon [Fri, 17 Mar 2017 10:42:55 +0000 (11:42 +0100)]
added the test/basic.json file to the Visual Studio project.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoConvert svg to png for the doc
Romain Forlot [Fri, 17 Mar 2017 09:29:26 +0000 (10:29 +0100)]
Convert svg to png for the doc

Change-Id: Ia62cba8da3db425d63c18104d597cd577f9651ab
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding some abstract to the READme.
Romain Forlot [Fri, 17 Mar 2017 09:20:44 +0000 (10:20 +0100)]
Adding some abstract to the READme.

Present the CAN binding architecture.

Change-Id: I7ab2a96e468a57e882a2eca93aedaacdc057794b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove READme instructions.
Romain Forlot [Fri, 17 Mar 2017 00:52:40 +0000 (01:52 +0100)]
Improve READme instructions.

Change-Id: I8b507d3e34ed3d34680e6e15b7f97b7e17fc1c4f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoDiagnostic requests will occur depending on their frequency.
Romain Forlot [Thu, 16 Mar 2017 18:25:11 +0000 (19:25 +0100)]
Diagnostic requests will occur depending on their frequency.

Hardcoded offset was for testing purpose, now we can use frequency offset.

Change-Id: I920e61cd8f587ead9c77aec158edb4dee28b927d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoWrong error handling when fire diagnostic request.
Romain Forlot [Thu, 16 Mar 2017 18:23:55 +0000 (19:23 +0100)]
Wrong error handling when fire diagnostic request.

As returned code was negative value the sd_event_source stopped considering
that was an error. If statement was to check that sd_event_set_enabled was
ok, so unref and return wasn't at the right location...

Change-Id: I91cc943c20af80a31b4f66f5714ccef93c0fdbd2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoGenerate a configuration example with diagnostic messages filled too.
Romain Forlot [Thu, 16 Mar 2017 18:11:43 +0000 (19:11 +0100)]
Generate a configuration example with diagnostic messages filled too.

It was filled by hand for the moment.

Change-Id: Ie72cd670bbc9c7a568507290f4bb25019ec58098
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: decoded name will be prefixed as at subscription.
Romain Forlot [Thu, 16 Mar 2017 18:10:38 +0000 (19:10 +0100)]
Fix: decoded name will be prefixed as at subscription.

Reason is that the simple message is used to match a subscribed signals
in the map. So it has to be the same that at the subscription.

Change-Id: Ie9504583948027523a7288b5e4a20707c49b6d59
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoDoxygen base configuration file and logo.
Romain Forlot [Thu, 16 Mar 2017 14:54:56 +0000 (15:54 +0100)]
Doxygen base configuration file and logo.

Change-Id: If1fbbefa386e1e72121ff28fce6f55569129272c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agogitignore update
Romain Forlot [Thu, 16 Mar 2017 14:54:31 +0000 (15:54 +0100)]
gitignore update

Change-Id: I97af1fab19d7d071e7c34d4149ae67442f257690
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoInclude cleaning
Romain Forlot [Thu, 16 Mar 2017 14:54:22 +0000 (15:54 +0100)]
Include cleaning

Change-Id: I5df96540400b833e684001f8fc5fa33ff1892bae
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding missing doxygen comments.
Romain Forlot [Thu, 16 Mar 2017 12:14:02 +0000 (13:14 +0100)]
Adding missing doxygen comments.

Made some cleaning about unused things or obsolete.
Review existing comments, adding missing comments.
Reformat some long long constructor.

Change-Id: Ibae247d1295a7a85b49d0ecee473022755d42b8b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoGenerated cpp file example.
Romain Forlot [Thu, 16 Mar 2017 17:17:16 +0000 (18:17 +0100)]
Generated cpp file example.

Change-Id: I1608db0120a0501af0e4327fe348ef149d90bad4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoUse index number between objects to set their links.
Romain Forlot [Thu, 16 Mar 2017 17:16:56 +0000 (18:16 +0100)]
Use index number between objects to set their links.

Needed to use generator.

Change-Id: I82b44fa1e53c55e2cd90ae7017906a22b7f0636e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoadded a folder to ignore in .gitignore.
Loïc Collignon [Thu, 16 Mar 2017 09:52:55 +0000 (10:52 +0100)]
added a folder to ignore in .gitignore.

Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
7 years agoImplement check of supported diagnostic PID.
Romain Forlot [Thu, 16 Mar 2017 01:18:00 +0000 (02:18 +0100)]
Implement check of supported diagnostic PID.

Supported boolean member about diagnostic messages is now used. When
a response is received, completed but not successful, then set the diagnostic
message as not supported and clean the request from the queue.

Subscription remains for now, not cool but will be fix soon.

Change-Id: Ia5dc78d4a770f80f144724f4df6eabd2ffd4b8cc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove comments
Romain Forlot [Thu, 16 Mar 2017 00:34:20 +0000 (01:34 +0100)]
Improve comments

Change-Id: I1e43b0aeaff738db11695e77fee23e8c9809f0c1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake unsubscription works with diagnostic message too.
Romain Forlot [Thu, 16 Mar 2017 00:34:08 +0000 (01:34 +0100)]
Make unsubscription works with diagnostic message too.

Now unsubscription really make unsubscription and stop polling diagnostic
request.

Change-Id: I31830c7af97506e1231fb5f1244c350520a2df29
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix comments
Romain Forlot [Wed, 15 Mar 2017 23:54:46 +0000 (00:54 +0100)]
Fix comments

Change-Id: Ia838d06885bc95196c5afc3668c0b028cb0f2763
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>