OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 12:14 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 47 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
Alexbleks
Post subject: Ethernet duplex settings.  PostPosted: Apr 03, 2008 - 10:03 AM
Active Member


Joined: Feb 26, 2007
Posts: 24

Is there a tool for forcing the ethernet card down to half-duplex in QnX6.x? I tried mii-tool, but without result.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Ethernet duplex settings.  PostPosted: Apr 03, 2008 - 11:55 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2753

Most driver have an option to set speed and duplex configuration. However I don't think it can be changed at runtime.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Alexbleks
Post subject:   PostPosted: Apr 04, 2008 - 07:31 AM
Active Member


Joined: Feb 26, 2007
Posts: 24

Ok, so how do I change it?
 
 View user's profile Send private message  
Reply with quote Back to top
Alexbleks
Post subject:   PostPosted: Apr 04, 2008 - 10:24 AM
Active Member


Joined: Feb 26, 2007
Posts: 24

Im trying to set my ethernet card driver to 10mbit half-duplex. nicinfo
says that it is correct, but the switch/hub still says 100mbit and the
average transfer speed it more than 10mbit. I've edited the "mount"
variable in /etc/system/enum/devices/net file to: mount(-Tio-net
"-opci=$(index),vid=0x$(ven),did=0x$(dev),speed=10,duplex=0"
/lib/dll/devn-<network driver>, "/dev/io-net/en$(netnum)").

On half-duplex the network transfer is VERY slow (even with 100mbit HD).
 
 View user's profile Send private message  
Reply with quote Back to top
Tim
Post subject:   PostPosted: Apr 04, 2008 - 05:10 PM
Senior Member


Joined: Mar 10, 2004
Posts: 536

Alexbleks,

Why would you want to downgrade a 100Mbit/Full Duplex connection to a 10Mbit/Half Duplex one?

Most times the firmware in the NIC card itself will 'auto negotiate' speed/duplex with the switch. So providing those options to the driver won't help unless the firmware in the card actually is designed to allow software drivers to force renegotiation.

As for Half Duplex being slow. That's normal. Half Duplex is slower than Full Duplex. What were you expecting to see with Half Duplex?

Tim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rgallen
Post subject:   PostPosted: Apr 04, 2008 - 09:22 PM
QNX Master


Joined: Jul 11, 2002
Posts: 600

Alexbleks wrote:
Im trying to set my ethernet card driver to 10mbit half-duplex. nicinfo
says that it is correct, but the switch/hub still says 100mbit and the
average transfer speed it more than 10mbit. I've edited the "mount"
variable in /etc/system/enum/devices/net file to: mount(-Tio-net
"-opci=$(index),vid=0x$(ven),did=0x$(dev),speed=10,duplex=0"
/lib/dll/devn-<network driver>, "/dev/io-net/en$(netnum)").

On half-duplex the network transfer is VERY slow (even with 100mbit HD).


That should be right, but are you sure you have the right NIC?

What does "nicinfo" say?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Alexbleks
Post subject:   PostPosted: Apr 06, 2008 - 09:52 AM
Active Member


Joined: Feb 26, 2007
Posts: 24

rgallen wrote:
Alexbleks wrote:
Im trying to set my ethernet card driver to 10mbit half-duplex. nicinfo
says that it is correct, but the switch/hub still says 100mbit and the
average transfer speed it more than 10mbit. I've edited the "mount"
variable in /etc/system/enum/devices/net file to: mount(-Tio-net
"-opci=$(index),vid=0x$(ven),did=0x$(dev),speed=10,duplex=0"
/lib/dll/devn-<network driver>, "/dev/io-net/en$(netnum)").

On half-duplex the network transfer is VERY slow (even with 100mbit HD).


That should be right, but are you sure you have the right NIC?

What does "nicinfo" say?


nicinfo says 10mbit HD.
 
 View user's profile Send private message  
Reply with quote Back to top
Alexbleks
Post subject:   PostPosted: Apr 06, 2008 - 09:54 AM
Active Member


Joined: Feb 26, 2007
Posts: 24

Tim wrote:
Alexbleks,

Why would you want to downgrade a 100Mbit/Full Duplex connection to a 10Mbit/Half Duplex one?

Most times the firmware in the NIC card itself will 'auto negotiate' speed/duplex with the switch. So providing those options to the driver won't help unless the firmware in the card actually is designed to allow software drivers to force renegotiation.

As for Half Duplex being slow. That's normal. Half Duplex is slower than Full Duplex. What were you expecting to see with Half Duplex?

Tim


The reason why I need to force it to 10mbit HD is because of the network card that is connected to a Sixnet Etherswitch, then a PLS. These are turned on/off alot, and sometimes it wont go back on 100mbit and then it just sits there and the HMI display wont get its data from the PLS.
 
 View user's profile Send private message  
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.