aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-05-29Clean unused project files and update build scriptRomain Forlot5-19/+13
Change-Id: I4f606005ee781716da52f2ef68e55eeb69026ce3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-29Use latest version of cmake templates.Romain Forlot1-0/+0
Change-Id: Ia2408a09705ccf035f0e68ecac2909e2b0047f9b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-29Update gitignoreRomain Forlot1-1/+3
Change-Id: I918ce2a6e99d1c517a3492d6cc9312bf333f94fa Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Fix: file already exists on build demo appRomain Forlot1-2/+2
Change-Id: I956caaa06c82e5786114d2fac53c7532226fe7ba Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Update config.cmake pathRomain Forlot2-1/+5
Change-Id: I468d27c764274458310cbd11cdec06b686789152 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Cmake WIPRomain Forlot5-4/+102
Change-Id: I9c1cefde33724db192cbbf3dac69d47b2a700c2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # CAN-binder/conf.d/default
2017-05-24Move and update app-templates submoduleRomain Forlot4-89/+2
Change-Id: I91b3926c9c5ab7c95b5a6f9cec309d930792ba14 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Close diagnostic manager socket if there isn't any requestsRomain Forlot2-3/+20
No need to listen diagnostic responses if there isn't any subscriptions. Change-Id: I7fa48dbc3e8fb1847b8186337fe2813625894406 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Initialize the new socket member.Romain Forlot1-2/+4
Change-Id: Ia267c7ec605c692222ddcaed112486f81b428200 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Fix memory leaksRomain Forlot4-0/+14
Change-Id: I4a33b6d5f1f3b73af113aff62b024329b0ed5288 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-24Be able to copy active diagnostic request objects with their socketRomain Forlot3-0/+8
Implement socket copy assignment operator on socketcan base class. Change-Id: I75a2d3b96275b7ab83372d74ff7fe0a0b0535dc7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-23Static code review fixes.Romain Forlot18-42/+43
Several style errors and mistakes mostly on constructor and passing arguments as ref. Change-Id: I2ca921d6aa70b9074392bb7779ade35bebf7bd8d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-23Fix a dependency problem with populate htdocs targets.Romain Forlot1-0/+1
Update modif date on output dir to make update on populate happens too. Change-Id: Ie1481d4231075a83bebde79ebf41c1f11b73ac21 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-23Update the docRomain Forlot2-31/+25
Change-Id: I5b403be18a82072bb68b0b01d2ad576de4fb5014 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-23Implement filtering on subscription. WIPRomain Forlot2-17/+60
Change-Id: I232bdfe75335d0266d582b4974d8378632aceeae Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-22Logical bus name mapped to device name using conf file.Romain Forlot9-15/+36
Store CAN device map without prefixed section name and add methods to get the mapped device name. Change-Id: I03ebc175c67b2251016863b0d69a45a816a81d25 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Remove unused CMakeLists.txt file.Romain Forlot1-90/+0
Useless because nanopb isn't compiled standalone. It's used from openxc- message-format library. Change-Id: I59b8a6617d7ba95ac1557d1ad5f49ae0011eb701 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Add 'CAN-binder/libs/nanopb/' from commit ↵Romain Forlot275-0/+25386
'278ffb890e3d8722e4c7d824baaf221a1e375fc4' git-subtree-dir: CAN-binder/libs/nanopb git-subtree-mainline: 48a2605965af1f05ba7f01f6e8c1758a4c9b0522 git-subtree-split: 278ffb890e3d8722e4c7d824baaf221a1e375fc4
2017-05-19Use the nanopb sources from projects libs.Romain Forlot1-1/+1
Change-Id: I9af9a71e4e454a488e51a95ae896fd249bf27103 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Using reference make std::move useless.Romain Forlot2-3/+3
Change-Id: I9b9b6a2fbaecae8acc4f8f1eef0ea8d2f084fb9f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Set parent from configuration_generated objects.Romain Forlot3-18/+23
Change-Id: I8f07084c6364347ebad3e029b89aeef93129cce3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Added timestamp to received CAN messagesRomain Forlot10-18/+56
and store into frequency_clock_t. Change-Id: If209070298bd9df49297fdcbed554770e1bc0e4a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Delete sub-submodules from imported openXC projectRomain Forlot280-25327/+0
Change-Id: If0584c7238353b01292486a4843ff00bb0398987 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Rename build script to generic nameRomain Forlot1-5/+11
Change-Id: I91d7646e27357e338d13e0aea0e0d373fb61b175 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Adjust method signature to be more efficient.Romain Forlot10-45/+34
Return vector reference and doesn't return const ref. Change-Id: Ibcbc1d72e4baf1a7b8bf017d36d6d37d25312d6d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # CAN-binder/low-can-binding/can/can-signals.hpp
2017-05-19Change method name to signify that it is an aggregate.Romain Forlot4-6/+6
As can_message_definitions got the exact same name but the one from can_message_set is an aggregate of all can_message_definition. So it is clearer using a different name. Change-Id: Ieb9e4d3291f3dc460eb352d8b8fe5a7cf479e687 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Use shared_ptr for can_message_set too.Romain Forlot3-9/+8
Change-Id: I3ba4881d5fc01a69d55e101b9a07c2019dda1d4b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Finish config parser retrieving device mapping.Romain Forlot5-5/+19
Change-Id: Ia43f9c0edf09ff9a1c009f198bdad10a6b44b249 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Upgrade CMake once again using reference submodule from app-templatesRomain Forlot6-266/+8
Change-Id: I2a17d142af208e71fe6f59d71bc455d6f5882b4a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Update the docRomain Forlot1-62/+12
Change-Id: I3efb0bcd4b5e56101bf14a8335406bf6b2f30e97 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Fix: cmake doesn"t create populate targets.Romain Forlot1-0/+1
Use of property make that the variable PROJECTçTARGETS isn't available until we retrieve it with get_property Change-Id: I69845425a11af6408dbced4d13c2d04c5181c0be Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19FormatRomain Forlot4-9/+7
Change-Id: If3a381a4a07c117b9b1cc48ba3a6b4af2d7bdc69 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Explicit move of objects vector at list initilizationRomain Forlot1-2/+2
Change-Id: I5dc5ab4fa249c6677b188b6dea9d282a097a3250 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Improve objects construction.Romain Forlot2-10/+10
Use of a ref to initialize bus_ string member. const value doesn't make sense. Change-Id: I96f504ee11a754b3130289d27afa02a6fa811014 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Update latest CMakeLists files from app-templates.Romain Forlot3-15/+6
Better handling of dependencies using TARGET_LINK_DIRECTORIES directive Change-Id: Iffead28aa2e2696cdc9103301d013deee2e6b1ab Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Don't collide with application framework ERROR in some configuration.Romain Forlot2-7/+7
Change-Id: Idd600a47960850cd4afc553fdb79f5c57f93f64b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19New generated files using updated generatorRomain Forlot1-307/+443
Change-Id: I5778c07d1e92e52413e3020ee281a38c7cc0f1ef Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Fix: Generator compilation warnings.Romain Forlot4-9/+9
Change-Id: Ib9267901da5f0cddd191b5736e47b43c696a85e6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Update generator to use the new objects graph organizationRomain Forlot1-80/+59
Here is the objects graphs for configuration_t object: vector<can_message_set_t> { vector<can_message_definition_t> { vector<can_signal_t> } vector<diagnostic_message_t> } Change-Id: I865f6ec213505a578c0c6ec4b3a76bd061560d2a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19More generic expression for doors names.Romain Forlot1-5/+5
Change-Id: I959ba3d2b42c33176c55c5b2f39d59f9c7b2d614 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Include diagnostic_message_t into can_message_set.Romain Forlot11-21/+46
Change-Id: I7372e469752dd8e90dc9431b9e5c67df12f56c29 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Make and use a single function to read incoming CAN messagesRomain Forlot6-43/+37
Change-Id: I5d3f2a8628ace464ad25989346cc76682c591bd8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Cleaning unused code diagnostic parts.Romain Forlot4-101/+2
Change-Id: I5df50557132ebe593818a7aa4644b8a0161c51a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Format renamingRomain Forlot2-7/+6
Change-Id: I40c28f584c444ef806c2adcc55d443a145abb0d2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Be able to return index or can bus name.Romain Forlot4-9/+11
Use a vector of string pair that map index on vector and pair map logical bus name with linux device name. Change-Id: I627e6f715f7466d835d8729e21d9e4198111c1fb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Remove can-bus-dev following RAW->BCM sockets migrationRomain Forlot10-373/+35
No needs to get RAW socket for now, so can_bus_dev_t class is useless and now removed from project. Change-Id: I37b3e187ef28ba393beae7a99da4f422f74a298e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19one event source by socket added to systemd event loop.Romain Forlot1-0/+1
Get back to the first solution, moving this variable declaration was a mistake. Change-Id: I1af78d93bfc8f759ecf1a849adddbe1d52c27466 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Use common timer method to get BCM timeval values.Romain Forlot1-5/+3
Change-Id: I3c4364d6038bd60546726fba940f043f5abcb6d2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Fix: compile conversion warningRomain Forlot1-1/+1
Change-Id: I174c546afb6b21df431e0a61677292d43af8f0ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-05-19Better suited method.Romain Forlot2-2/+2
Change-Id: I287e445c6f1c372a852752911d032a70654aa082 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>