Commit Graph

281 Commits

Author SHA1 Message Date
Pablo Garrido b7516a055f
Bump version 2024-10-14 09:47:09 +02:00
Pablo Garrido 8ffecce848
Rename UXR_CONFIG_CAN_TRANSPORT_MTU (#372)
Because CAN-FD MTU is fixed, it's not configurable.
UXR_CONFIG_CAN_TRANSPORT_MTU is a bit misleading. Thus, this commit
rename it to UXR_CAN_TRANSPORT_MTU.

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Co-authored-by: Yasushi SHOJI <yashi@spacecubics.com>
2023-09-27 10:45:37 +02:00
Pablo Garrido c230441fc9
Fix domain id argument in create_participant API (#348) 2023-03-29 10:43:20 +02:00
Antonio Cuadros c28bf96f6e
Add missing doxygen parameter (#353)
Signed-off-by: acuadros95 <acuadros1995@gmail.com>
2023-03-07 14:20:18 +01:00
jseldent e3f6439013
Add a nopoll version of the POSIX TCP transport profile (#318)
This profile is similar to the POSIX UDP nopoll transport profile. It allows TCP
to be used with LwIP, without FreeRTOS+TCP.

Signed-off-by: J. S. Seldenthuis <jseldenthuis@lely.com>
2022-04-07 14:51:58 +02:00
Pablo Garrido 40194ae884
Add version check
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2022-03-29 07:47:45 +02:00
Pablo Garrido 12bed7628f
Implement hard liveliness check (#316)
* Hard liveliness check

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

Update

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Revert "Hard liveliness check"

This reverts commit 7d94502933.

* Update

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Uncrustify

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Review comments

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2022-03-25 08:33:06 +01:00
Pablo Garrido 160fc8529c
Implement GET_STATUS implementation result (#312)
* Implement GET_STATUS implementation result

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Apply suggestions from code review

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>

* Revert "Apply suggestions from code review"

This reverts commit e63497987f.

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
2022-03-09 15:14:47 +01:00
Antonio Cuadros de48438f36
Add payload lenght on CAN messages (#298)
* Add payload lenght on message

* Fix warning

* Fix CAN DLC

* Uncrustify

* Fix write/recv size

* Fix frame used

* Separate last fragment on CREATE messages

* Update test

* Initialize test values

* Revert changes

* Missing revert
2021-12-14 09:19:02 +01:00
Patrick Roncagliolo 7947f5bd06
RTEMS Serial Transport support (#297)
* RTEMS Serial support

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Fix header guards

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
2021-12-10 11:36:39 +01:00
Pablo Garrido 58c00cc192
Update Bin entity creation API (#294)
* Update Bin entity creation API

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Update

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Apply suggestions from code review

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
2021-11-30 15:09:28 +01:00
Pablo Garrido 899a9019a2
Fix typo in doxygen (#292)
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2021-11-26 08:02:08 +01:00
Pablo Garrido 5df12014a3
Fix in session ping (#289)
* Fix race condition

* Rename arguments existing API

* Added new API

* Add examples

* Uncrustify

* Add attemps

* Refactor order

* Fix unlock

* Fix warning

* Fix stream selection

* Fix windows warning

* Update

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Fix memcheck

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Fix memcheck

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Uncrustify

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2021-11-25 15:31:03 +01:00
Patrick Roncagliolo 86a5dda5d4
Add RTEMS TCP/UDP Support (#283)
* Fixes memory leak due to not deleting freertos socket set (#270)

Signed-off-by: Bart Jimenez Vera <bjv@capra.ooo>
Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* RTEMS support

Add UCLIENT_PLATFORM_RTEMS_BSD_NET platform flag to use TCP/UDP implementation
with only POSIX API and no poll() usage, to be able to compile against RTEMS 5.1 RTOS.

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Add RTEMS discovery support

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Fix FDSET issue

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Cleanup

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Uncrustify

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Update src/c/profile/transport/ip/tcp/tcp_transport_rtems_bsd_net.c

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Update CMakeLists.txt

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

* Update udp_transport_datagram_rtems_bsd_net.c

Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>

Co-authored-by: bjv-capra <80034183+bjv-capra@users.noreply.github.com>
Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
2021-11-15 10:54:19 +01:00
Antonio Cuadros 8c0a608cd8
Add CAN client (#278)
* Add CAN client

* Uncrustify

* Add CAN filter for own messages

* Update examples/PublishHelloWorldCAN/CMakeLists.txt

* Update examples/PublishHelloWorldCAN/README.md

* Delete extra spaces
2021-11-15 10:05:54 +01:00
Pablo Garrido 81fccf9f22
Add binary history depth (#266)
* Add binary history depth

* Update example

* Update tests

* Fix
2021-09-28 14:35:52 +02:00
Pablo Garrido 4ccec07f40
Add argument to continuous fragment mode callback (#260)
* Add argument to continuous fragment mode callback

* Update example

* Fix

* Fix

* Uncrustify
2021-07-26 11:00:31 +02:00
G.A. vd. Hoorn 40e1886257
session: streams are flushed (#255)
Not 'flashed'.

Signed-off-by: gavanderhoorn <g.a.vanderhoorn@tudelft.nl>
2021-07-05 14:07:34 +02:00
G.A. vd. Hoorn 148a3db102
session: don't shadow global time(..). Fix #253 (#254)
Signed-off-by: gavanderhoorn <g.a.vanderhoorn@tudelft.nl>
2021-07-05 14:06:49 +02:00
Antonio Cuadros 4219a60175
Conditional framing functions with cmake (#248)
* Conditional framing functions with cmake

* Uncrustify

* Apply suggestions from code review

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>

* Remove ifdef indexation

* Add return false on framing not configured

* Apply suggestions from code review

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2021-06-03 09:07:48 +02:00
Pablo Garrido 4e132687b8
Pedatic warnings (#247)
* Fix minor warnings in -wextra mode

* Update

* Uncrusti
2021-05-27 15:16:30 +02:00
Antonio Cuadros db59cbc711
Fix integration test with multithreading (#238)
* Fix integration test with multithread ON

* Uncrustify

* Add mising mutex unlock

* Revert "Add mising mutex unlock"

This reverts commit 0bb3ff9b4d5c7c0328a691bb81cab4e56ca14465.

* Test fragmented messages on multithread

* Add prefix option to output lib

* Conditional multithread tests

* Uncrustify

* Add lock init to stream storage mocks

* Fix test warning

* Remove NULL check on mutex

* Add stream mutex check

* Uncrustify

* Change tests client lib name

* Revert "Change tests client lib name"

This reverts commit 68dc6716786f6b53d18120ce09454b2aa0425333.
2021-05-27 07:43:28 +02:00
Pablo Garrido 8b86e86848
Include off-standard 64 kB limit tweak (#244)
* Initial


Update


Update


Uncrustify


r

* Fix

* Warning

* Uncrustify
2021-05-19 16:25:47 +02:00
Pablo Garrido c0afa1b92e
Add Binary participant name (#246) 2021-05-19 09:52:23 +02:00
Pablo Garrido 44c57929fd
Cleanup multithread (#245) 2021-05-18 16:14:19 +02:00
Pablo Garrido 984d0b9f87
Durability QoS (#241)
* Durability QoS

* Uncrustified

* Remove default
2021-05-17 11:57:00 +02:00
Pablo Garrido 9ebfa607f2
Remove dead code (#237) 2021-05-07 10:31:42 +02:00
bjv-capra 9d8dd29261
Use correct headers for FreeRTOS (#236)
Signed-off-by: Bart Jimenez Vera <bjv@capra.ooo>
2021-05-07 09:35:42 +02:00
Antonio Cuadros 9aea2e2581
Make transport thread safe (#234)
* Make transport thread safe

* Add include

* Move lock to transport read/write functions

* Fix warnings
2021-05-07 07:37:18 +02:00
Pablo Garrido 527b4dd2f0
Multithread and shared memory (#216)
* Initial


Update


Revert "Initial"

This reverts commit bbef97f3599786be2febc15f8e8b474a4006234d.

Initial


Update


Update


Initial


Update


Revert example


Uncrustify fix


Add include


Fix header


Fix headers


Fix


Uncrus


Update to const char


Update


Update


Revert "Update"

This reverts commit 3a05e402e5.

Update


Multithread initial


Interprocess initial


Matching initial


Fix interprocess indexing


Update multithread public API


Initial DLL


Double linked list for ucdrBuffers


renaming


Update


Update


Indent


Deinit


Add shared memory tests (#221)

* Initial

* Update

* Update

* Update

* Update

* Fix leak
Update on request reply shared mem

Initial changes req/res


Update


Initial simple API


Working


Renaming


Fix example pthread header

Create shared memory profile folder


Fix warning


Fix warnings


Fix warnings


Multithread test


Update


Add tests


Style


Uncrustify


Uncrustify examples


Fix


Update


Fix


Add test multithread request reply

Update SharedMemory.cpp

Fix build warning
Include requester info on reply SampleIdentity info

Uncrustify

Fix warnings

Add request reply fragmentation test

Update


Update shared memory engine to bin


Update


Uncrustify


Fix

* Remove examples

* Fix naming

* Uncrus
2021-04-30 12:03:19 +02:00
Pablo Garrido 206e7bf1b3
Add Binary entity creation mode (#224)
* Initial


Update


Revert "Initial"

This reverts commit bbef97f3599786be2febc15f8e8b474a4006234d.

Initial


Update


Update


Initial

* Update

* Revert example

* Uncrustify fix

* Add include

* Fix header

* Fix headers

* Fix

* Uncrus

* Update to const char


Update

* Update

* Revert "Update"

This reverts commit 3a05e402e5.

* Update

* Apply suggestions from code review

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>

* Update include/uxr/client/core/session/create_entities_bin.h

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>

Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
2021-04-30 10:53:13 +02:00
Antonio Cuadros 0591d3bca7
Improve doxygen documentation (#229)
* Improve doxygen documentation

* Uncrustify

* Fix path

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2021-04-29 08:08:36 +02:00
Antonio Cuadros 8420d72d52
Add doxygen build to cmake (#226)
* Add doxygen build to cmake

* Move cmake option

* Fix domain label

* Uncrustify

* Fix md ref on doxygen

* Change .md ref to links

* Include mainpage file

* Minor update

* Delete .gitignore

* Apply suggestions from code review

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2021-04-28 13:53:56 +02:00
Pablo Garrido 5124991014
Update Quality Level 1 (#210)
* Initial

* Update

* Update

* Uncrustify code

Using https://github.com/eProsima/cpp-style

* Update quality

* Update

* Update

* Apply suggestions from code review

Co-authored-by: FranFin <58737168+FranFin@users.noreply.github.com>

Co-authored-by: FranFin <58737168+FranFin@users.noreply.github.com>
2021-03-23 12:16:24 +01:00
Pablo Garrido 023b640296
Fix performance tests (#189)
* Fix performance tests


Fix nightly performance tests


Update

* Update

* Add custom
2021-03-09 16:41:28 +01:00
Pablo Garrido 6054d81812
Minor API update (#205)
* Add uxr_buffer_topic

* Minor API changes

* Renaming

* Fix docs
2021-03-02 15:51:02 +01:00
FranFin eb6fc4653f
Refactor custom transport callbacks signature. (#202)
* Refactor custom transport callbacks signature.

* Fix names

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2021-02-25 15:03:48 +01:00
Pablo Garrido 545e0da826
Fix Custom MTU (#200)
* Fix Custom MTU

* Update
2021-02-24 15:07:05 +01:00
Pablo Garrido 291d939c9e
Add best effort examples and remove client.config references (#197)
* Add best effort publisher example

* Add Best effort subscriber

* Add examples to CMake

* Remove references to client.config

* Fix

* Update examples/PublishHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/PublishHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/SubscribeHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Auto stash before merge of "feature/add_be_examples" and "origin/feature/add_be_examples"

* Address changes

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>
2021-02-23 08:29:13 +01:00
Jose Antonio Moral 0d47a98ae9
Rename some "serial" to "framing" in framing stream declaration files (#193) 2021-02-18 07:49:08 +01:00
Pablo Garrido 091934e028
Update wait_session_status wait timing to linear approach (#192)
* Update wait_session_status wait timing to linear approach

* Update
2021-02-16 16:12:38 +01:00
Pablo Garrido bfb8cf7440
Fix session retries type (#188)
* Fix session retries type

* update
2021-02-12 12:14:20 +01:00
Pablo Garrido 22bff80e0f
Refactor external transports (#179)
* Refactor stream framing code

* Added custom transports API

* Renaming serial_io to framing_io

* Refactor

* Move framing to runtime


Update custom callbacks API


Fix


Minor fixes

* Updates

* Add test

* Update test

* Fix Ralph issue

* Remove old external transport approach

* Revert "Remove old external transport approach"

This reverts commit dbd94b632b2fcd4325868d980339b0940b75f33e.

* Add deprecation message

* Fix leak in test

Fix leak in test


Fix


Fix test

* Fix windows test

* Minor fix

* Update

* Remove dead code

* Remove old transports approach

* Address comments

* Update test/transport/custom_comm/CustomComm.cpp

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update test/transport/custom_comm/CustomComm.hpp

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update test/transport/custom_comm/CustomComm.hpp

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update test/transport/custom_comm/CustomComm.hpp

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Address comments

* Address comments

* Address comments

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>
2021-02-09 11:28:04 +01:00
Pablo Garrido 84bad2defe
Cleanup code regarding Windows serial transport (#184) 2021-02-08 16:42:39 +01:00
Pablo Garrido 518b56fa40
Refactor platforms usage (#183)
* Initial

* Fix windows

* Update
2021-02-08 09:14:45 +01:00
Pablo Garrido cac9791995
Zephyr time support (#182) 2021-02-05 11:14:54 +01:00
Pablo Garrido 3286ebe780
Added continuous fragment mode (#177)
* Initial

* Working state

* Second approach working state

* Cleaning

* Fix warnings

* Updates

* Fix warnings

* Fix

* Fix warnings

* Check errors

* Updates

* Fix

* Rename function

* Add tests

* Update CMakeLists.txt

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/ContinousFragment/CMakeLists.txt

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/ContinousFragment/main.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update include/uxr/client/core/session/write_access.h

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update include/uxr/client/core/session/write_access.h

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/ContinousFragment/main.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update src/c/core/session/write_access.c

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Fix indentation

* Rename folder

* Fix typo

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>
2021-02-02 11:52:00 +01:00
Jose Antonio Moral 66a69d4e67
Implement ping functionality to check agent's availability (#180)
* Ping functionality: add first impl and examples

* Improve docs

* Serial transport is not available on Windows systems

* Fix Windows warning C4028
2021-02-01 16:16:43 +01:00
Pablo Garrido 356a1e6d61
Add init session function with retries (#166) 2020-09-30 11:25:27 +02:00
Pablo Garrido 7523126143
Fix Discovery example build (#165)
* Fix Discovery example build

* Updates
2020-09-25 07:17:15 +02:00