Skip to contentSkip to conversation

two questions about using rtdm

Xenomai-help Landau, Bracha 3 participants 7 messages Jul 31, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

-----Original Message-----
From: [email protected]
[mailto:[email protected] Behalf Of
[email protected]
Sent: Monday, July 31, 2006 1:00 PM
To: [email protected]
Subject: Xenomai-help Digest, Vol 10, Issue 48

Send Xenomai-help mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.gna.org/listinfo/xenomai-help
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of Xenomai-help digest..."

Today's Topics:

1. Re: Beginner's question / testsuite / latency (Jan Kiszka)
2. Re: Beginner's question / testsuite / latency (Philippe Gerum)

----------------------------------------------------------------------

Message: 1
Date: Mon, 31 Jul 2006 00:00:44 +0200
From: Jan Kiszka <[email protected]>
Subject: Re: [Xenomai-help] Beginner's question / testsuite / latency
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-15"

Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka
Quoted 8 lines
Quoted 8 lines
:|func        6   xnintr_clock_handler (__ipipe_dispatch_wired)
:|func        6   xnintr_irq_handler (xnintr_clock_handler)
:|func        7   xnpod_announce_tick (xnintr_irq_handler)
:|func        8+  xntimer_do_tick_aperiodic (xnpod_announce_tick)
:|func        9   xnthread_periodic_handler (xntimer_do_tick_aperiodic)
:|func       10   xnpod_resume_thread (xnthread_periodic_handler)
:|[21559]    11+  xnpod_resume_thread (xnthread_periodic_handler)
:|func       13+  xnthread_periodic_handler (xntimer_do_tick_aperiodic)
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

...

Quoted 1 line
Quoted 1 line

:|func 363+ xnthread_periodic_handler (xntimer_do_tick_aperiodic)

That are a lot of overruns. Haven't counted, but it should be one xnthread_periodic_handler per missed 100 us period (20000 / 100 = 200!). [BTW, I think we should handle even this failure scenario without looping.

Two questions regarding rtdm:

1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...).
I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. Are there any examples of how to use the r/t sockets?

2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this?

Bracha
***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message.
***********************************************************************************

#2 lore raw
Quoted 5 lines · Bracha

-----Original Message-----
From: [email protected]
[mailto:[email protected] Behalf Of
[email protected]

<snip>

Could you please avoid re-using posted mails for new threads? Thanks.

Quoted 5 lines

Two questions regarding rtdm:

1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...).
I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. Are there any examples of how to use the r/t sockets?

RTnet for real-time networking over Ethernet, Firewire (eth1394 together with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to
come: RT-CAN via socket interface (patch is working, Wolfgang is currently cleaning up). Ah, and the special-purpose protocol driver TiMS (Tiny Messaging Service) that comes with RACK (developer.berlios.de/projects/rack).

If you are missing something, feel free to write and register your own RTDM protocol driver. ;)

Quoted 2 lines

2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this?

That's one for the PPC experts, but I bet the UART is not compatible with the 16550A controller, is it?

Jan

#3 lore raw
Quoted 23 lines · Jan Kiszka
Quoted 4 lines · Bracha

-----Original Message-----
From: [email protected]
[mailto:[email protected] Behalf Of
[email protected]

<snip>

Could you please avoid re-using posted mails for new threads? Thanks.

Quoted 5 lines

Two questions regarding rtdm:

1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...).
I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. Are there any examples of how to use the r/t sockets?

RTnet for real-time networking over Ethernet, Firewire (eth1394 together with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to
come: RT-CAN via socket interface (patch is working, Wolfgang is currently cleaning up). Ah, and the special-purpose protocol driver TiMS (Tiny Messaging Service) that comes with RACK (developer.berlios.de/projects/rack).

Quoted 7 lines

If you are missing something, feel free to write and register your own RTDM protocol driver. ;)

Quoted 1 line

2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this?

That's one for the PPC experts, but I bet the UART is not compatible with the 16550A controller, is it?

It is _not_ compatible and it requires porting to RTDM.

Wolfgang.

#4 lore raw

I downloaded RTNet and tried to compile it for mpc8260 fcc enet.
I use linux kernel 2.6.14.
The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists.

-----Original Message-----
From: Wolfgang Grandegger [mailto:[email protected]]
Sent: Monday, July 31, 2006 3:03 PM
To: Jan Kiszka
Cc: Landau, Bracha; [email protected]
Subject: Re: [Xenomai-help] two questions about using rtdm

Quoted 23 lines · Jan Kiszka
Quoted 4 lines · Bracha

-----Original Message-----
From: [email protected]
[mailto:[email protected] Behalf Of
[email protected]

<snip>

Could you please avoid re-using posted mails for new threads? Thanks.

Quoted 5 lines

Two questions regarding rtdm:

1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...).
I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. Are there any examples of how to use the r/t sockets?

RTnet for real-time networking over Ethernet, Firewire (eth1394 together with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to
come: RT-CAN via socket interface (patch is working, Wolfgang is currently cleaning up). Ah, and the special-purpose protocol driver TiMS (Tiny Messaging Service) that comes with RACK (developer.berlios.de/projects/rack).

Quoted 7 lines

If you are missing something, feel free to write and register your own RTDM protocol driver. ;)

Quoted 1 line

2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this?

That's one for the PPC experts, but I bet the UART is not compatible with the 16550A controller, is it?

It is _not_ compatible and it requires porting to RTDM.

Wolfgang.

***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message.
***********************************************************************************

#5 lore raw
Quoted 4 lines · Bracha

I downloaded RTNet and tried to compile it for mpc8260 fcc enet.
I use linux kernel 2.6.14.
The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists.

I think to remember Wolfgang said that 2.6 is not yet supposed to work with this particular driver. So I better redirect this question for more details.

But before digging to deep into this: What are you planning to do with RTnet? My point is if you actually need deterministic network access or if you may live with relaxed services via normal Linux. It's not that RTnet is bad :), but it might not be required here.

Jan

#6 lore raw

I don't need deterministic network access, but I was hoping it would improve performance.

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, July 31, 2006 5:22 PM
To: Landau, Bracha
Cc: Wolfgang Grandegger; [email protected]
Subject: Re: [Xenomai-help] two questions about using rtdm

Quoted 4 lines · Bracha

I downloaded RTNet and tried to compile it for mpc8260 fcc enet.
I use linux kernel 2.6.14.
The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists.

I think to remember Wolfgang said that 2.6 is not yet supposed to work with this particular driver. So I better redirect this question for more details.

But before digging to deep into this: What are you planning to do with RTnet? My point is if you actually need deterministic network access or if you may live with relaxed services via normal Linux. It's not that RTnet is bad :), but it might not be required here.

Jan

***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message.
***********************************************************************************

#7 lore raw
Quoted 1 line · Bracha

I don't need deterministic network access, but I was hoping it would improve performance.

RTnet is designed to provide services deterministically, which doesn't necessarily means with improved performance (nevertheless, you /can/ gain performance this way - for supported protocols).

But your problem can be that, by pulling networking services into the real-time domain of Xenomai, you affect the whole RT-system. If incoming traffic (e.g. broadcasts) is not strictly bounded and predictable, it can cause serious harm due to the CPU time spent on dropping or forwarding it. Just be warned, that RTnet is not a simple "performance booster".

Jan