View topic - EtherCAT Protocol for QNX

Page 1 of 1

EtherCAT Protocol for QNX

PostPosted: Tue Mar 25, 2008 4:23 am
by pgbidkar
Hi All,
Currently I am woking on Implementing EtherCAT(LAN Based fieldbus protocol) protocol for QNX, Please help me in below issues.
1. How to diable current ethernet protocol?
2. How to enable EtherCAT protocol?
3. Currently I am having EtherCAT masterCode for linux. How to port linux code to QNX?

Any help is appreciated.

Thanks,
Pavan

RE: EtherCAT Protocol for QNX

PostPosted: Tue Mar 25, 2008 4:02 pm
by mario
1 - You will need to start a separate session of io-net with you own driver and not start qnet or tcp/ip.

2 - You cannot "enable EtherCAT" protocol, from what little I know about it you will need to write pretty much everything from scratch.

3 - You need to understand the Linux and get to know QNX and then attempt a port. Linux driver do know port as is to QNX. Under QNX you will need to learn how to write a network "stack". It's one thing to have a driver for the card but it's another thing to handle the protocol. Depending on what you need to do you might be better of not building your stuff on top of QNX networking infrastructure.

Re: RE: EtherCAT Protocol for QNX

PostPosted: Tue Mar 25, 2008 11:06 pm
by rgallen
mario wrote:1 - You will need to start a separate session of io-net with you own driver and not start qnet or tcp/ip.

2 - You cannot "enable EtherCAT" protocol, from what little I know about it you will need to write pretty much everything from scratch.

3 - You need to understand the Linux and get to know QNX and then attempt a port. Linux driver do know port as is to QNX. Under QNX you will need to learn how to write a network "stack". It's one thing to have a driver for the card but it's another thing to handle the protocol. Depending on what you need to do you might be better of not building your stuff on top of QNX networking infrastructure.


Also, it's already been done...

http://www.steinhoff.de/EtherCAT.htm

Ethernet Driver

PostPosted: Wed Mar 26, 2008 3:57 am
by pgbidkar
Please, can any one help in giveing proper API to read ethernet driver configuration parameters?

RE: Ethernet Driver

PostPosted: Wed Mar 26, 2008 2:17 pm
by mario
what exactly are you looking for? Too vague of a question. Do you want to do the same thing that nicinfo does?

Thanks

PostPosted: Wed Mar 26, 2008 2:43 pm
by pgbidkar
Thanks for the help
Sorry, Actually what I was trying to do was also Vague!!!!!!!!!
Currently What I want to do is...Write my own driver, generate execuable from that (Like Net.ether82557), disable existing Net.ether82557 (which is default driver for my QNX4 which I am enabling with sysinit.x) and run my own driver.

Thanks,
Pavan

Re: Thanks

PostPosted: Wed Mar 26, 2008 4:57 pm
by rgallen
pgbidkar wrote:Thanks for the help
Sorry, Actually what I was trying to do was also Vague!!!!!!!!!
Currently What I want to do is...Write my own driver, generate execuable from that (Like Net.ether82557), disable existing Net.ether82557 (which is default driver for my QNX4 which I am enabling with sysinit.x) and run my own driver.

Thanks,
Pavan


You never mentioned QNX4 before. This will be very difficult (if not impossible) to accomplish in QNX4.

RE: Re: Thanks

PostPosted: Wed Mar 26, 2008 5:35 pm
by maschoen
> 1. How to diable current ethernet protocol?

That's easy, just don't start the "Socket" program. Without it, there is no TCP/IP. QNX 4 TCP/IP rides on top of the QNET network, using its raw packet interface.

> 2. How to enable EtherCAT protocol?

You will have to port it, and modify it to use the raw packet interface mentioned above.
The (ugly) alternative would be to write your own network driver, and then you can create any interface you want.

> 3. Currently I am having EtherCAT masterCode for linux. How to port linux code to QNX?

Sincerely, if you do not know where to start, you are probably not up to the task. If you want to know about the raw packet interface, there is a toolkit that explains how it works. You will also have to understand how EtherCAT interfaces with Ethernet.