OpenQNX :: The QNX Community Portal

May 13, 2008 - 10:23 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 66 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
pgbidkar
1 Post subject: EtherCAT Protocol for QNX  PostPosted: Mar 25, 2008 - 04:23 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

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
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: EtherCAT Protocol for QNX  PostPosted: Mar 25, 2008 - 04:02 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rgallen
Post subject: Re: RE: EtherCAT Protocol for QNX  PostPosted: Mar 25, 2008 - 11:06 PM
QNX Master


Joined: Jul 11, 2002
Posts: 557

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject: Ethernet Driver  PostPosted: Mar 26, 2008 - 03:57 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Please, can any one help in giveing proper API to read ethernet driver configuration parameters?
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Ethernet Driver  PostPosted: Mar 26, 2008 - 02:17 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

what exactly are you looking for? Too vague of a question. Do you want to do the same thing that nicinfo does?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject: Thanks  PostPosted: Mar 26, 2008 - 02:43 PM
Active Member


Joined: Mar 25, 2008
Posts: 11

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
 
 View user's profile Send private message  
Reply with quote Back to top
rgallen
Post subject: Re: Thanks  PostPosted: Mar 26, 2008 - 04:57 PM
QNX Master


Joined: Jul 11, 2002
Posts: 557

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Re: Thanks  PostPosted: Mar 26, 2008 - 05:35 PM
QNX Master


Joined: Jun 25, 2003
Posts: 974

> 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.