Connection into machine times out

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5219

BlueyTheDog

02-03-2009 15:48:16

Hi all,
This is just a quick email to see if someone can set me in the right direction before I get software config's and the like together for people to peruse?

I have a machine that acts as a media unit and I've recently added a Netcom NP545 usb wireless thingy to replace the long blue wire.

Firstly Netcomm said that the stick uses an RALink RT2751. Does this chip actually even exist? I can't find it anywhere, via a google search, and suppose they have just transposed some numbers and it's really an RT2571. Any thoughs?

Secondly, and the main problem. I've set up the device using the kernel drivers, 2.6.28, and it connects to my wireless router with no problems. I've downloaded heaps of stuff from te outside world, using hellanzb, and things are looking good if the machine in question instigates the connection to something else. My problem arises if another machine on my little network instigates a connection into the machine. If I attach to the machine via samba and attempt to view a video or listen to music, it will work for a while then just shuts down the connection. If I ssh into the machine, ssh will work for a while, 20 - 50 minutes, then the connection will be terminated. All of this happens with the machine maintaining a connection, via my wireless router to the outside world and downloading media. After the connections have been terminated, if I attach a keyboard and monitor, log into the actual machine and restart the network, its a gentoo box and I use [i2yt1c4h7]/etc/init.d/wlan0 retart[/i2yt1c4h7], things come back and once again I can ssh into the machine.

Does this ring any bells as to a problem with the rt2x00 drivers or a config I should have set up. Is there a way I can find out if the driver is actually to blame for this and it's not some other part of the networking subsystem, or from the other point of view, see if the driver's working correctly and something else is to blame?

Any thoughts, greatly appreciated.

Andrew

IvD

02-03-2009 15:55:06

Well RT2751 might be a rt2800 device, what does the command
[codep2fq5jyl]lsmod | grep rt[/codep2fq5jyl]
return as modules?
And what is the output of
[codep2fq5jyl]lsusb[/codep2fq5jyl]

BlueyTheDog

02-03-2009 16:20:56

Thanks for the quick reply.

Second question first. lsusb id's the device as

[code119scbp2]
Bus 001 Device002: ID 148f:2573 Ralink Technology, Corp.
[/code119scbp2]
and that's all. The only other entries are for my mouse and keyboard

Now for the first question, no modules, everything's static. I have the following settings in the .config file from when I compiled the kernel

[code119scbp2]
CONFIG_RT2X00=y
#CONFIG_RT2400PCI is not set
#CONFIG_RT2500PCI is not set
#CONFIG_RT61PCI is not set
#CONFIG_RT2500USB is not set
CONFIG_RT73USB=y
CONFIG_RT2X00_LIB_USB=y
CONFIG_RT2X00_LIB=y
CONFIG_RT2X00_FIRMWARE=y
CONFIG_RT2X00_LIB_CRYPTO=y
#CONFIG_RT2X00_DEBUG is not set
[/code119scbp2]

and I have nothing set under [i119scbp2]USB Network Adapters[/i119scbp2]

Is this of any help? For me, I'm now off to bed, it's 120am in Perth Australia )

Andrew

IvD

02-03-2009 16:34:04

Ok that USB ID is clearly a rt73usb device. And that makes your assumption about the RT2571 name correct. )
Could you check the output of 'dmesg' for wlan0/rt2x00 related messages?

BlueyTheDog

03-03-2009 13:21:48

Sorry to say, nothing of special interest in dmesg. I did a [i2vgxzy28]dmesg[/i2vgxzy28] just after I started the machine, and could ssh into it. Did

[code2vgxzy28]
dmesg | grep 'wlan0'
[/code2vgxzy28]

and got

[code2vgxzy28]
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with AP 00:19:db:02:ea:a3
wlan0: authenticated
wlan0: associate with AP 00:19:db:02:ea:a3
wlan0: RX AssocResp from 00:19:db:02:ea:a3 (capab=0x411 status=0 aid=1)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
[/code2vgxzy28]

I then went about my business and waited for the ssh link to fail. It failed and I then logged into the machine via its own keyboard. Did [i2vgxzy28]dmesg[/i2vgxzy28] again and got the same info. Also did the same for rt2x00,

[code2vgxzy28]
dmesg | grep 'rt2'
[/code2vgxzy28]

and in both cases got no output at all. The thing that's baffling is that overnight it down loaded about 9Gb of [i2vgxzy28]stuff[/i2vgxzy28] from the internet but I couldn't ssh into it this morning. Is it time to go further up the food chain and start posting questions on the wpa_supplicant list?

IvD

03-03-2009 13:26:42

That it can transfer large amounts of data does sound like the driver is operating correctly, problem could indeed be some DHCP issues or something. Are you using a static IP?

BlueyTheDog

03-03-2009 13:49:27

No it's not static. The router does have the machines mac address and gives it the same address each time but no, this is via dhcp. Do you think it's worth setting it statically and seeing what happens?

IvD

03-03-2009 13:58:31

yeah, especially if the connection breaks after a fixed number of hours (that could mean DHCP tries to refresh the lease).

BlueyTheDog

03-03-2009 14:05:00

I'll try setting it static and also as a check, I'll disconnect the wire from my Windows box and [iu52r5hhn]install[/iu52r5hhn] the drivers for the stick and try running it on my Windows box, to see if the hardware itself, the stick, is faulty.

IvD

03-03-2009 14:06:57

Well my bets are still on a driver or configuration issue. )