Ticket #1933 (new defect)

Opened 11 years ago

Last modified 2 years ago

usb network connection flaky

Reported by: olberger Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version: Om2008.9-dev
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:


On 2008.8 upgraded with stable up to P1-Snapshot-20080807 I get intermitent USB networking malfunctioning.

There's no message on desktop end in syslog suggesting a physical disconection.

However, I'm losing pings to the freerunner :
From icmp_seq=4251 Destination Host Unreachable
From icmp_seq=4254 Destination Host Unreachable
From icmp_seq=4255 Destination Host Unreachable

Uplugging and replugging restores connection.

Im' using screen as a workaround to keep a connected session on the FR.

I noticed that when avahi-daemon was running on the desktop, it used to be worse, and disconnections happened sooner.

Now, it will stay connected for minutes, but every 5min or so I have to un/replug to keep it connected.

More details in this thread : http://lists.openmoko.org/pipermail/community/2008-August/025869.html

Change History

comment:1 Changed 11 years ago by andy

I would wonder about if it was DHCP or the route that was flaky - maybe on the host laptop / PC - rather than underlying transport.

Check dmesg on the host PC as well, and run

ifconfig usb0
route -n

on both ends when it goes wrong (if possible).

comment:2 Changed 11 years ago by olberger

Here's some bits of diagnosis on the desktop :

# ifconfig -v usb0
usb0 Link encap:Ethernet HWaddr 4e:d5:00:3d:40:85

inet adr: Bcast: Masque:
adr inet6: fe80::4cd5:ff:fe3d:4085/64 Scope:Lien
RX packets:8619 errors:14460 dropped:0 overruns:0 frame:0
TX packets:14959 errors:373 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:545557 (532.7 KiB) TX bytes:20606649 (19.6 MiB)

# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface U 0 0 0 usb0 U 0 0 0 eth0 UG 0 0 0 eth0

You'll notice I have a local LAN with a netmask for 192.168.0.x up to 192 on eth0, but it doesn't seem to be a problem as it works for some time...

Also running tcpdump when it breaks gives :

15:33:43.330455 IP > ICMP echo reply, id 59923, seq 1309, length 64
15:33:44.333297 IP > ICMP echo request, id 59923, seq 1310, length 64
15:33:44.334245 IP > ICMP echo reply, id 59923, seq 1310, length 64
15:33:45.337293 IP > ICMP echo request, id 59923, seq 1311, length 64
15:33:45.339060 IP > ICMP echo reply, id 59923, seq 1311, length 64
15:33:46.389253 IP > ICMP echo request, id 59923, seq 1312, length 64
15:33:47.341281 IP > ICMP echo request, id 59923, seq 1313, length 64
15:33:48.341276 IP > ICMP echo request, id 59923, seq 1314, length 64
15:33:49.341300 IP > ICMP echo request, id 59923, seq 1315, length 64
15:33:50.341284 IP > ICMP echo request, id 59923, seq 1316, length 64

Will try and provide debug info from the FR if/when I can connect to it via WIFI at the same time as usb

comment:3 Changed 11 years ago by olberger

Also, nothing at all in dmesg / syslog on the desktop.

comment:4 Changed 11 years ago by olberger

And now on the FR I had :

usb0 Link encap:Ethernet HWaddr AE:30:1D:B2:6A:E6

inet addr: Bcast: Mask:
inet6 addr: fe80::ac30:1dff:feb2:6ae6/64 Scope:Link
RX packets:39965 errors:0 dropped:0 overruns:0 frame:0
TX packets:26058 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44454517 (42.3 MiB) TX bytes:2321927 (2.2 MiB)

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 0 0 0 usb0 UG 0 0 0 usb0

Hmmm... I'm thinking that the network mask discrepency between the two machines may be the cause of that problem...

Will try with same settings after changing the netmask to on the FR, and report if this is solved...

comment:5 Changed 11 years ago by john_lee

  • HasPatchForReview unset
  • Version set to Om2008.9-dev

comment:6 Changed 10 years ago by olberger

I have changed my /etc/network/interfaces setup on the Debian desktop at the other end of the usb cable to set :

allow-hotplug usb0
iface usb0 inet static

post-up ifconfig usb0 -multicast


I think this may be improving the situation, as this seems to deactivate avahi's monitoring of that network interface.

Maybe that would be a solution.

comment:7 Changed 2 years ago by JustDox

Cialis One Day <a href=http://levitra.ccrpdc.com/levitra-brand-online.php>Levitra Brand Online</a> 5mg Sinus Infection And Amoxicillin <a href=http://viag1.xyz/best-viagra-online.php>Best Viagra Online</a> Buy Olanzapine Uk Clomiphene 150mg For Sale <a href=http://viag1.xyz/cheap-viagra-pills.php>Cheap Viagra Pills</a> Viagra Tablets Translations In Urdu Beta Blockers Where To Buy <a href=http://kamagra.ccrpdc.com/kamagra-pill.php>Kamagra Pill</a> Propecia Potenzstorungen Boniva <a href=http://zol1.xyz/buy-zoloft-uk.php>Buy Zoloft Uk</a> Order Propecia Online Uk Clomid Cuisine D Action <a href=http://kama1.xyz/buy-kamagra.php>Buy Kamagra</a> Vigra Cialis Contraindicaciones Alcohol <a href=http://zol1.xyz/cheap-zoloft-generic.php>Cheap Zoloft Generic</a> Viagra Magnus

Note: See TracTickets for help on using tickets.