summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-06-22Needed feature to make binder load the bindingRomain Forlot3-1/+5
Change-Id: I5c312e082bc710f3d3f381d09be055af4950cd1a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-20Review of documentationRomain Forlot3-10/+18
Change-Id: I49763cc9264c0121db2950cfee56d69c66d0e4c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-20Move submodule directoryRomain Forlot2-2/+2
Change-Id: I2c603ab49bab01fd1221147cfe9c97bdacea91a9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-20Separation Generator to a dedicated repoRomain Forlot468-15886/+3
Change-Id: Id94831651c3266861435272a6e36c7884bef2c45 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-20Update doc revision and pdf cover.Sebastien Douheret3-1/+1
Change-Id: Ia566b39055a39cb14760f3a17b4240690c1a8f56 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-20Add .gitreviewRomain Forlot1-0/+6
Change-Id: Ie52d9470d792ce3556d3a153316fc7384cd10e64 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-20Align with AGL versionRomain Forlot7-16/+19
And unify prefix with audio binding and others bindings Change-Id: I685afd2e4c75c813ac9af8ab3281fedc04b9289e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-14Now even generator can be built in SDK environmentRomain Forlot1-2/+1
Change-Id: I7fdcddca9002e8d1cfb21049198d798c8551319c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-12Update build and package configuration file.Romain Forlot3-3/+56
Change-Id: I9e5f596744479ed21f375e3cdd97c5d68bfa4c7a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Update documentation PDF metadataRomain Forlot1-2/+2
Change-Id: I64aa4cbae216d1ce4b48efaad704a158088b4494 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Rename submodule path to app-templates as the repoRomain Forlot5-8/+8
Change-Id: Ic4c2c5e50a19199614b7f1aaa8e1d2f9992fb3af Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Update git clone command in documentationRomain Forlot2-2/+2
Change-Id: I0cf5fbaed72dfd8602ce9f8e10feb97fa9a17ce4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Update submodule about cmake templates and configRomain Forlot3-3/+2
Change-Id: Ia4cdc62993fd585a89e214d21fdf465d0af3d59b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Change name and versionRomain Forlot1-2/+2
Change-Id: Ifaf6850773f94111a9501f7ded85ad4d62797f0b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Fix: warning at compile time after migration to v2Romain Forlot1-1/+1
Change-Id: I7bd4168d74ee0c144cea8ca85f30b5b6928d68f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Update documentationRomain Forlot2-132/+107
Change-Id: Ieea8476f65433ebd41da2ca992b9984310eb6c5f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Migration to AFB Binding V2Romain Forlot12-82/+72
No more binder interface needed to use logging macros and others stuff like make_event or any other calls Change-Id: Iaee60697373bc8a0e67518e924b36b5389533e68 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-09Comments, Cleanup, formatRomain Forlot16-127/+139
Change-Id: I9f032cc232e77ce73e889a1656f1ad86cfdec774 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Cleanup include and prepare to switch binding v2Romain Forlot5-21/+1
Change-Id: I032e8ec32c3ff5b2464f2802dd93683752316049 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Fix: read 2 times for 1 incoming CAN frame.Romain Forlot1-2/+2
Change-Id: I7be7b5e704b3cb081e1dbd73a6ba7f88a2bbc62f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Possible uninitialized variable returned.Romain Forlot1-1/+2
Change-Id: Id6ffed520aa238304afdddcd37a64e93002196aa Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Add some useful DEBUG information for read framesRomain Forlot1-2/+3
Change-Id: I026111942b4b8486b46f56d5fc92fcebde4dc91f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Fix: invalid CAN frame read leads to an exceptionRomain Forlot1-2/+4
The frame is reported like before but ignored now. Change-Id: I8314cdb5fa99d950023bf881c72daea2ef9bb935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Improve reliability on multi-threading.Romain Forlot4-61/+54
- Limits call to signals_manager and subscribed signals map - Unlock and lock mutex in the right order to avoid possible dead locks. Change-Id: Ifb152af833ad8bdde5dc4fc3a27b1a7c27046523 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Fix: exception unsubscribe all at startRomain Forlot1-1/+1
When unsubscribing but no diagnostic subscription made there is an exception when cleaning empty requests vector. Change-Id: I40bdd01969fd1a1c6fecb0a438c46d0df584de83 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Fix: c++11 detected and not applied from configRomain Forlot3-3/+5
Change-Id: Iedf1f88e142a3f579ada3794b1f0f8813105d880 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Fix: unsubscribe from 1 app remove diagnostic reqRomain Forlot1-2/+0
Let the function on_no_client do the cleaning of the remaining active diagnostic requests. Change-Id: I6fc2477d53200e3475f62cd453804827172a99c0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-07Separate low_can_subscription class from callbacksRomain Forlot7-276/+299
Change-Id: I682cacca1af53f898ac4c428f823562c50e7cce4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-06Update signals.json and generated files.Romain Forlot2-42/+77
Adding fake windows signals, Fix wrong bit_position about doors (not fake signal) In fact all signals are fake except of doors signals and OBD2 diagnostic messages. Change-Id: Ia5877bb9720b11b0ff3593788d3e79324b0fa44e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-06Update generator at latest low level bindingRomain Forlot2-12/+31
- renaming configuration to application - make message_set as a vector of shared_ptr - Setting up object parent in graphs at application object instanciation Change-Id: Ib33103d5cebbd9381375d2832582a25ae0f9f199 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-06Remove demo UI from the projectRomain Forlot27-2188/+0
Low level CAN binding is a standalone service that doesn't have to be delivered with an UI. Change-Id: Ic3995704a63b56f21168e2e9da8e45b3117a0f41 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Let the thread to be managed outside the binding.Romain Forlot1-4/+2
Change-Id: Ib905a3e0ea58a32761c4dda4a391c1d7b311c12a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02C++ coding styleRomain Forlot2-2/+2
No changes on the object so it is a const method... Change-Id: I55b50d0d6fc0dd120f58ca56b6a68172353a5ef5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Remove pointer generator that make memory leaks.Romain Forlot6-29/+10
Only have 1 place where to generate a pointer from a DiagnosticRequest is in low-can-cb.cpp when subscribing. Else now using reference instead of raw pointer. Change-Id: I7fd2f3d30afa90017b945e6b711922036123b6d3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Get diag manager's socket into subscription objRomain Forlot7-198/+240
Subscription index map is the socket ID which implies the following: - All diagnostic messages subscriptions are stored into a vector holding diagnostic_message and there is 1 socket for all like the diag manager did. - Reworked workflow to open a BCM socket and adding an RX filter more flexible. - Separated methods to handle on_no_clients event. - Cleaning diagnostic manager code to remove all unneeded stuff now. - Embed diagnostic response in VehicleMessage decoded message to be able transmits the PID in event push thread. This is needed by to correctly handle case when there is no clients subscribed to an AFB event. Else we can't find the diagnostic message to remove from low_can_subscription vector. Change-Id: Iab13fd556cda3c69827bcd67f3a23a03cb6a2cf2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Update submodule.Romain Forlot1-0/+0
Change-Id: I2f8bc5bbe7325b50c62a40d1f081b5bf771179c8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Fix: Handle several subscriptions to a signalRomain Forlot1-26/+46
Change-Id: I460bae0056761f6468ca4dc55a594f1529d53c83 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Adding accessor to diagnostic msg shared ptr.Romain Forlot2-0/+6
Change-Id: I9d32239b3ebd762ab3a337fc734d504ee8dc8c5f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-02Change way to validate a subscription objectRomain Forlot1-1/+1
Better to check validity of 2 differents type of signals used and checks that its event is valid. Change-Id: I1435bbe81a43fd80eae049d43b5e37fc8f893074 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Fix warning compileRomain Forlot1-3/+6
Change-Id: Id0f088f030c0a23b4347c4886a3d756538cbb651 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Implement minimum and maximum subscription filtersRomain Forlot1-2/+6
Change-Id: I6b027cdb37e425e185b8d2278ae775f857ff96bc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Better handling of duplicate non recurring requestRomain Forlot1-1/+2
Change-Id: Ib6015d5dac66751622f3e287429475b6b708c3d5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Methods to ease access to DynamicField membersRomain Forlot2-0/+23
Change-Id: I8974827340e3faf60a511900cbdcf117ce43fb53 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Close socket by default when destroying objectRomain Forlot1-1/+4
As socket is back to only movable, only one copy of a socket can be present at a time, so when the object is destroyed we have to close the socket too. Change-Id: Id64bb53919ce7c24476c26ba9a8520affa3f6273 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Delete pointer and content, possible memory leakRomain Forlot1-0/+5
Change-Id: I21e65bcaaa444c03bbc634f1d437e6ff363623b6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Initializing all struct by default to avoid errorsRomain Forlot1-1/+3
Change-Id: I54eab7da7e5819f633a5612abe46d44550068aab Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01FormatRomain Forlot1-0/+1
Change-Id: Ibbd48a1c0fe0e7567cbf3f5f1c6919e542883924 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Left over renaming variableRomain Forlot3-8/+7
Following change from configuration_t to application_t some variable name doesn't correspond now : conf -> app Change-Id: I56c3a83113777a43af9024a9bc9b53f705b60b0f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01Fix: Frequency filter doesn't apply on diagnosticRomain Forlot2-6/+6
As socket isn't managed by low_can_susbcription yet, create_rx_filter was just using signal frequency setting. Now, it take the frequency asked in argument if provided. Change-Id: If44458b2b0e34df44337670dd9a5b2b58324bfbe Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-01CleaningRomain Forlot1-13/+10
Change-Id: I73e9acf8b3a28db2134cf1f4bcb1b2aa7fd224fc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>