Using xenomai with standard ethernet driver
Hi,
i want to use xenomai for sending standard tcp/ip packets.
Is it possible to rewrite the ethernet driver for xenomai without using rtnet ? Or if i use rtnet is there a way to send standard tcp packet instead rtnet packets ?
Thanks for all.
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+
Quoted 7 lines · Roberto Bielli
Hi,
i want to use xenomai for sending standard tcp/ip packets. Is it possible to rewrite the ethernet driver for xenomai without using rtnet ?
Or if i use rtnet is there a way to send standard tcp packet instead rtnet packets ?
Is the TCP/IP communication itself part of your time-critical path, or could it run with lower priority as well?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
I explain better the problem.
I want to use ethernet driver raw without using all the abstract layer (tcp, socket etc....) and my xenomai application must link to the raw driver without enter in secondary mode.
Have i change the driver interface with xenomai calls (rtdm_......) or is there another chance ?
Thanks a lot for your response.
Il 22/03/2012 16:30, Jan Kiszka ha scritto:
Quoted 13 lines · Roberto Bielli
Quoted 7 lines
Hi,
i want to use xenomai for sending standard tcp/ip packets. Is it possible to rewrite the ethernet driver for xenomai without using rtnet ?
Or if i use rtnet is there a way to send standard tcp packet instead rtnet packets ?Is the TCP/IP communication itself part of your time-critical path, or could it run with lower priority as well?
Jan
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+
Quoted 9 lines · Roberto Bielli
I explain better the problem.
I want to use ethernet driver raw without using all the abstract layer (tcp, socket etc....)
and my xenomai application must link to the raw driver without enter in secondary mode.Have i change the driver interface with xenomai calls (
rtdm_......) or is there another chance ?
Did you check if RTnet already has support for your NIC? Then you are fine with a stack of rtnet.ko, rtpacket.ko, and <your-nic>.ko.
If not, there are two options
- add an RTnet driver for you hardware
- implement some home-brewed stack
The second option may only look different on first sight. But, specifically if your application is not kernel-hosted but a proper userspace app, RTnet provides quite a few useful building blocks for your scenario.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Hi Jan,
i want to send and receive custom raw packets over ethernet. is it possibile with RTnet or it sends only rtnet packets ?
Thanks for your response.
Il 23/03/2012 10:06, Jan Kiszka ha scritto:
Quoted 24 lines · Roberto Bielli
Quoted 9 lines
I explain better the problem.
I want to use ethernet driver raw without using all the abstract layer (tcp, socket etc....)
and my xenomai application must link to the raw driver without enter in secondary mode.Have i change the driver interface with xenomai calls (
rtdm_......) or is there another chance ?Did you check if RTnet already has support for your NIC? Then you are fine with a stack of rtnet.ko, rtpacket.ko, and<your-nic>.ko.
If not, there are two options
- add an RTnet driver for you hardware
- implement some home-brewed stackThe second option may only look different on first sight. But, specifically if your application is not kernel-hosted but a proper userspace app, RTnet provides quite a few useful building blocks for your scenario.
Jan
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+
Quoted 6 lines · Roberto Bielli
Hi Jan,
i want to send and receive custom raw packets over ethernet. is it possibile with RTnet or it sends only rtnet packets ?
Thanks for your response.
RTnet is modular, and if you use the stack a sketched, you are free to define the payload of the sent Ethernet frames on your own.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Hi Jan,
if i want to send a raw ethernet (for example for implement ethercat communication) so the best practise for xenomai is to transform the linux base driver to xenomai driver. Is it correct ?
Thanks for all
Il 23/03/2012 13:14, Jan Kiszka ha scritto:
Quoted 12 lines · Roberto Bielli
Quoted 6 lines
Hi Jan,
i want to send and receive custom raw packets over ethernet. is it possibile with RTnet or it sends only rtnet packets ?
Thanks for your response.
RTnet is modular, and if you use the stack a sketched, you are free to define the payload of the sent Ethernet frames on your own.
Jan
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+