Romain Forlot [Wed, 1 Mar 2017 18:29:31 +0000 (19:29 +0100)]
Change id to an hexadecimal value.
Change-Id: Iecf8179e2885a7d1392a854bcd56e731fed5bba0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 18:28:20 +0000 (19:28 +0100)]
Fix: subscription and improve code readabilty
There was probleme between char and string
conversion. Also, I get rid of iterator and
use direct access using operator[].
Change-Id: I235ef0dd3ef9d9cebb624491d86383392e9eb8d8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 16:42:52 +0000 (17:42 +0100)]
New way to return canfd_frame with now number of read bytes.
This way, we can detect correctly the max data length and
set the data correctly.
Change-Id: I346df154df76dbd4a463d1fabfd9edd56faca506
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 16:41:16 +0000 (17:41 +0100)]
Fix: wrong format to display can_message_t information
Change-Id: I6c17c68d8e995022886750f2ef05348b544cbde5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 16:07:49 +0000 (17:07 +0100)]
Merge branch 'master' of github.com:iotbzh/CAN_signaling
Romain Forlot [Wed, 1 Mar 2017 16:07:20 +0000 (17:07 +0100)]
Wrong call to thread.join cause deadlock and thread termination.
Positionning the controlling boolean value will be enough for now
Change-Id: I28e2d175e23370746cc30c2403829ebdeec7c2bb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 16:06:17 +0000 (17:06 +0100)]
Fix: miss 'if' brackets to get incomplete CAN frames correctly
Fix: displaying can message frame with hexa format.
Change-Id: Iff658ac38f21a15945ed82509d4e291f0fda7503
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Loïc Collignon [Wed, 1 Mar 2017 15:19:25 +0000 (16:19 +0100)]
Updated the README.md to clarify the use of git submodule.
Change-Id: Iceec81be36b217f69565452955da2f4ea43e10e9
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Loïc Collignon [Wed, 1 Mar 2017 15:14:29 +0000 (16:14 +0100)]
Changed submodules URL to use https instead of ssh.
Change-Id: I8614cca0ad386bdf6d2339e014a85d790da04d87
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 14:58:42 +0000 (15:58 +0100)]
Change data_ member of can_message_t object
to a vector of uint8_t instead of an array
This is more flexible to allocate dynamically
the vector depending if we process classic CAN
frame or CAN FD frame which are 64bytes long.
Change-Id: I698002139d612e3aaaa33f0f5a895e16ff655f5d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 14:05:18 +0000 (15:05 +0100)]
Fix: improve can_message read
Change-Id: If0c52c6df3f68e9b79fb851d64a729946cac6ef6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 08:20:46 +0000 (09:20 +0100)]
Delete for good obsolete code
Change-Id: Ic56fadcc7e6265072e4e3413f914b735b56e903d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Wed, 1 Mar 2017 07:41:29 +0000 (08:41 +0100)]
tbf
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 28 Feb 2017 20:29:17 +0000 (21:29 +0100)]
Implement a new method returning the can device
map.
Change-Id: Ie44bb825269034f9f071bd286c7830a77ba5c479
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 28 Feb 2017 20:09:26 +0000 (21:09 +0100)]
Fix: can bus object life is now expanded and don't
die prematuraly.
can_bus_handler object is now a pointer living
forever.
can_bus_dev_t object is now stored as a shared
pointer into a variable member into can_bus_t.
So everyone survive now.
Change-Id: I52768dd7fe3c203a5f679f59afd1bcf330f3af35
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Romain Forlot [Tue, 28 Feb 2017 15:21:19 +0000 (16:21 +0100)]
Fix: wrong argument passed to start_reading().
Not needed to specify std::ref...
Change-Id: I0e5ae02554f8a0f07ec1d40670b9b089453804e0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>