Hi all. I'm using a cable modem and trying to connect through a USB-Ethernet adapter. I don't want to use the router because I don't need it with the desktop computer and thus it's a pointless consumer (about 4-5 watts). The adapter is actually only for an Android tablet (4.0.3) but I connected it to the PC (Squeeze) for testing.
The adapter's enclosure says "
JP1082 No: 030818", PCB says JP1082-970. There's nothing printed on the chip.
On the included CD (USB LAN-
RD9700) are driver for Mac and Win + Win CE and the source code for Win CE and Android. The Windows Logo Verification Report says "Shenzen Lian He An Xin Software Development Co,Ltd". The Win drivers say "Corechip Semiconductor, Inc.". The Android source is named
jp1081_android.c and the headers say "JiaPeng NET JP1081 USB2NET" and "JiaPeng NET JP1081 one chip USB 1.1" written by jokeliujl <jokeliu@163.com> in 2010 under GPL v2. The Win CE source says "Davicom Inc."
I guess I could upload this somewhere ... if anyone's interested.
lsusb says "Bus 003 Device 004: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent)
DM9601 Fast Ethernet Adapter"
nopaste of # lsusb -vd 0fe6:9700
I tried to compile the Android module but since it's from 2010 I guess I would also need an older kernel. Anyway when connected with my Android tablet through the router it connects with original module
qf9700 and dhcpcd_eth0 just fine. I mostly think this is a hardware problem ...
On desktop PC (kernel 2.6.32) I patched the dm9601 like explained here:
http://tech.firdooze.com/2011/11/16/...9601-on-linux/
I also tried out qf9700 from here:
http://mquin.livejournal.com/178482.html
Both work - but of course only with router. The adapter is directly connected to the PC - no hub.
I'm using wicd with dhcpcd as I've read is recommended.
Also only with the router the LED of the adapter is lid.
Normal LAN
to modem
Code:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1a:a0:4X:4X:X8
inet addr:37.5.X.X Bcast:37.5.X.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
Code:
$ netstat -nr
Destination Gateway Genmask Flags MSS Window irtt Iface
37.5.X.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
0.0.0.0 37.5.X.254 0.0.0.0 UG 0 0 0 eth0
to router to modem
Code:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1a:a0:4X:4X:X8
inet addr:192.168.0.199 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21a:a0ff:fe4b:4eb8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Code:
$ netstat -nr
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
With adapter
to modem
Code:
$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:e0:4c:53:44:58
inet6 addr: fe80::2e0:4cff:fe53:4458/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
Routing table is empty but dhcpcd gives:
Code:
dhcpcd.sh: interface eth1 has been configured with new IP=169.254.102.191
dhcpcd.sh: interface eth1 has been configured with old IP=169.254.102.191
to router to modem
Code:
$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:e0:4c:53:44:58
inet addr:192.168.0.198 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe53:4458/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Code:
$ netstat -nr
Destination Gateway Genmask Flags Metric Ref Use
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
Output in Android should be similar.
So when I connect with the adapter directly to modem I don't get an IP and can't browse the web. Only when I interpose the router it works ...
On PC should I disable eth0 for eth1 to connect? And how?
Do I need the router because the modem is not giving enough power (->LED)?