PDA

View Full Version : USB to Ethernet?


dblank
11-14-2007, 04:00 PM
Has anyone tested any USB to Ethernet devices with OS2008 yet?

Edit: I have! see post below, since I didn't think to just edit this one :)

dblank
11-30-2007, 10:48 PM
I've just tested a Hawking HUF11, which is based on the Realtek 8150, and so far things are looking great!

I put the N800 in host mode, plugged the sucker in, brought up the interface and transferred a big file via scp, no problems at all, and no power injection seems to be necessary (phew)

It looks like I'll have to do some more tweaking around though, as at least the web browser tries to bring up the wifi interface, but I don't think that'll be too difficult to fix.

Edit: DUMMY IAP is necessary (thanks rps!!!), run
gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY
and select DEFAULT from the connection list after bringing up your interface with udhcpd, or whatever.

R-R
12-01-2007, 03:34 AM
So you take one of those adapter, a USB to mini (800) or micro (810) USB cable, modprobe a driver, and voilą? :)

dblank
12-01-2007, 03:39 AM
So you take one of those adapter, a USB to mini (800) or micro (810) USB cable, modprobe a driver, and voilą? :)

no modprobe necessary :)

also needs USB A Female to Female adapter, or soldering, cable splicing, etc.

jonmlee
12-01-2007, 05:15 AM
this looks really really interesting!
wait? it's female to female? don't you need a male mini usb to plug into the n800?
http://cgi.ebay.com/USB-A-Female-to-Mini-USB-5-pin-Male-Adapter-Changer_W0QQitemZ130175852668QQcmdZViewItem

dblank
12-01-2007, 05:58 AM
this looks really really interesting!
wait? it's female to female? don't you need a male mini usb to plug into the n800?
http://cgi.ebay.com/USB-A-Female-to-Mini-USB-5-pin-Male-Adapter-Changer_W0QQitemZ130175852668QQcmdZViewItem

I have an adapter like that on the way, but for now I'm using a normal male mini usb cable plugged into N800, with the other end, and ethernet adapter plugged into a female to female adapter.

chariscomp
12-01-2007, 04:35 PM
Hello,

I am very interested in purchasing a USB to ethernet adapter that will work with my N800. I have been searching for the Hawking HUF11 that was mentioned in this thread, but have not found a place to buy it. If anyone knows where this can be purchased or another usb to ethernet adapter based on the Realtek RTL8150 chipset I would be very interested in it. This is one of the main things I want to use my N800 for: configuring routers with a wired connection. I know I can get a portable router, but I would rather go this route if possible. Thanks for any help anyone can give! I have upgraded my N800 to Beta OS2008.

Thanks!

Joshua

Edit: I found this adapter (http://www.newegg.com/Product/Product.aspx?Item=N82E16833124146) that I *think* is supposed to be using the RTL8150 chipset. Can anyone confirm this one way or another? Thanks!

dblank
12-01-2007, 05:01 PM
Edit: I found this adapter (http://www.newegg.com/Product/Product.aspx?Item=N82E16833124146) that I *think* is supposed to be using the RTL8150 chipset. Can anyone confirm this one way or another? Thanks!

I'm pretty darn sure it is.

I would have bought one myself had it not been for the very poor reviews regarding the connector, which supposedly breaks very easily :(

Love the compact size, too bad they didn't do a very good job with the connector..

Here's a list of adapters that I think use the 8150:
GreenHouse GH-USB100B
Billionton ThumbLAN USBKR2-100B
Billionton ThumbLAN USBKR-100
Chinese adapters: zt168a CA2057
Linksys USB100M
Hawking HUF11
Melco LUA-KTX
BAFO BF-310
NetComm - USB LAN Key
Ztek USB LAN ?
3Com's "Etherfast 10/100 Compact USB Network Adapter", aka model USB100M
SMC 2208
Startech USB1100S
Abocom RTL8151
Compex UE202-B
Longshine LCS-8138TX
Micronet SP128AR
NetComm NP1010
Repotec RP-USB100-A
SMC 2208USB/ETH
TRENDnet TU-ET100C
Zt USB10/100
Z-TEK ZK-R02

dblank
12-03-2007, 03:20 PM
Bump for edit to post number 2:
http://internettablettalk.com/forums/showpost.php?p=102988&postcount=2

Looking for a way to get native apps to recognize the available wired connection, and not bring up connection dialog for WLAN/BT.

bexley
12-03-2007, 03:30 PM
Thanks for leading this question. If solved it'll help a lot of people, myself included.

dblank
12-03-2007, 05:51 PM
Thanks for leading this question. If solved it'll help a lot of people, myself included.

No problem.

I've submitted an enhancement request, please add your vote if you'd like to see proper support of wired connections :)

Here's the link:
https://bugs.maemo.org/show_bug.cgi?id=2470

Thanks!

hordeman
12-03-2007, 05:55 PM
I have an adapter like that on the way, but for now I'm using a normal male mini usb cable plugged into N800, with the other end, and ethernet adapter plugged into a female to female adapter.

Please let us know how it works out. I'm standing by to find out more so I can get an adapter for my n800! :)

Thanks!
H.

Guerol
12-03-2007, 07:06 PM
Is the Realtek RTL8150 Chipset the only supported one?

Can't find any of these listed USB-to-Ethernet Adapters with RTL8150 Chipset here in Germany. :-(

dblank
12-03-2007, 07:56 PM
Is the Realtek RTL8150 Chipset the only supported one?

Can't find any of these listed USB-to-Ethernet Adapters with RTL8150 Chipset here in Germany. :-(

It's the only driver compiled into the kernel, but it should be possible, and probably not too difficult, to compile modules for other chipsets.

I've been meaning to compile a bunch of modules, just haven't gotten around to it yet. When I do, I'll be sure to share them.

dblank
12-04-2007, 05:11 PM
Ok, I finally got around to compiling modules, all of them compiled and load ok, so if anyone would like test them with other USB > Ethernet devices, here they are:

http://maemobox.org/dblank/usbnet.tgz

This should cover all adapters supported in kernel 2.6.21

bexley
12-05-2007, 01:55 PM
Thanks! I'll have the N810 in my hands tomorrow and I'll try to find a USB-Ethernet adapter on Friday to test this with. I'll read through to see if it's mentioned earlier,
but what exactly am I to do with the modules? Sorry for the basic question. Any progress on getting native apps to work with the connection? If not, what apps do work with it, and how?

Oh yea, and I still need to find a micro USB adapter. Not even sure which kind yet--A, B, A/B? A little confused there but I'll do some reading to clear it up.

dblank
12-05-2007, 02:56 PM
what exactly am I to do with the modules? Sorry for the basic question. Any progress on getting native apps to work with the connection? If not, what apps do work with it, and how?

Oh yea, and I still need to find a micro USB adapter. Not even sure which kind yet--A, B, A/B? A little confused there but I'll do some reading to clear it up.

You'll want to load whichever module supports your adapter, that usually requires finding out what chipset the adapter uses, then find out which module, if any, supports that chipset.

Included modules are:
catc
dm9601
kaweth
mcs7830
pegasus

Extract from the .tgz like this:
tar -xzf usbnet.tgz

Load appropriate module, ex:
insmod mcs7830.ko

Then configure your adapter manually or via DHCP, and enjoy using command line utilities and other apps that don't try to bring up a connection dialog :)

No luck getting the browser to work, and no answer to my enhancement request on bugs.maemo.org, I haven't messed around with it for a while, was really hoping someone else would figure it out :)

Easiest way to make the USB connection would be USB-A-Female to Mini-B-Male for the N800, but for the N810 I'm not sure.

If all you want to use are "normal" applications, I don't think I'd bother getting an ethernet adapter until someone figures out how to make them see the connection, but if you want to just mess around, or use commandline apps, etc. go for it!

fpp
12-05-2007, 03:07 PM
Have you tried launching the executables (for browser etc.) directly from the command line in xterm ? I seem to remember the icons in the menus start them through some wrapper shell script that brings up the WLAN connection if it isn't already active... maybe the plain binary could work ?

dblank
12-05-2007, 08:04 PM
Have you tried launching the executables (for browser etc.) directly from the command line in xterm ? I seem to remember the icons in the menus start them through some wrapper shell script that brings up the WLAN connection if it isn't already active... maybe the plain binary could work ?

No luck.. the only way I've managed to get apps like the browser to work over ethernet is by keeping a WIFI or BT association.

I'm gonna try messing with dbus again, I don't remember what I did last time, but I was probably half asleep :)

fpp
12-06-2007, 05:56 AM
Sorry for the false lead, was probably only half awake too :-)

rps
12-11-2007, 01:22 PM
No luck.. the only way I've managed to get apps like the browser to work over ethernet is by keeping a WIFI or BT association.

I'm gonna try messing with dbus again, I don't remember what I did last time, but I was probably half asleep :)

I use dummyiap (http://maemo.org/community/wiki/dummyiap/) when using usbnet (works like a charm with my linux (http://maemo.org/community/wiki/HowToSetUpUsbNetworkingDebian) box - no need for an ethernet-adaptor, simply connect the usb cable - but has issues with WinXP (http://maemo.org/community/wiki/USBnetworkingWinXP)).

dblank
12-11-2007, 03:29 PM
I use dummyiap (http://maemo.org/community/wiki/dummyiap/) when using usbnet (works like a charm with my linux (http://maemo.org/community/wiki/HowToSetUpUsbNetworkingDebian) box - no need for an ethernet-adaptor, simply connect the usb cable - but has issues with WinXP (http://maemo.org/community/wiki/USBnetworkingWinXP)).

Wow, I can't believe I've never come across that :)

I'm guessing that will do the trick!

Big fat thank you.. will report back in a few if it works for me.

Edit: it's official, rps is my hero.. still can't believe I missed the dummy setting :D

pearl62
12-13-2007, 01:34 AM
So I have the Trendnet TU-ET100C (one of the listed RT8150 adapters) plugged in, but it doesnt seem to work. When I do an ifconfig -a, I dont see any USB or Eth interface listed. only loopback and wlan0. lsmod also doesnt seem to show g_ether.ko which I guess I would have expected.

Is there some to check if the driver is loaded? Is there some step I am missing?

You guys mentioned running udhcpd, but maybe I dont have this installed, as it doesnt seem to be recognized? Where can I get udhcpd?

pearl62
12-13-2007, 01:42 AM
Actually thereś no link light on the router, so I am pretty sure the driver is not being loaded on the N800 (OS2008). How can I start the driver?

dblank
12-13-2007, 02:40 AM
Actually thereś no link light on the router, so I am pretty sure the driver is not being loaded on the N800 (OS2008). How can I start the driver?

Have you enabled host mode?

pearl62
12-13-2007, 03:04 AM
Yes, and I am using a powered hub. A usb flash dongle works fine...

dblank
12-13-2007, 03:27 AM
Open up a terminal, type, as root: cat /proc/kmsg

plug in your adapter, any messages?

try connecting without the hub too.

pearl62
12-13-2007, 03:49 AM
Thanks. I can see that the usb ethernet adapter is being reported as an ADMtek device...

I guess I still need to keep looking for a RT8150 device.

dblank
12-13-2007, 04:30 AM
Don't give up yet! :)

Grab http://maemobox.org/dblank/usbnet.tgz

Extract and load pegasus driver
tar -xzf usbnet.tgz pegasus.ko
insmod pegasus.ko

then cat /proc/kmsg again and plug in your card.

pearl62
12-13-2007, 01:22 PM
Awesome! It works!

I just had to run udhcpc in xterm after plugging the adapter in. Is there a way to automate this, or have a script executed from a button in the UI?

pearl62
12-13-2007, 01:35 PM
Oh yeah, it's also working without the powered hub too!

dblank
12-13-2007, 03:12 PM
Awesome! It works!

I just had to run udhcpc in xterm after plugging the adapter in. Is there a way to automate this, or have a script executed from a button in the UI?

Easiest way would probably be to dump all the commands in a shell script, and write a .desktop file that loads the shell script.

qole
12-18-2007, 07:56 PM
You'll want to load whichever module supports your adapter, that usually requires finding out what chipset the adapter uses, then find out which module, if any, supports that chipset.

Included modules are:
catc
dm9601
kaweth
mcs7830
pegasus


How do you determine which modules support which chipsets? Is there a table online somewhere?

I found a cheap adapter that uses the ADM Tek 8511 chipset; any ideas?

dblank
12-18-2007, 08:23 PM
How do you determine which modules support which chipsets? Is there a table online somewhere?

I found a cheap adapter that uses the ADM Tek 8511 chipset; any ideas?

I'm not aware of any big list or anything.. but a quick search for admtek 8511 linux makes it sound like you'd want the pegasus module.

It's a good idea to search for the datasheet for the chipset as well (which can sometimes be a massive pain :) ) to look up power consumption; it has to consume less than 200mA to be powered by the tablets, and the less the better!

bioroid
01-16-2008, 10:19 PM
Easiest way would probably be to dump all the commands in a shell script, and write a .desktop file that loads the shell script.

Has anyone done this? I got my USB network adapter working but I haven't had any luck trying to make scripts and .desktop files to automate the process.

ripl
02-13-2008, 12:48 PM
A quick note to let folks know that this adapter works well with the N800.

HE130R Network Adapter (http://www.epinions.com/Generic_Memory_USB_to_RJ_45_Ethernet_Adapter_HE130 R_Network_Adapter/display_~full_specs)

Power from the N800 and use the dm9601.ko module.

Price is about $10.

chariscomp
02-21-2008, 01:48 PM
Hello,

I am able to use a SMC 2208USB usb to ethernet adapter with the pegasus.ko module that is in this thread. Someone earlier in the thread wanted to know how to make this easier to use. I was able to take the instructions in this wiki entry (http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_USB_Host_mode_on_the_N800_u sing_OS_2008) using the status bar switch method and modify them a little bit. I copied the pegasus.ko file to the /home/user/MyDocs folder. I then added the line insmod /home/user/MyDocs to the end of the Host.sh file. I then copied the Host.sh file and named it Ethup. I removed everything after the fi line and replaced it with this line: udhcpc. I followed the wiki instructions to add an entry to the Status bar and named it Wired Up. This allows me to easily start my ethernet. First, I set the default access point to DEFAULT as specified earlier. Next, I tap on Host mode. I plug in my adapter and then tap on Wired up. This connects me using DHCP. I hope this description helps someone!

The one thing I have not been able to figure out is how to manually set an IP address that works. I have opened up Xterm, run sudo gainroot and then run ifconfig eth0 down followed by ifconfig eth0 192.168.2.50 netmask 255.255.255.0 up. If I then run ifconfig eth0 it has changed to the manually specified IP. However, if I then attempt to ping my router (192.168.2.1) it always times out. I have even tried adding a route using route add default gw 192.168.2.1 but this doesn't seem to make a difference. One of the main "justifications" for my purchase of the N800 is to configure routers. I am most of the way there now, with the ability to automatically obtain an IP. All I need now is to be able to manually set an IP address. If anyone has any suggestions on how to manully set IP address with this setup, it would most appreciated.

Thanks for all the help that has already been provided!

Joshua

jolouis
02-22-2008, 07:48 PM
I accidentally stumbled across somewhere that had stock on the Linksys USB100M (I tried a 200M before but it required more power than the tablet was willing to give) and gave it a shot today. It's definately possible, but there's some work required.

I wanted to try and make things as easy as possible, so here's what I've got so far:
I created two scripts: usbEthUp and usbEthDown. The first one uses gconf to add a "WIRED" dummy connection to the list of available connections for the tablet, then calls udhcpc to run in the background and try to bring up eth0.
The second one does the exact opposite: removes the dummy "WIRED" connection from the connection list and calls udhcpc to run in the background again for a few seconds so that the old routes for eth0 get dumped from the routing table (that way wifi works correctly once more).
I then created a new udev rules file and set it up so that when the USB ethernet adapter is connected, the usbEthUp is automatically launched, and when it's removed, usbEthdown is launched.

The end result is that with the tablet offline/out of range of wifi connections:
1) Plug in USB Ethernet adapter using handy-dandy USB OTG adapter (http://www.internettablettalk.com/forums/showthread.php?t=15705)
2) I launch a web browser/whatever, and the connect dialog pops up with WIRED selected. I hit OK.
3) Internet/network works just as you'd expect.

When I'm done, simply disconnect the USB adapter and *theoretically* reconnect to wifi at a later point in time (the WIRED connection no longer appears in the list of possible choices).

I say theoretically because the one catch that I've run into seems to be that for some reason UDEV won't fire off a "Remove" event until you do something else with USB (i.e. plug in a different USB device, etc). So at the moment I have to manually call the usbEthDown (or restart the tablet) to get the wifi back up and running.

None the less, pretty sweet. My two sticking points for further work right now are 1) Figure out why on earth udev won't fire a remove event and 2) try to figure out if there's an easy way to automatically select/have the tablet select by default the WIRED connection instead of popping up the select connection box. I've been through a lot of D-BUS and maemo documentation this afternoon, and I thought I was getting close, but in 2008 they changed things around a bit and I can't find a straightforward way of doing it...

Also btw for your static IP problem, it might be worth trying:
run udhcpc -n -q -i eth0
then do an ifconfig eth0 IP/etc
then add static/default gateway.

My bet would be the reason it doesn't work is that you still have other routes left in the routing table that are over-riding your default gateway (keep in mind default gw is the last resort); calling udhcpc will clean those out for you when it fails. (alternatively just flush the whole routing table manually).

bluesubaru
02-29-2008, 03:49 PM
Would you care to share the scripts with us? This is just what I have been looking for.

oldskool
03-07-2008, 04:02 AM
I purchased the TRENDNET TU-ET100C USB to Ehernet adapter at Fry's, and I discovered that it uses the Admtek ADM8511 chip instead of the Realtek RTL8150. However, with the pegasus driver posted by dblank earlier, it seems to work fine with my Nokia N810. You just have to "insmod pegasus.ko" before bringing up the link.

The following script seems to work. I just sudo to run it:

echo host> /sys/devices/platform/musb_hdrc/mode
gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY
insmod /home/worker/pegasus.ko
echo 'plug in adapter and hit return'
read ans
ifup eth0

- oldskool

oldskool
03-07-2008, 04:08 AM
By the way, I also had modified the files '/etc/dnsmasq.conf' and '/etc/network/interfaces' as instructed in Kate Alhola's blog at: http://blogs.forum.nokia.com/blog/kate-alholas-forum-nokia-blog

- oldskool

oldskool
03-07-2008, 04:25 AM
In order to use the browser, you need to do the gconftool step (as shown in the script) to set the default IAP to DUMMY. Then, you select "DEFAULT" as the connection type in the wireless connection widget. That shuts down the wireless interface and allows the browser to access the net via the USB adapter.

Finally, I found a pre-wired micro USB On-The-Go (OTG) cable on Amazon Marketplace (from Bright Light Business) that works fine. However it is pretty long (3 meters). The cable is: Cables Unlimited 3 Meter USB Micro A Cable with Ferrites (USB126003M)

So far, the N810 seems to be working fine on battery power with the TRENDNET adapter.

jayholler
03-07-2008, 08:37 PM
I just wanted to add to the thread that I purchased the Linksys USB100M adapter and this worked great with Kate Aloha's instructions and Kontorri's USB Control Utility. I just use the USB Control Utility to switch to host mode, open terminal and type ifup eth0 as root. When I open the web browser the DUMMY access point is connected and it all works flawlessly! Good times.

jolouis
03-11-2008, 10:52 AM
Sorry I forgot to post this here earlier got so caught up with other threads and things:
http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008
I created a Wiki Entry for this topic. The entry describes how to use the package that I threw together based on the information and resources everyone had in this thread to get things up and going for your "plug and play" audience.
Download the package and install it. It sets the tablet up to autoload all of the supported USB networking modules on boot, and establishes some udev rules so that when you plug in a rtl-based adapter the DUMMY/WIRED account will dynamically be created, if up will be called, and things will just work; when you're done and you remove the adapter the dummy account goes away again and the wifi will operate normally. There's a slight glitch on the removal in that if you take the tablet out of host mode without unplugging the adapter first it may not work properly, but I'm working on fixing that one.

Thanks,
-Rob

gleitz
03-15-2008, 05:48 PM
The guide says:

"For devices other than those based on the RTL8150 you'll manually need to call "usbEthUp.sh" after you connect your device, and "usbEthDown.sh" after you remove it to get the network settings in place."

Where are these scripts? Do they come with the USBLan deb?

acevid
03-19-2008, 06:41 PM
noob here..be gentle..

I got my usb A FtF OTG adapter working, got a linksys USB100M.

USB control sees the adapter, and I've been able to get the DEFAULT/DUMMY iface conf'ed (when I open browser the DEFAULT option is there and I'm able to select it)

but alas..no page will load.

I have a feeling I'm missing something..like dhcp for iface(s)..or dns setting or something?

Thanks in advance smart people..

P.S. I'm pretty sure my usb A FtF is fine..it sees my sandisk USB drive fine..mounts it, files accessable..etc.

terrencegf
03-19-2008, 07:43 PM
noob here..be gentle..
I'm not a noob, but I was ALSO having problems until I followed this USB Networking blog post (http://blogs.forum.nokia.com/blog/kate-alholas-forum-nokia-blog/maemo/2008/02/12/usb-networking). The instructions there also apply to usb/ethernet setup. Just follow along until you get to the part about "insmod .../g_ether.ko ; ifup usb0" and replace with "insmod your_ethernet_chipset_driver.ko ; ifup eth0".

For me, I first select the DEFAULT network, type "sudo insmod pegasus.ko", plug in the USB Ethernet dongle (plugged into a mini-USB OTG adapter), plug in the ethernet cable, then do "sudo ifup eth0". I do "sudo ifdown eth0" before I unplug everything. Hope that helps.

acevid
03-19-2008, 08:23 PM
I really appreciate the reply..maybe I'm thick headed...but i can't for the life of me understand kate's blog entry..and I'm sure it's the fact that I'm a novice...I didn't think you needed a seprate server running ubuntu..??? if I read all the way thru the entry, it references just that--and the dhcp vs static stuff is clear as mud to me...

I want to use dhcp...but the instructions reference using static config..?

sorry in advance for the whine

acevid
03-19-2008, 09:08 PM
K <crying B*TCH mode=off)

Heh, per usual...RTFM saves the day. I went back and read..and read..and thought, and read..then tried it..and it works...amazing how RTFM'ing will get you thru...

:)

I really appreciate the reply..maybe I'm thick headed...but i can't for the life of me understand kate's blog entry..and I'm sure it's the fact that I'm a novice...I didn't think you needed a seprate server running ubuntu..??? if I read all the way thru the entry, it references just that--and the dhcp vs static stuff is clear as mud to me...

I want to use dhcp...but the instructions reference using static config..?

sorry in advance for the whine

Nighthawk
04-06-2008, 06:39 AM
I found an old Kawasaki USB Ethernet Adapter in my computer crate and followed the instructions in the Wiki-Article. I switch to USB-Host-mode and turn the Ethernet up by osso-statusbar-cpu and Mara's scripts. Now I can go online and surf (mailnotify and pidgin can also connect), but the builtin email application and the oweather applet can't connect to the internet (with wifi they can). Can anyone verify this behaviour or have an idea why this is happening?

regards Nighthawk

Nighthawk
04-06-2008, 07:32 PM
Still no solution. Anone an idea?

Benson
04-09-2008, 12:01 PM
Got a dummy connection set up?

jolouis
04-11-2008, 10:33 AM
Hmm, well I can't even get ossoweather do setup a working account for me (it used to be fine, but the latest install I just put on doesn't let me choose anything for add, I have to manually enter a zip code, and then it still doesn't do anything...) so I'm having a bit of trouble testing it... but theoretically I can't see why one would work (i.e. browser) and the other wouldn't.

Did you install the .deb package for USB networking and run the appropriate commands, or are you doing it all manually? You said you followed the instructions in the wiki, but was that the entry for USB networking, or the entry for USB host mode?

davep
04-19-2008, 07:26 PM
Will the dm9601 driver work for a dm9000 device?

kudos1uk
04-20-2008, 06:34 PM
I picked up a USB100M for the grand sum of £0.99 on ebay and am really happy with the wired performance, this will save me dragging a wireless access point around hotel rooms in the future.

Thanks all.

oldskool
05-01-2008, 04:14 AM
I wanted to post a follow-up based on my experience. It turns out that the TRENDNET TU-ET100C adapter only seems to work under a light load. As soon as you stress it, it fails and brings the system down with it. I think it starts to draw too much power from the N810.

I finally went out and got a Linksys USB100M and it works like a charm. I would recommend sticking with that model to avoid trouble.

I also wanted to report that Newegg.com has an adapter cable for the N810 for $1.99 that works well for this application on the N810. It is "Link Depot 3 ft. USB A/male to Micro USB 5 pin male Model
MUSB-3"

svs57
06-10-2008, 06:38 AM
I have problem after uprade to diablo pre release.
Usbnet works. The problem is that "connection search" doesn't find DEFAULT connection (DUMMY).
I can edit it but can't connect.
I install gconf-editor and find that there is no connection type DUMMY at all. (system-osso-cinnectivity-network-type)
If I change type of DEFAULT IAP from DUMMY to some other exist type then "conn. search" find DEFAULT.
Do anybody know how solve this problem.

darrennewman@sky.com
06-25-2008, 12:59 PM
I also am having problems since upgrading to diablo. Have reinstalled both reinstalled usbLAN_0.2.1_armel.deb and dbus-scripts_1.0.3_armel.deb, but get no conection when I try to swap to wired. Anyone got any ideas?

acevid
07-03-2008, 06:15 PM
Count me as another person who can't get wired eth working post-diablo install. Worked fine under OS20008..got usbLAN_0.2.1_armel.deb and dbus-scripts_1.0.3_armel.deb re-installed.

When I open a browser, no "wired" connection shows.

Benson
07-03-2008, 06:30 PM
Vote for #3306 (https://bugs.maemo.org/show_bug.cgi?id=3306)...

kudos1uk
07-04-2008, 02:53 PM
Count me in, it no longer works for me in Diablo, as the rest of you no "wired" appearing.

I'm pinning my hopes on jolouis fixing the scripts.

jolouis
07-04-2008, 10:37 PM
Hey All,

Okay well I stayed away from upgrading to Diablo as I've been busy and I always like to give everyone a few months to get the bugs sorted before jumping over, but thanks to Benson's info I'll see what I can do to work around this and get things working again; keep an eye out for updated information soon.

Thanks!
-Rob

xopher_mc
08-08-2008, 08:38 PM
Just wanted to see if there was any news on this?

Looking at it myself, I wondered if \system\osso\connectivity\network_type needs a Dummy entry.

Is anyone running chinook who can check to see if such an entry exists and if so what it contains.

Thanks!

jolouis
08-11-2008, 01:13 PM
The problem is that Nokia changed the wireless connectivity manager and they goofed and left out the "dummy" option... it's there, but it won't display in the list of available connections. There's an open bug for it but eta for fixing is unknown last time I checked. I've been meaning to get working on a fix for it but have not had time yet; so far I'm trying to figure out if it's possible to just gconf/some kind of CLI to actually manually force a connection instead of having to choose it from the connection manager, since that would solve it an eliminate the need for selecting "wired" all the time anyways...

-Rob

xopher_mc
08-11-2008, 03:56 PM
I wonder what the system does to check that it has a wifi connection? And how you would give it a false result.

At least I can still ssh using the usb networking!

I know this shows how little I know, but the \system\osso\connectivity\network_type\ entries all point to the kernel modules to use. Could one not add the dummy module and then add an entry in gconf (copying from chinook)? Or is it a problem with how the network manager has been compiled?

hallgreng
08-13-2008, 03:48 AM
i did a little check and this works for me in diablo running the update that came out today:

1. go into host mode
2. connect usb nic, wait for it to finish complaining
3. put/get ip address on eth0:
#udhcpd eth0
4. UNLOAD THE WLAN MODULE:
#rmmod cx3110x
5. open web browser, it works

i dont know if the gconftool...DUMMY command is necessary for this to work, but i did do that prior to all of this.

the wlan icon blinks endlessly, but everything seems to work fine.

i cant seem to reload the cx3110 module with modprobe. any way i try, it complains about being unable to parse modules.dep, which doesnt seem to exist on my n810. because of this, to get wlan back i simply reboot -a small price to pay =]

fanoush
08-13-2008, 04:36 AM
4. UNLOAD THE WLAN MODULE:
#rmmod cx3110x
that's not needed, if you want to save power run
# ifconfig wlan0 down

This worked before latest update and is known workaround since the time they broke dummy connections last time (in OS2007)

qwerty12
08-13-2008, 05:23 AM
i cant seem to reload the cx3110 module with modprobe. any way i try, it complains about being unable to parse modules.dep, which doesnt seem to exist on my n810. because of this, to get wlan back i simply reboot -a small price to pay =]

You have to use insmod. If you want to modprobe, run depmod to generate the modules.dep (sse2.net/depmod)

(Thanks jott!)

fanoush
08-13-2008, 07:13 AM
You have to use insmod
And then don't forget to run
# chroot /mnt/initfs wlan-cal
to reload wi-fi chip with MAC address and other stuff. ifconfig down is less 'destructive' than rmmod cx3110x

xopher_mc
08-13-2008, 08:54 PM
ok,

Tried the ifconfig wlan0 down. It didn't seem to work.

But I think I've stumbled upon the neatest solution. The way to solve it is to stop the icd2 service. When this is stopped it stop asking for connection and just uses the usb one. Seems neater then unloading modules too. :)

to disable the service as root type:

/etc/init.d/icd2 stop

to start again when you've finished

/etc/init.d/icd2 start

darrennewman@sky.com
08-13-2008, 09:16 PM
Seems to work well for Web Browsing and Pidgin but could not get Modest to connect.

jolouis
08-14-2008, 06:12 PM
Don't know about this one guys I just got Diablo up on my tablet yesterday and haven't been able to reproduce the desired effect by killing icd2; it seems if icd2 isn't running then none of the apps seem to know what to do and just refuse to go anywhere. From the command line I can ping, ssh, etc, but the browser/pidgin/etc simply refuse to do anything. If somebody can confirm a workaround I'll roll it into the USB Lan package, but I can't get a consistent one working here yet...

-Rob

xopher_mc
08-14-2008, 06:39 PM
Hey darren and Rob,

It appears that it only work if the wireless was on first them switch to usb ethernet by killing icd2. After a reboot (i.e. straight to usb) it won't connect this way.

How annoying.

Xopher

jolouis
08-21-2008, 10:54 AM
Okay all, Nokia was kind enough to half-fix the problem (they provided a module to support dummy connections, but it doesn't work quite as well as it should); they're saying that there will be a full/proper fix but that will come later when the developers have more time (i.e. Sept?).

Anyways, in the mean time I've taken what they put forth and done some hacking up to get it bundled into the latest version of the usbLAN package that you can grab from my support files here:
http://www.electronicproductonline.com/~electron/catalog/supportFiles/usbLAN_0.3.0_armel.deb

I've confirmed that it works on Diablo without issue; the only big difference between using the package on Diablo VS Chinook is that instead of getting a connection named "WIRED" showing up int he connections panel, it's called "Dummy" (that was one of the issues with the Nokia provided solution thus far... the DUMMY connection is hardwired to be called Dummy).

Outside of that though it works exactly the same way: install package along with Dbus-Scripts, connect network adapter to ethernet cable, plug network adapter into USB port using OTG (if desired), select "Dummy" from the available connections in the connection manager, and away you go.
When you're done, disconnect the USB cable and the Dummy connection will automatically disappear.

Details for anyone who's unsure about the process are in the Wiki Entry:
http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008

I'm also going to add another post to the main General forum describing this since this one's pretty tucked away and I think a lot of users are going to miss it here.

Thanks,
-Rob

bigr3dd0g
08-28-2008, 02:04 AM
i encountered a problem with this while running diablo. I don't want to have two threads about it though. http://www.internettablettalk.com/forums/showpost.php?p=218023&postcount=11

jaeezzy
09-07-2008, 10:56 AM
I'm thinking of buying one of this kind. please let me know if its worth buying. And by the way do I have to install driver and how? thanks....
http://cgi.ebay.com.au/USB-TO-LAN-RJ45-ETHERNET-10-100-MBPS-NETWORK-ADAPTER-OZ_W0QQitemZ380061597538QQihZ025QQcategoryZ20319QQ ssPageNameZWDVWQQrdZ1QQcmdZViewItem

ronzo
09-15-2008, 09:51 AM
Any experiences with Linksys USB200M?

jolouis
09-16-2008, 11:42 AM
Okay, Wiki and USB LAN package has been updated:
http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008

I've been trying to get it up into the maemo extras repository, but it's a lot more difficult than originally anticipated, so in the mean time I've just gone back to the way things used to be. The Wiki instructions have been updated for the new package that works with both Chinook and Diablo without problems (it also eliminated the need to manually select the WIRED connection). bigr3dd0g, uninstall the package that you've got, and follow the wiki directions step by step; should solve all problems and just work.

jaeezzy, not sure never seen that one before, but if it's supported by Linux and doesn't draw too much power then it should work. See Wiki entry noted above for instructions and details.

ronzo, the USB200M requires more power than the tablet's USB interface will natively put out. It should work, but you'll need an externally powered USB hub; this is why most of us have stuck with the USB100M which does not have this problem.

Also don't forget guys, new USB OTG adapters are available that make connecting your LAN adapters a lot nicer and more compact:
http://www.internettablettalk.com/forums/showthread.php?t=23633

Thanks,
-Rob

ronzo
09-16-2008, 04:53 PM
I cannot find a store that sells the USB100M in .de - even eBay does not list it...

Are there any reasonably priced alternatives that can be found in a European store? Or somebody know a US-Store that dispatches to the EU?

Thanks a lot in advance!

cheers,
ronzo

darrennewman@sky.com
09-16-2008, 06:05 PM
I got one of these off ebay

http://cgi.ebay.co.uk/USB-Ethernet-10-100-Network-LAN-Adapter-Rj45-NIC-CAR3_W0QQitemZ250293262761QQcmdZViewItem?hash=item 250293262761&_trkparms=39%3A1%7C66%3A2%7C65%3A15%7C240%3A1318&_trksid=p3286.c0.m14

works a treat with the USB LAN package and very cheap too.

XTC
09-17-2008, 05:03 AM
I've got problems with dummy connection.
I tried to do it by myself - manually insmodding proper module.
I've had maemo-pan installed - every time I've selected "dummy" from connection manager - I've seen notification that none of my authorized bluetooth devices were found.
I can ping remote hosts even with dns resolve but the browser is "connecting" with no effect.

kudos1uk
09-17-2008, 02:30 PM
I cannot find a store that sells the USB100M in .de - even eBay does not list it...

cheers,
ronzo

They do come up on ebay but not too often, you need to keep checking.

This was the last one that went in the UK: http://cgi.ebay.co.uk/Linksys-10-100-USB-Adapter-USB100M-N-Reserve_W0QQitemZ110283886298QQihZ001QQcategoryZ50 197QQssPageNameZWDVWQQrdZ1QQcmdZViewItem

Texrat
09-17-2008, 02:34 PM
Thanks Darren, I just picked up 4.

jaeezzy
09-19-2008, 08:19 AM
Hi, I downloaded dbus script and USB LAN packages from WIKI and I followed the steps and as I'm using adapter with different chip I entered usbEthUp.sh and at the end it said "connecte to WIRED" but can't surf internet or do anything related to internet. By the way I'm using N810 with the latest software and in message I got after usbEthUP.sh is:
/usr/sbin # usbEthUp.sh

No value set for `/system/osso/connectivity/IAP/auto_connect'

udhcpc (v0.9.9-pre) started

Sending discover...

Sending discover...

Sending select for 10.1.1.5...

Lease of 10.1.1.5 obtained, lease time -1

/etc/udhcpc/default.script: exec: line 7: /etc/udhcpc/default.zeroconf.dhcpup: not found

Resetting default routes

adding dns 10.1.1.1

adding dns 10.1.1.1

/usr/sbin #

Please guide me through it, I'm a newbie as well.. thanks.
One confusion: While going through Kate Alhola's blog there's the mentioning of configuring Linux server. So, is the internet connection via computer? coz how I'm trying now is, I got ADSL modem and I connect the ethernet cable from that modem to the ethernet adapter and to my IT directly, no computer involved. Moreover, I just use Vista in my computer. thanks again...

Texrat
09-28-2008, 04:20 PM
I got one of these off ebay

http://cgi.ebay.co.uk/USB-Ethernet-10-100-Network-LAN-Adapter-Rj45-NIC-CAR3_W0QQitemZ250293262761QQcmdZViewItem?hash=item 250293262761&_trkparms=39%3A1%7C66%3A2%7C65%3A15%7C240%3A1318&_trksid=p3286.c0.m14

works a treat with the USB LAN package and very cheap too.

I bought some of those, but so far no success with them. :( But the problem may lie elsewhere... as I noted in another thread I can't even see a Dummy or Wired connection option...

jolouis
09-29-2008, 04:20 PM
Too many threads around here to keep on top of all the time! Anyways, I'm not sure what the general consensus is with which products work and which don't, but in my own tests and experimentation I do NOT recommend usb-ethernet adapters made by knock-off/non branded companies. In general they seem to work on a "this one works for me, that one fails to initialize, this one works for 5 minutes and explodes" sort of basis. The last "cheapie" one I picked up looked identical to the one that darren linked to on Ebay (though mine was braded as "n-gear") and it was the most horrific piece of junk ever created... the product ID and manufacturer ID were not correct, requiring manual alterations to the kernel driver source and a recompile... okay, Linux, USB devices, fair enough, sometimes it happens... but even after all that work when I finally got it recognized I had to use a powered hub (even though the thing was only USB 1.1), AND it only worked sometimes. 1 out of 5 times it would succeed on a DHCP discover, only to suddenly stop working after a minute or two (sometimes even disappearing from the USB bus all together!). Anyways, the long story short here... in my oppinion, if you're serious about wanting to use usb networking, get a Linksys USB100M. If you want to try and fiddle around with something cheap, then be prepared to spend a lot of time fiddling around and don't expect any guarantees that it will work properly in the end; it may do, it may not.

-Rob

Jaffa
09-29-2008, 06:21 PM
if you're serious about wanting to use usb networking, get a Linksys USB100M.

Trouble is, finding them is nigh on impossible. Anyone who stocks branded goods has moved on to USB1000Ms etc. I can't find any online stockists who'll ship to the UK, and couldn't find any in any store in San Francisco.

I've ended up spending £3.40 for the linked one, worst case: I'm no worse off (apart from a London pint) than I am now; best case: working USB networking.

If you know of a (preferably worldwide) reputable and reliable source for Linksys USB100Ms, please share :-)

Texrat
09-29-2008, 08:05 PM
The blue ones are all over ebay (in various colors) and are built on the Realtek RTL8150L chipset.

Rob, if you want one to play with, PM me your address and I'll send ya one free.

EDIT: this is odd-- when I plugged one into my laptop the first time, it said RTL8150L device found... but when I plugged it in a second time, it said DM9601... :confused:

jolouis
09-30-2008, 11:21 AM
As I said before I've actually got one sitting here, perhaps the chipset is slightly different I'll have to dig it out and have another go, but if somebody could post a dmesg printout of what you get when you connect yours I'd just like to verify that I'm getting the same output here.

As for Linksys USB100Ms, you can still get them from my site (I do my very best to keep them in stock specifically for we Tablet folk ;-) ); pick it up with an OTG adapter and consolidate on some shipping while you're at it too :o) (It's only $11 canadian after all):
http://www.electronicproductonline.com/catalog/product_info.php?products_id=1800
(Sorry about the blatant plug for my own website, but it is geared towards this community, so it's not like it's shameless and I'm certainly not saying that there aren't any other options)

Thanks,
-Rob

Jaffa
09-30-2008, 04:49 PM
As for Linksys USB100Ms, you can still get them from my site (I do my very best to keep them in stock specifically for we Tablet folk ;-) ); pick it up with an OTG adapter and consolidate on some shipping while you're at it too :o) (It's only $11 canadian after all)

For shipping to the UK it also quotes $11; is that correct? The courier prices get very pricey.

Certainly, if I can't get a cheapo-knockoff working, I'll seriously consider a USB100M from you.

jolouis
09-30-2008, 05:15 PM
Yup $11 to the UK is correct (basically anywhere overseas is $11 for the small tablet-related stuff) for the OEM version (that is you get the USB100M and everything that normally comes with it in the retail package (original blister pack thing, cables, manual, etc), just not the big "Linksys/Cisco" blue and orange box itself because it's such a waste of space and basically triples the shipping costs).

Thanks,
-Rob

petr
10-06-2008, 10:51 AM
I have bought a Digitus USB 2.0 to Fast Ethernet Adapter (from Tragant Computer?) and it simply doesn't work. It reports:

- device v07a6 p8515 is not supported
- rejected 1 configuration due to insufficient available bus power
- 192mA power budget left

Photo of the little beast (http://www.sws.cz/img.asp?stiid=143637)

I was hoping the Pegasus driver would support the 8515 and that it wouldn't require that much power - apparently I was wrong on both. So beware...

jolouis
10-06-2008, 02:27 PM
Sorry about your luck there Petr; generally speaking though USB 2.0 chipsets seem to require more power than the USB 1.1 versions, which ends up being where the difference comes in; so if you're looking at other alternatives than the ones already listed up in the Wiki, try to find one that you can either identify the actual chip on, or that doesn't "tote itself" as USB 2.0 (There are actually quite a few "10/100mbps" adapters that are USB 1.1... in reality they don't operate at 100mpbs, but then the tablet's USB interface also won't handle that level of throughput anyway...)

Texrat
10-08-2008, 08:53 AM
petr, can you document your experience in the wiki, as we have with previous devices (bottom of page)?

http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008

GeraldKo
02-21-2009, 02:22 AM
Here's a USB-to-Ethernet (plus three-socket USB hub) from a place in Seattle that makes custom cables. I don't know the chipset or anything, and I decided I'm better off with a Travel Router for my purposes so I haven't bought one; but they deal on the internet, and at least locally they offered to let me bring it back if it didn't work with the N800. Here (http://www.datapro.net/products/usb-to-ethernet-with-3-port-usb-hub.html)'s the product page. I think it at least looks good.

walto
02-26-2009, 01:47 PM
I just got a DIGITUS 10/100 Mbps Fast Ethernet USB adapter DN-3015 from amazon.de:

http://www.amazon.de/Digitus-100-Ethernet-Adapter-USB1-1/dp/B000Z2FDVE/ref=sr_1_1?ie=UTF8&s=ce-de&qid=1235670180&sr=8-1

It is an USB 1.1 device and uses 120mA max.

I haven't tested it extensively but using an micro A to USB female adapter it works out-of-the-box following the HOWTO:

http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008

scaler
05-06-2009, 07:11 PM
First I'd like to thank Rob for writing his HOWTO to help users reach the real-world goal of connecting to the internet in a hotel room. The Tablets (especially the N770) are perfect for travel, but the advantage of compactness is lost if you also have to carry an AP for locations lacking WiFi. Unless you have a local SIM, GPRS connections can be prohibitively expensive. There are other blogs and wikis and apps for USB networking, but they aim to connect a Tablet with another Linux computer, which also must be configured to accept the connection. Not many hotel managers would let a guest configure the hotel's computer or router.

Can someone confirm that usbLAN will not work with OS2008HE? In Rob's example of the dmesg when he connects his Linksys adapter, there is a line:

usb 1-1: new full speed USB device using musb_hdrc and address 9 .

The N770 does not use musb_hdrc, not even in 2008HE. Mine tried to use ohci to connect the RTL8150 device. The funny thing is, the WIRED connection came up in Connections Manager, and all the correct lights came on, including the router's LED for the relevant wired port. However, the browser would not show any web pages.

The adapter works perfectly on the PC, which identifies it as being indeed a Realtek RTL8150.

Kate Alhola's edits of /etc/dnsmasq.conf and /etc/network/interfaces didn't help, whether combined with usbLAN or with the dummy IAP. During these attempts, I had disabled MAC filtering on the router.

With the dummy IAP approach, the Tablet did reach the stage of "Waiting for RNDIS". Do hotels usually have the appropriate RNDIS driver? I have not installed it on my PC, because I want to connect the Tablet with the router and internet, not with the PC.

Has anyone succeeded in connecting an N770 to a hotel room's ethernet port?

jolouis
05-07-2009, 11:14 AM
Have to admit I've never tried it on a 770; I know the USB stuff is a lot more difficult because to get host mode working don't you have to feed power back into the tablet or something odd like that?

Anyways, you said that the lights come on on the device so that's usually a good sign, and if the dummy IAP actually automatically appears that's also a good thing as it means the UDEV stuff is running. Is the 2008HE inline with Chinook or Diablo by the way? Because I know they changed the ICD (the thing that manages internet connections) in Diablo, and thus why there are still two version of the package though I believe that I tried to make the Diablo one as backwards compatible as possible...

One thing I can recommend trying to help troubleshoot is going into xterm, becoming root, and 1) type in "route" and see what the routing table shows (i.e. does it see your eth0 adapter with an IP), 2) do an ifconfig (and see if eth0 is listed and if it does indeed have an IP and 3) if both those are good try a ping to see if traffic will actually go across the interface. If the ping works then it's definitely something goofy with the ICD stuff...

Thanks!

Texrat
05-07-2009, 11:23 AM
Yikes, the wiki links no longer work... ???

EDIT: I found the following wiki article -- http://wiki.maemo.org/USB_networking

However, the article where we described device testing appears to have vanished...

scaler
05-08-2009, 06:09 PM
Dear Rob/jolouis,

You are very kind to make such a detailed reply to my frustrated grumble. I really would like to know if anyone out there has ever accessed web pages on a 770 connected to a hotel LAN by cable. I had made up my mind to stop wasting time on something which is perhaps not even possible. The old USB_networking wiki gives instructions for connecting to the internet, but they only work if the LAN host is specifically configured to allow the Tablet connection. If there had been a way to do it without configuring the host, Michael Mlivoncic would surely have described it. (My apologies go to Michael for my implication that only Linux hosts were ever considered. He also went into great detail about configuration of a Windows host.)

You ask whether 2008HE is in line with Chinook or Diablo. The answer is, it's in line with Chinook - in most ways. USB handling is one of the ways in which it remains in line with the older N770 OS's. This may have something to do with the hardware, and is the reason why I am not confident of ever getting the hotel-room thing to work. For example, the famous "echo host" command line in 2008HE is still "echo host > sys/devices/platform/tahvo-usb/otg_mode" as in pre-N800 systems. The "/musb_hdrc/mode" ending is for true OS2008 on Nokia 8x0.

The USB Control application does not work in 2008HE - another indication of the differences in USB handling.

During my earlier attempts, there were some spectacular crashes of the browser, the Tablet and the router . The dmesg indicated an overload of some kind. That was a few weeks ago, and I am not sure what I was doing differently. There is always the possibility that the "native support" of RTL8150 got burned out. Now I just get the usual "Web page not found" message on the browser. The dmesg does not mention the product and manufacturer by name (although the PC has no trouble identifying Realtek RTL8150). Other than "usb 1-1: device v0bda p8150 is not supported", I do not get any of the dmesg output that you have quoted. I can not tell from memory whether or not there was more a few weeks ago, before the spectacular crashes.

eth0 is not listed in the ifconfig.

Sorry to be unhelpful, but I have coiled up my ethernet cable and am not trying anything else unless I hear of an actual hotel-room connection on 770.

The rest of this post doesn't really belong in this thread, but might be interesting to N770 users who have had a hard time working through some of the old threads about USB host mode.

Host mode on the 770 is not so difficult as some of the ITT threads make it seem. If I can find the post again, I should give thanks to the member who first suggested using a USB power-data "Y" cable. [Oh, it was Fanoush. Done it.] The cables can be found as eBay "Buy It Now" items for about $5 US, including shipping from Hong Kong to USA, Canada and most European countries. You can also get a power adapter intended for recharging ipods, for even less than $5; it gives a reliable 5V output from a USB port, plugs in to anything in the range 100-240 VAC at 50 or 60 Hz, and weighs 32 grams. Between them, these items eliminate the hardware hacking which gets so much attention in the old ITT threads.

If you are attaching cables to the Tablet, you are probably sitting at a table in a room with a power outlet into which you can plug the ipod charger. For anyone who insists on total portability and is willing to spend $25 to $55 Canadian, Noma makes three models of rechargeable battery packs with USB ports (lower price for NiMH batteries, higher for Li-ion 3250 mAh). With the Li-ion Noma pack, you don't need to carry chargers for Tablet and cell phone. (The NiMH model is also supposed to replace all other chargers, but most users find it inadequate.) I haven't seen the Noma packs or anything equivalent in the States, or even in any store other than Canadian Tire. Sorry.

The other cause of confusion in the old threads is that people were trying to activate host mode (and even publishing scripts which purported to activate host mode) without inserting the ohci-hcd host controller and other modules needed for their drives and keyboards. This is clarified by Fanoush in http://talk.maemo.org/showpost.php?p=44457&postcount=4 and http://talk.maemo.org/showpost.php?p=44550&postcount=13 . If you are using Fanoush's initfs for multiple bootable partitions and want to make host mode the default for one of the partitions, you can throw all of the host modules in with the MENU_X_MODULES and insert them during the boot. It's dirty, but it works. Unfortunately, you still have to run the command "echo host > /sys/devices/platform/what/ever" as root. I decided that if I had to use the command line anyway, I might as well activate host mode more cleanly by running a script with a lot of insmod lines and the "echo host"command built in.

Similarly for removing the modules and activating peripheral mode. If you don't remove the modules, odd things happen in peripheral mode. Any files created after the "echo peripheral" command will be invisible to your PC. There might be other strange things. To be truly in peripheral mode, you have to remove the host modules. The good news is, you only have to write rmmod and the name of the module (asix or whatever), not the whole directory string.

lardman
05-08-2009, 06:42 PM
There was some sort of false connection which could be used for some game or other iirc (i.e. to fool the Hildon libs into thinking there was a connection), I guess this might work.

Can't remember the name mind you, anyone?

jolouis
05-10-2009, 12:08 PM
lardman: the module you're thinking of is the DUMMY connection, and should have been automatically activated by the ethernet scripts.

Scaler: Well I'd be willing to try and help you troubleshoot it a bit to see if it can be made to work, but if you've pretty much given up on it then there's not a lot I can do. (I can borrow my bro's old 770, but I'd have to put 2008HE on it, rig up all the USB cables/buy them, etc and since I'm already quite happy with my two N800s and am looking forward to the next tablet I'm a little hesitant to do all that as I don't really see the advantage to breathing any more life into that 770... it served well for many years, but at this point it's pretty much ready to retire).

The only thing I can suggest if you are looking to try again would be to try running the usbEthUp.sh script manually and look at the output to see if it gives you any errors; it's possible that it's not being run because of a difference in the way UDEV is handled/detects devices on the HE vs regular 2008; in any case it could give you an indication of what's not working right, but again I can't be 100% sure.

Thanks!

mullf
05-10-2009, 12:44 PM
petr, can you document your experience in the wiki, as we have with previous devices (bottom of page)?

http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_Wired_Networking_using_USB_ host_mode_and_OS_2008

The info from the old wiki is copied here:

http://talk.maemo.org/showthread.php?p=286030#post286030

scaler
05-13-2009, 05:28 PM
I'd have to put 2008HE on it, rig up all the USB cables/buy them, etc and ........ I'm a little hesitant to do all that !


I certainly don't suggest that you should, and I apologize if I gave the impression that I was angling for help on that scale. At this point, I strongly suspect that the 770 is not capable of browsing the internet via cable connection to a LAN, unless the LAN as well as the 770 is specifically configured to accept the connection.

This is not based on any understanding of networks or of the 770's internal workings. A better-informed member might reply on the lines of : "Sure you can do it. I used to plug mine into hotel internet ports everywhere I went." However, so far nobody claims to have done it, in all the years that the 770 has been around. When such an obviously useful adaptation remains uncelebrated, there are grounds to doubt whether it is in fact achievable. I would not ask you or anyone to spend time on a search that holds so little promise.

As you point out, there are probably not many people still depending on the 770. The times when it makes a real difference in my life are when I am travelling five or more time zones away from home. That is at most three weeks in a year. The rest of the time, it is a nice toy but nothing more. There are nearly always alternatives to the wired hotel-room connection, even if they are more expensive or need some forethought. (For example, I should have bought more prepaid GSM phone vouchers in Italy last year before going to Switzerland.) Bearing all these things in mind, it makes no sense for either of us to put more time and money into this problem.

There is one last thing that might be worth asking about. Kate Alhola mentions that the RTL8150 has been used with the 770, but she does not actually say that the relevant driver is "natively" present, whereas she does use that expression with regard to the 810. Maybe people injected a customized driver in the 770 when they set it up for networking. Even if the driver is supposed to be present, I might have done something to incapacitate it. Is there a simple way of finding out whether it is in fact present? My dmesg contains nothing to indicate that the 770 recognizes the RTL8150.

scaler
07-14-2009, 05:35 PM
Have to admit I've never tried it on a 770;

One thing I can recommend trying to help troubleshoot is going into xterm, becoming root, and 1) type in "route" and see what the routing table shows (i.e. does it see your eth0 adapter with an IP), 2) do an ifconfig (and see if eth0 is listed and if it does indeed have an IP and 3) if both those are good try a ping to see if traffic will actually go across the interface. If the ping works then it's definitely something goofy with the ICD stuff...


Well, I finally tried again with OS2008HE. I was buoyed up from good success with the port of gphoto2, which also uses USB connections and was written for 8x0 tablets without any adaptation for 2008HE. I am now using a USB power injector that supplies up to 800 mA, so we can rule out any power shortage as a possible cause of failure. (The limit was 350 mA on earlier attempts.)

With the RTL8150, the results were as before. The message came up "Connected to WIRED", all the correct LED's lit up, and Connection Manager indicated the connection to "WIRED". The MicroB browser disagreed and suggested that there was no internet connection. Following your advice, I ran "route" and "ifconfig".

The output from "route" looks like nothing but column headers:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface

[I wrote these in the same pattern as the output, but multiple spaces have been edited out by the forum.]

"ifconfig -a" returned information about lo and wlan0, but no mention of eth0.

"ifconfig eth0" returned the following:

ifconfig: eth0: error fetching interface information : Device not found

On my router, I had disabled MAC Address Filtering. I don't think there is anything else on the wired LAN that could have blocked the connection (no Client IP Filters). The DHCP server was on. Although the router's LED indicated a live connection to the Tablet, the DHCP Client List had only one entry, my desktop PC.

I previously mentioned a suspicion that my Tablet might not in fact have a driver for the RTL8150. I decided to try with a TrendNet TU-ET100C, since your packages include the Pegasus driver that it needs. (If I had paid closer attention to the "version magic" messages, I would have saved myself the time and money. I'll come back to that later.)

When I ran usbEthUp.sh with the TrendNet attached, I got the following output in XTerm:

udhcp (v0.9.9-pre) started
SIOGGIFINDEX failed : No such device

The only difference from the RTL8150 attempts was that the router's LED did not light up for the TrendNet.

Looking back through the XTerm output, I found "version magic" messages which had popped up during installation of your packages (I think). In the past, I have usually found that these messages were a good sign, indicating that a usable substitute had been installed instead of a specified file. This time, I failed at first to notice a crucial difference: the version magic did not install any substitutes. The first message was:

catc : version magic '2.6.21-omap1 mod_unload ARMv6 ' should be '2.6.16.27-omap1 preempt ARMv5 gcc-3.4'

and similarly for all the other drivers in the package. Although App Manager indicated a successful installation, it appears that the drivers were not in fact installed.

Sorry that this post is another downer. I have aimed it mainly at 770 users who are using OS2008HE (supposedly Chinook) to run apps written for (real) OS2008 Chinook. Anyone hoping to do that with these packages needs a good knowledge of networking, Unix and Linux (I don't) and must be prepared to invest money and a lot of time in the attempt.

dbec10
07-14-2009, 11:43 PM
I've been reading about this USB sporadically over a period of a year and I am still a little confused where cables are concerned.

The N800 uses a mini usb-b cable and the n810 uses a micro usb-b cable? I seen others recommend a microusb-a cable. The CA101 the N810 comes with is micro usb-B.

Anyway...

Seeing as I have that, can I use the CA101 the N810 came with and just get a female to female USB adaptor for using an ethernet adaptor or for a flash drive along with the various scripts and commands?

electrolind
09-26-2009, 11:53 AM
I've been reading about this USB sporadically over a period of a year and I am still a little confused where cables are concerned.

The N800 uses a mini usb-b cable and the n810 uses a micro usb-b cable? I seen others recommend a microusb-a cable. The CA101 the N810 comes with is micro usb-B.

Anyway...

Seeing as I have that, can I use the CA101 the N810 came with and just get a female to female USB adaptor for using an ethernet adaptor or for a flash drive along with the various scripts and commands?

In a single word, YES. (CA101<->Female-female Adapter<->Linksys100M<->Ethernet cable)

zimon
06-16-2010, 12:21 AM
How to get access point "Dummy" in PR1.2 of N900?

Patola
06-16-2010, 12:41 AM
Same as PR1.1, you install libicd-network-null and set up according to the Wiki (http://wiki.maemo.org/N900_USB_networking).

mangler
09-30-2010, 08:38 PM
I have the Trendnet TU-ET100c, and I installed the scripts to put usb into host mode with a stylus click. I tried to connect to the internet, and it did, but it is slooooow. Now I wonder if I have the right driver. Does anyone have the package that contains the correct driver for the trendnet device? I keep finding files that are no longer hosted, and not looking exactly what to look for, it has been frustrating.

Thanks