Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream as module to Zephyr RTOS #634

Open
sutyum opened this issue Sep 10, 2024 · 2 comments
Open

Upstream as module to Zephyr RTOS #634

sutyum opened this issue Sep 10, 2024 · 2 comments

Comments

@sutyum
Copy link

sutyum commented Sep 10, 2024

Describe the feature

Is your feature request related to a problem?
I was not able to figure out how to use Zenoh pico in a ZephyrRTOS based firmware application. Supporting Zephyr would allow it to be used in a wide variety of boards and controllers.

Describe the solution you'd like

It seems zenoh-pico already supports various features on the ZephyrRTOS platform. Adding zenoh-pico as a module to zephyr would allow it to be built as a part of a zephyr app just by setting the relevant kconfig variables.

Describe alternatives you've considered

A blog/tutorial/example around this could be an alternative. Currently the code in the zephyr directory in the examples directory of this repo does not have a complete zephyr example.

@jean-roland
Copy link
Contributor

jean-roland commented Sep 10, 2024

Hello @sutyum. To test zephyr integration internally, we use PlatformIo with a .ini file as simple as:

[env:nucleo_f767zi]
platform = ststm32
board = nucleo_f767zi
framework = zephyr
lib_deps = https://github.com/eclipse-zenoh/zenoh-pico#main

Now some users opened a PR to more directly integrate zenoh-pico with Zephyr/west module (#395) but right now we don't have any resources to give you on how to do such integration.

@WilliamGFish
Copy link

Hi, I've been looking at zenoh in Zephyr over the last couple of weeks and it could be very straight forward with a few exceptions.

This pico code base since launching v1.0 it has some issues that are being ironed out but generally pulling the library in and compiling fairly painless.

I have found that there appears to be an inability to hardware TCP/IP (Offloaded networking) as the zenoh platform (I assume is in essence) is integrated directly into the software IP stack. I say this based on the code, which I guess is opening a session :
_z_session_rc_t zsrc = _z_session_rc_new(s); api.c

Running the publish example I always get

getaddrinfo error EAI_MEMORY

I am happy to help get things working.
Billy..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants