apps/low-level-can-service.git
7 years agoAdded debugging messages.
Romain Forlot [Tue, 28 Feb 2017 15:06:15 +0000 (16:06 +0100)]
Added debugging messages.

Change-Id: I42d2576355f69ac167b170a2994c7360d8449fb7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoMake the thread function members of can_bus_t and can_bus_dev_t objects.
Romain Forlot [Tue, 28 Feb 2017 15:05:37 +0000 (16:05 +0100)]
Make the thread function members of can_bus_t and can_bus_dev_t objects.

Change-Id: I3cf06998c6ff6d859c7fdf6bf52a9b6ff061c556
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRe-arranging objects splitting all objects over
Romain Forlot [Tue, 28 Feb 2017 11:00:43 +0000 (12:00 +0100)]
Re-arranging objects splitting all objects over
separated files.

Change-Id: Ifbdb2ea08704324e505a48ba3124df6f2af63c6b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: start reading the can bus if it was correctly
Romain Forlot [Mon, 27 Feb 2017 22:17:43 +0000 (23:17 +0100)]
Fix: start reading the can bus if it was correctly
opened.

Change-Id: If285791aee51d4a57e17270e8ac458cb6869f970
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded some DEBUG log messages around reading conf
Romain Forlot [Mon, 27 Feb 2017 22:03:55 +0000 (23:03 +0100)]
Added some DEBUG log messages around reading conf
file

Change-Id: Iec52801df6ce0c47c24412ac46332c301d5c46d6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong conf file name specified
Romain Forlot [Mon, 27 Feb 2017 22:03:12 +0000 (23:03 +0100)]
Fix: wrong conf file name specified
Comestic change about binding description and
prefix

Change-Id: Iffb3e0d13a81461db0f1300674c4fef3a6bde34f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: mismatch function signature and implementation
Romain Forlot [Mon, 27 Feb 2017 22:02:25 +0000 (23:02 +0100)]
Fix: mismatch function signature and implementation

Change-Id: I3e43ffda762117eac1b13da0d5a652338c6ad1f1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix decoder_t methods to get it compile
Romain Forlot [Mon, 27 Feb 2017 21:23:34 +0000 (22:23 +0100)]
Fix decoder_t methods to get it compile

Change-Id: I283480bf434b00ade15bcb1dbc9d097c338caab4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdded missing pthread lib
Romain Forlot [Mon, 27 Feb 2017 21:23:15 +0000 (22:23 +0100)]
Added missing pthread lib

Change-Id: I34c43af949a5f47334fa606acfe5b2bcccf59083
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix wrong returned value about getCanBuses.
Romain Forlot [Mon, 27 Feb 2017 20:30:05 +0000 (21:30 +0100)]
Fix wrong returned value about getCanBuses.

Why I keep this function anyway...

Change-Id: Ifcbc00625fcb065b73afed51fc712067aa9db412
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoIn class mutex and condition variable except for subscribed_signals map
Romain Forlot [Mon, 27 Feb 2017 20:29:07 +0000 (21:29 +0100)]
In class mutex and condition variable except for subscribed_signals map
For now...

Change-Id: I133deb39fcd0660064b3b3c2a52f86ad37cb29c2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRemoved static libraries deployed by mistake
Romain Forlot [Mon, 27 Feb 2017 19:32:03 +0000 (20:32 +0100)]
Removed static libraries deployed by mistake

Change-Id: I25e8bf44463ef70c9910326a091aa2390d6f0652
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChanged the decoding function
Romain Forlot [Mon, 27 Feb 2017 19:25:52 +0000 (20:25 +0100)]
Changed the decoding function

Change-Id: Ib27fb13d4fb7959509400a3c2eff2859d1ce9c2b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoChange content target and use a testing
Romain Forlot [Mon, 27 Feb 2017 15:47:15 +0000 (16:47 +0100)]
Change content target and use a testing
CAN bus: vcan0

Change-Id: I95b8f3882f253524ef4836277ef1650f03ca89df
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoBuild and link statically external libraries
Romain Forlot [Mon, 27 Feb 2017 15:42:40 +0000 (16:42 +0100)]
Build and link statically external libraries
to the binding.

Change-Id: I22480cbbc234f6bc40e632b9ce45b7170cd85e54
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove mutex lock logic.
Romain Forlot [Fri, 24 Feb 2017 14:14:48 +0000 (14:14 +0000)]
Improve mutex lock logic.

- Use of bracket instead of unlock method
- Change some mutex lock scope.
- Added subscribed_signals map object mutex to
manipulate it safely.

Change-Id: I770c0b5701db6b1151511f7360ec31ae6dcc1de9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRemove socket read management by systemd event
Romain Forlot [Fri, 24 Feb 2017 11:10:02 +0000 (11:10 +0000)]
Remove socket read management by systemd event
loop and use classic thread with a blocking
read

Change-Id: Iac5428009b57c727bb32bd4893bc3fe282ba35c7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoImprove subscription/unsubscription operation.
Romain Forlot [Fri, 24 Feb 2017 10:06:48 +0000 (10:06 +0000)]
Improve subscription/unsubscription operation.

Break operations into 2 new functions to improve
readability and added some comments too.

Change-Id: I405622ef17787cb39d8d2b2530a2d6572ce4e366
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: wrong if...else atomic expression
Romain Forlot [Fri, 24 Feb 2017 08:50:26 +0000 (08:50 +0000)]
Fix: wrong if...else atomic expression

Change-Id: I995e6c6eb5e7e6d3f7ade17b8386706a5144f3bb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdd comment
Romain Forlot [Fri, 24 Feb 2017 08:16:26 +0000 (08:16 +0000)]
Add comment

Change-Id: Ifc04a66e54889cc4f735cad1ac9caaeb31230566
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
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>