maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 USB networking not working properly (https://talk.maemo.org/showthread.php?t=36665)

gviterbo 2010-01-18 13:01

Re: N900 USB networking not working properly
 
i'm having the same problem as well. I need to transfer something to the filesystem through USB but the instructions I found at http://wiki.maemo.org/N900_USB_Networking do not seem to work.

if enter 'ifdown usb0', it gives me an error - /usr/lib/avahi/avahi-daemon-check-dns.sh: line 143: diff: not found.

total newbie here and I would appreciate if anyone here can help me out. thanks a lot!

by the way, I'm trying to access the filesystem through Winscp.

soeiro 2010-01-18 13:27

Re: N900 USB networking not working properly
 
I've filed a bug on the issue of Connection Manager not recognizing USB networking and the need of extra hacks.

Please vote here, so that we can have proper USB network support:

https://bugs.maemo.org/show_bug.cgi?id=8207

gviterbo 2010-01-18 13:33

Re: N900 USB networking not working properly
 
Quote:

Originally Posted by soeiro (Post 479874)
I've filed a bug on the issue of Connection Manager not recognizing USB networking and the need of extra hacks.

Please vote here, so that we can have proper USB network support:

https://bugs.maemo.org/show_bug.cgi?id=8207

I'm on it. I'll vote for this one. They have to make things way way easier for us to expand N900's open-source horizon. :)

F2thaK 2010-01-20 03:11

Re: N900 USB networking not working properly
 
Quote:

Originally Posted by trotor (Post 463310)
Did you try Mad Developer? IT has some USB settings through gui.


found this the other day couldnt get it to work for me tho


followed these poor instructions and have no idea how to connect to phones system files thru usb

:confused:

http://wiki.maemo.org/N900_USB_networking


EDIT:
can connect but it wont accept password...

using mad developer and maemo pc connectivity pack on n900
and winscp on windows xp pc

also i have wifi but phone is plugged into usb

archebyte 2010-02-03 09:13

Re: N900 USB networking not working properly
 
Quote:

Originally Posted by f2thak (Post 483461)
can connect but it wont accept password...

Are you connecting as 'user' or 'root'? If using 'root', you must use the same password you chose when installing SSH on the N900.

nokix 2010-02-22 03:41

Re: N900 USB networking not working properly
 
this is me trying to get usb networking to work between N900 and XP http://talk.maemo.org/showpost.php?p=540514&postcount=9.

nokix 2010-02-25 07:32

Re: N900 USB networking not working properly
 
finally got it working http://talk.maemo.org/showpost.php?p...8&postcount=14

eitama 2010-03-10 08:19

Re: N900 USB networking not working properly
 
Quote:

Originally Posted by a1291762 (Post 422081)
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

interface="$2"

if [ "$interface" = "usb0" ]; then
    route delete default wlan0
    route delete default gprs0
else
    if ping -c 1 192.168.2.14 >/dev/null 2>&1; then
        route delete default wlan0
        route delete default gprs0
    fi
fi

exit 0

If the USB interface comes up, it removes the default route through the wlan0/gprs0 interfaces (ie. disables traffic through WLAN/EDGE/3G). If some other connection comes up, it pings the USB host and if it's there, it deletes the default route through wlan0/gprs0.

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.

Hi,

Should this line give me the argument you are trying to insert into "interface" and throw it into a file if I put it inside the script?

"echo $2 > /etc/network/if-up.d/temp"

cause it gives me an empty temp file, something is not working very well with the script and I am trying to figure out what.

nokix 2010-03-11 02:43

Re: N900 USB networking not working properly
 
Quote:

Originally Posted by eitama (Post 562183)
Hi,

Should this line give me the argument you are trying to insert into "interface" and throw it into a file if I put it inside the script?

"echo $2 > /etc/network/if-up.d/temp"

cause it gives me an empty temp file, something is not working very well with the script and I am trying to figure out what.

you might like to have a look at the way i do it in http://talk.maemo.org/showthread.php?t=39738 i now have it working everyday in my office where there's no wifi.

pang 2010-12-24 07:06

Re: N900 USB networking not working properly
 
Anyone having any luck for ubuntu 10.04?


All times are GMT. The time now is 06:39.

vBulletin® Version 3.8.8