eddie merge requestshttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests2023-03-11T10:26:38Zhttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/59Documentation2023-03-11T10:26:38ZJacopo ZorzettoDocumentation- Update the content of the main README file
- Add Doxygen comments- Update the content of the main README file
- Add Doxygen commentsJacopo ZorzettoJacopo Zorzettohttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/58Upgrade engine in EDDIE2023-03-10T06:40:05ZJacopo ZorzettoUpgrade engine in EDDIEJacopo ZorzettoJacopo Zorzettohttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/57debug-console: set overlay to enable shell/console over USB (CDC ACM)2023-02-08T16:09:18ZFrancesco Phamdebug-console: set overlay to enable shell/console over USB (CDC ACM)currently shell and console is not working via USB, instead one have to use
the UART interface and use a serial to USB cable to access the arduino shell.
With this overlay configuration we are able to access the arduino shell
using t...currently shell and console is not working via USB, instead one have to use
the UART interface and use a serial to USB cable to access the arduino shell.
With this overlay configuration we are able to access the arduino shell
using the USB port of the arduino. Also, we have to enable
CONFIG_USB_DEVICE_STACK in prj.conf and call usb_enable() from the source.
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>Francesco PhamFrancesco Phamhttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/56New assets and bug fixing in Communication Layer2023-02-13T16:32:21ZJacopo ZorzettoNew assets and bug fixing in Communication Layer- Add new resource types as assets, providing also classes to handle the corresponding hardware
- Fix a bug with CoAP large data packet handling
- Correct the behaviour during endpoint registration and de-registration
- Provide new metho...- Add new resource types as assets, providing also classes to handle the corresponding hardware
- Fix a bug with CoAP large data packet handling
- Correct the behaviour during endpoint registration and de-registration
- Provide new methods to access Resource Directory information from Virtualization layerJacopo ZorzettoJacopo Zorzettohttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/55assets: install assets into datadir2022-12-07T16:06:17ZFrancesco Phamassets: install assets into datadir- install json files into ${CMAKE_INSTALL_DATADIR}/eddie
(/usr/share/eddie or /usr/local/share/eddie depending on the platform)
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>- install json files into ${CMAKE_INSTALL_DATADIR}/eddie
(/usr/share/eddie or /usr/local/share/eddie depending on the platform)
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>Francesco PhamFrancesco Phamhttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/54Add hardware layer and Json assets2022-11-29T15:22:30ZJacopo ZorzettoAdd hardware layer and Json assets- Add directory assets, containing the Json files for both reasoning and building
- Communication: enable block data transfer, to allow large payload messages to be transmitted
- Hardware: implementation of a blinking lamp- Add directory assets, containing the Json files for both reasoning and building
- Communication: enable block data transfer, to allow large payload messages to be transmitted
- Hardware: implementation of a blinking lamphttps://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/53feat: add eca check.2022-11-30T11:26:48ZSébastien Heurtemattesebastien.heurtematte@eclipse-foundation.orgfeat: add eca check.feat: add eca check. related to eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg#55
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>feat: add eca check. related to eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg#55
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/52Draft: feat: migration EF runner2023-01-17T14:36:48ZSébastien Heurtemattesebastien.heurtematte@eclipse-foundation.orgDraft: feat: migration EF runnerMigration Oniro project to Eclipse foundation Gitlab runner.
Top Issue: https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/2
Related issues:
* [x] EF...Migration Oniro project to Eclipse foundation Gitlab runner.
Top Issue: https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/2
Related issues:
* [x] EF pipeline migration: ci job test failed with https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/17 (duplicated see https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/49)
* [ ] EF pipeline migration: ci job eddie-zephir failed failed due to permission denied https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/18
* [ ] [oniro] Location for Doxygen documentation for Eddie project https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1923
* [x] EF runner configuration: runner don't run docker image entrypoint at startup https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/49
* [x] EF pipeline migration: where to find francescopham/eddie-docker:latest source https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/19
* [ ] zephyr-ci-pipelines project in EF gitlab: https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/50
Related MR:
* [ ] refactor: docker image instead of zephyr.yml file https://gitlab.com/zygoon/zephyr-ci-pipelines/-/merge_requests/16 (wait on validation)
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/51README.md: fix transparent gateway documentation url2022-09-27T09:29:20ZFrancesco PhamREADME.md: fix transparent gateway documentation urlSigned-off-by: Francesco Pham <francesco.pham@huawei.com>Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/50README.md: Add EDDIE structure section, build prerequisites, merge in zephyr ...2022-09-26T10:20:42ZFrancesco PhamREADME.md: Add EDDIE structure section, build prerequisites, merge in zephyr READMETaking over MR !43
- Adding documentation section detailing the general structure of the project
- add documentation section detailing the prerequisites for building the project
- merge in the EDDIE Zephyr build instructions that was ...Taking over MR !43
- Adding documentation section detailing the general structure of the project
- add documentation section detailing the prerequisites for building the project
- merge in the EDDIE Zephyr build instructions that was in the Zephyr subdirectory
Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/docs/-/issues/41 \
Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/docs/-/issues/45
Signed-off-by: Jacopo Zorzetto <jacopo.zorzetto@mail.polimi.it> \
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>
Co-authored-by: Jacopo Zorzetto <jacopo.zorzetto@mail.polimi.it>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/49Add support to both IPv4 and IPv62022-09-26T14:37:47ZFrancesco PhamAdd support to both IPv4 and IPv6- Zephyr: Using sockaddr_storage instead of sockaddr_in6 to add support to ipv4 addresses
- Zephyr: add support to ipv4 by checking if CONFIG_NET_IPV4 is defined, and use AF_INET/sockaddr_in or AF_INET6/sockaddr_in6
accordingly.
- Linux...- Zephyr: Using sockaddr_storage instead of sockaddr_in6 to add support to ipv4 addresses
- Zephyr: add support to ipv4 by checking if CONFIG_NET_IPV4 is defined, and use AF_INET/sockaddr_in or AF_INET6/sockaddr_in6
accordingly.
- Linux: use 0.0.0.0 address and IPv4 coap multicast address if using IPv4
- Add doxygen comment blocks
Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/15
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/48.gitlab-ci: add job to deploy doxygen docs on remote server2022-09-26T10:54:33ZFrancesco Pham.gitlab-ci: add job to deploy doxygen docs on remote serverAdd ci job in deploy stage to build Doxygen docs and upload html artifacts into docs.svc.ostc-eu.dev
The job runs only in protected branches because the ssh key variables are protected
Artifacts are uploaded to a remote ssh server usin...Add ci job in deploy stage to build Doxygen docs and upload html artifacts into docs.svc.ostc-eu.dev
The job runs only in protected branches because the ssh key variables are protected
Artifacts are uploaded to a remote ssh server using
ssh key stored in $SSH_PRIVATE_KEY variable
and the passphrase if exists is stored in $SSH_PASSPHRASE
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/47.gitlab-ci.yml/eddie-zephyr: remove check for .gitlab-ci.yml changes2022-09-08T11:40:46ZFrancesco Pham.gitlab-ci.yml/eddie-zephyr: remove check for .gitlab-ci.yml changesFixing eddie-zephyr job not running in MR pipelines
when .gitlab-ci.yml file is not changed.
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>Fixing eddie-zephyr job not running in MR pipelines
when .gitlab-ci.yml file is not changed.
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/46zephyr: run server in blocking mode in the main thread2022-09-26T10:41:14ZFrancesco Phamzephyr: run server in blocking mode in the main thread- There are problems when running the server in a separate thread on arduino nano 33 ble, while it works on qemu_x86:
```
<err> os: Stacking error (context area might be not valid)
<err> os: Data Access Violation
```
Therefore for no...- There are problems when running the server in a separate thread on arduino nano 33 ble, while it works on qemu_x86:
```
<err> os: Stacking error (context area might be not valid)
<err> os: Data Access Violation
```
Therefore for now we are running the server thread in the main thread in blocking mode.
- CoapSite::set_sock is now static and move set_sock call from start_server into CoapServer constructor
- Add check if no resource directory is found in the network then stop execution of the program.
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/45CMakeLists: add cmake target to build Doxygen docs2022-09-07T15:52:46ZFrancesco PhamCMakeLists: add cmake target to build Doxygen docsadding cmake target to build Doxygen documentations.
Doxygen docs are built together with the application by default if Doxygen is installed in the system, and can be disabled by disabling BUILD_DOC option.
The resulting html pages are ...adding cmake target to build Doxygen documentations.
Doxygen docs are built together with the application by default if Doxygen is installed in the system, and can be disabled by disabling BUILD_DOC option.
The resulting html pages are generated in the build/html directory.
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/44add support to link-local addresses2022-09-07T15:25:26ZFrancesco Phamadd support to link-local addresseslink-local addresses require interface name to be specified.
For example a correct url with link-local ip would be the following: `coap://[fe80::c63:43ed:a8ef:2ab3%wlx1cbfcedf85d7]:5683`\
We are using getnameinfo to get the correct inter...link-local addresses require interface name to be specified.
For example a correct url with link-local ip would be the following: `coap://[fe80::c63:43ed:a8ef:2ab3%wlx1cbfcedf85d7]:5683`\
We are using getnameinfo to get the correct interface name from the address.
As a consequence, url query must be percent-encoded so that the base address is correctly decoded.
Commits:
- linux/communication: get_local_node_ip returns the first ip found
- linux/communication: add support to link-local addresses
- zephyr: set src_port to adapt to struct message_t changes
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/43Draft: Add documentation2022-09-15T11:19:11ZJacopo ZorzettoDraft: Add documentationDraft of the documentation for EDDIE.Draft of the documentation for EDDIE.https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/42.ci: add eddie-zephyr job that builds eddie for a zephyr target2022-09-07T15:06:30ZFrancesco Pham.ci: add eddie-zephyr job that builds eddie for a zephyr targetRelate-to: https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/16
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/issues/16
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/41linux/communication: move resource directory object into EddieEndpoint2022-09-06T12:53:44ZFrancesco Phamlinux/communication: move resource directory object into EddieEndpoint- move resource directory object into EddieEndpoint, including methods that use the resource directory (ip/port getters, discover_rd, publish/unpublish)
- access the resource directory using only coap requests even if the resource direct...- move resource directory object into EddieEndpoint, including methods that use the resource directory (ip/port getters, discover_rd, publish/unpublish)
- access the resource directory using only coap requests even if the resource directory is local, without having to use direct method calls when the rd is in the same node.
- remove remove_endpoint and add_endpoint from ResourceDirectory because not necessary anymore
- move endpoints_to_string_list_filtered and rd_resources_to_string_list_filtered into private in ResourceDirectory
- adapt tests, eddie-endpoint, VirtualizationReceiver to the new changes
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>https://gitlab.eclipse.org/eclipse/oniro-core/eddie/-/merge_requests/40bug fixes in virtualization and CoapClient, add virtualization tests2022-09-06T11:53:21ZFrancesco Phambug fixes in virtualization and CoapClient, add virtualization testsThis MR addresses the following tasks:
https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/287
https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/291
- linux/CoapClient: fix token being reused after new session is cre...This MR addresses the following tasks:
https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/287
https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/291
- linux/CoapClient: fix token being reused after new session is created
- linux/virtualization: fix return of destroyed string
- virt_server: add exampleres flag to add mock resources
- .ci/Dockerfile: add apt install dbus and add script to run dbus-daemon
- virtualization_tests: add virtualization tests
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>