aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-02-02Adding header files to get implemented !Romain Forlot4-0/+445
Change-Id: Ie4876b3c053988554a97868681b7b08f9c486111 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-31Change subscription/unsubcription logicRomain Forlot3-113/+179
Add max, min and units to OBD2_PIDS and add some PIDS Change-Id: I14b9c3dc8775674c47ea3e16c5cf2ba109a0bbef Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30some can sample from a recent Ford Focus, using the OBDII connectorLoïc Collignon24-0/+181350
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-01-30Code restructurationRomain Forlot2-124/+114
Change-Id: I5acd8288984d42d8487091d38511a05f0fd703c8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Change unsubscribe behavior to unsubscribe all event of a given idRomain Forlot1-22/+30
Get rid compilation warning message. Change-Id: Ia8fdeecaced545b64a50ea4993b09771043cb8b8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Comment useless code before cleanupBuilder2-21/+49
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Check that socket is opened before read.Romain Forlot2-72/+95
And some cleanup Change-Id: Ib3ccf158f141a55e3356f811985d5dcf0dd5fe0c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Added OBDII header file describing predefined PIDsRomain Forlot1-0/+53
Change-Id: I1fcb303c45b0de5b13cd8867fe18de0b76dcd610 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Add coyright to header fileRomain Forlot1-0/+17
Change-Id: I3c679f586b596264378b919790b2c06358af50f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Fix: change project avoiding uppercaseRomain Forlot2-2/+2
Change-Id: Ia9d457c253b170577b6ffeb23eebaeddf0937ec2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Reworked open_can_dev function and can_handler structRomain Forlot2-187/+282
Change-Id: I787730cf2ef8dfd7b1db7f9add51700401e013c1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Added CAN messages samples from Toyota Auris carRomain Forlot15-14/+24979
Change-Id: I740384fbc7a3814b4817fce434d55c14108f8232 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Clean up old fileRomain Forlot1-559/+0
Change-Id: I569b0686b7f86718759f7a3f5dac4ae35d97a151 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-30Added needed files to easy compilation and outputRomain Forlot4-0/+667
widget file to install on target. TODO: Add unit service file to start using systemd Change-Id: I347255fd54f48d01bf762db8b5a207fa5fa5cf7a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-20Added nanopb submodule instead of having it insideRomain Forlot2-0/+12
openxc-message-format. Change-Id: Ic5a0a95e9fbf575acee5f800b23e39cb1bf8de5c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-18Just comment to get rid of compil error. Some works tbd !Romain Forlot1-9/+6
Change-Id: I459f35fd943bc599c97a0dcec34c03c7885b555a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>