Age | Commit message (Collapse) | Author | Files | Lines |
|
IIO SCMI sensor can return such values.
Bug-AGL: SPEC-3865
Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
Change-Id: Ifbdae831fd69bce6b3d0e360fb5848264b1db4e5
|
|
ARM System Control and Management Interface [1] provides sensor protocol
which can implement various sensors. In particular, using virtio
transport for SCMI one can provide virtual sensors.
For now add sensors which can be backed by physical one on AGL Reference
Hardware board.
[1]: https://developer.arm.com/architectures/system-architectures/software-standards/scmi
Bug-AGL: SPEC-3865
Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
Change-Id: I932101dd057eb305338459930a243fb1749496de
|
|
It fixes a segmentation fault when subscribing to two or more devices [1].
For every device, a client structure is created and stored in the linked list.
If the device is not present, the corresponding client is removed from this list
(it is done in deinit_client_sub()). There is an internal pointer last_client,
which stores a pointer to the last client. The root cause for this bug is that
last_client was not updated after the client was removed from the linked list.
The solution is to not save the last pointer since it can be easily found when
it is needed.
1:
ON-REPLY 2:iiodevices/subscribe: ERROR
{
"jtype":"afb-reply",
"request":{
"status":"aborted",
"info":"signal Segmentation fault(11) caught"
}
}
Issue: SPEC-4066
Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
Change-Id: I72658ffd9f3b43a4ff71346f7fe4cf2c8f1242ca
|
|
It fixes a problem when there are several devices with the same event,
but not all devices are available on system. Previously, service did not
check all devices and returned error on first not available device.
Bug-AGL: SPEC-3865
Change-Id: I91e38dc31824c3956829180569ad819b27da6b6c
Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
|
|
Clearly channel names for gyroscope and compass were swapped.
Bug-AGL: SPEC-3865
Change-Id: I8cf281486ffcc97f28ff49f33027cc9fa0bd7b04
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
|
|
Bug-AGL: SPEC-3865
Change-Id: Id7900ede639e0535ebcf694c2b033cfe39df01af
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
|
|
Bug-AGL: SPEC-2745
Change-Id: I83c3a86a55f5e729e6cc1a4bb437edc300cccfad
Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
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: If5727a4ad0f1630e25f3263ef9de7a80b03791c3
|
|
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: I358c845a02821f5461d2e9f0443f5f87a2c831e3
|
|
BUG-AGL: SPEC-3164
Change-Id: I93977106ccdcd12f5258f832c1f2bc2b9a8243e6
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
it will fix error of make:
agl-service-iiodevices/binding/iiodevices-binding.c:103:15:
error: ‘e->event’ is a pointer; did you mean to use ‘->’?
if (!e->event.closure) { free(e); return NULL; }
Bug-AGL: SPEC-2807
Change-Id: Id74ddff09b660e9dcdab046caf4770e31bfff39b
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
Bug-AGL: SPEC-2795
Change-Id: Ib1aecb44e64d7ba6638bd6c502d0192fd3b64bb2
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
- call afb req fail before free client
Change-Id: I8e5157a6ede435541bbfe0f05e3db4dfd1f37dd9
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
- bring latest version of autobuild script in
- move conf.d/autobuild to root folder
- update autobuild script to fix warnings triggered by
cp operation error.
Change-Id: If18c0e5dc5b9f7ae9ebd376d6cb3968dab201cbc
Bug-AGL: SPEC-2164
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
|
|
Remove app-template in .gitmodules
Remove .gitmodules
Remove conf.d/app-templates
Change-Id: I5054e3b97b9e19e04db5dc0847d7f6988a5f122f
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
ADD $SUDO variable to be able to run test natively and on target
ADD afterall script to remove dummy devices
ADD new tests
Remove test/afb-test.sh following new afm-test process
Change-Id: Ib04e21f23518e8836c7bec00999f15f5d8212ae9
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Bug-AGL SPEC-1682
Change-Id: I707b8d6a9aee0a1bce8b3bad17d4a07d981a0c3a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
add afb_req_fail when a request is not desired
Change-Id: Ifacf7203cf503229689db195c7844a73a4b1de13
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
in set_channel, when channel does not exist,
next_channel has to be set to NULL
Change-Id: I512691126200b2a1cc5041b1d2855087b8da1895
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
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: I81f2b8531ce91954726687c8384a0ed748f48442
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
|
|
Add test for accelerometer, compass and gyroscope
Add script beforeAll.sh to initiate iio dummy devices
Add Readme.md to describe how to use test
Fix BUILD_TYPE in cmake.config
Change-Id: I39edfce6a43b519c0ff6bc0a7d2f1d2477098cff
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Change-Id: I8b76687cfff4824d1d83a7f77336a136fa79b9d6
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Changes of conf.d/app-templates:
(76e12e7 - CorentinLGS) app-templates doc: Changed doc to fit new format.
(02f45f1 - Romain Forlot) Update Docs
(52ae181 - Romain Forlot) Fix: typo
(f0b24b0 - Romain Forlot) Rollback about TEST build type
(e841a77 - Romain Forlot) Adding a TEST build type
(994ebc1 - Romain Forlot) Change default compilation options.
(85d5ffd - Romain Forlot) Test widget only if there are test materials
(d14bdce - Romain Forlot) Handles more test LABELS.
(70cf8fd - Romain Forlot) Missing flag for COVERAGE build type
(3c99b8a - Romain Forlot) Create a test widget
(9c1a0fb - Romain Forlot) Fix: interpreted '&' character
(9202fac - Romain Forlot) More accurate comment about widget template file.
(f94e45e - Romain Forlot) Align sample on actual default compile options
(d0acc2a - Romain Forlot) Add support to binding version 3.
(6fb3846 - Romain Forlot) Warning if not using wgtpkg-pack to make a widget
(35f3af1 - Sebastien Douheret) Rework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var
(332f377 - Romain Forlot) Be able to overwrite BUILD_TYPE using CLI
(1ec7531 - Romain Forlot) Use CACHE variable for other common CMAKE variable
(0880356 - Romain Forlot) Fix:: wrong wgt using RELEASE BUILD TYPE
(eec9f07 - Romain Forlot) Fix: SYSROOT location detection... Wrong test.
(291aa4e - Romain Forlot) Change the default debug compilation options.
(22a2cbf - Romain Forlot) Clearer coverage compilation options configuration
(aa68dbd - Romain Forlot) Don't overwrite the autobuild script if it exists
(a13e7b9 - Romain Forlot) Disable the in-tree build method.
(51026d2 - Romain Forlot) Detect Yocto as OS distribution
(1f2944e - Romain Forlot) Fix: wrong compile options added
(92646f6 - Romain Forlot) Fallback using zip format if no wgtpkg-pack found
(f65761c - José Bollo) 02-variables.cmake: Avoid checking CXX version if not required
(3965d37 - José Bollo) config.cmake.sample: Remove dependency to libsystemd
(a45ae0c - José Bollo) config.cmake.sample: Remove dependency to libmicrohttpd
(9b17efe - Thierry Bultel) Added -D_FORTIFY_SOURCE=2 to CFLAGS
(66f7bc8 - Thierry Bultel) start-on-target: uses RSYNC_PREFIX path for config
Change-Id: I97d8dd43f93444688b1803410a26bc102e581c9e
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Change-Id: Iba5fb857ae7e87aa8e2f142495e894aa634229b7
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
Change-Id: Ia34f61677561a37fe0d01feb6475d74f90190ad8
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
|
|
iiodevices-binding.so"
|
|
- Remove treat_iio_infos function that is no used at all in source
code.
- it's really not a good idea to define static variable in header
file (causing redefinition each time header file is included), so
move static definition of iio_infos in C code.
Change-Id: I66c6c5593c9d10581b49ce5f2a9b2f4952584259
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
* changes:
Add git ignore file/dir list
Add missing afb-daemon dependency
|
|
spelling mistakes
remove channel static info in remaining issues
Change-Id: Ia834d6fb7de44e28f03064a375d77212810d74f3
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
iiodevices-binding.so
Change-Id: I68a4c2d3f3b8c72cd152bc3e411aaf84f5d45705
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
Change-Id: I2853507d7215dc2531f9718b52bafe881393769a
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
|
|
Change-Id: I8c417fd6cf6e8946ddbb649b55bb56c063f056e6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
|
|
Change-Id: Ie543eb9628d2632427dd2d6ca215c92358d5920e
Signed-off-by: cle©mentbeénier <clement.benier@iot.bzh>
|
|
Change-Id: I8d699d8d0126d88eb9892e99430bf953456acb4f
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
gather all same static infos and add suffix for different values between
channels.
Change-Id: I48d3b01667b829411efa39405347d6e396211431
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
Change-Id: I1bd0cea12128ac3d78d6f4c4ee472cd74e69469d
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
Remove the uid json argument and using afb_req_context_set/get to
identify client session.
Change-Id: Ib57f4443d20f4ee7cec9db17b6c6b81d6ca0e24c
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
Change-Id: Icd0607abfa205ea0382eac78f70e76c87c0e9147
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
Change-Id: If4abd319aa466abaa1bca067bdd1f709152215ff
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
handle accel, magn et anglvel iiodevices
args key indicates the desired coordinates at subcription
frequency can be also specified at subscription
Example for subscription:
- iiodevices subscribe { "event": "accel", "uid": "1", "args": "xyz", "frequency": "0.1" }
- iiodevices subscribe { "event": "magn", "uid": "1", "args": "xz", "frequency": "0.1" }
Change-Id: I7f300f56b5d69506434f31fbb6e552c7afdf7489
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Signed-off-by: clement benier <clement.benier@iot.bzh>
|
|
Change-Id: I8c0c17c66a484df9bc152046466d80224cf65498
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
|