summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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 Forlot8-195/+292
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-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>
2017-03-01Change data_ member of can_message_t objectRomain Forlot2-8/+11
to a vector of uint8_t instead of an array This is more flexible to allocate dynamically the vector depending if we process classic CAN frame or CAN FD frame which are 64bytes long. Change-Id: I698002139d612e3aaaa33f0f5a895e16ff655f5d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: improve can_message readRomain Forlot4-51/+143
Change-Id: If0c52c6df3f68e9b79fb851d64a729946cac6ef6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Delete for good obsolete codeRomain Forlot2-1/+2
Change-Id: Ic56fadcc7e6265072e4e3413f914b735b56e903d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01tbfRomain Forlot2-27/+21
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Implement a new method returning the can deviceRomain Forlot2-31/+18
map. Change-Id: Ie44bb825269034f9f071bd286c7830a77ba5c479 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: can bus object life is now expanded and don'tRomain Forlot3-31/+36
die prematuraly. can_bus_handler object is now a pointer living forever. can_bus_dev_t object is now stored as a shared pointer into a variable member into can_bus_t. So everyone survive now. Change-Id: I52768dd7fe3c203a5f679f59afd1bcf330f3af35 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: wrong argument passed to start_reading().Romain Forlot1-1/+1
Not needed to specify std::ref... Change-Id: I0e5ae02554f8a0f07ec1d40670b9b089453804e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Added debugging messages.Romain Forlot1-3/+8
Change-Id: I42d2576355f69ac167b170a2994c7360d8449fb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Make the thread function members of can_bus_t and can_bus_dev_t objects.Romain Forlot9-294/+171
Change-Id: I3cf06998c6ff6d859c7fdf6bf52a9b6ff061c556 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Re-arranging objects splitting all objects overRomain Forlot14-764/+833
separated files. Change-Id: Ifbdb2ea08704324e505a48ba3124df6f2af63c6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: start reading the can bus if it was correctlyRomain Forlot2-174/+4
opened. Change-Id: If285791aee51d4a57e17270e8ac458cb6869f970 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Added some DEBUG log messages around reading confRomain Forlot1-1/+7
file Change-Id: Iec52801df6ce0c47c24412ac46332c301d5c46d6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix: wrong conf file name specifiedRomain Forlot1-3/+3
Comestic change about binding description and prefix Change-Id: Iffb3e0d13a81461db0f1300674c4fef3a6bde34f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix: mismatch function signature and implementationRomain Forlot1-1/+1
Change-Id: I3e43ffda762117eac1b13da0d5a652338c6ad1f1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix decoder_t methods to get it compileRomain Forlot4-45/+55
Change-Id: I283480bf434b00ade15bcb1dbc9d097c338caab4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Added missing pthread libRomain Forlot1-2/+4
Change-Id: I34c43af949a5f47334fa606acfe5b2bcccf59083 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix wrong returned value about getCanBuses.Romain Forlot1-1/+1
Why I keep this function anyway... Change-Id: Ifcbc00625fcb065b73afed51fc712067aa9db412 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27In class mutex and condition variable except for subscribed_signals mapRomain Forlot10-34/+59
For now... Change-Id: I133deb39fcd0660064b3b3c2a52f86ad37cb29c2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Removed static libraries deployed by mistakeRomain Forlot1-4/+0
Change-Id: I25e8bf44463ef70c9910326a091aa2390d6f0652 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Changed the decoding functionRomain Forlot4-43/+80
Change-Id: Ib27fb13d4fb7959509400a3c2eff2859d1ce9c2b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Change content target and use a testingRomain Forlot2-1/+4
CAN bus: vcan0 Change-Id: I95b8f3882f253524ef4836277ef1650f03ca89df Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Build and link statically external librariesRomain Forlot1-13/+36
to the binding. Change-Id: I22480cbbc234f6bc40e632b9ce45b7170cd85e54 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Improve mutex lock logic.Romain Forlot9-52/+101
- Use of bracket instead of unlock method - Change some mutex lock scope. - Added subscribed_signals map object mutex to manipulate it safely. Change-Id: I770c0b5701db6b1151511f7360ec31ae6dcc1de9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>