summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-16Make a global variable to a configuration object.Romain Forlot3-7/+15
With afb interface, it will be the last global variable needed as it regroup all needed stuff to other class and functions. Change-Id: I3d82b6f748ff22a9a975d15ab9df51f63005737f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Remove moved functions into configuration classRomain Forlot2-27/+29
Change-Id: Ia8aa6a9f6211c2e040f53972ba689aecdeda9011 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong method signature.Romain Forlot1-19/+15
Change-Id: Id836fac13d66443c313403a572ab840eecb8321d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Make dumb poco class from old C structRomain Forlot2-7/+16
Change-Id: I1cae74b33e1351bb84d002e86f93c9329f8389f0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Add movable constructor to the classRomain Forlot1-0/+1
Change-Id: I4d050fda9b189e4d88393013c2b6c893063f24db Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added a warning that it is an example codeRomain Forlot7-27/+86
Change-Id: Ib66e49960a348896020fba56f7d98910623af83f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16separation of can_bus_t and can_bus_dev_t and use of the new socket class.Loïc Collignon4-159/+208
Change-Id: I5f292ab18737fa48259f357d660fed27fb8fb4be Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16added a socket class to wrap the C socket API.Loïc Collignon2-0/+135
Change-Id: Id90c60caba93b65011def0cc01232a7a2d7dbac4 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16added a parent CMakeLists.txt to allow build in root dir and use by IDEs.Loïc Collignon1-0/+1
Change-Id: I1d5e3a85c582ed2c711d3138df0030655ce09d5e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16added some ignore to skip KDevelop files.Loïc Collignon1-0/+4
Change-Id: I602b92268f82250730818027c846b569db7f2b59 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Change doxygen commentsLoïc Collignon2-38/+20
Change-Id: Ia635a7483e2fcda3b98fd3d3b3f7e996d26926d0 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-16Beginning of work of get central configuration objectRomain Forlot9-117/+219
that will be used by the binding to access generated elements. It will hold generated structure/objects and make a resume to the binding configuration. Idea is to have an object that can be inherited in the generated code to extend its functionnalities or change some of its behoviors. Change-Id: If2ce5cbe2eb98a74a8e3f13000ee02855674216f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16It isn't needed to initialize diag managerRomain Forlot2-8/+2
for each can_bus_dev_t instance Indeed, generator will write the diag manager objects statically with the correct can_bus_dev_t instance to use. Change-Id: Ib52d93bff576ef962dc141f5936133e878977017
2017-03-16Introducing active-diagnostic-message that will be holdRomain Forlot1-0/+82
by Diagnostic manager in its queue and list. Change-Id: I565d06634a55b99cc97f36ec6d695b3b0bf21dca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: typo, and dirty fix to get compiled ftm.Romain Forlot3-10/+13
Change-Id: I74042051346a0f0f4de7152e2a668c041edaebde Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Introducing diagnostic manager class.Romain Forlot6-21/+133
It will hold communication through uds-c lib allowing to communication with diagnostic protocol obd2. It is attached to can_bus_dev_t class 'cause it must regularly send CAN message through it. Change-Id: I2d9d8dfaca10e9865bf82b0ae83e65490ca982f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Make an extern get_signal_id() function plug to get_pid()Romain Forlot2-3/+15
member function from class obd2_signals class. Change-Id: I5a0f1cfd0c2fb9374cc3928861ca4e8a52911942 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong function signature and get out from classRomain Forlot3-4/+3
temporarly to get compiled project. Change-Id: I7235f503c42a3e31d09094c42882b74e5e809493 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Include file changes, typo and renaming operation.Romain Forlot10-40/+32
Change-Id: I6643333cfcc8bea120496c53f1cd3b8596e33398 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: typoRomain Forlot1-1/+1
Change-Id: I882595f4a0f28c60b12f8c6ed0bff11a80af29af Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Finalize new directories organization.Romain Forlot7-21/+24
Change include statements and CMakeLists.txt accordingly to the new layout. Change-Id: Ief0821f7f6636b072cf26c7d8d8fcc16fe43ab01 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Beginning of work on obd2 object andRomain Forlot18-91/+96
files reorganization. Change-Id: Idaa7ad05c45d734ce771506fd6e41f1a09a6ac66 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Raw import openXC function to detect obd2 response.Romain Forlot2-4/+46
Change-Id: Ieea0396979302329f5884ebef2064bdc7015a45f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-06Comment pass to cpp file instead of hppRomain Forlot4-286/+245
Change-Id: I13f3b3d81485ec59a636f11140074d9f25f87428 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-06Sort and comment the codeRomain Forlot4-47/+77
Change-Id: I1860c0d5fb03ce2217d5553159a090298596d939 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-06Fix: clear pointer vector before fill it.Romain Forlot1-46/+40
Clearer indentation Change-Id: I9fdea8d03bf33bf0ada3504770b52a21f30b57a0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-06Include new signals.xpp files to the compilationRomain Forlot1-1/+1
Change-Id: If105a195f24f90d8a75793e127488563ca299851 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-06Change way to find signals to make it a little bit more generic.Romain Forlot9-196/+293
Now we have basically 3 functions : - one for subscription which return signal name into a vector - one to find from CanSignal vector - a last to find from Obd2Pid vector Name of some function has been changed. May be reworked later. Change-Id: Ie72969fd20503fc1f9291958dc2ac5d827a6be59 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-03change all genericName to generic_name. Now allRomain Forlot6-39/+38
objects use the same variable name Change-Id: I8a232bc8fd7e580bd8088e6b2ae7a90666ef9c62 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-03Change TARGET variable name and remove CMakeToolsRomain Forlot1-6/+3
helpers modules requirements Change-Id: Ifaa03b13671c62f877e391e7cd6f0ff0b40fd356 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-03tbfRomain Forlot3-2/+3
Change-Id: I4e46542258b8dab0c0e266adddf9bfc7a4111376 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Clean up uneeded members and functionsRomain Forlot2-12/+0
Change-Id: Idc9ebe9cfc6e348c378c1489971600b8f125e6e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: unsynchronization between queues.Romain Forlot3-36/+40
Ressources not enough protected with mutex, I extend the scope of the lock to make sure that event flow go through synchronously. Change-Id: I77a80ab69eb768a211c537e0f33580379832a465 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: no json data for subcribed eventsRomain Forlot1-1/+0
Change-Id: I9c260559d28bfe4bf26a77403254cd46a84a7d6f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: Make sure can_message_t.data_ member has beenRomain Forlot1-0/+1
clear before use it again. Change-Id: Ib073d67651cd3272190ef7464e806cf1f22b4cf3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Debugging message cookRomain Forlot2-9/+9
Change-Id: If93bf9bf7c6e2f429a4313a7f6500ded950229c9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Adding DEBUG messages to track error on STL containerRomain Forlot1-8/+17
Fix: iteration around signal vector. Change-Id: I188cfa8be452ba5268f236b5a8cd1f2bce89058b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: Wrong set up of vector.Romain Forlot1-2/+8
Change-Id: Id9fa04541a62714802a64492e3981b204756212e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Reserve new space to data_ can_message_t member only if theRomain Forlot1-1/+2
new incoming can frame if bigger than the old one. Change-Id: I39634cc0d01b300ea471b358e13d704b8eff351c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: multiple subscription and maintain subscribed_signals coherenceRomain Forlot4-46/+69
across usage. - Transmission of a reference instead of copy. - Don't use anymore iterator on subscribed_signals map Change-Id: I5e5b7b0bb8598be3bb0ec59c29418ee937ddcc9e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Initialize all boolean value of DynamicField. Avoiding mistake.Romain Forlot1-0/+6
Change-Id: I9cd5551186debd153e838b6d4156430553d5235f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Clean and imrove log messages.Romain Forlot2-6/+3
Change-Id: I77c74851ec436de0c7a7c47993badb7d1e2c01ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Tests with CmakeTools extension for VSCode. Can install on targetRomain Forlot1-3/+15
from VSCode. Change-Id: I464d3379fe061605fcc84ba432e7a8a8b6ec6ec7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Change id to an hexadecimal value.Romain Forlot1-5/+2
Change-Id: Iecf8179e2885a7d1392a854bcd56e731fed5bba0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: subscription and improve code readabiltyRomain Forlot1-16/+12
There was probleme between char and string conversion. Also, I get rid of iterator and use direct access using operator[]. Change-Id: I235ef0dd3ef9d9cebb624491d86383392e9eb8d8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01New way to return canfd_frame with now number of read bytes.Romain Forlot4-24/+23
This way, we can detect correctly the max data length and set the data correctly. Change-Id: I346df154df76dbd4a463d1fabfd9edd56faca506 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: wrong format to display can_message_t informationRomain Forlot1-1/+1
Change-Id: I6c17c68d8e995022886750f2ef05348b544cbde5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Merge branch 'master' of github.com:iotbzh/CAN_signalingRomain Forlot2-6/+12
2017-03-01Wrong call to thread.join cause deadlock and thread termination.Romain Forlot1-3/+0
Positionning the controlling boolean value will be enough for now Change-Id: I28e2d175e23370746cc30c2403829ebdeec7c2bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: miss 'if' brackets to get incomplete CAN frames correctlyRomain Forlot2-7/+8
Fix: displaying can message frame with hexa format. Change-Id: Iff658ac38f21a15945ed82509d4e291f0fda7503 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>