| Author |
Message |
|
|
Post subject: Ethernet duplex settings.
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ethernet duplex settings.
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 04, 2008 - 07:31 AM
|
|
Active Member
Joined: Feb 26, 2007
Posts: 24
|
|
| Ok, so how do I change it? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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). |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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. |
|
|
| |
|
|
|
 |
|
|