Skip to contentSkip to conversation

open XDDP from nrt thread

DISCUSSION alessio margan 2 participants 2 messages Oct 2, 2019

lore
Share & tools
lore
#0 lore raw

Hi all,

it seems that at some point ( following branch next up to rc1) something is changed regarding XDDP .

I've got a process that spawn 2 rt-thread and a nrt-thread, one of the 2rt  produce data that the nrt consume using an XDDP

Since 4.14.89-xeno-ipipe-stableVx everything works, now on rc1 I can not open the pipes as usual.

There is something I have missed ?

These are the pipes

ls -la /proc/xenomai/registry/rtipc/xddp/
total 0
dr-xr-xr-x 2 root root 0 ott  2 09:06 .
dr-xr-xr-x 3 root root 0 ott  2 09:06 ..
lrwxrwxrwx 1 root root 9 ott  2 09:06 debugOut -> /dev/rtp3 lrwxrwxrwx 1 root root 9 ott  2 09:06 emergency -> /dev/rtp0 lrwxrwxrwx 1 root root 9 ott  2 09:06 NoNe@Motor_id_1 -> /dev/rtp4 lrwxrwxrwx 1 root root 9 ott  2 09:06 repl_in -> /dev/rtp1 lrwxrwxrwx 1 root root 9 ott  2 09:06 repl_out -> /dev/rtp2

TIA

Alessio

Signature · 26 lines
ISTITUTO ITALIANO DI TECNOLOGIA

Alessio Margan
Chief Technician
Advanced Robotics Department

[email protected]
Via Morego 30, 16163 Genova
Tel. +39 010 71781-754

www.iit.it

Legal Disclaimer
This electronic message contains information that is confidential. The information is intended for the use of the addressee only.
If you are not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the contents of this message is prohibited and may be unlawful.
We have taken every reasonable precaution to ensure that any kind of attachment to this e-mail has been swept for viruses.
However, we cannot accept liability for any damage sustained as a result of software viruses
and would advise you to carry out your own virus checks before opening any attachment.
Avvertenza legale
Questo messaggio Email contiene informazioni confidenziali riservate ai soli destinatari.
Qualora  veniate in possesso di tali informazioni senza essere definito come destinatario vi reghiamo di leggere le seguenti note.
Ogni apertura, copia, distribuzione del contenuto del messaggio e dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare che gli allegati non contengano virus.
Comunque non assumeremo alcuna responsabilità per ogni eventuale danno causato da virus software e simili
in quanto è onere del destinatario verificarne l’assenza in ogni allegato attuando propri indipendenti controlli.
#1 lore raw
Quoted 7 lines · alessio margan via Xenomai

Hi all,

it seems that at some point ( following branch next up to rc1) something is changed regarding XDDP .

I've got a process that spawn 2 rt-thread and a nrt-thread, one of the 2rt produce data that the nrt consume using an XDDP

Since 4.14.89-xeno-ipipe-stableVx everything works, now on rc1 I can not open the pipes as usual.

These are two things: the kernel/ipipe version and the Xenomai version. Can you narrow this down a bit? Does it work for you with 3.0.9 and/or stable/3.0.x? Was there an older revision in master (3.1.x) that worked?

Alternatively, please provide a test case that we can try. Might be based on testsuite/smokey/xddp/xddp.c, but maybe already looking at that explains the problem.

Jan

Quoted 19 lines

There is something I have missed ?

These are the pipes

ls -la /proc/xenomai/registry/rtipc/xddp/
total 0
dr-xr-xr-x 2 root root 0 ott  2 09:06 .
dr-xr-xr-x 3 root root 0 ott  2 09:06 ..
lrwxrwxrwx 1 root root 9 ott  2 09:06 debugOut -> /dev/rtp3 lrwxrwxrwx 1 root root 9 ott  2 09:06 emergency -> /dev/rtp0 lrwxrwxrwx 1 root root 9 ott  2 09:06 NoNe@Motor_id_1 -> /dev/rtp4 lrwxrwxrwx 1 root root 9 ott  2 09:06 repl_in -> /dev/rtp1 lrwxrwxrwx 1 root root 9 ott  2 09:06 repl_out -> /dev/rtp2

TIA

Alessio

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux