summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-16We doesn't modify member once getted, we can use const returnRomain Forlot5-13/+37
and const method. Change-Id: I0f7465af74b1c9a546af45a0d1eea33c93537e0c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Manage prefix on CAN and OBD2 prefix. Searching signalsRomain Forlot7-50/+55
is made on generic_name (without prefix) and returned vector of string is filled with name with prefix. Then you can process on them based upon their name differently. OBD2 signals will generated recurring request on diagnostic manager and decoding will not be handled the same way too. Change-Id: I2c5239ef49661941a0a748debe0bd536b2954b3a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Remove uneeded define as it was already present in uds.hRomain Forlot2-5/+0
Change-Id: I04091b35ec072e9c19f5af0689ed89db0d5070bd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Instead of a global pointer, config is now a Singleton.Romain Forlot7-18/+20
Change-Id: I0cfc34f330c531ba5f070542a1cb723be4bcc70a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Also initialize the id_ renamed address_ member. This memberRomain Forlot3-7/+6
is mapped to the address node from json Change-Id: Ied13067723552c2396337a9f85fe5e1418ba8caf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Keep raw pointer for now as we have to move them around vector.Romain Forlot4-64/+81
Change-Id: I8a518540b54552d60c6fd1054a0fc41dda5400b4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16fixed the build script when rebuild action is triggered.Loïc Collignon1-1/+1
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Finalize the class active_diag... to get it compile.Romain Forlot4-36/+43
Fix subsequents bugs into the other depending class diagnostic manager Change-Id: I8920c489fc15a61a36ff29d58aab59c2e6388f85 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Change also where wgt file is since we build into a subdirectoryRomain Forlot1-2/+2
Change-Id: I8cf568292035f1e8fd73d41ed91d5bd7d9d7c512 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Adding requests to diagnostic manager implemented.Romain Forlot4-40/+313
Needed overload of operator and constructor set for active_diagnostic_message_t class. Without we can't make the basic operation needed by the manager. Get rid of original raw pointer on "entry" which avoid some tests. It miss the acceptance filters implementations for now. Change-Id: I1ca61ff843c13255af6d9a60ce72a8b8bc9d1c18 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Adding needed getter for diagnostic manager. UsefulRomain Forlot2-0/+7
to determine if both object use the same CAN bus device Change-Id: I97dbf807198a420c305c8fbbd2cb4bfcdda4c294 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Adding needed function to get some time handle on requestRomain Forlot2-5/+51
for diagnostic at first. Change-Id: I3ab966d6386bad52f68ebdbea723bb7507cfaf2a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16add a helper script to build, can be use by VS2017.Loïc Collignon1-0/+82
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16add VS2017 files to .gitignoreLoïc Collignon1-0/+5
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Fix: include statement with wrong path.Romain Forlot13-37/+47
And minor fixes. Change-Id: Ica55c0708edd86d0aa37e7117b3c3fad551a0167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added constructor to get vector initialized with defaultRomain Forlot4-36/+92
objects initialized that can be grabed after at runtime. Don't know the impact on performance for now about maximum limit. Change-Id: I220614d479b8254ae0efda66380e96434bcbfbb2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16separation to a new file of can_message_set_tLoïc Collignon3-21/+84
Change-Id: If21021d8905d40d443d4432faeb38f8a3275697c Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Change FrequencyClock struct to class and rename it.Romain Forlot5-15/+25
Change-Id: I1076ad90e14815f3d0ab71ca9fa359d1d3c1748d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16fixed CMakeLists.txtLoïc Collignon2-5/+22
Change-Id: I62069f71b53a7a0e2131ca92834a9a85995308a7 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Fix: wrong tested variable for socket.Romain Forlot1-2/+3
Change-Id: Ice2325441474f1a075140e13dfffa0261106dff7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16C Header firstRomain Forlot1-1/+1
Change-Id: Ief8c66e99c689a362b645ad3b918d8b342ada59a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Add necessary to be able to initialize diagnostic manager shims.Romain Forlot4-9/+23
We have to conform to functions signatures from isotp-c to have it working. Change-Id: I429def66f54e53277e87aa99e66292cdb47c1c5f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Reorder to fix warning at compilationRomain Forlot1-1/+1
Change-Id: I1e558720318d9251ddfbbf6bb66a0461aef98e4c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Changing to a raw pointer can_bus_dev member and addRomain Forlot2-2/+7
a default constructor. It is needed to initialize configuration_t correctly as it allocate a diagnostic manager but do not initialize it unless it is needed later. There is no need to initialize it if we do not send and receive diagnostic requests. Change-Id: I3d52d1ea92454e7b065479a2f0dd54a291ddd991 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong signature due to reference discarding "const".Romain Forlot2-23/+26
Change-Id: I7dada9d01eb8619c3807647b6df378dd147bb7fb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: bugs in class due to the wrapping of C socketRomain Forlot2-7/+8
into a class. Added missing include and adjust methods signature. Change-Id: Id016b452e0b641a14482c288e4713acae941ee1d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: use of new objects and type conversion missing.Romain Forlot2-6/+6
Change-Id: I583ad536de619fed2be655a493299fe43cc65924 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16FormatRomain Forlot1-27/+27
Change-Id: Ie9159b039e468e511b497884816453093048aa80 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added new cpp files.Romain Forlot1-3/+3
Change-Id: I7f8b524a1279267f0ebd94eef6ef72e2875a47f6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16typoRomain Forlot1-1/+1
Change-Id: I62d9e858409b464dd69ebfae76ca73097fae560e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: include path (where I think to fix them...)Romain Forlot4-13/+15
Change-Id: Ib44693efc9347fc4fdf40a1748725d5191303199 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: missed method declarationRomain Forlot1-1/+1
Change-Id: If44be94dfd847089d494088d33f7b6c7f5d9098e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Better use a referenceRomain Forlot1-2/+2
Change-Id: Ie060009315c99919271ac706fdc1ab384e3d7218 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Respect the signature requested by uds-c lib.Romain Forlot2-3/+3
Change-Id: I7d7a96b45323f698e884c4db289370eec199d990 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Move some functions to configuration class.Romain Forlot6-53/+62
Change-Id: I87b1b6961206ae3848cf6aca367698218fe1523e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Create getter/setter needed for can_signal_t class.Romain Forlot3-12/+117
Change-Id: I8253fcbe7edb6673d9f6bcf85d6109800a4cf6e8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: used new created classes.Romain Forlot3-5/+5
Change-Id: Ib0188ac952f64b3bc2203c0310a21de380c75854 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added a static method to get used by Diagnostic managerRomain Forlot2-0/+32
that respect the requested signature. Change-Id: Id10215597d65ecaf280fe6252d78bc74a306958e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong socket variable called.Romain Forlot1-1/+1
Change-Id: Ib09b084e7202d184abf73cf92fea4afbcf4acf47 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Typo and formating.Romain Forlot7-26/+25
Change-Id: I864a2fe7f974b0f2bf5000f55c2dc71ecf32a314 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Constructor making mandatory to pass a can_bus_dev_tRomain Forlot2-3/+3
instance to initialize it as it is reference. Change-Id: I0261a5e2fdca5a84fd736d7ceae837ff9156b935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Misplaced test of rtr_flag bool and length assignationRomain Forlot1-5/+2
Mini simplification of the method... More incoming. Change-Id: I2e7c2c5226e33265591acc6c8bbbe5f5f670db18 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: method to allocate a new can_message_t objectRomain Forlot2-69/+78
from a canfd_frame. A new constructor added ad-hoc. Change-Id: Id6b909666105da0c4885351db9291aa430d138f0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Again change enum name and add "_t" suffix to getRomain Forlot3-21/+21
syntax coloration into IDE... Neat, isn't it ! Change-Id: Ieee2618336be80ddf97ccaa29bc83098a6463c56 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Use the new created class and their respectivesRomain Forlot1-7/+9
methods to get their attributes. Change-Id: Ib96031388356541615cd2c428d3ad1a73c79e215 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Use static method now as they are all static. No needRomain Forlot1-3/+1
to instanciate an object to decode now. Change-Id: Id9bf378642ad66b7b4f39d909678ecc5ebb756cc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Change all old struct name to the new class.Romain Forlot9-37/+38
Change-Id: I8aa4430117c401182ef458a06a2aeb08957db1bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Forward declaration needed instead of include theRomain Forlot1-1/+2
whole file. Lighter. Change-Id: I14af5868679e5c65bda9a4395b040cc28af04059 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Change CanMessageFormat name to make itRomain Forlot3-19/+19
as the other type. Change-Id: I4b3ae3998175613458492a0f02cce06a576cbfa8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Clean old C struct, now as C++ classRomain Forlot2-47/+22
Change-Id: Iba4c4a47b140c53d766c348064857069feefdb19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>