platform/upstream/nnstreamer-edge.git
2 months ago[Action] Add testhub action main tizen
Gichan Jang [Wed, 2 Apr 2025 04:12:11 +0000 (13:12 +0900)]
[Action] Add testhub action

Upload coverage result to TestHub.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
2 months ago[CMake] Change minimum version
Gichan Jang [Thu, 3 Apr 2025 05:32:59 +0000 (14:32 +0900)]
[CMake] Change minimum version

Change minimum required version of CMAKE.
Error:

CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 has been removed from CMake.
  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
2 months ago[Build] python in git action
Jaeyun Jung [Fri, 4 Apr 2025 05:42:05 +0000 (14:42 +0900)]
[Build] python in git action

Code clean, set python version for build checker.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 months agoSkip connection request
Gichan Jang [Thu, 13 Mar 2025 00:55:25 +0000 (09:55 +0900)]
Skip connection request

For TCP or MQTT, let pub node skip the connection request.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
2 months ago[Custom] Add disconnect function for custom connection accepted/tizen_unified accepted/tizen_unified_x accepted/tizen/unified/20250326.013035 accepted/tizen/unified/x/20250325.213602
Gichan Jang [Tue, 18 Feb 2025 08:53:34 +0000 (17:53 +0900)]
[Custom] Add disconnect function for custom connection

 - Add disconnection function for custom connection
 - Add unit test

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months agoAdd stop discovery function accepted/tizen/unified/20250313.054818 accepted/tizen/unified/x/20250311.211311
Gichan Jang [Thu, 23 Jan 2025 01:03:07 +0000 (10:03 +0900)]
Add stop discovery function

 - Add stop discovery function
 - Rename discover to start_discovery

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months ago[Custom] Implement custom discovery function
Gichan Jang [Tue, 14 Jan 2025 01:39:00 +0000 (10:39 +0900)]
[Custom] Implement custom discovery function

Implement custom discovery function and add related unit tests.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months agoAdd skeleton code for discovery
Gichan Jang [Mon, 13 Jan 2025 05:14:55 +0000 (14:14 +0900)]
Add skeleton code for discovery

Add skeleton code for discovery devices within network.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months ago[Action] Run mosquitto broker
Gichan Jang [Tue, 14 Jan 2025 02:42:39 +0000 (11:42 +0900)]
[Action] Run mosquitto broker

To incerease test coverage of mqtt, let's install mosquitto broker.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months ago[README] Change code coverage result repo
Gichan Jang [Tue, 14 Jan 2025 02:26:03 +0000 (11:26 +0900)]
[README] Change code coverage result repo

Change code coverage result repo from TAOS-CI to github.io

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
4 months ago[Build/Android] add mqtt source
Jaeyun Jung [Fri, 10 Jan 2025 03:39:52 +0000 (12:39 +0900)]
[Build/Android] add mqtt source

Define mqtt source for android build.

TODO: now we uses paho-mqtt, consider other mqtt library later.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
4 months ago[Test] Fix test coverage generation failure
Gichan Jang [Thu, 9 Jan 2025 07:15:55 +0000 (16:15 +0900)]
[Test] Fix test coverage generation failure

Test coverage resultes are not printed.
Current: https://nnstreamer.github.io/testresult/nnstreamer-edge/

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
5 months ago[Custom] handle for custom connection accepted/tizen_unified_x_asan accepted/tizen/unified/20250108.103324 accepted/tizen/unified/x/20250108.225140 accepted/tizen/unified/x/asan/20250211.003228
Jaeyun Jung [Thu, 2 Jan 2025 06:41:06 +0000 (15:41 +0900)]
[Custom] handle for custom connection

Define handle for custom connection to hide internal structure.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[Custom] feature for custom connection
Jaeyun Jung [Thu, 2 Jan 2025 06:37:41 +0000 (15:37 +0900)]
[Custom] feature for custom connection

Add new definition to support custom connection (default on).

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[action] add missing python script
Yelin Jeong [Fri, 3 Jan 2025 03:46:43 +0000 (12:46 +0900)]
[action] add missing python script

This patch adds missing python script gen_coverage_badge.py

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
5 months ago[CodeClean] fix segfault case
Jaeyun Jung [Thu, 2 Jan 2025 05:07:24 +0000 (14:07 +0900)]
[CodeClean] fix segfault case

Fix segfault case,
1. stop sending thread before closing connection handle.
2. handle error case while pushing edge data into sending queue.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[Test] fix mem leak
Jaeyun Jung [Thu, 2 Jan 2025 04:59:31 +0000 (13:59 +0900)]
[Test] fix mem leak

Code clean, fix mem leak case in custom connection test.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[CodeClean] fix indent
Jaeyun Jung [Thu, 2 Jan 2025 05:18:22 +0000 (14:18 +0900)]
[CodeClean] fix indent

Code clean, fix indentation reported from ci.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[CodeClean] check invalid param
Jaeyun Jung [Thu, 2 Jan 2025 01:23:15 +0000 (10:23 +0900)]
[CodeClean] check invalid param

Code clean, check invalid param case in custom connection.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[CodeClean] unnecessary header
Jaeyun Jung [Thu, 2 Jan 2025 01:29:56 +0000 (10:29 +0900)]
[CodeClean] unnecessary header

Code clean, remove unnecessary header and print log for custom connection.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[Action] Remove i586 arch build from gbs
Gichan Jang [Fri, 20 Dec 2024 05:04:54 +0000 (14:04 +0900)]
[Action] Remove i586 arch  build from gbs

Since i586 arch has been not supported from Tizen, remove it.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
5 months ago[gcov] Fix invalid gcda files
Gichan Jang [Fri, 20 Dec 2024 02:08:54 +0000 (11:08 +0900)]
[gcov] Fix invalid gcda files

Previously, a null file was created to cover cases where tests were not performed.
From the latest gcov version (gcov14), this is treated as an invalid gcda file, resulting in an
Change to merge the initialized info and test result info.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
5 months ago[Action] Add actions to replace TAOS-CI [2]
Gichan Jang [Fri, 20 Dec 2024 01:54:30 +0000 (10:54 +0900)]
[Action] Add actions to replace TAOS-CI [2]

Add actions to replace TAOS-CI
*Split commit to avoid git push error due to large size of commit.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
5 months ago[Action] Add actions to replace TAOS-CI
Gichan Jang [Fri, 20 Dec 2024 01:28:32 +0000 (10:28 +0900)]
[Action] Add actions to replace TAOS-CI

Add actions to replace TAOS-CI

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
8 months ago[Event] Add new event type accepted/tizen_9.0_unified accepted/tizen_unified_toolchain tizen_9.0 accepted/tizen/9.0/unified/20241030.233328 accepted/tizen/unified/20240926.050056 accepted/tizen/unified/20241108.105534 accepted/tizen/unified/20241120.162447 accepted/tizen/unified/toolchain/20241004.101324 accepted/tizen/unified/x/20240926.095718 accepted/tizen/unified/x/asan/20241013.235632 tizen_9.0_m2_release
gichan2-jang [Fri, 13 Sep 2024 06:02:19 +0000 (15:02 +0900)]
[Event] Add new event type

Add new event type for new connection.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
9 months ago[AITT] Remove AITT connection accepted/tizen_unified_dev accepted/tizen/unified/20240911.162003 accepted/tizen/unified/dev/20240913.055626 accepted/tizen/unified/x/20240912.013707
gichan2-jang [Fri, 6 Sep 2024 00:56:16 +0000 (09:56 +0900)]
[AITT] Remove AITT connection

Remove AITT connection since AITT has been deprecated.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
9 months ago[Release] update version
Jaeyun Jung [Tue, 3 Sep 2024 01:00:46 +0000 (10:00 +0900)]
[Release] update version

Prepare Tizen 9.0 M2 release, update version.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[CodeClean/Test] unnecessary local variable accepted/tizen/unified/20240903.172453 accepted/tizen/unified/dev/20240910.111643 accepted/tizen/unified/x/20240904.025224
Jaeyun Jung [Mon, 2 Sep 2024 01:34:13 +0000 (10:34 +0900)]
[CodeClean/Test] unnecessary local variable

Fix build warning, remove unnecessary local variable.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Event] util to get data
Jaeyun Jung [Wed, 28 Aug 2024 01:57:55 +0000 (10:57 +0900)]
[Event] util to get data

Add util function to get the edge event data, and remove unnecessary return code.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Event] add lock
Jaeyun Jung [Wed, 28 Aug 2024 01:56:55 +0000 (10:56 +0900)]
[Event] add lock

Add mutex lock in edge event handle and handle variables with lock.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Queue] set magic in handle
Jaeyun Jung [Mon, 26 Aug 2024 01:20:39 +0000 (10:20 +0900)]
[Queue] set magic in handle

Set magic when creating/destroying the queue handle.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Doc] update API description
Jaeyun Jung [Fri, 23 Aug 2024 02:46:57 +0000 (11:46 +0900)]
[Doc] update API description

Code clean, update tags and API description.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Queue] change param
Jaeyun Jung [Fri, 23 Aug 2024 02:51:35 +0000 (11:51 +0900)]
[Queue] change param

Change function param, return error code when getting queue len.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months agoExport edge data and event functions.
gichan2-jang [Thu, 22 Aug 2024 04:33:12 +0000 (13:33 +0900)]
Export edge data and event functions.

Export edge data and event functions for custom connections.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
9 months ago[Custom] separate custom impl
Jaeyun Jung [Thu, 22 Aug 2024 01:20:54 +0000 (10:20 +0900)]
[Custom] separate custom impl

Separate custom connection implementation and update callbacks.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Custom] fix leak case
Jaeyun Jung [Wed, 21 Aug 2024 08:11:16 +0000 (17:11 +0900)]
[Custom] fix leak case

Code clean,
- fix indent and mem leak case.
- check invalid custom handle case.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Doc] update description
Jaeyun Jung [Wed, 21 Aug 2024 07:55:36 +0000 (16:55 +0900)]
[Doc] update description

Update header file - fix param and return code.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[Test] file name for test
Jaeyun Jung [Wed, 21 Aug 2024 07:45:37 +0000 (16:45 +0900)]
[Test] file name for test

Code clean, update file name for custom library test and fix indent.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
9 months ago[TEST] Add unit test for custom connection
gichan2-jang [Fri, 16 Aug 2024 06:04:40 +0000 (15:04 +0900)]
[TEST] Add unit test for custom connection

Add unit test for custom connection
*linnnstreamer-edge-cusom.so is not real implementation just for test

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
9 months ago[Custom] Implement custom connection
gichan2-jang [Fri, 16 Aug 2024 01:08:10 +0000 (10:08 +0900)]
[Custom] Implement custom connection

Implement custom connection
@todo: Add unit test case

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
9 months agoAdd skeleton code for custom connection
gichan2-jang [Tue, 13 Aug 2024 07:54:27 +0000 (16:54 +0900)]
Add skeleton code for custom connection

User can create tehir own connection type using custom connection.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
11 months agoFix typo accepted/tizen/unified/20240711.011508 accepted/tizen/unified/dev/20240711.085740 accepted/tizen/unified/toolchain/20240812.131720 accepted/tizen/unified/x/20240711.084605 accepted/tizen/unified/x/asan/20240813.225956
gichan2-jang [Mon, 1 Jul 2024 05:25:32 +0000 (14:25 +0900)]
Fix typo

Fux typo detected by spell checker

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
11 months ago[Actions] Add spell checker
gichan2-jang [Mon, 1 Jul 2024 05:20:16 +0000 (14:20 +0900)]
[Actions] Add spell checker

Add spell checker github action.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
13 months ago[spec] Fix lcov options for different Tizen/lcov versions accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/7.0/unified/20240509.012438 accepted/tizen/8.0/unified/20240507.165648 accepted/tizen/unified/20240503.115758 accepted/tizen/unified/dev/20240620.010950 accepted/tizen/unified/toolchain/20240508.012357 accepted/tizen/unified/x/20240507.050944 accepted/tizen/unified/x/asan/20240625.091934
Yongjoo Ahn [Tue, 30 Apr 2024 06:43:32 +0000 (15:43 +0900)]
[spec] Fix lcov options for different Tizen/lcov versions

- Set proper lcov options w.r.t. Tizen/lcov versions.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
13 months ago[common] Let edge wait listener thread to be started. sandbox/sangjung/tizen_7_backport accepted/tizen/7.0/unified/20240426.015347 accepted/tizen/8.0/unified/20240424.115823 accepted/tizen/unified/20240425.114316 accepted/tizen/unified/toolchain/20240427.045726 accepted/tizen/unified/x/20240426.050336
Yongjoo Ahn [Tue, 16 Apr 2024 08:59:59 +0000 (17:59 +0900)]
[common] Let edge wait listener thread to be started.

- Let the edge wait listener_thread to be properly started.
- This fix occasional hangs when nns_edge_release_handle called.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
14 months ago[Github] Add issue and pull request templates accepted/tizen/unified/20240402.061259 accepted/tizen/unified/x/20240402.093406
seungha son [Thu, 28 Mar 2024 02:16:56 +0000 (11:16 +0900)]
[Github] Add issue and pull request templates

 This PR is to create a templates to autemate issue and PR process.
 Issue and PR templates still use the format of the parent project, nnstreamer, for uniformity.
 (https://github.com/nnstreamer/nnstreamer/tree/main/.github)

Signed-off-by: seungha son <seungha.son@samsung.com>
14 months ago[Edge] Add checking return value
seungha son [Thu, 28 Mar 2024 03:29:04 +0000 (12:29 +0900)]
[Edge] Add checking return value

 In _nns_edge_transfer_data(), there is no checking return value.
 It is difficult to check when a problem occurs during the data transmission process,
 so check return values and add logs when problems occur.

Signed-off-by: seungha son <seungha.son@samsung.com>
14 months ago[Tizen] Fix gcov build error accepted/tizen/unified/20240319.141110 accepted/tizen/unified/20240319.154850 accepted/tizen/unified/20240326.105104 accepted/tizen/unified/x/20240320.132902 accepted/tizen/unified/x/20240327.044847
gichan2-jang [Tue, 19 Mar 2024 01:33:01 +0000 (10:33 +0900)]
[Tizen] Fix gcov build error

Due to the lcov 2.0 upgrade, the warning is changed to error so the gcov build fails.
Ignore this case. (Tizen PM guide)

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
15 months ago[AITT] Remove AITT
gichan2-jang [Mon, 11 Mar 2024 09:42:56 +0000 (18:42 +0900)]
[AITT] Remove AITT

Remove AITT connection from nnstreamer-edge because AITT is removed from Tizen platform.
* Remove nnstreamer-edge-aitt.c later.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
15 months agogithub-action/gbs: Build nnstreamer-edge based all architecture accepted/tizen/unified/20240319.020738 accepted/tizen/unified/x/20240320.055257
linuxias [Tue, 27 Feb 2024 14:10:52 +0000 (23:10 +0900)]
github-action/gbs: Build nnstreamer-edge based all architecture

 Current, build only x86-64 architecture. This patch is to support
 to build x86_64, i586, armv7l aarch64 architecture

Signed-off-by: linuxias <linuxias@gmail.com>
15 months ago[MQTT] clearly set null when closing connection
Jaeyun Jung [Mon, 5 Feb 2024 09:43:06 +0000 (18:43 +0900)]
[MQTT] clearly set null when closing connection

Clearly set connection state and handle when closing MQTT connection.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
17 months ago[Build] nns-edge version info accepted/tizen_unified_riscv accepted/tizen/unified/20240105.012957 accepted/tizen/unified/20240119.154759 accepted/tizen/unified/riscv/20240105.060117
Jaeyun Jung [Thu, 7 Dec 2023 12:06:20 +0000 (21:06 +0900)]
[Build] nns-edge version info

Update build script to set version info.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
17 months ago[bugfix] Modify dlog output code
hyunil park [Wed, 18 Oct 2023 05:16:54 +0000 (14:16 +0900)]
[bugfix] Modify dlog output code

When outputting dlog using dlogutil in Tizen, garbage values are output
in the format starting with %

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
18 months ago[Common] wait for thread with lock accepted/tizen/unified/20231213.162138 accepted/tizen/unified/riscv/20231215.050244
Jaeyun Jung [Fri, 1 Dec 2023 09:04:40 +0000 (18:04 +0900)]
[Common] wait for thread with lock

Add lock to wait for creating new thread for data transfer.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
18 months ago[CodeClean] cleanup unnecessary line
Jaeyun Jung [Fri, 1 Dec 2023 09:03:03 +0000 (18:03 +0900)]
[CodeClean] cleanup unnecessary line

Code clean, update log message and remove unnecessary line.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
18 months ago[AITT] find library using pkgconfig
Jaeyun Jung [Mon, 4 Dec 2023 09:15:37 +0000 (18:15 +0900)]
[AITT] find library using pkgconfig

Use pkgconfig to find AITT library.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
19 months ago[Common] max memories in nns-edge
Jaeyun Jung [Mon, 6 Nov 2023 09:02:25 +0000 (18:02 +0900)]
[Common] max memories in nns-edge

nnstreamer now supports max 256 tensors in the buffer.
Increase max memories in nnstreamer-edge handle.

TODO:
We will fix the util functions in edge elements of nnstreamer, to handle memories in gst-buffer.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
19 months ago[Hybrid] Reconnect to available node
gichan2-jang [Tue, 31 Oct 2023 08:22:06 +0000 (17:22 +0900)]
[Hybrid] Reconnect to available node

If current connection is lost, find availabe node and reconnect.
Previously, This recovery work is done by user application.
Let's make the users don't care about this work when using MQTT-HYBRID.

*edgesrc and tensor_query_* should be updated after this change.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
19 months ago[Edge] Add cond for nns_edge_handle accepted/tizen/unified/20231110.172145
Yongjoo Ahn [Fri, 27 Oct 2023 10:28:02 +0000 (19:28 +0900)]
[Edge] Add cond for nns_edge_handle

- Add a pthread_cond for nns_edge_handle. And let the start method wait
  for the cond to be signaled by send_thread.
- This prevents some race conditions when APIs are used while
  send_thread is not yet started.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
19 months ago[bugfix] Set available port when user set port to '0'
hyunil park [Wed, 18 Oct 2023 00:50:53 +0000 (09:50 +0900)]
[bugfix] Set available port when user set port to '0'

- set available port when user set port to '0'
- ml service api set '0' as the default port if the port isn't set
  but '0' is an invalid port

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
19 months ago[Test] Add queue fixture class
linuxias [Fri, 13 Oct 2023 01:43:24 +0000 (10:43 +0900)]
[Test] Add queue fixture class

 nns_edge_queue_h handle is always used tests related queue.
 Using the fixture provided by gtest, the redundant code is
 eliminated by separating repetitive tasks of allocating and
 releasing queue handles.

Signed-off-by: linuxias <linuxias@gmail.com>
20 months ago[Queue] Unify return format to nns_edge_error_e
linuxias [Mon, 9 Oct 2023 20:47:34 +0000 (05:47 +0900)]
[Queue] Unify return format to nns_edge_error_e

 The return type is changed from boolean to nns_edge_error_e type
 in the same way as other modules. These changes provide uniformity
 when using APIs, reducing confusion for developers.

Signed-off-by: linuxias <linuxias@gmail.com>
20 months ago[Edge] Add metadata creation exception handling
seungha son [Fri, 22 Sep 2023 04:23:34 +0000 (13:23 +0900)]
[Edge] Add metadata creation exception handling

 It is necessary to consider the case of failing to generate Metadata
 when creating the Edge handle. It is not good to deliver Edge handles
 that have not been created normally to the user.

Signed-off-by: seungha son <linuxias@gmail.com>
20 months ago[Edge] Remove '[DEBUG]' log format string
seungha son [Fri, 22 Sep 2023 05:03:54 +0000 (14:03 +0900)]
[Edge] Remove '[DEBUG]' log format string

 [DEBUG] string is unnecessary, nns_edge_logd() function
 display DEBUG log level with log.

Signed-off-by: seungha son <linuxias@gmail.com>
20 months ago[AITT] Add publish_full
gichan2-jang [Fri, 15 Sep 2023 07:46:44 +0000 (16:46 +0900)]
[AITT] Add publish_full

 - Add publish_full
 - Set default protocol as AITT_TCP

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
20 months ago[Release] start impl for next release
Jaeyun Jung [Fri, 15 Sep 2023 09:35:46 +0000 (18:35 +0900)]
[Release] start impl for next release

Update version, start implementation for next release.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
20 months ago[CodeClean] validate str param sandbox/sangjung/tizen_8_backup accepted/tizen/8.0/unified/20231005.095249 accepted/tizen/unified/20230915.160553 tizen_8.0_m2_release
Jaeyun Jung [Fri, 15 Sep 2023 04:55:09 +0000 (13:55 +0900)]
[CodeClean] validate str param

Code clean, macro to check input param.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
20 months ago[AITT] set/get option for AITT
gichan2-jang [Wed, 13 Sep 2023 08:07:09 +0000 (17:07 +0900)]
[AITT] set/get option for AITT

 - Add set/get option of AITT.
 - Add releated unittests.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
create aitt handle with edge handle

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
21 months ago[Release] update version accepted/tizen/unified/20230912.171646
Jaeyun Jung [Tue, 12 Sep 2023 03:39:43 +0000 (12:39 +0900)]
[Release] update version

Update version to 0.2.4, Tizen M2 release.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[Cmd] version info in buffer accepted/tizen/unified/20230907.175335
Jaeyun Jung [Thu, 7 Sep 2023 06:58:41 +0000 (15:58 +0900)]
[Cmd] version info in buffer

Add version info while sending and receiving buffer between edge connection.

TODO:
Now max memories in edge-data is 16. Check the limit when updating this definition.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[MQTT] function to clear retained msg
Jaeyun Jung [Thu, 7 Sep 2023 07:10:27 +0000 (16:10 +0900)]
[MQTT] function to clear retained msg

Add function to clear retained message, and set wait-time interval.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[MQTT] Wait until removing the retained message.
gichan2-jang [Wed, 16 Aug 2023 09:29:30 +0000 (18:29 +0900)]
[MQTT] Wait until removing the retained message.

Change to wait until removing the retained message.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
21 months ago[Util] macro to wait condition accepted/tizen/unified/20230830.170545
Jaeyun Jung [Mon, 21 Aug 2023 08:54:37 +0000 (17:54 +0900)]
[Util] macro to wait condition

Update macro to wait timed-out condition.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[Tag] fix doxygen error
Jaeyun Jung [Mon, 21 Aug 2023 08:14:48 +0000 (17:14 +0900)]
[Tag] fix doxygen error

Code clean, fix indent and doxygen error from CI.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[MQTT] update handle name
Jaeyun Jung [Mon, 21 Aug 2023 08:09:41 +0000 (17:09 +0900)]
[MQTT] update handle name

Code clean, update param name - broker handle.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[Util] function to get version accepted/tizen/unified/20230818.183541
Jaeyun Jung [Mon, 14 Aug 2023 10:46:49 +0000 (19:46 +0900)]
[Util] function to get version

Add util function to get the version of nnstreamer-edge.

TODO:
Add version info while sending or receiving data between the connected devices.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
21 months ago[Data] Add data and info clear function
gichan2-jang [Mon, 14 Aug 2023 07:34:22 +0000 (16:34 +0900)]
[Data] Add data and info clear function

Add function to clear raw data and info of edge data.
This does not release the edge data handle.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
21 months ago[Cmd] use fixed size in cmd struct
Jaeyun Jung [Mon, 14 Aug 2023 10:50:57 +0000 (19:50 +0900)]
[Cmd] use fixed size in cmd struct

Internal fix to set fixed size of edge-cmd struct.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
22 months ago[CodeClean] fix typo
Jaeyun Jung [Fri, 4 Aug 2023 11:34:31 +0000 (20:34 +0900)]
[CodeClean] fix typo

Code clean, fix typo in edge header.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
22 months ago[Build] install path for header
Jaeyun Jung [Fri, 4 Aug 2023 09:44:28 +0000 (18:44 +0900)]
[Build] install path for header

Update install path of nns-edge header.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
22 months ago[README] Modify guidelines for Build and Run test accepted/tizen/unified/20230727.173054
hyunil park [Wed, 12 Jul 2023 05:01:52 +0000 (14:01 +0900)]
[README] Modify guidelines for Build and Run test

When the user builds nnstreamer-edge directly, pkgconfig is installed in the "/" path.
Therefore, -DCMAKE_INSTALL_LIBDIR must be set together.

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
22 months agoAdd connection check API
gichan2-jang [Fri, 14 Jul 2023 00:47:58 +0000 (09:47 +0900)]
Add connection check API

Adds API that checks the connection of given edge handle.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
23 months ago[Test] negative case to set mqtt event accepted/tizen/unified/20230628.023658
Jaeyun Jung [Tue, 13 Jun 2023 09:38:21 +0000 (18:38 +0900)]
[Test] negative case to set mqtt event

Add negative test of set-event in mqtt impl.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[Build] start devel of 0.2.3
Jaeyun Jung [Tue, 13 Jun 2023 08:57:08 +0000 (17:57 +0900)]
[Build] start devel of 0.2.3

Update version, devel v2.3.0 for Tizen 8.0.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years agoRelease of 0.2.2, LTS for TizenRT sandbox/sangjung/tizen_7_backup accepted/tizen/7.0/unified/20230621.051154 accepted/tizen/unified/20230609.163739
gichan2-jang [Fri, 2 Jun 2023 03:48:28 +0000 (12:48 +0900)]
Release of 0.2.2, LTS for TizenRT

This is new LTS release for TizenRT.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
2 years ago[CodeClean] remove unnecessary code
Jaeyun Jung [Tue, 2 May 2023 07:51:28 +0000 (16:51 +0900)]
[CodeClean] remove unnecessary code

Code clean, fix indent and remove unnecessary lines.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[Tizen] Exclude test files for SAM
gichan [Mon, 24 Apr 2023 05:52:39 +0000 (14:52 +0900)]
[Tizen] Exclude test files for SAM

Exclude test files for SAM

Signed-off-by: gichan <gichan2.jang@samsung.com>
2 years ago[Socket] use getaddrinfo to fill socketaddr accepted/tizen/unified/20230424.185346
Jaeyun Jung [Fri, 21 Apr 2023 08:12:58 +0000 (17:12 +0900)]
[Socket] use getaddrinfo to fill socketaddr

Fix svace issue. The function gethostbyname is unsafe function, use getaddrinfo instead.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[Build] Move NNS_EDGE_LIB_NAME variable to root CMakeLists.txt
Seungha Son [Thu, 6 Apr 2023 15:16:31 +0000 (00:16 +0900)]
[Build] Move NNS_EDGE_LIB_NAME variable to root CMakeLists.txt

 Move the NNS_EDGE_LIB_NAME variable from the src/CMakeLists.txt to
 CMakeLists.txt in the root directory.
 Since the nnstreamer-edge value is also referenced in the
 tests/CMakeLists.txt file, change the variable to use in common to
 minimize human errors.

Signed-off-by: Seungha Son <linuxias@gmail.com>
2 years ago[Edge] Remove unnecessary pthread attribute. accepted/tizen/unified/20230413.123719
gichan [Thu, 6 Apr 2023 09:37:39 +0000 (18:37 +0900)]
[Edge] Remove unnecessary pthread attribute.

'JOINABLE' is the default atribute of the pthread, so remove the attribute.
 *note: Some TizenRT board don't support this option.

Signed-off-by: gichan <gichan2.jang@samsung.com>
2 years ago[Edge] Initialize caps
gichan [Tue, 4 Apr 2023 02:02:51 +0000 (11:02 +0900)]
[Edge] Initialize caps

Initialize caps when creating edge handler.

Signed-off-by: gichan <gichan2.jang@samsung.com>
2 years ago[MQTT] Change timeout for getting message from mqtt broker
gichan [Tue, 4 Apr 2023 01:59:07 +0000 (10:59 +0900)]
[MQTT] Change timeout for getting message from mqtt broker

Change timeout for getting message from mqtt broker.
 default timeout: 0 (infinite timeout)

Signed-off-by: gichan <gichan2.jang@samsung.com>
2 years ago[Git] Add ignore list related with CMake
Seungha Son [Sat, 1 Apr 2023 15:32:14 +0000 (00:32 +0900)]
[Git] Add ignore list related with CMake

 This patch is to ignore cmake related files generated after the build.

Signed-off-by: Seungha Son <linuxias@gmail.com>
2 years ago[Test] fix memory leak
Seungha Son [Sat, 1 Apr 2023 15:54:29 +0000 (00:54 +0900)]
[Test] fix memory leak

 When running the test, the memory is not released,
 fx the memory-leak by releasing the memory before the end of the test.

Signed-off-by: Seungha Son <linuxias@gmail.com>
2 years ago[README] Add quick start guide
gichan [Wed, 29 Mar 2023 06:41:13 +0000 (15:41 +0900)]
[README] Add quick start guide

Add quick start guide
 - install nnstreamer-edge via ppa
 - build and run unit tests

Signed-off-by: gichan <gichan2.jang@samsung.com>
2 years ago[CodeClean] fix res leak case accepted/tizen/unified/20230321.123157
Jaeyun Jung [Mon, 20 Mar 2023 09:01:45 +0000 (18:01 +0900)]
[CodeClean] fix res leak case

Fix svace issues, handle res leak.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[CodeClean] handle error case
Jaeyun Jung [Mon, 20 Mar 2023 05:08:14 +0000 (14:08 +0900)]
[CodeClean] handle error case

Handle error case, add line comment and fix build error.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[Api] flag to check state - started
Jaeyun Jung [Mon, 20 Mar 2023 05:00:57 +0000 (14:00 +0900)]
[Api] flag to check state - started

Add internal flag to check edge-handle is started.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[Connection] remove conn-type udp
Jaeyun Jung [Mon, 20 Mar 2023 04:56:53 +0000 (13:56 +0900)]
[Connection] remove conn-type udp

Remove enum - UDP connection, nnstreamer-edge handles TCP connection only.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
2 years ago[MQTT] Support MQTT direct data transmission
gichan [Mon, 13 Mar 2023 07:44:23 +0000 (16:44 +0900)]
[MQTT] Support MQTT direct data transmission

 - Support MQTT direct data transmission.
 - Add unit test for mqtt

Signed-off-by: gichan <gichan2.jang@samsung.com>