summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-01Fix: wrong format to display can_message_t informationRomain Forlot1-1/+1
Change-Id: I6c17c68d8e995022886750f2ef05348b544cbde5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Merge branch 'master' of github.com:iotbzh/CAN_signalingRomain Forlot2-6/+12
2017-03-01Wrong call to thread.join cause deadlock and thread termination.Romain Forlot1-3/+0
Positionning the controlling boolean value will be enough for now Change-Id: I28e2d175e23370746cc30c2403829ebdeec7c2bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: miss 'if' brackets to get incomplete CAN frames correctlyRomain Forlot2-7/+8
Fix: displaying can message frame with hexa format. Change-Id: Iff658ac38f21a15945ed82509d4e291f0fda7503 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Updated the README.md to clarify the use of git submodule.Loïc Collignon1-1/+7
Change-Id: Iceec81be36b217f69565452955da2f4ea43e10e9 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-01Changed submodules URL to use https instead of ssh.Loïc Collignon1-5/+5
Change-Id: I8614cca0ad386bdf6d2339e014a85d790da04d87 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-03-01Change data_ member of can_message_t objectRomain Forlot2-8/+11
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>
2017-03-01Fix: improve can_message readRomain Forlot4-51/+143
Change-Id: If0c52c6df3f68e9b79fb851d64a729946cac6ef6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Delete for good obsolete codeRomain Forlot4-696/+2
Change-Id: Ic56fadcc7e6265072e4e3413f914b735b56e903d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01tbfRomain Forlot2-27/+21
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Implement a new method returning the can deviceRomain Forlot2-31/+18
map. Change-Id: Ie44bb825269034f9f071bd286c7830a77ba5c479 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: can bus object life is now expanded and don'tRomain Forlot3-31/+36
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>
2017-02-28Fix: wrong argument passed to start_reading().Romain Forlot1-1/+1
Not needed to specify std::ref... Change-Id: I0e5ae02554f8a0f07ec1d40670b9b089453804e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Added debugging messages.Romain Forlot1-3/+8
Change-Id: I42d2576355f69ac167b170a2994c7360d8449fb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Make the thread function members of can_bus_t and can_bus_dev_t objects.Romain Forlot9-294/+171
Change-Id: I3cf06998c6ff6d859c7fdf6bf52a9b6ff061c556 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Re-arranging objects splitting all objects overRomain Forlot14-764/+833
separated files. Change-Id: Ifbdb2ea08704324e505a48ba3124df6f2af63c6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: start reading the can bus if it was correctlyRomain Forlot2-174/+4
opened. Change-Id: If285791aee51d4a57e17270e8ac458cb6869f970 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Added some DEBUG log messages around reading confRomain Forlot1-1/+7
file Change-Id: Iec52801df6ce0c47c24412ac46332c301d5c46d6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix: wrong conf file name specifiedRomain Forlot1-3/+3
Comestic change about binding description and prefix Change-Id: Iffb3e0d13a81461db0f1300674c4fef3a6bde34f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix: mismatch function signature and implementationRomain Forlot1-1/+1
Change-Id: I3e43ffda762117eac1b13da0d5a652338c6ad1f1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix decoder_t methods to get it compileRomain Forlot4-45/+55
Change-Id: I283480bf434b00ade15bcb1dbc9d097c338caab4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Added missing pthread libRomain Forlot1-2/+4
Change-Id: I34c43af949a5f47334fa606acfe5b2bcccf59083 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Fix wrong returned value about getCanBuses.Romain Forlot1-1/+1
Why I keep this function anyway... Change-Id: Ifcbc00625fcb065b73afed51fc712067aa9db412 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27In class mutex and condition variable except for subscribed_signals mapRomain Forlot11-41/+59
For now... Change-Id: I133deb39fcd0660064b3b3c2a52f86ad37cb29c2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Removed static libraries deployed by mistakeRomain Forlot1-4/+0
Change-Id: I25e8bf44463ef70c9910326a091aa2390d6f0652 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Changed the decoding functionRomain Forlot4-43/+80
Change-Id: Ib27fb13d4fb7959509400a3c2eff2859d1ce9c2b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Change content target and use a testingRomain Forlot2-1/+4
CAN bus: vcan0 Change-Id: I95b8f3882f253524ef4836277ef1650f03ca89df Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-27Build and link statically external librariesRomain Forlot1-13/+36
to the binding. Change-Id: I22480cbbc234f6bc40e632b9ce45b7170cd85e54 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Improve mutex lock logic.Romain Forlot9-52/+101
- 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>
2017-02-24Remove socket read management by systemd eventRomain Forlot6-83/+62
loop and use classic thread with a blocking read Change-Id: Iac5428009b57c727bb32bd4893bc3fe282ba35c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Improve subscription/unsubscription operation.Romain Forlot1-32/+44
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>
2017-02-24Fix: wrong if...else atomic expressionRomain Forlot1-1/+4
Change-Id: I995e6c6eb5e7e6d3f7ade17b8386706a5144f3bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Add commentRomain Forlot1-0/+3
Change-Id: Ifc04a66e54889cc4f735cad1ac9caaeb31230566 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-24Fix mutex about can_frame. Wrong location aboutRomain Forlot2-5/+8
can frame mutex and adding around can socket init. Change-Id: I90c2200abf517ad4a9660c99a3ca02e52e069374 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23First draft about lock/wait thread management.Romain Forlot12-204/+343
Reordering include files Change-Id: Ia6d9ee30eb4e1df0c380c26355679fe00b373aa8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23Make binder_interface global variable rather thanRomain Forlot8-63/+54
pass it over and over through class and functions Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-23Cleaning, improve commentsRomain Forlot4-57/+50
Change-Id: I2115f7e7017786c343da4b70002c3b3785ba53ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Header include spring cleaningRomain Forlot1-36/+15
Change-Id: I28b5c9197daa30c7da4ef1835f0eb989613a7901 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22make binder_interface globalJosé Bollo2-79/+52
Change-Id: I90b17d702cebdcf2d78cc108c2ecb995c231527e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-22Improve doxygen commentsRomain Forlot2-139/+175
Change-Id: I7506997865726a6caa28177a1f85713ae924336f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Enhance error handling about can_message_t classRomain Forlot2-35/+145
Change-Id: I9fbda1110eea7a3bd7e5855739280aa10bce5a6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Change way to convert simplemessage into a jsonRomain Forlot5-26/+100
object. Improve doxygen comments Change-Id: I794bdc10f9e1ce66ebd4e68dbd6e0c465e3ca5c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22No more warning about not defined functionsRomain Forlot16-41/+75
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>
2017-02-22Resolve circular header files inclusionRomain Forlot6-7/+7
Change-Id: Ida3de058f1edd2892ebc858d1eb714471fd5f65c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22first draft to new subscribre unsubscibre methodRomain Forlot1-0/+113
Change-Id: I2a3fe7ac1d77cc893e9cc63c54895d521ab2bf01 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Fix: decoder_t class decodeSignal method signatureRomain Forlot5-33/+37
Change-Id: Id7ef4fe3b8d3f5b14fd447cf05865ba494862792 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22All queue under can_bus_t class and reading threadRomain Forlot7-123/+121
function with an additionnal can_bus_t object argument Change-Id: I6b0b9b66e83be59359bcd148e8b9f3350a085b64 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Added separated header filesRomain Forlot3-0/+70
Change-Id: Ife7701b54149c12bce969468adb667a6c101d01a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-22Fix: force to pass a ref at threads launchRomain Forlot10-52/+38
Change-Id: Ife4206d6f6dce6888157239cce56b0040e3d2cf4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-21Fix: threads launching with wrong argumentsRomain Forlot2-10/+9
Fix: wrong type identifier to returned sendto function Change-Id: I33bcb84211c665720422573b04b32ca71e13d3e5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>