aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-02-13Added bitfield-c libraryRomain Forlot4-0/+60
Change-Id: Ied7e4819b2568205f0790751d5b753e321275990 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13modified uds-c libs pathRomain Forlot1-1/+1
Change-Id: Ia69ec5f59ba9f97c5e2da5542696b7c1416e7c63 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Fix wrong arguments typeRomain Forlot6-37/+32
Reader is almost finish i think now Change-Id: Ib4c7c88b430ada2661e6ce2a67dde76d03dba2f1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Change uds-c library locationRomain Forlot1-0/+10
Change-Id: I477bf86e9a74082c8105329b56586b5641b64fed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Adding uds-c library to handle obs2 diagnosticRomain Forlot3-25/+98
Change-Id: I79c7a622f4993af9f0b8ab770991a9c74c3380ee Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Improve reading and now process CanMessage classRomain Forlot5-99/+217
instead of raw canfd_frame. Change-Id: I53f48f94e0e526b93908c21794110b2fd83190cb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Dumb struct to class conversionRomain Forlot2-19/+80
Change-Id: I534102f1924ca7669fe2ad514ba49334a55faf76 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13Initialize CanBus_HandlerRomain Forlot1-1/+18
Also added licence Change-Id: I629624186f720ca4fa9b7a4f91d014e0bc02b0db Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13moved files to obsolete dir, again...Romain Forlot2-714/+0
Change-Id: I231bf9cd4211392addf25495c2147acc32b0950a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-13move to obsolete dir old codeRomain Forlot3-4/+718
Change-Id: Id8cd5a3441b655163d6311334874d88882af21b6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-09Add obd2 prefix to signals name to be able toRomain Forlot1-19/+19
filter by the signal name the type. Change-Id: I8ae19456f76f361c1c773b99e3e5fc021b0f4451 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-09Re-implementation in C++ and separate threads toRomain Forlot5-0/+443
read, decode and pushing on the event loop. Old code has been moved into obsolete directory. Change-Id: Ia389ab84a1dc566c48e0269f2466843de0e51158 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-09Add CXX flagsRomain Forlot1-0/+5
Change-Id: I8a72ac5a57e20a0e56658efc7c6fccdb6e3bec00 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-09Added simple openxc cpp generated codeRomain Forlot3-0/+289
Change-Id: I9f394653af4407cf1e2f03e5d20df5f7fb6f54d3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-02CPP conversion beganRomain Forlot3-85/+65
Change-Id: I4d20e7537b1ee3b00fcaa42146b3f2681741074d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>