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

[error] set_option: Can't assign requested address in QNX #1

Open
athul7pk opened this issue Sep 19, 2018 · 9 comments
Open

[error] set_option: Can't assign requested address in QNX #1

athul7pk opened this issue Sep 19, 2018 · 9 comments

Comments

@athul7pk
Copy link

athul7pk commented Sep 19, 2018

Hi ,
I am getting error set_option: Can't assign requested address
Could you please helpme to solve this (applied given patch in 2.5.2 vsomeip)?

Thanks in Advance

SomeIP!!!
config= /some/v.json
2018-09-19 11:06:57.472568 [info] Default configuration module loaded.
2018-09-19 11:06:57.477568 [info] Initializing vsomeip application "World".
2018-09-19 11:06:57.480568 [info] SOME/IP client identifier configured. Using 1212 (was: 1212)
2018-09-19 11:06:57.481568 [info] Instantiating routing manager [Host].
2018-09-19 11:06:57.486568 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-09-19 11:06:57.491568 [info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
2018-09-19 11:06:57.493568 [info] Service Discovery enabled. Trying to load module.
2018-09-19 11:06:57.522568 [info] Service Discovery module loaded.
2018-09-19 11:06:57.527567 [info] Application(World, 1212) is initialized (11, 100).
2018-09-19 11:06:57.528567 [info] OFFER(1212): [1234.5678:0.0]
2018-09-19 11:06:57.538567 [info] Starting vsomeip application "World" using 2 threads
2018-09-19 11:06:57.592567 [error] set_option: Can't assign requested address
2018-09-19 11:06:57.595567 [info] Watchdog is disabled!
2018-09-19 11:06:57.597567 [info] vSomeIP 2.5.2
2018-09-19 11:07:07.599437 [info] vSomeIP 2.5.2
2018-09-19 11:07:17.601306 [info] vSomeIP 2.5.2

@athul7pk athul7pk changed the title In QNX Always loading Default configuration & set_option thowing "Can't assign requested address" Not Showing Parsing configuration file in QNX Sep 19, 2018
@athul7pk athul7pk changed the title Not Showing Parsing configuration file in QNX [error] set_option: Can't assign requested address in QNX Sep 19, 2018
@bonewell
Copy link
Owner

Hi!
Could you provide more details about what you run and which step fails?

@athul7pk
Copy link
Author

This is the service program I am using , Now I am not getting the error (with 2.5.2 )but the muliticast messages are not getting in the client side (verified using wireshark) but same program is running with a linux vm.
json.txt
service.cpp.txt
2018-09-24 12:41:22.679565 [info] Default configuration module loaded.
2018-09-24 12:41:22.679565 [info] Initializing vsomeip application "World".
2018-09-24 12:41:22.679565 [info] SOME/IP client identifier configured. Using 1212 (was: 1212)
2018-09-24 12:41:22.679565 [info] Instantiating routing manager [Host].
2018-09-24 12:41:22.681565 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-09-24 12:41:22.682565 [info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
2018-09-24 12:41:22.682565 [info] Service Discovery enabled. Trying to load module.
2018-09-24 12:41:22.685565 [info] Service Discovery module loaded.
2018-09-24 12:41:22.685565 [info] Application(World, 1212) is initialized (11, 100).
2018-09-24 12:41:22.685565 [info] OFFER(1212): [1234.5678:0.0]
2018-09-24 12:41:22.686565 [info] Starting vsomeip application "World" using 2 threads
2018-09-24 12:41:22.686565 [info] Watchdog is disabled!
2018-09-24 12:41:22.688565 [info] vSomeIP 2.5.2
2018-09-24 12:41:32.690435 [info] vSomeIP 2.5.2

@bonewell
Copy link
Owner

bonewell commented Sep 24, 2018

Have you added route on your both computers?
For example for QNX:
route add -net 224.0.0.0/4 default
224.0.0.0/4 - this is default address for service discovery.

@athul7pk
Copy link
Author

athul7pk commented Sep 24, 2018

Hi bonewell ,
Thanks for your reply ,

While taking tcpdump from the QNX , I was even unable to see any mcast packets ,
I will try to add some print statements in the implementation , and let you know the results,
Thank you bonewell ,
Yeah I have tried to add routes as per your suggestion,
I am using qnx7 hope you verified already

@robinchung
Copy link

Hi bonewell ,I met compile issue when i ported capicxx-someip-runtime (genivi) to qnx platform,"capicxx-someip-runtime-3.2.0/src/CommonAPI/SomeIP/Watch.cpp:16:25: fatal error: sys/eventfd.h: No such file or directory" , and i know that eventfd is a linux specific, could you plz help me to fix this issue (i think you have already run it successfully on qnx platform before).Thanks in advance.

@bonewell
Copy link
Owner

@robinchung
Hi! Unfortunately, I've run only 3.1.10 version. Looks like you can use ionotify() from QNX but it will be not easy. I'm not an expert in QNX to fix this fast.

@robinchung
Copy link

@bonewell thanks for your replay,is it that your have run it successfully on qnx? if so,could your plz post the watch.cpp and watch.h to me for reference, I will be so appriciate for that.

@bonewell
Copy link
Owner

bonewell commented Dec 1, 2020

@robinchung have you built capicxx-core-runtime 3.2.0 successfully? I have some issues.

@akashbwj
Copy link

akashbwj commented Feb 7, 2024

Hi @robinchung I am facing the same error with eventfd. I am trying to compile on QNX. Were you successful in your compilation?

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

4 participants