apps/agl-service-can-low-level.git
7 years agoFix mutex about can_frame. Wrong location about
Romain Forlot [Fri, 24 Feb 2017 07:56:25 +0000 (07:56 +0000)]
Fix mutex about can_frame. Wrong location about
can frame mutex and adding around can socket
init.

Change-Id: I90c2200abf517ad4a9660c99a3ca02e52e069374
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFirst draft about lock/wait thread management.
Romain Forlot [Thu, 23 Feb 2017 17:52:35 +0000 (17:52 +0000)]
First draft about lock/wait thread management.
Reordering include files

Change-Id: Ia6d9ee30eb4e1df0c380c26355679fe00b373aa8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake binder_interface global variable rather than
Romain Forlot [Thu, 23 Feb 2017 14:09:30 +0000 (14:09 +0000)]
Make binder_interface global variable rather than
pass it over and over through class and functions

Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoCleaning, improve comments
Romain Forlot [Thu, 23 Feb 2017 10:32:17 +0000 (10:32 +0000)]
Cleaning, improve comments

Change-Id: I2115f7e7017786c343da4b70002c3b3785ba53ac
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoHeader include spring cleaning
Romain Forlot [Wed, 22 Feb 2017 18:26:23 +0000 (19:26 +0100)]
Header include spring cleaning

Change-Id: I28b5c9197daa30c7da4ef1835f0eb989613a7901
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agomake binder_interface global
José Bollo [Wed, 22 Feb 2017 18:11:46 +0000 (19:11 +0100)]
make binder_interface global

Change-Id: I90b17d702cebdcf2d78cc108c2ecb995c231527e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImprove doxygen comments
Romain Forlot [Wed, 22 Feb 2017 18:01:01 +0000 (19:01 +0100)]
Improve doxygen comments

Change-Id: I7506997865726a6caa28177a1f85713ae924336f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoEnhance error handling about can_message_t class
Romain Forlot [Wed, 22 Feb 2017 16:47:39 +0000 (17:47 +0100)]
Enhance error handling about can_message_t class

Change-Id: I9fbda1110eea7a3bd7e5855739280aa10bce5a6b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange way to convert simplemessage into a json
Romain Forlot [Wed, 22 Feb 2017 12:06:24 +0000 (13:06 +0100)]
Change way to convert simplemessage into a json
object.

Improve doxygen comments

Change-Id: I794bdc10f9e1ce66ebd4e68dbd6e0c465e3ca5c4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoNo more warning about not defined functions
Romain Forlot [Wed, 22 Feb 2017 10:44:27 +0000 (11:44 +0100)]
No more warning about not defined functions
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>
7 years agoResolve circular header files inclusion
Romain Forlot [Wed, 22 Feb 2017 08:38:30 +0000 (09:38 +0100)]
Resolve circular header files inclusion

Change-Id: Ida3de058f1edd2892ebc858d1eb714471fd5f65c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agofirst draft to new subscribre unsubscibre method
Romain Forlot [Tue, 21 Feb 2017 17:19:03 +0000 (17:19 +0000)]
first draft to new subscribre unsubscibre method

Change-Id: I2a3fe7ac1d77cc893e9cc63c54895d521ab2bf01
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: decoder_t class decodeSignal method signature
Romain Forlot [Tue, 21 Feb 2017 17:16:59 +0000 (17:16 +0000)]
Fix: decoder_t class decodeSignal method signature

Change-Id: Id7ef4fe3b8d3f5b14fd447cf05865ba494862792
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAll queue under can_bus_t class and reading thread
Romain Forlot [Tue, 21 Feb 2017 16:30:30 +0000 (16:30 +0000)]
All queue under can_bus_t class and reading thread
function with an additionnal can_bus_t object argument

Change-Id: I6b0b9b66e83be59359bcd148e8b9f3350a085b64
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded separated header files
Romain Forlot [Tue, 21 Feb 2017 15:03:39 +0000 (15:03 +0000)]
Added separated header files

Change-Id: Ife7701b54149c12bce969468adb667a6c101d01a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: force to pass a ref at threads launch
Romain Forlot [Tue, 21 Feb 2017 13:21:59 +0000 (13:21 +0000)]
Fix: force to pass a ref at threads launch

Change-Id: Ife4206d6f6dce6888157239cce56b0040e3d2cf4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: threads launching with wrong arguments
Romain Forlot [Tue, 21 Feb 2017 12:58:09 +0000 (12:58 +0000)]
Fix: threads launching with wrong arguments
Fix: wrong type identifier to returned sendto
function

Change-Id: I33bcb84211c665720422573b04b32ca71e13d3e5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMultifixes: class and methods, typo, comments
Romain Forlot [Tue, 21 Feb 2017 10:54:38 +0000 (10:54 +0000)]
Multifixes: class and methods, typo, comments

Change-Id: I473de66a9d4119ce64c04bd7fa59654774ac3b8f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFixed can bus class (almost)
Romain Forlot [Tue, 21 Feb 2017 08:15:58 +0000 (08:15 +0000)]
Fixed can bus class (almost)

Change-Id: Icb76d26749e0e7b5f122676861ed09ac0c03be30
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoHandle error in returning a vector by returning
Romain Forlot [Tue, 21 Feb 2017 07:42:46 +0000 (07:42 +0000)]
Handle error in returning a vector by returning
an empty vector.

Fix: typo

Change-Id: Ibe859d3e67f6eea96b50e04cd230657be56a18c6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoClean up include statement...
Romain Forlot [Mon, 20 Feb 2017 20:19:59 +0000 (20:19 +0000)]
Clean up include statement...

Change-Id: Ie909836171ea5eb030246255bb08f1c5b8a65641
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoSome cleaning and comments
Romain Forlot [Mon, 20 Feb 2017 19:37:50 +0000 (19:37 +0000)]
Some cleaning and comments

Change-Id: Iad73e3a34c5638e012819506b56741f62cfa3e30
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoCleaned up, a bit, include statement.
Romain Forlot [Mon, 20 Feb 2017 19:17:01 +0000 (19:17 +0000)]
Cleaned up, a bit, include statement.

Change-Id: Icdaa162f1b3b92e730fc7dc263c18c682a7f4098
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: OBD2_PIDS array initialization
Romain Forlot [Mon, 20 Feb 2017 09:50:32 +0000 (09:50 +0000)]
Fix: OBD2_PIDS array initialization

Change-Id: Ic2c297e4ff94a13872f066ca42ee42beb45451ca
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: timer.* issues
Romain Forlot [Fri, 17 Feb 2017 17:17:24 +0000 (17:17 +0000)]
Fix: timer.* issues

Change-Id: I1c3721403198b3c5525a811bd3c7cbf6b8e78e5b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange hpp include file directive
Romain Forlot [Fri, 17 Feb 2017 17:04:47 +0000 (17:04 +0000)]
Change hpp include file directive

Change-Id: I1df7ab41b19a2c065d8ed477115e21e0ded8659f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoSeparated can_bus and can_bus_dev object.
Romain Forlot [Fri, 17 Feb 2017 17:03:53 +0000 (17:03 +0000)]
Separated can_bus and can_bus_dev object.

Now there are as many thread reading as can bus device

Change-Id: I65928b39714f3a0e76e588de3db10d091ad5093d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded JSON conf file example
Romain Forlot [Fri, 17 Feb 2017 17:02:21 +0000 (17:02 +0000)]
Added JSON conf file example

Change-Id: I9d3eb88b575b3af943582dd69ca8df2bc3b66115
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAddind missing library
Romain Forlot [Fri, 17 Feb 2017 14:53:54 +0000 (14:53 +0000)]
Addind missing library

Change-Id: Ic793d097eb9773e455e1bfbb95d57565a003cd53
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoInclude supplementary libs and fix include
Romain Forlot [Fri, 17 Feb 2017 12:43:04 +0000 (12:43 +0000)]
Include supplementary libs and fix include

Change-Id: I521ededa95c3b5f4507b86f162f04bf28474e440
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRename header file to hpp.
Romain Forlot [Fri, 17 Feb 2017 09:10:10 +0000 (09:10 +0000)]
Rename header file to hpp.

Change-Id: I399e0c0f39b18e63e254825b6322faf77896a264
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange way to iter over vector
Romain Forlot [Thu, 16 Feb 2017 17:57:56 +0000 (17:57 +0000)]
Change way to iter over vector

Change-Id: Ic06f1aaafb839d8d06c839b60ec440031bee89ed
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange way signaling end of queue for can messages
Romain Forlot [Thu, 16 Feb 2017 17:57:10 +0000 (17:57 +0000)]
Change way signaling end of queue for can messages
and vehicle messages

Change-Id: I98fbc5995ff08facc5430cce92830aa878dc3dc9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange Decoder_c class name to decoder_t
Romain Forlot [Thu, 16 Feb 2017 17:56:14 +0000 (17:56 +0000)]
Change Decoder_c class name to decoder_t

Change-Id: I0f07e9a21cf067f6e3ceab73524628eb4ec731e9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange to push_back instead of insert.
Romain Forlot [Thu, 16 Feb 2017 17:23:46 +0000 (17:23 +0000)]
Change to push_back instead of insert.

Change-Id: If4c03e71894fecf4a926ae314d2b8ef0c54950ac
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdd can_message_t constructor. Make the class
Romain Forlot [Thu, 16 Feb 2017 16:45:10 +0000 (16:45 +0000)]
Add can_message_t constructor. Make the class
compliant with new typo

Change-Id: I69b7247d841b58183e7863600072a79b2a9be1c6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange CanMessage_c to can_message_t class name
Romain Forlot [Thu, 16 Feb 2017 16:12:14 +0000 (16:12 +0000)]
Change CanMessage_c to can_message_t class name

Change-Id: I58a8d05ef226c22c9218cd3bf4932216e33f0de0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChanging CanBus_c to can_bus_t class name
Romain Forlot [Thu, 16 Feb 2017 16:09:08 +0000 (16:09 +0000)]
Changing CanBus_c to can_bus_t class name

Change-Id: Ibf277e36187b78853718f76552ff730d0474a3e6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding canbus read method
Romain Forlot [Thu, 16 Feb 2017 16:08:49 +0000 (16:08 +0000)]
Adding canbus read method

Change-Id: I438d885516e9cbe499d333ff3065c5e9d6d4d99a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoUse initialisation list with CanBus_c constructor
Romain Forlot [Thu, 16 Feb 2017 14:45:02 +0000 (14:45 +0000)]
Use initialisation list with CanBus_c constructor
Suffix with '_' object var member
Make const get method about

Change-Id: I9a581cfa58070bf8c13714867a6d202db3822989
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong binding extension
Romain Forlot [Thu, 16 Feb 2017 13:42:21 +0000 (13:42 +0000)]
Fix: wrong binding extension

Change-Id: Id28b2b1be781e7ef93d4b16643d8b859ca3cab43
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoExternalized afb_event, no more in CanSignal
Romain Forlot [Wed, 15 Feb 2017 16:48:34 +0000 (16:48 +0000)]
Externalized afb_event, no more in CanSignal
but in a separated map struct subscribed_signals

Change-Id: I82ad127466ee0c16882040952bb395b3c8f26622
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake public OBD2PID
Romain Forlot [Wed, 15 Feb 2017 16:47:12 +0000 (16:47 +0000)]
Make public OBD2PID

Change-Id: I9879bf83fc57f8f480ff43d27e2fc6635fb1d6f7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange way to iterate over found signals
Romain Forlot [Wed, 15 Feb 2017 16:46:06 +0000 (16:46 +0000)]
Change way to iterate over found signals

Change-Id: Ib0a88b1a978f74e0cadf30b0cdf3a5d21c06333d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFixed subscribe/unsubscribe operations.
Romain Forlot [Wed, 15 Feb 2017 16:44:59 +0000 (16:44 +0000)]
Fixed subscribe/unsubscribe operations.

Change-Id: I79c2f32801bf72e12b3e2da45e2eb2939cb5f85e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoJsonification of VehicleMessage and push event
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>
7 years agoDecode a can message and construct a VehicleMessage
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>
7 years agoAdd VehicleMessage queue methods
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>
7 years agoImplement CanMessage_c method to navigate through
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>
7 years agoImplement GetSignals method
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>
7 years agoFirst raw write to decode CAN messages
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>
7 years agoMove sources into src directory
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>
7 years agoUpdate submodules uds-c
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>
7 years agoAdd .gitignore
Romain Forlot [Tue, 14 Feb 2017 13:18:07 +0000 (14:18 +0100)]
Add .gitignore

Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded JSON conf file read and initialize CanBus
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>
7 years agoCleanup and add reading JSON conf file to define
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>
7 years agoAdded needed functions for basics decode needs.
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>
7 years agoNew threads management, only one argument needed.
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>
7 years agoBeginning of Obd2 handling with a handle object
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>
7 years agoAdded bitfield-c library
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>
7 years agomodified uds-c libs path
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>
7 years agoFix wrong arguments type
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>
7 years agoChange uds-c library location
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>
7 years agoAdding uds-c library to handle obs2 diagnostic
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>
7 years agoImprove reading and now process CanMessage class
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>
7 years agoDumb struct to class conversion
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>
7 years agoInitialize CanBus_Handler
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>
7 years agomoved files to obsolete dir, again...
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>
7 years agomove to obsolete dir old code
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>
7 years agoAdd obd2 prefix to signals name to be able to
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>
7 years agoRe-implementation in C++ and separate threads to
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>
7 years agoAdd CXX flags
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>
7 years agoAdded simple openxc cpp generated code
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>
7 years agoCPP conversion began
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>
7 years agoAdding header files to get implemented !
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>
7 years agoChange subscription/unsubcription logic
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>
7 years agosome can sample from a recent Ford Focus, using the OBDII connector
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>
7 years agoCode restructuration
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>
7 years agoChange unsubscribe behavior to unsubscribe all event of a given id
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>
7 years agoComment useless code before cleanup
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>
7 years agoCheck that socket is opened before read.
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>
7 years agoAdded OBDII header file describing predefined PIDs
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>
7 years agoAdd coyright to header file
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>
7 years agoFix: change project avoiding uppercase
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>
7 years agoReworked open_can_dev function and can_handler struct
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>
7 years agoAdded CAN messages samples from Toyota Auris car
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>
7 years agoClean up old file
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>
7 years agoAdded needed files to easy compilation and output
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>
7 years agoAdded nanopb submodule instead of having it inside
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>
7 years agoJust comment to get rid of compil error. Some works tbd !
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>
7 years agoSimplify read and frame format detection at device opening.
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>
7 years agoSome cleanup and rearrange the code
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>
7 years agoChange read function and some clean up
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>
7 years agoAdd license
claneys [Fri, 13 Jan 2017 16:42:21 +0000 (16:42 +0000)]
Add license

7 years agoFirst commit: work has to be done...
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>
7 years agoInitial commit
Romain Forlot [Tue, 10 Jan 2017 10:00:28 +0000 (11:00 +0100)]
Initial commit

Change-Id: Ie9aabe9cd90d89692ac8260b828713913bb0f4e6