aboutsummaryrefslogtreecommitdiffstats
path: root/src/can-utils.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-02-28Re-arranging objects splitting all objects overRomain Forlot1-485/+0
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 Forlot1-2/+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-27In class mutex and condition variable except for subscribed_signals mapRomain Forlot1-0/+20
For now... Change-Id: I133deb39fcd0660064b3b3c2a52f86ad37cb29c2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Improve mutex lock logic.Romain Forlot1-1/+18
- 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 Forlot1-33/+0
loop and use classic thread with a blocking read Change-Id: Iac5428009b57c727bb32bd4893bc3fe282ba35c7 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-24Fix mutex about can_frame. Wrong location aboutRomain Forlot1-3/+4
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 Forlot1-139/+182
Reordering include files Change-Id: Ia6d9ee30eb4e1df0c380c26355679fe00b373aa8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23Make binder_interface global variable rather thanRomain Forlot1-35/+36
pass it over and over through class and functions Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Improve doxygen commentsRomain Forlot1-61/+1
Change-Id: I7506997865726a6caa28177a1f85713ae924336f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Enhance error handling about can_message_t classRomain Forlot1-18/+36
Change-Id: I9fbda1110eea7a3bd7e5855739280aa10bce5a6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22No more warning about not defined functionsRomain Forlot1-1/+1
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-22All queue under can_bus_t class and reading threadRomain Forlot1-51/+51
function with an additionnal can_bus_t object argument Change-Id: I6b0b9b66e83be59359bcd148e8b9f3350a085b64 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Fix: force to pass a ref at threads launchRomain Forlot1-4/+4
Change-Id: Ife4206d6f6dce6888157239cce56b0040e3d2cf4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fix: threads launching with wrong argumentsRomain Forlot1-8/+6
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 Forlot1-48/+64
Change-Id: I473de66a9d4119ce64c04bd7fa59654774ac3b8f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fixed can bus class (almost)Romain Forlot1-149/+149
Change-Id: Icb76d26749e0e7b5f122676861ed09ac0c03be30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Handle error in returning a vector by returningRomain Forlot1-11/+12
an empty vector. Fix: typo Change-Id: Ibe859d3e67f6eea96b50e04cd230657be56a18c6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Clean up include statement...Romain Forlot1-18/+19
Change-Id: Ie909836171ea5eb030246255bb08f1c5b8a65641 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fix: OBD2_PIDS array initializationRomain Forlot1-15/+13
Change-Id: Ic2c297e4ff94a13872f066ca42ee42beb45451ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Fix: timer.* issuesRomain Forlot1-53/+56
Change-Id: I1c3721403198b3c5525a811bd3c7cbf6b8e78e5b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Separated can_bus and can_bus_dev object.Romain Forlot1-31/+145
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-20Rename header file to hpp.Romain Forlot1-39/+44
Change-Id: I399e0c0f39b18e63e254825b6322faf77896a264 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Change way signaling end of queue for can messagesRomain Forlot1-2/+19
and vehicle messages Change-Id: I98fbc5995ff08facc5430cce92830aa878dc3dc9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Add can_message_t constructor. Make the classRomain Forlot1-39/+39
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 Forlot1-23/+23
Change-Id: I58a8d05ef226c22c9218cd3bf4932216e33f0de0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Adding canbus read methodRomain Forlot1-17/+64
Change-Id: I438d885516e9cbe499d333ff3065c5e9d6d4d99a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Use initialisation list with CanBus_c constructorRomain Forlot1-37/+33
Suffix with '_' object var member Make const get method about Change-Id: I9a581cfa58070bf8c13714867a6d202db3822989 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Add VehicleMessage queue methodsRomain Forlot1-1/+23
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Implement CanMessage_c method to navigate throughRomain Forlot1-0/+23
can_message queue (get/set) Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Move sources into src directoryRomain Forlot1-0/+226
make some cleaning Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>