aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-20Added JSON conf file exampleRomain Forlot1-0/+7
Change-Id: I9d3eb88b575b3af943582dd69ca8df2bc3b66115 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-20Addind missing libraryRomain Forlot2-0/+10
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>
2017-02-16Use initialisation list with CanBus_c constructorRomain Forlot2-50/+46
Suffix with '_' object var member Make const get method about Change-Id: I9a581cfa58070bf8c13714867a6d202db3822989 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-16Fix: wrong binding extensionRomain Forlot1-2/+2
Change-Id: Id28b2b1be781e7ef93d4b16643d8b859ca3cab43 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-15Externalized afb_event, no more in CanSignalRomain Forlot1-2/+0
but in a separated map struct subscribed_signals Change-Id: I82ad127466ee0c16882040952bb395b3c8f26622 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-15Make public OBD2PIDRomain Forlot1-1/+2
Change-Id: I9879bf83fc57f8f480ff43d27e2fc6635fb1d6f7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-15Change way to iterate over found signalsRomain Forlot1-23/+93
Change-Id: Ib0a88b1a978f74e0cadf30b0cdf3a5d21c06333d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-15Fixed subscribe/unsubscribe operations.Romain Forlot2-19/+52
Change-Id: I79c2f32801bf72e12b3e2da45e2eb2939cb5f85e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Jsonification of VehicleMessage and push eventRomain Forlot1-3/+46
to subscriber. TODO: seperated map between signal name and afb_event. Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Decode a can message and construct a VehicleMessageRomain Forlot1-9/+10
to populate the queue before pushing it if needed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Add VehicleMessage queue methodsRomain Forlot2-1/+26
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Implement CanMessage_c method to navigate throughRomain Forlot3-19/+32
can_message queue (get/set) Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Implement GetSignals methodRomain Forlot1-9/+26
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14First raw write to decode CAN messagesRomain Forlot1-4/+40
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Move sources into src directoryRomain Forlot22-10/+10
make some cleaning Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Update submodules uds-cRomain Forlot1-1/+0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Add .gitignoreRomain Forlot1-0/+2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Added JSON conf file read and initialize CanBusRomain Forlot2-3/+19
object with device name retrieve from conf file. Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-14Cleanup and add reading JSON conf file to defineBuilder2-42/+22
CanBus object before open it. Signed-off-by: Builder <devel@6b3797ab1e90>
2017-02-13Added needed functions for basics decode needs.Romain Forlot4-23/+256
Change-Id: Ic6202927058ff693c7c5c9b04e25b7be2fba340c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13New threads management, only one argument needed.Romain Forlot5-268/+290
Now CanBus_c object is the main core part to handle queues and to follow CAN bus reading process. Change-Id: I33cdfadb06362da4330a572caa1c1cf61d3ab3fd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Beginning of Obd2 handling with a handle objectRomain Forlot3-106/+139
inspired from openxc library. Change-Id: I664eb8dde9bccb29e7be3642df9e5c0f0cf25d28 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>