![]() |
N900 USB networking not working properly
I followed the instructions here: http://wiki.maemo.org/N900_USB_networking
This gets me a USB networking connection between the N900 and my desktop. I also setup the desktop to allow the N900 to connect out. Testing reveals that this is all working as it should: - I can ssh from the desktop machine to the N900. - I can ssh from the N900 to a machine elsewhere on the internet. What I can't do though is use any GUI app that needs network access because Maemo thinks there is no network access. It wants me to select a network to connect to and if I don't pick one then none of the apps even try to connect. Does anyone know how to fix this? I think perhaps I need to instruct Maemo that there is a new type of network connection that it can use that isn't WLAN/3G/EDGE but I don't know how to do that. |
Re: N900 USB networking not working properly
Hmm... I found a workaround, based on an idea from this thread:
http://talk.maemo.org/showthread.php?p=395452 The advice there is to connect to some kind of connection and then bring up the USB connection. What this does is to affect the route order. I have an automatic version of this workaround that simply removes the unwanted route. In my case, there's a WLAN connection I can connect to but it's not reliable for actual use. The script also works with a 3G/EDGE connection. I created /etc/network/if-up.d/99_fix_routes which will run every time a new interface comes up. Code:
#!/bin/sh I don't know why GPRS, EDGE and 3G all use the gprs0 device... This seems to work fine for me but it is still a workaround. What if there was no phone network or wifi point to connect to but you had a computer using some satelite connection setup for USB networking? What I'm saying is that a proper fix would be better than this workaround. |
Re: N900 USB networking not working properly
Hi
I've tried similar thing before, but with usb interface up first then ones connected to some wlan, I've deleted the second default entry from the routing table. That seemd to work but I couldn't load any pages (except for some cached bits), I was getting weird "Reload" html gibberish, which eventually crashed my browser. Anyway I'm going to try your way now ) |
Re: N900 USB networking not working properly
a1291762, what would be great is if you would create an installable package to put in Extras!
You could include your if-up.d script (although I might recommend changing the name to make it clear it came from your package) plus an icon which an ordinary user could use to run a script to do the ifup usb0. A PDF or HTML file with instructions on how to set up the other end as well would really complete the package! Graham |
Re: N900 USB networking not working properly
An installable package sounds like a good idea. I'll give it a go.
|
Re: N900 USB networking not working properly
Just to add, the easiest way to get WiFi connection for it is to create a new WiFi connection through Settings > Internet Connections > Connections and New Name it then click next, set network mode as Ad hoc and Security method as None
Click Next and then on Advanced There set an Ip Address (uncheck Auto -retrive) to something like 192.168.2.16/24 and default gateway to 196.168.2.14 Might need to set DNS there too Save it. It might be good idea to reduce signal power to 10 instead of default 100 Unfortunately you then still need to delete the wlan0 or gprs default route (. |
Re: N900 USB networking not working properly
Quote:
|
Re: N900 USB networking not working properly
I tried that, when you connect to WiFi it automatically creates its routes with metric of 0, when I try to override it within the /etc/interfaces it didn't work, maybe my fault. But certainly changing metric of wlan/gprs to something higher helps ) Thanks.
|
Re: N900 USB networking not working properly
Did you try Mad Developer? IT has some USB settings through gui.
|
Re: N900 USB networking not working properly
After second upgrade USB networking became more difficult since wlan rewrites the route occasionally (
If you use an ad-hoc wifi, it seems to work fine though |
All times are GMT. The time now is 09:38. |
vBulletin® Version 3.8.8