summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Romain Forlot [Tue, 14 Feb 2017 19:03:28 +0000 (20:03 +0100)]
Jsonification of VehicleMessage and push event
to subscriber.
TODO: seperated map between signal name and
afb_event.
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 19:02:39 +0000 (20:02 +0100)]
Decode a can message and construct a VehicleMessage
to populate the queue before pushing it if needed
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 19:02:08 +0000 (20:02 +0100)]
Add VehicleMessage queue methods
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 17:20:22 +0000 (18:20 +0100)]
Implement CanMessage_c method to navigate through
can_message queue (get/set)
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 17:19:46 +0000 (18:19 +0100)]
Implement GetSignals method
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 17:18:55 +0000 (18:18 +0100)]
First raw write to decode CAN messages
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 13:32:55 +0000 (14:32 +0100)]
Move sources into src directory
make some cleaning
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 13:18:23 +0000 (14:18 +0100)]
Update submodules uds-c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 13:18:07 +0000 (14:18 +0100)]
Add .gitignore
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 14 Feb 2017 10:18:58 +0000 (11:18 +0100)]
Added JSON conf file read and initialize CanBus
object with device name retrieve from conf file.
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Builder [Fri, 3 Feb 2017 08:58:52 +0000 (08:58 +0000)]
Cleanup and add reading JSON conf file to define
CanBus object before open it.
Signed-off-by: Builder <devel@6b3797ab1e90>
Romain Forlot [Mon, 13 Feb 2017 23:29:01 +0000 (23:29 +0000)]
Added needed functions for basics decode needs.
Change-Id: Ic6202927058ff693c7c5c9b04e25b7be2fba340c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Mon, 13 Feb 2017 23:26:58 +0000 (23:26 +0000)]
New threads management, only one argument needed.
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>
Romain Forlot [Mon, 13 Feb 2017 23:25:02 +0000 (23:25 +0000)]
Beginning of Obd2 handling with a handle object
inspired from openxc library.
Change-Id: I664eb8dde9bccb29e7be3642df9e5c0f0cf25d28
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Mon, 13 Feb 2017 22:23:06 +0000 (22:23 +0000)]
Added bitfield-c library
Change-Id: Ied7e4819b2568205f0790751d5b753e321275990
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Mon, 13 Feb 2017 09:06:38 +0000 (09:06 +0000)]
modified uds-c libs path
Change-Id: Ia69ec5f59ba9f97c5e2da5542696b7c1416e7c63
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Sat, 11 Feb 2017 18:58:04 +0000 (19:58 +0100)]
Fix wrong arguments type
Reader is almost finish i think now
Change-Id: Ib4c7c88b430ada2661e6ce2a67dde76d03dba2f1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Sat, 11 Feb 2017 18:57:22 +0000 (19:57 +0100)]
Change uds-c library location
Change-Id: I477bf86e9a74082c8105329b56586b5641b64fed
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Sat, 11 Feb 2017 18:32:01 +0000 (19:32 +0100)]
Adding uds-c library to handle obs2 diagnostic
Change-Id: I79c7a622f4993af9f0b8ab770991a9c74c3380ee
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 10 Feb 2017 17:17:24 +0000 (17:17 +0000)]
Improve reading and now process CanMessage class
instead of raw canfd_frame.
Change-Id: I53f48f94e0e526b93908c21794110b2fd83190cb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 10 Feb 2017 13:57:59 +0000 (13:57 +0000)]
Dumb struct to class conversion
Change-Id: I534102f1924ca7669fe2ad514ba49334a55faf76
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 10 Feb 2017 13:50:59 +0000 (13:50 +0000)]
Initialize CanBus_Handler
Also added licence
Change-Id: I629624186f720ca4fa9b7a4f91d014e0bc02b0db
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 10 Feb 2017 11:22:39 +0000 (11:22 +0000)]
moved files to obsolete dir, again...
Change-Id: I231bf9cd4211392addf25495c2147acc32b0950a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 10 Feb 2017 11:20:00 +0000 (11:20 +0000)]
move to obsolete dir old code
Change-Id: Id8cd5a3441b655163d6311334874d88882af21b6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 9 Feb 2017 18:07:09 +0000 (18:07 +0000)]
Add obd2 prefix to signals name to be able to
filter by the signal name the type.
Change-Id: I8ae19456f76f361c1c773b99e3e5fc021b0f4451
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 9 Feb 2017 18:05:48 +0000 (18:05 +0000)]
Re-implementation in C++ and separate threads to
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>
Romain Forlot [Thu, 9 Feb 2017 18:03:46 +0000 (18:03 +0000)]
Add CXX flags
Change-Id: I8a72ac5a57e20a0e56658efc7c6fccdb6e3bec00
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 9 Feb 2017 17:09:21 +0000 (17:09 +0000)]
Added simple openxc cpp generated code
Change-Id: I9f394653af4407cf1e2f03e5d20df5f7fb6f54d3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 2 Feb 2017 23:10:21 +0000 (23:10 +0000)]
CPP conversion began
Change-Id: I4d20e7537b1ee3b00fcaa42146b3f2681741074d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 2 Feb 2017 22:43:17 +0000 (22:43 +0000)]
Adding header files to get implemented !
Change-Id: Ie4876b3c053988554a97868681b7b08f9c486111
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 31 Jan 2017 18:01:11 +0000 (18:01 +0000)]
Change subscription/unsubcription logic
Add max, min and units to OBD2_PIDS and add some PIDS
Change-Id: I14b9c3dc8775674c47ea3e16c5cf2ba109a0bbef
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Loïc Collignon [Mon, 30 Jan 2017 12:55:48 +0000 (13:55 +0100)]
some can sample from a recent Ford Focus, using the OBDII connector
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Romain Forlot [Mon, 30 Jan 2017 13:18:07 +0000 (13:18 +0000)]
Code restructuration
Change-Id: I5acd8288984d42d8487091d38511a05f0fd703c8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Mon, 30 Jan 2017 12:12:57 +0000 (12:12 +0000)]
Change unsubscribe behavior to unsubscribe all event of a given id
Get rid compilation warning message.
Change-Id: Ia8fdeecaced545b64a50ea4993b09771043cb8b8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Builder [Mon, 30 Jan 2017 10:13:12 +0000 (10:13 +0000)]
Comment useless code before cleanup
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 27 Jan 2017 19:11:33 +0000 (19:11 +0000)]
Check that socket is opened before read.
And some cleanup
Change-Id: Ib3ccf158f141a55e3356f811985d5dcf0dd5fe0c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 27 Jan 2017 14:01:41 +0000 (14:01 +0000)]
Added OBDII header file describing predefined PIDs
Change-Id: I1fcb303c45b0de5b13cd8867fe18de0b76dcd610
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 27 Jan 2017 12:08:02 +0000 (12:08 +0000)]
Add coyright to header file
Change-Id: I3c679f586b596264378b919790b2c06358af50f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 27 Jan 2017 08:13:53 +0000 (08:13 +0000)]
Fix: change project avoiding uppercase
Change-Id: Ia9d457c253b170577b6ffeb23eebaeddf0937ec2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Thu, 26 Jan 2017 10:47:54 +0000 (10:47 +0000)]
Reworked open_can_dev function and can_handler struct
Change-Id: I787730cf2ef8dfd7b1db7f9add51700401e013c1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 25 Jan 2017 18:10:43 +0000 (18:10 +0000)]
Added CAN messages samples from Toyota Auris car
Change-Id: I740384fbc7a3814b4817fce434d55c14108f8232
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Mon, 23 Jan 2017 11:08:26 +0000 (11:08 +0000)]
Clean up old file
Change-Id: I569b0686b7f86718759f7a3f5dac4ae35d97a151
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Fri, 20 Jan 2017 15:46:33 +0000 (15:46 +0000)]
Added needed files to easy compilation and output
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>
Romain Forlot [Fri, 20 Jan 2017 15:15:31 +0000 (15:15 +0000)]
Added nanopb submodule instead of having it inside
openxc-message-format.
Change-Id: Ic5a0a95e9fbf575acee5f800b23e39cb1bf8de5c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 18 Jan 2017 17:20:17 +0000 (17:20 +0000)]
Just comment to get rid of compil error. Some works tbd !
Change-Id: I459f35fd943bc599c97a0dcec34c03c7885b555a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 18 Jan 2017 17:08:57 +0000 (17:08 +0000)]
Simplify read and frame format detection at device opening.
Need cleanup... I mess around lot of code pieces !
Change-Id: Ic081d23242ebfd8f2df70e7301e62159b944a294
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 18 Jan 2017 12:25:36 +0000 (12:25 +0000)]
Some cleanup and rearrange the code
Change-Id: I179cb4cd5623742bc500590c64f9194cbbf3f961
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 17 Jan 2017 17:46:41 +0000 (17:46 +0000)]
Change read function and some clean up
TODO: parse can_message read and put it into an opencx_CanMessage...
Change-Id: Idbadcd7b34c1bb63eb6ae31a4588cdde873d7a1c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
claneys [Fri, 13 Jan 2017 16:42:21 +0000 (16:42 +0000)]
Add license
Romain Forlot [Fri, 13 Jan 2017 16:30:24 +0000 (16:30 +0000)]
First commit: work has to be done...
Change-Id: Iad7a1780280064e0ff6970c21423ba825dd333dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 10 Jan 2017 10:00:28 +0000 (11:00 +0100)]
Initial commit
Change-Id: Ie9aabe9cd90d89692ac8260b828713913bb0f4e6