How to Use FIFO(IPC meachanism) on QNX
Closed this issue · 8 comments
Hello Team,
I want to install dlt-daemon with FIFO on QNX, so how to do it? which flags has to set in cmakelists while cross compiling dlt on linux? what permissions are needed for FIFO file because currently after running dlt-daemon binary on QNX then I faced this issue:
DLT1351740WARNING FIFO user /var/dlt cannot be opened (Operation not permitted)!1351740
DLTERROR CRITICAL ~Initialization of local connections failed!Unable to initialize fifo.1351740
DLT
How to resolve this?
Hello @Vishalwagh05
I afraid this issue from yours is actually out of our scope.
There are some reasons:
- QNX is now provided close-source.
- Depending on your project, target, chipset, dir that allows you to open FIFO socket there!?
- Specific permission provided to you, obviously there is a message (not permitted)
Regards
Okay thank you @minminlittleshrimp
@minminlittleshrimp Actually issue is with security policies of QNX so after changing those policies now I am able to run dlt-daemon on QNX...
but now when I just running simple DLT_Daemon code on QNX then I faced this issue:
[ 1196.742587]DLT1294395~NOTICE ~[dlt_free] data is still readable... [14] bytes read
so @minminlittleshrimp you have any idea about it then please suggest me....
Hello @Vishalwagh05
I believe this is not related to FIFO QNX.
It points out there are readable bytes when trying to free using UNIX_SOCKET:
Line 1095 in f74e548
Hello @minminlittleshrimp, Yes it is not related to FIFO QNX.
I am just running simple dlt-daemon code on QNX, where I faced this issue.
Any solution for that?
Hello,
it is not clear to me about dlt code, is it an App you build that using libdlt?
Hello @minminlittleshrimp , Yes I build this with libdlt.
I do not think this is an issue, since the setting up and testing on our side.
I would suggest a briefly reading through developer's doc: https://github.com/COVESA/dlt-daemon/blob/master/doc/dlt_for_developers.md
There are things to avoid when you are trying to perform a logging on QNX with DLT.
Regards