summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-02-24Remove socket read management by systemd eventRomain Forlot6-83/+62
loop and use classic thread with a blocking read Change-Id: Iac5428009b57c727bb32bd4893bc3fe282ba35c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Improve subscription/unsubscription operation.Romain Forlot1-32/+44
Break operations into 2 new functions to improve readability and added some comments too. Change-Id: I405622ef17787cb39d8d2b2530a2d6572ce4e366 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Fix: wrong if...else atomic expressionRomain Forlot1-1/+4
Change-Id: I995e6c6eb5e7e6d3f7ade17b8386706a5144f3bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Add commentRomain Forlot1-0/+3
Change-Id: Ifc04a66e54889cc4f735cad1ac9caaeb31230566 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Fix mutex about can_frame. Wrong location aboutRomain Forlot2-5/+8
can frame mutex and adding around can socket init. Change-Id: I90c2200abf517ad4a9660c99a3ca02e52e069374 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23First draft about lock/wait thread management.Romain Forlot12-204/+343
Reordering include files Change-Id: Ia6d9ee30eb4e1df0c380c26355679fe00b373aa8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23Make binder_interface global variable rather thanRomain Forlot8-63/+54
pass it over and over through class and functions Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23Cleaning, improve commentsRomain Forlot4-57/+50
Change-Id: I2115f7e7017786c343da4b70002c3b3785ba53ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Header include spring cleaningRomain Forlot1-36/+15
Change-Id: I28b5c9197daa30c7da4ef1835f0eb989613a7901 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22make binder_interface globalJosé Bollo2-79/+52
Change-Id: I90b17d702cebdcf2d78cc108c2ecb995c231527e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-22Improve doxygen commentsRomain Forlot2-139/+175
Change-Id: I7506997865726a6caa28177a1f85713ae924336f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Enhance error handling about can_message_t classRomain Forlot2-35/+145
Change-Id: I9fbda1110eea7a3bd7e5855739280aa10bce5a6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Change way to convert simplemessage into a jsonRomain Forlot5-26/+100
object. Improve doxygen comments Change-Id: I794bdc10f9e1ce66ebd4e68dbd6e0c465e3ca5c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22No more warning about not defined functionsRomain Forlot16-41/+75
because of wrong header files inclusion. Some variables are now accessible using functions rather than using global variables that can not be accessed through separated files. Also fix timer returning function type. Change-Id: I36138ff671c2537f595235273abaa34783be18e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Resolve circular header files inclusionRomain Forlot6-7/+7
Change-Id: Ida3de058f1edd2892ebc858d1eb714471fd5f65c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22first draft to new subscribre unsubscibre methodRomain Forlot1-0/+113
Change-Id: I2a3fe7ac1d77cc893e9cc63c54895d521ab2bf01 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Fix: decoder_t class decodeSignal method signatureRomain Forlot5-33/+37
Change-Id: Id7ef4fe3b8d3f5b14fd447cf05865ba494862792 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22All queue under can_bus_t class and reading threadRomain Forlot7-123/+121
function with an additionnal can_bus_t object argument Change-Id: I6b0b9b66e83be59359bcd148e8b9f3350a085b64 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Added separated header filesRomain Forlot3-0/+70
Change-Id: Ife7701b54149c12bce969468adb667a6c101d01a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Fix: force to pass a ref at threads launchRomain Forlot10-52/+38
Change-Id: Ife4206d6f6dce6888157239cce56b0040e3d2cf4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fix: threads launching with wrong argumentsRomain Forlot2-10/+9
Fix: wrong type identifier to returned sendto function Change-Id: I33bcb84211c665720422573b04b32ca71e13d3e5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Multifixes: class and methods, typo, commentsRomain Forlot4-63/+78
Change-Id: I473de66a9d4119ce64c04bd7fa59654774ac3b8f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fixed can bus class (almost)Romain Forlot2-153/+156
Change-Id: Icb76d26749e0e7b5f122676861ed09ac0c03be30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Handle error in returning a vector by returningRomain Forlot2-18/+19
an empty vector. Fix: typo Change-Id: Ibe859d3e67f6eea96b50e04cd230657be56a18c6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Clean up include statement...Romain Forlot7-45/+67
Change-Id: Ie909836171ea5eb030246255bb08f1c5b8a65641 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Some cleaning and commentsRomain Forlot4-55/+26
Change-Id: Iad73e3a34c5638e012819506b56741f62cfa3e30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Cleaned up, a bit, include statement.Romain Forlot9-55/+43
Change-Id: Icdaa162f1b3b92e730fc7dc263c18c682a7f4098 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fix: OBD2_PIDS array initializationRomain Forlot13-373/+533
Change-Id: Ic2c297e4ff94a13872f066ca42ee42beb45451ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Fix: timer.* issuesRomain Forlot10-273/+238
Change-Id: I1c3721403198b3c5525a811bd3c7cbf6b8e78e5b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Change hpp include file directiveRomain Forlot3-97/+76
Change-Id: I1df7ab41b19a2c065d8ed477115e21e0ded8659f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Separated can_bus and can_bus_dev object.Romain Forlot3-103/+236
Now there are as many thread reading as can bus device Change-Id: I65928b39714f3a0e76e588de3db10d091ad5093d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Addind missing libraryRomain Forlot1-0/+7
Change-Id: Ic793d097eb9773e455e1bfbb95d57565a003cd53 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Include supplementary libs and fix includeRomain Forlot2-9/+2
Change-Id: I521ededa95c3b5f4507b86f162f04bf28474e440 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Rename header file to hpp.Romain Forlot10-173/+200
Change-Id: I399e0c0f39b18e63e254825b6322faf77896a264 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change way to iter over vectorRomain Forlot1-12/+15
Change-Id: Ic06f1aaafb839d8d06c839b60ec440031bee89ed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change way signaling end of queue for can messagesRomain Forlot2-2/+21
and vehicle messages Change-Id: I98fbc5995ff08facc5430cce92830aa878dc3dc9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change Decoder_c class name to decoder_tRomain Forlot2-8/+8
Change-Id: I0f07e9a21cf067f6e3ceab73524628eb4ec731e9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change to push_back instead of insert.Romain Forlot1-3/+4
Change-Id: If4c03e71894fecf4a926ae314d2b8ef0c54950ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Add can_message_t constructor. Make the classRomain Forlot2-43/+44
compliant with new typo Change-Id: I69b7247d841b58183e7863600072a79b2a9be1c6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change CanMessage_c to can_message_t class nameRomain Forlot7-38/+38
Change-Id: I58a8d05ef226c22c9218cd3bf4932216e33f0de0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Changing CanBus_c to can_bus_t class nameRomain Forlot6-49/+56
Change-Id: Ibf277e36187b78853718f76552ff730d0474a3e6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Adding canbus read methodRomain Forlot2-19/+69
Change-Id: I438d885516e9cbe499d333ff3065c5e9d6d4d99a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>