Topic: Apple USB to Ethernet adapter

I bought this adapter over the weekend  and it works for about 2 hours and stops.  Restarting the Chumby fixes it . Anyone else having trouble with this? I have tried to reselect in the network control and it sees it but won't work.

Re: Apple USB to Ethernet adapter

I've given my Apple USB dongle to QA, they're going to try to reproduce this behavior.

Re: Apple USB to Ethernet adapter

I have consistently had this problem over the last year or so, even before USB ethernet adapters were officially supported.

The period for which it works ranges from 40 minutes to 2 days, but eventually it just drops out and the network connection dies. Interestingly, it dropped out a few times while I was SSH'ed into it - SSH still worked for a while longer, but I couldn't revive the connection and pings to external IPs did not work.

Given that not many others have this problem, I'm beginning to suspect other factors. Out of curiosity, what is the brand and model of your router, and have you got any modified firmware on it? I'm running a Linksys WRT54G v1.1 with DD-WRT v24 SP2.

Re: Apple USB to Ethernet adapter

I have used this at home with a Apple Airport Extreme  and now here where I really need it at work. This is a huge Lan here with Cisco Equipment. I bought the apple dongle being easy to  get here. Guess I will have to take this home and use it wireless. Really wanted to use here at work though. Hope they figure out whats wrong.

Last edited by Bearman (2009-08-24 09:51:06)

Re: Apple USB to Ethernet adapter

samuel337 wrote:

I have consistently had this problem over the last year or so, even before USB ethernet adapters were officially supported.

The period for which it works ranges from 40 minutes to 2 days, but eventually it just drops out and the network connection dies. Interestingly, it dropped out a few times while I was SSH'ed into it - SSH still worked for a while longer, but I couldn't revive the connection and pings to external IPs did not work.

Given that not many others have this problem, I'm beginning to suspect other factors. Out of curiosity, what is the brand and model of your router, and have you got any modified firmware on it? I'm running a Linksys WRT54G v1.1 with DD-WRT v24 SP2.

I have had the exact same pattern (40 min to 2 days until drops) the entire time I have had my Chumby (about 18 months).  In fact, Chumby replaced my unit once and the problem continued.  I even tried my SlingLink (a powerline network extender) with it with the same problem.  I have concluded that it's either a defect in the original Chumby and/or my house interferes with my network enough that any little blip disconnects my Chumby.  I'm just glad Chumby added that backup alarm feature because it kicks many mornings.

FYI, the problem occurs with my Verizon FIOS modem and my modified Linksys WRT54GS with DD-WRT (not sure of the version) firmware which sits right next to my Chumby.

Re: Apple USB to Ethernet adapter

I'm using the Apple USB adaptor that came with my new Mac Air. Everything's working ok over here as far as I can tell. Been using it with my Chumby for about a month.

Re: Apple USB to Ethernet adapter

I've had the dropouts again twice over the last few weeks.

Basically, when my alarm goes off in the morning, it would beep instead of play internet radio. If you go to the control panel, a black box appears where the active app usually appears and you can't switch apps or load anything.

No idea how this is possible since I'm using a wired network, so it's not like there was a loss of reception. Very weird and impossible to troubleshoot. Rebooting the unit, makes the problem go away.

Re: Apple USB to Ethernet adapter

We're trying to track this down - unfortunately, we've been unable to reproduce it.

These types of things are the toughest types of problems - there can be so many possible causes and they take so long to manifest.

Re: Apple USB to Ethernet adapter

Duane wrote:

We're trying to track this down - unfortunately, we've been unable to reproduce it.

These types of things are the toughest types of problems - there can be so many possible causes and they take so long to manifest.

If there are some steps that I could do to help (scripts, commands, configuration etc.), feel free to PM me - ever since switching back to a Linksys router, mine can't stay connected via the Apple USB Ethernet adapter for longer than a couple of hours. So pretty much whenever I want to use it, I have to reboot it (except alarms, because that music comes off the USB stick).

Works a bit better over wireless, although I suspect the wireless is dropping out because of the weak signal, not because of this mystery error.

I have a Linksys USB200M on the way - I'll report back when I get it and if the same problem occurs or not.

Re: Apple USB to Ethernet adapter

That's really odd.  It sounds like it could be a DHCP problem.  Have you tried setting your chumby up to have a static address?

Re: Apple USB to Ethernet adapter

Also, when you do reboot the chumby when this happens - does it get the same IP?

Re: Apple USB to Ethernet adapter

ChumbyLurker wrote:

That's really odd.  It sounds like it could be a DHCP problem.  Have you tried setting your chumby up to have a static address?

Just tried it - set it to static IP, wait until it connected, then rebooted Chumby. I checked to make sure the IP was static. It lasted about 3 hours. I rebooted again, at 6:15pm, and it just died at 9:18pm (including time when widgets would load, but with no content as they could not download it).

So a static IP doesn't really help.

I've just changed it back to DHCP, and will check if it gets the same IP - I'm pretty sure it does from memory.

I wonder if the Apple USB Ethernet Adapter itself is faulty; might test it on my laptop after.

EDIT: yep, same IP on restart when using DHCP.

EDIT #2: been using the adapter all day on my laptop - no issues at all.

Last edited by samuel337 (2009-10-11 00:17:30)

Re: Apple USB to Ethernet adapter

Hmm, my Linksys USB200M does the same thing. Which means it isn't a hardware fault, and more likely an edge case fault with the version of the ASIX driver used?

Why do I keep running into these edge case issues (last one was the time drift), grrr.

I might look up the linux kernel source control and see if some of the later revisions have any notes on this issue, before they moved and did a major refactor of the usb ethernet adapter code.

Re: Apple USB to Ethernet adapter

Has there been any updates to this? I am still having the problem. This prevents me using my Chumby  at work. Which is why I bought it to begin with.

Thanks
Bearman

Re: Apple USB to Ethernet adapter

We've been testing this but have no further information.

Re: Apple USB to Ethernet adapter

Duane wrote:

We're trying to track this down - unfortunately, we've been unable to reproduce it.

These types of things are the toughest types of problems - there can be so many possible causes and they take so long to manifest.

Duane, I have 6 Chumbys running in the office LAN (Cisco equipment) using Apple USB-Ethernet Adapters having the EXACT same symptoms as mentioned by others above:
- The network connectivity is lost after about 2 hours to 2 days.
- 1 specific Chumby looses connectivity at a max of 12 hours, where as the others loose it between 24 to 48 hours.
- All Chumbys are running the latest firmware available for Chumby classics.
- The same Chumbys works fine on Wi-Fi in my home network, with the network not having dropped for almost a week now.
- As mentioned by samuel337 above, the same Apple adapters work fine on a Windows PC, leading me to beleive that its not really a hardware issue but more likely an issue with the linux device drivers implemented on the Chumby
- I can also confirm that the same IP is retained after rebooting, and I have tried assigning static IPs too but the problem still remains persistent.
- I am running a stand-alone app on all Chumbys using debugchumby (non-widget mode), which removes the possibility of any issues being caused by the Chumby control-panel software
- Currently the only way to regain network connectivity is to reboot the Chumby!!

In the environment we are planning to roll-out these Chumbys, it is not an option to use Wi-Fi. If we don't find a fix for this soon, the only alternative we might have is to run a script/cron to reboot the Chumby every 2 hours or so, which would create a few complexities with our stand-alone app loosing dynamic info from the volatile memory. As you can imagine this is defintely not a desirable solution.

I fail to imagine why you are not able to reproduce it, as I have consistently managed to loose the network on 6 chumbys for more than 2 weeks now. The only difference at your end would be the LAN setup which in my guess should not be as different. I too am happy to run any suggestions or experimental scripts from you and provide you the test results, if you still haven't been able to reporduce the problem at your end.

My best guess so far is that the driver implementation for the same is not very robust, but that is where I draw the line, as I am not into re-building drivers myself.

Has any one had ANY luck with running either the Apple, or even another known brand USB-ethernet adapters on the Chumby for over 2 days without dropping out the network?

Re: Apple USB to Ethernet adapter

Instead of a reboot, would an option be to just re-setup the network every couple hours?

i.e. unconfigure the network interface, rmmod the network driver, modprobe the network driver, reconfigure the network.

That should be darn close to reboot, yet your app might be able to keep running and keep your volatile dynamic information.

Last edited by Materdaddy (2009-12-09 14:24:18)

Re: Apple USB to Ethernet adapter

Materdaddy wrote:

Instead of a reboot, would an option be to just re-setup the network every couple hours?

i.e. unconfigure the network interface, rmmod the network driver, modprobe the network driver, reconfigure the network.

Masterdaddy, thanks for getting back so quickly.

That sounds like a fantastic idea but I have no idea how to implement it on the Chumby (Linux Newbie:) ). I would really really appreciate if you can give me a few further specific commands on the same.

I did try to implement a script which did the following every hour but it hasn't helped resolve the problem:

  echo "`date` :: Restarting Network - STOPPING" >> $NETWORK_LOG
  ifconfig eth0 down
  sleep 5
  echo "`date` :: Restarting Network - STARTING" >> $NETWORK_LOG
  ifconfig eth0 up
  sleep 4
  echo "`date` :: `udhcpc eth0`" >> $NETWORK_LOG
  sleep 3
  route >> $NETWORK_LOG

Any help appreciated and thanks once again.

Re: Apple USB to Ethernet adapter

No offense is meant by this, but I find it strange (or funny?) that a "linux newbie" is attempting to launch a 'product' running on a linux device.

I'm not familiar with the apple USB to Ethernet adapter, but assuming that your device is supported via a kernel module (not compiled into the kernel directly) you should be able to change your script to something like:

  echo "`date` :: Restarting Network - STOPPING" >> $NETWORK_LOG
  ifconfig eth0 down
  rmmod <NAME OF APPLE-USB-TO-ETHERNET KERNEL MODULE>
  sleep 5
  echo "`date` :: Restarting Network - STARTING" >> $NETWORK_LOG
  modprobe <NAME OF APPLE-USB-TO-ETHERNET KERNEL MODULE>
  ifconfig eth0 up
  sleep 4
  echo "`date` :: `udhcpc eth0`" >> $NETWORK_LOG
  sleep 3
  route >> $NETWORK_LOG

Re: Apple USB to Ethernet adapter

Slight correction to Materdaddy's post, for the chumby classic you could perform the following:

rmmod <NAME OF APPLE-USB-TO-ETHERNET KERNEL MODULE>
sleep 2
insmod <NAME OF APPLE-USB-TO-ETHERNET KERNEL MODULE>
/usr/chumby/scripts/start_network

Note that reloading the driver will cause the interface number to increment with every reload, eth1, eth2, etc..
start_network script will use the network configuration details from /psp/network_config, containing the last applied settings, whether those were successful or not in connecting your chumby. If you are using static IP settings, you can just copy /psp/network_config to your other chumbys and modify the ip field accordingly.

Re: Apple USB to Ethernet adapter

Materdaddy wrote:

No offense is meant by this, but I find it strange (or funny?) that a "linux newbie" is attempting to launch a 'product' running on a linux device.

None taken Masterdaddy. To quench your curiousity, its not just a Chumby product that we are working on. The project involves a stack of technologies ranging from .NET to IVRs to web-components. Chumbys are meant to be the preferred end-user device which avoids the requirement of a PC. Last I checked, there weren't any off the shelf Windows based devices available that even come close to offering what the Chumby does. Again, we hadn't expected the Chumby to require any special Linux based hacks to make it work robustly, and thus this linux newbie is having lots of fun learning a new environment... wink

Thanks once again for your tip though, as I think it may have just resolved the issue.

Levy wrote:

Slight correction to Materdaddy's post, for the chumby classic you could perform the following:
...
Note that reloading the driver will cause the interface number to increment with every reload, eth1, eth2, etc..

Levy, thanks for your input. Further to Masterdaddys post I realised that 'modrobe' wasn't working as expected on the Chumby and after a bit of research, implemented 'insmod' instead as per the below script running on an hourly basis:

  echo "`date` :: Ethernet - STOPPING" >> $NETWORK_LOG
  ifconfig eth0 down
  rmmod asix >> $NETWORK_LOG
  sleep $DOWNTIME
  echo "`date` :: Ethernet - STARTING" >> $NETWORK_LOG
  insmod /drivers/asix.ko >> $NETWORK_LOG
  echo `lsmod | grep asix` >> $NETWORK_LOG
  ifconfig eth0 up
  sleep 3
  echo "`date` :: `udhcpc eth0`" >> $NETWORK_LOG
  sleep 2
  route >> $NETWORK_LOG

The good news is that it has retained the network for over 15 hours now, but I will leave it running for a good deal longer to get an affirmation. Surprisingly 'ifconfig' still shows the interface as 'eth0' and hasn't incremented it to eth1, eth2, etc?

I am happy to implement 'start_network' as per your tip, as I guess its a more reliable option. I realize that it already does 'ifconfig up' and 'udhcpc'.  Would you suggest I still run 'ifconfig down' before 'rmmod' or would 'rmmod' do it anyway?

Thanks for all your inputs. I shall post the outcome of the tests (fingers crossed smile) for the benefit of all.

Last edited by techgermz (2009-12-10 16:10:41)

Re: Apple USB to Ethernet adapter

Your product sounds interesting, I'd be interested to know more information if you can!

As for the ifconfig down before running rmmod, you will probably^ have to run ifconfig down because the module will be listed as "in use" and rmmod will fail to remove it if the ethernet controller is "up".

^NOTE: all of my input on this thread is without actually poking the chumby, sorry for the modprobe/insmod mix-up as well as the "unsure" nature of my posts.  My chumby is at home, and I don't feel like toying with the device if it's not with me, even with my fun (soon to be posted?) chumby hacks. smile

Last edited by Materdaddy (2009-12-11 08:19:49)

Re: Apple USB to Ethernet adapter

Ill just pipe in with a *me too* on the apple usb/ethernet deciding to lose connection somewhat randomly... Wonder if this is gonna be the vexing issue of the month, I feel bad for that whole time sync issue of Classic Chumby lore... But kudos to Duane and everyone for finally figuring out that one

Re: Apple USB to Ethernet adapter

I was wondering if there is any news on this problem. I've been trying to get my Chumby talking reliably on an Ethernet connection for a few days now. Most recently i've been trying an Apple USB Ethernet dongle and it has been flaking out after between a few minutes and a couple of hours. I was previously trying a D-Link DUB E100 (rev B), which is in the list of supported devices but, despite being detected by the kernel, wouldn't talk to the network at all. Can anyone recommend an USB Ethernet device that works reliably on the Chumby?

Re: Apple USB to Ethernet adapter

FWIW, since I moved my Chumby from a very busy subnet with a fair amount of broadcast and multicast network traffic to a subnet behind a NAT firewall, the system has been substantially more stable. This suggests that the problem may have its roots in the volume or speed of traffic coming into the device, or that certain types of packet cause problems. If the testing so far at Chumby Industries has all been done on a quiet, backwater of a test network it might be worth plugging the test device into the main office network and seeing if the failure can be induced that way.