You are not logged in.

#1 2010-08-30 09:00:02

dcrabs
Member
From: Sweden
Registered: 2008-10-03
Posts: 149

[solved] Nokia N900 as 3G modem with KDE and networkmanager

Hello!

has anyone succeeded using the N900 or maybe any other phone with the networkmanager in KDE? There seem to be a couple of problems. Sometimes I enter date in the mobile broadband tab and cannot see it in the applet no matter how many configurations I create.
If I succeed to have a configuration and click on connect, it does something but doesn't get an IP address.
On the other hand I can use the phone with wvdial. Here is the config:

[Dialer Defaults]
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Stupid Mode = 1
Modem TYPE = Analog Modem
ISDN = 0
Phone = *99#
Init5 = AT+CGDCONT=1,"IP","data.tre.se";
Modem = /dev/ttyACM0
username = user
Dial Command = ATDT
password = pass
Baud = 460800

It is a Swedish provider. I got the information from the ubuntu forums.
Additionally, have these packages installed:
extra/mobile-broadband-provider-info 20100510-1 (nothing seems to read the file though)
extra/modemmanager 0.4-1
extra/networkmanager 0.8.1-1
and the latest KDE

Here are some parts of the log from Networkmanager:

Aug 30 09:50:05 localhost kernel: usb 8-6: new high speed USB device using ehci_hcd and address 3
Aug 30 09:50:05 localhost kernel: cdc_acm 8-6:1.6: ttyACM0: USB ACM device
Aug 30 09:50:05 localhost kernel: cdc_ether 8-6:1.8: usb0: register 'cdc_ether' at usb-0000:00:1d.7-6, CDC Ethernet Device, c2:2e:03:c0:1b:23
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): carrier is OFF
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): new Ethernet device (driver: 'cdc_ether' ifindex: 7)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/4
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): now managed
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): device state change: 1 -> 2 (reason 2)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): bringing up device.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): preparing device.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): deactivating device (reason: 2).
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Added default wired connection 'Auto usb0' for /sys/devices/pci0000:00/0000:00:1d.7/usb8/8-6/8-6:1.8/net/usb0
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): carrier now ON (device state 2)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): device state change: 2 -> 3 (reason 40)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) starting connection 'Auto usb0'
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): device state change: 3 -> 4 (reason 0)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): device state change: 4 -> 5 (reason 0)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): device state change: 5 -> 7 (reason 0)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> dhcpcd started with pid 5644
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Aug 30 09:50:05 localhost dhcpcd[5644]: version 5.2.7 starting
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): carrier now OFF (device state 7, deferring action for 4 seconds)
Aug 30 09:50:05 localhost modem-manager: (ttyACM0) opening serial device...
Aug 30 09:50:05 localhost dhcpcd[5644]: usb0: broadcasting for a lease
Aug 30 09:50:05 localhost NetworkManager[4583]: <info> (usb0): DHCPv4 state changed nbi -> preinit
Aug 30 09:50:06 localhost modem-manager: (ttyACM0) closing serial device...
Aug 30 09:50:06 localhost modem-manager: (ttyACM0) opening serial device...
Aug 30 09:50:06 localhost modem-manager: (Nokia): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb8/8-6 claimed port ttyACM0
Aug 30 09:50:06 localhost modem-manager: (ttyACM0) closing serial device...
Aug 30 09:50:06 localhost NetworkManager[4583]: <warn> (ttyACM0): failed to look up interface index
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): new GSM device (driver: 'cdc_acm' ifindex: -1)
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): exported as /org/freedesktop/NetworkManager/Devices/5
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): now managed
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): device state change: 1 -> 2 (reason 2)
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): deactivating device (reason: 2).
Aug 30 09:50:06 localhost NetworkManager[4583]: <info> (ttyACM0): device state change: 2 -> 3 (reason 0)
Aug 30 09:50:10 localhost NetworkManager[4583]: <info> (usb0): device state change: 7 -> 2 (reason 40)
Aug 30 09:50:10 localhost NetworkManager[4583]: <info> (usb0): deactivating device (reason: 40).
Aug 30 09:50:10 localhost dhcpcd[5644]: received SIGTERM, stopping
Aug 30 09:50:10 localhost dhcpcd[5644]: usb0: removing interface
Aug 30 09:50:10 localhost NetworkManager[4583]: <info> (usb0): canceled DHCP transaction, DHCP client pid 5644
Aug 30 09:50:10 localhost NetworkManager[4583]: <warn> (pid 5644) unhandled DHCP event for interface usb0
Aug 30 09:54:16 localhost kernel: usbcore: registered new interface driver usbserial
Aug 30 09:54:16 localhost kernel: USB Serial support registered for generic
Aug 30 09:54:16 localhost kernel: usbcore: registered new interface driver usbserial_generic
Aug 30 09:54:16 localhost kernel: usbserial: USB Serial Driver core
Aug 30 09:54:20 localhost kernel: usb 8-6: USB disconnect, address 3
Aug 30 09:54:20 localhost kernel: cdc_ether 8-6:1.8: usb0: unregister 'cdc_ether' usb-0000:00:1d.7-6, CDC Ethernet Device
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (ttyACM0): now unmanaged
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (ttyACM0): device state change: 3 -> 1 (reason 36)
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (ttyACM0): cleaning up...
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (ttyACM0): taking down device.
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (usb0): now unmanaged
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (usb0): device state change: 2 -> 1 (reason 36)
Aug 30 09:54:20 localhost NetworkManager[4583]: <info> (usb0): cleaning up...
Aug 30 09:54:32 localhost kernel: usb 8-6: new high speed USB device using ehci_hcd and address 4
Aug 30 09:54:32 localhost kernel: cdc_acm 8-6:1.6: ttyACM0: USB ACM device
Aug 30 09:54:32 localhost kernel: cdc_ether 8-6:1.8: usb0: register 'cdc_ether' at usb-0000:00:1d.7-6, CDC Ethernet Device, c2:2e:03:c0:1b:23
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): carrier is OFF
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): new Ethernet device (driver: 'cdc_ether' ifindex: 9)
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/6
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): now managed
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): device state change: 1 -> 2 (reason 2)
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): bringing up device.
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): preparing device.
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): deactivating device (reason: 2).
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> Added default wired connection 'Auto usb0' for /sys/devices/pci0000:00/0000:00:1d.7/usb8/8-6/8-6:1.8/net/usb0
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): carrier now ON (device state 2)
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): device state change: 2 -> 3 (reason 40)
Aug 30 09:54:32 localhost modem-manager: (ttyACM0) opening serial device...
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): carrier now OFF (device state 3)
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): device state change: 3 -> 2 (reason 40)
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> (usb0): deactivating device (reason: 40).
Aug 30 09:54:32 localhost NetworkManager[4583]: <info> Connection 'Auto usb0' auto-activation failed: (2) Device not managed by NetworkManager
Aug 30 09:54:33 localhost modem-manager: (ttyACM0) closing serial device...
Aug 30 09:54:33 localhost modem-manager: (ttyACM0) opening serial device...
Aug 30 09:54:33 localhost modem-manager: (Nokia): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb8/8-6 claimed port ttyACM0
Aug 30 09:54:38 localhost modem-manager: (ttyACM0) closing serial device...
Aug 30 09:54:38 localhost NetworkManager[4583]: <warn> (ttyACM0): failed to look up interface index
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): new GSM device (driver: 'cdc_acm' ifindex: -1)
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): exported as /org/freedesktop/NetworkManager/Devices/7
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): now managed
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): device state change: 1 -> 2 (reason 2)
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): deactivating device (reason: 2).
Aug 30 09:54:38 localhost NetworkManager[4583]: <info> (ttyACM0): device state change: 2 -> 3 (reason 0)
Aug 30 09:54:45 localhost kernel: usbcore: deregistering interface driver usbserial_generic
Aug 30 09:54:45 localhost kernel: USB Serial deregistering driver generic
Aug 30 09:54:45 localhost kernel: usbcore: deregistering interface driver usbserial
Aug 30 09:54:50 localhost kernel: usbcore: registered new interface driver usbserial
Aug 30 09:54:50 localhost kernel: USB Serial support registered for generic
Aug 30 09:54:50 localhost kernel: usbcore: registered new interface driver usbserial_generic
Aug 30 09:54:50 localhost kernel: usbserial: USB Serial Driver core
Aug 30 09:55:21 localhost kernel: PPP generic driver version 2.4.2
Aug 30 09:55:21 localhost pppd[5819]: pppd 2.4.5 started by root, uid 0
Aug 30 09:55:21 localhost pppd[5819]: Using interface ppp0
Aug 30 09:55:21 localhost pppd[5819]: Connect: ppp0 <--> /dev/ttyACM0
Aug 30 09:55:21 localhost pppd[5819]: PAP authentication succeeded
Aug 30 09:55:21 localhost kernel: PPP BSD Compression module registered
Aug 30 09:55:21 localhost kernel: PPP Deflate Compression module registered
Aug 30 09:55:24 localhost pppd[5819]: local  IP address 10.136.202.2
Aug 30 09:55:24 localhost pppd[5819]: remote IP address 10.6.6.6
Aug 30 09:55:24 localhost pppd[5819]: primary   DNS address 80.251.201.177
Aug 30 09:55:24 localhost pppd[5819]: secondary DNS address 80.251.201.178
Aug 30 09:55:28 localhost pppd[5819]: LCP terminated by peer
Aug 30 09:55:28 localhost pppd[5819]: Connect time 0.1 minutes.
Aug 30 09:55:28 localhost pppd[5819]: Sent 0 bytes, received 0 bytes.
Aug 30 09:55:31 localhost pppd[5819]: Connection terminated.
Aug 30 09:55:31 localhost pppd[5819]: Modem hangup
Aug 30 09:55:31 localhost pppd[5819]: Exit.

EDIT: spelling...

Last edited by dcrabs (2010-09-26 16:42:28)

Offline

#2 2010-08-30 20:12:44

nocain
Member
From: nowheresvill california
Registered: 2003-05-31
Posts: 62

Re: [solved] Nokia N900 as 3G modem with KDE and networkmanager

I would look at the below links they should provide enough info and different ways of tethering the N900 for4 you to get it up and running.  I don't use KDE, but I have gotten my friends to work via hotspot and usb...

I love this phone and would so totally buy one except I am waiting for the N9 to see if I be better off waiting for that

http://myn900.wordpress.com/2010/08/21/ … 00-part-1/
http://myn900.wordpress.com/2010/08/22/ … 00-part-2/
http://myn900.wordpress.com/2010/08/23/ … bluetooth/
http://myn900.wordpress.com/2010/08/26/ … 4-hotspot/
http://myn900.wordpress.com/2010/08/27/ … l-summary/
http://wiki.maemo.org/N900_USB_networking
http://myn900.wordpress.com/2010/08/29/ … n-via-usb/

Offline

#3 2010-09-26 16:42:05

dcrabs
Member
From: Sweden
Registered: 2008-10-03
Posts: 149

Re: [solved] Nokia N900 as 3G modem with KDE and networkmanager

Sorry for the late reply. Thanks for the links. The solution with the wlan access point is really nice and easy.

Offline

Board footer

Powered by FluxBB