summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-08-24Rework to switch to using KUKSA.val databrokerScott Murray21-724/+944
Rework to use the "VAL" gRPC API from the KUKSA.val databroker instead of the older server's WebSocket interface. Some source files have been renamed to match the class naming to provide a bit more consistency. Bug-AGL: SPEC-4762 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ib1ec31af439a9b2d5244e2232ea7be1ed9a2574c
2023-06-12Merge "vis-config.cpp: define local load_string_file"Jan-Simon Moeller1-4/+14
2023-06-07hvac-*-helper: explicitly include cstdint headerDenys Dmytriyenko2-0/+2
Otherwise gcc13 errors out with error: 'uint8_t' has not been declared Bug-AGL: SPEC-4578 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Change-Id: Ia2a80751d5281cc6f27e194a1e849de082a39038
2023-06-07vis-config.cpp: define local load_string_fileDenys Dmytriyenko1-4/+14
As boost has deprecated string_file helper functions since 1.81, define one locally with minor changes to use std types where needed. Bug-AGL: SPEC-4578 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Change-Id: Ie97d3389e0993493694372bf0a1685e79a0b62b1
2022-11-08Update message data type handlingScott Murray1-0/+6
KUKSA.val 0.2.1 always returned numeric values as floating point, this has changed with 0.2.5 and support is required to handle data points actually having integer or unsigned integer types. Bug-AGL: SPEC-4598 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ia37a52e1dee6726ef56f5e9d7efe445b112c344d
2022-06-17Repurpose into VIS clientneedlefish_13.93.0needlefish/13.93.013.93.0Scott Murray23-1175/+1304
Repurpose repository for a spiritual successor of the previous binding. The replacement is a daemon that demonstrates servicing HVAC actuators from the VSS schema via VIS signals from KUKSA.val. Currently the connection to KUKSA.val is websocket based using the boost::asio framework, but the plan is to migrate to grpc as that becomes more robust in KUKSA.val. Notable changes: - New code is completely C++, partly to leverage using Boost, but also to futureproof future work with grpc. - Switch from CMake to meson for ease of development and some degree of futureproofing. - Use with systemd is assumed; behavior follows the systemd daemon guidelines barring the use of journald logging prefixes, which may be addressed with future work. A systemd unit is also installed as part of the build. - SPDX license headers using SPDX "short identifiers" are used in source files rather than the full copyright headers used in the previous codebase. This follows the direction that projects such as the Linux kernel are going in. - The JSON configuration file for the LED control files for the demo platform has been migrated to a INI format configuration file matching what has been done for the VIS client configuration in other recent work. Bug-AGL: SPEC-4409 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ic2061bca9670b1e461d6f1e6591471e257fff5b9
2020-12-01Start on bootmarlin_12.93.0marlin_12.91.0marlin_12.90.1marlin_12.90.0marlin/12.93.0marlin/12.91.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.0koi_10.93.0koi_10.92.0koi_10.91.0koi/10.93.0koi/10.92.0koi/10.91.012.93.012.91.012.90.112.90.011.92.010.93.010.92.010.91.0Scott Murray1-0/+1
Update widget config.xml.in to add "run-by-default" permission. Bug-AGL: SPEC-3704 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I3239b0ce1f306aa409670bca2e7dfaf5439aad70
2020-06-09Update autobuild scriptsjellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.19.99.49.99.39.99.29.99.1Scott Murray2-204/+154
Update autobuild scripts with reworked version that fixes building outside of the source tree. Bug-AGL: SPEC-2049, SPEC-3300 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I973bd61af8051651a3eca229eabcfab86a98bd03
2020-02-18Update autobuild script to create new targetsFrederic Marec2-26/+174
Update autobuild script to create multiple widget target debug, coverage and all Bug-AGL: SPEC-2049 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: Ie648156c819cd0c1fc01843cb0ad1b83ca5c6aad
2020-01-22hvac: binding: switch to low-can service from direct socket accessicefish_8.99.5icefish/8.99.58.99.5Matt Ranostay2-179/+65
Switch from using direct CANbus socket access to using the low-can binding service for sending HVAC events. Bug-AGL: SPEC-2984 Change-Id: Iae5a497c808954dcc9e579f34bac90e9e5db9267 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2020-01-20Merge "hvac: add missing linking to libm"Jan-Simon Moeller1-1/+1
2020-01-16hvac: add missing linking to libmMatt Ranostay1-1/+1
HVAC binding requires several libm functions and failure to link causes the following runtime failure. libafm-hvac-binding.so: undefined symbol: round [afb-api-so.c:83,load_binding] Bug-AGL: SPEC-2984 Change-Id: I963fd60d81d0ed6499ae6e4712e27070ce90959c Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2020-01-10binding: hvac: fix -Wreturn-type warningMatt Ranostay1-1/+1
[ 40%] Building C object binding/CMakeFiles/afm-hvac-binding.dir/hvac-demo-binding.c.o agl-service-hvac/binding/hvac-demo-binding.c: In function ‘bindingServicePreInit’: agl-service-hvac/binding/hvac-demo-binding.c:707:1: warning: no return statement in function returning non-void [-Wreturn-type] 707 | } Bug-AGL: SPEC-2984 Change-Id: I074836fef1c5378172b7d3cf60af4950aabb2f56 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2020-01-09binding: hvac: improve onEvent handlerMatt Ranostay1-4/+2
* remove memory leak of json_object * remove security risk of displaying event message in journal Bug-AGL: SPEC-2984 Change-Id: I6287093a79d382a895a61d83263f3f4208ed999b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-11-13Fix CAN device configurationicefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.48.99.38.99.28.99.1Scott Murray1-5/+7
Move the configuration file parsing to pre-init so that CAN device configuration will work. Bug-AGL: SPEC-2949 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0d3fbaf5853f8e13675df6843fcab7416acf7170
2019-03-28hvac-demo-binding : Set CAN device name from hvac.jsonhalibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.0.28.0.18.0.07.99.37.99.27.99.1Harunobu Kurokawa2-4/+17
Current CAN_DEV is set vcan0 as default and hardcoding. Sometimes hvac uses lin or other type of can device. User can set CAN device name from JSON file in /etc/hvac.json Change-Id: I2c29fb16d7d4a48364cc1d35a9f5004afbdb477b Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
2019-03-01autobuild: fix warnings due to cp command exit codeRaquel Medina2-4/+12
Change-Id: Icfc22d5e264373644db6b72de818b525aa91462e Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-22Move autobuild to top treehalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy/6.99.4guppy/6.99.3guppy/6.99.27.90.06.99.46.99.36.99.2Frederic Marec2-30/+60
Bug-AGL: SPEC-495 Change-Id: I15817a59bea6f0d5611610b95884170ebaf29a44 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-11-12Change .gitmodules following submodule migrationguppy_6.99.1guppy/6.99.16.99.1Frederic Marec1-3/+0
Remove app-template in .gitmodules Remove .gitmodules Change-Id: If667aa56bd1c922ebba971f989dcae016323a3e5 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-10-31Migrate app-templates to CMake moduleRomain Forlot2-5/+9
Bug-AGL SPEC-1682 Change-Id: I6241caeaeac45366fb9f1e8a7f688a8ba585cf96 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-11Merge "Use feature 'required-binding'"Stéphane Desneux1-0/+3
2018-10-09Use feature 'required-binding'Jose Bollo1-0/+3
The feature "urn:AGL:widget:required-binding" is now preferred to the feature "urn:AGL:widget:required-api" for requiring a local binding. Bug-AGL: SPEC-1800 Change-Id: I0fa278eecf0c7a76079dbc986bdb3286531a4a0a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-10-08binding: hvac: upgrade to afm framework version 3Matt Ranostay1-29/+27
Bug-AGL: SPEC-1757 Change-Id: I50d0c732dbda8f11b566b76cdc2eb333efb780ec Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: hvac: remove unused variablesMatt Ranostay1-3/+2
Silence unused variable warnings from compiler by removing them Bug-AGL: SPEC-1757 Change-Id: Iabe7aaf2874ee18b3ef2237200cc8a378d38bff2 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: hvac: remove useless NULL definitionMatt Ranostay1-4/+0
Pretty sure NULL doesn't need to be defined for any modern compiler in the last 20 years. Bug-AGL: SPEC-1757 Change-Id: I3036e0db90b090a8d19527eb9244e0d9e455b332 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: hvac: reduce const assignment warningsMatt Ranostay1-3/+3
Fields in struct led_paths are never directly changed and are assigned from json_object_get_string() which returns const char * Bug-AGL: SPEC-1757 Change-Id: If2a6ea592f30d95f16a62cb1b5a12f5212b12163 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: hvac: clean up verb definitionsMatt Ranostay1-21/+8
Remove overly verbose field definitions, and removed explicit v2 references. Bug-AGL: SPEC-1757 Change-Id: I79b51ff9ab6a81b7646e91bb2842db3d84a10022 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: hvac: add hvac.json fileMatt Ranostay1-0/+7
Add hvac.json to binding as well as the HVAC application Bug-AGL: SPEC-1757 Change-Id: I8c8749d7ec3570347459817d32bf6928a3dfff5a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-27binding: hvac: add initial bindingMatt Ranostay11-0/+1207
This is the split out binding from the HVAC package. Bug-AGL: SPEC-1757 Change-Id: If8499ac811491fac204a213768f27f584dd996e1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-26Initial empty repositoryguppy_6.90.0guppy/6.90.06.90.0Jan-Simon Moeller0-0/+0