LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nokia 5800xm as modem on fedora? (https://www.linuxquestions.org/questions/linux-software-2/nokia-5800xm-as-modem-on-fedora-800639/)

jan1024188 04-07-2010 02:29 PM

nokia 5800xm as modem on fedora?
 
There are absolutely no wifi hotspots near my school which doesnt have wifi. The only free hotspot is in the bar, and I use it quite often when I take laptop with me. Well, when I don't have wifi access I use my phone. When I had my old laptop with windows on it I could use nokia pc suite to connect to internet via phone on my laptop. Now I am 100% linux user (no way you would force me to go back, specially not on a laptop).

I was wondering if there is any software for fedora 12 that could do a similar thing and turn my phone in a modem...

brucehinrichs 04-08-2010 11:03 PM

Googling 'cell phone as modem linux' gives some interesting hits. The first one is old, but uses fedora 7. Might be a good start. :)

jan1024188 04-12-2010 10:19 AM

Quote:

Originally Posted by brucehinrichs (Post 3929400)
Googling 'cell phone as modem linux' gives some interesting hits. The first one is old, but uses fedora 7. Might be a good start. :)

Ok, fedora actually has mobile broadband support, so I connected my cell via USB, and than set it up to these settings:

Number: *99#
Username: mobitel
password: internet

APN: internet
Network, PIN: empty

IPv4 on auto, PPP all on allow (EAP, PAP, CHAP, MSXHAP, BSD, TCP compression)

For some reason it wont connect. How can I grep the usb and internet connect logs for you guys to help me out?

jan1024188 04-12-2010 12:51 PM

So its listed:
Quote:

[jan@localhost ~]$ lsusb
Bus 002 Device 004: ID 0421:0154 Nokia Mobile Phones
Now how do I make it connect. Where are the logs?

LouRobytes 04-12-2010 01:13 PM

You might also be interested in

#post3929888

Cheers, Lou

jan1024188 04-12-2010 04:02 PM

Here is what I've been trying to do:
Quote:

[jan@localhost ~]$ su
Password:
[root@localhost jan]# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
[root@localhost jan]# gedit /etc/wvdial.conf

EDITED by adding call number, user, pass...

^C
[root@localhost jan]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Mon Apr 12 22:58:57 2010
--> Pid of pppd: 3357
--> Using interface ppp0
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> Disconnecting at Mon Apr 12 22:59:00 2010
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Mon Apr 12 22:59:11 2010
--> Pid of pppd: 3374
--> Using interface ppp0
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> pppd: ��_ ��_
--> Disconnecting at Mon Apr 12 22:59:15 2010
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 10 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
^CCaught signal 2: Attempting to exit gracefully...
--> Disconnecting at Mon Apr 12 22:59:26 2010
HELP

jan1024188 04-12-2010 04:09 PM

that nolinux thing failed anyway

jan1024188 04-12-2010 07:16 PM

/var/log/messages
Apr 13 02:07:16 localhost kernel: PPP generic driver version 2.4.2
Apr 13 02:07:16 localhost pppd[2328]: pppd 2.4.5 started by jan, uid 0
Apr 13 02:07:16 localhost pppd[2328]: Using interface ppp0
Apr 13 02:07:16 localhost pppd[2328]: Connect: ppp0 <--> /dev/pts/0
Apr 13 02:07:27 localhost pppd[2328]: Modem hangup
Apr 13 02:07:27 localhost pppd[2328]: Connection terminated.
Apr 13 02:07:27 localhost pppd[2328]: Exit.
Apr 13 02:08:27 localhost NetworkManager: <info> (wlan0): device state change: 8 -> 3 (reason 39)
Apr 13 02:08:27 localhost NetworkManager: <info> (wlan0): deactivating device (reason: 39).
Apr 13 02:08:27 localhost NetworkManager: <info> (wlan0): canceled DHCP transaction, dhcp client pid 1795
Apr 13 02:08:27 localhost NetworkManager: <WARN> check_one_route(): (wlan0) error -34 returned from rtnl_route_del(): Sucess#012
Apr 13 02:08:27 localhost avahi-daemon[1081]: Withdrawing address record for 10.0.0.4 on wlan0.
Apr 13 02:08:27 localhost avahi-daemon[1081]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 10.0.0.4.
Apr 13 02:08:27 localhost avahi-daemon[1081]: Interface wlan0.IPv4 no longer relevant for mDNS.
Apr 13 02:09:12 localhost kernel: usb 2-1: new high speed USB device using ehci_hcd and address 3
Apr 13 02:09:12 localhost kernel: usb 2-1: New USB device found, idVendor=0421, idProduct=0154
Apr 13 02:09:12 localhost kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 13 02:09:12 localhost kernel: usb 2-1: Product: Nokia 5800 XpressMusic
Apr 13 02:09:12 localhost kernel: usb 2-1: Manufacturer: Nokia
Apr 13 02:09:12 localhost kernel: usb 2-1: SerialNumber: 354183024990810
Apr 13 02:09:12 localhost kernel: usb 2-1: configuration #1 chosen from 1 choice
Apr 13 02:09:12 localhost kernel: cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Apr 13 02:09:12 localhost kernel: usbcore: registered new interface driver cdc_acm
Apr 13 02:09:12 localhost kernel: cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Apr 13 02:09:12 localhost modem-manager: (ttyACM0) opening serial device...
Apr 13 02:09:12 localhost kernel: NET: Registered protocol family 35
Apr 13 02:09:12 localhost kernel: usbcore: registered new interface driver cdc_ether
Apr 13 02:09:12 localhost kernel: cdc_phonet: probe of 2-1:1.10 failed with error -22
Apr 13 02:09:12 localhost kernel: usbcore: registered new interface driver cdc_phonet
Apr 13 02:09:12 localhost kernel: usb 2-1: bad CDC descriptors
Apr 13 02:09:12 localhost kernel: usbcore: registered new interface driver rndis_host
Apr 13 02:09:12 localhost kernel: usb 2-1: bad CDC descriptors
Apr 13 02:09:12 localhost kernel: usbcore: registered new interface driver rndis_wlan
Apr 13 02:09:13 localhost modem-manager: (ttyACM0) closing serial device...
Apr 13 02:09:13 localhost modem-manager: (Nokia): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyACM0
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): new GSM device (driver: 'cdc_acm')
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): exported as /org/freedesktop/NetworkManager/Devices/2
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): now managed
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): device state change: 1 -> 2 (reason 2)
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): deactivating device (reason: 2).
Apr 13 02:09:13 localhost NetworkManager: flush_routes: assertion `iface_idx >= 0' failed
Apr 13 02:09:13 localhost NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): device state change: 2 -> 3 (reason 0)
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) starting connection 'Mobitel Postpaid 1'
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): device state change: 3 -> 4 (reason 0)
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): device state change: 4 -> 6 (reason 0)
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Apr 13 02:09:13 localhost NetworkManager: <info> (ttyACM0): device state change: 6 -> 4 (reason 0)
Apr 13 02:09:13 localhost NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Apr 13 02:09:13 localhost modem-manager: (ttyACM0) opening serial device...
Apr 13 02:09:14 localhost NetworkManager: <WARN> stage1_prepare_done(): GSM modem connection failed: Operation not supported
Apr 13 02:09:14 localhost NetworkManager: <info> (ttyACM0): device state change: 4 -> 9 (reason 1)
Apr 13 02:09:14 localhost NetworkManager: <info> Marking connection 'Mobitel Postpaid 1' invalid.
Apr 13 02:09:14 localhost NetworkManager: <info> Activation (ttyACM0) failed.
Apr 13 02:09:14 localhost NetworkManager: <info> (ttyACM0): device state change: 9 -> 3 (reason 0)
Apr 13 02:09:14 localhost NetworkManager: <info> (ttyACM0): deactivating device (reason: 0).
Apr 13 02:09:14 localhost NetworkManager: flush_routes: assertion `iface_idx >= 0' failed
Apr 13 02:09:14 localhost NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed
Apr 13 02:09:14 localhost modem-manager: (ttyACM0) closing serial device...
Apr 13 02:10:28 localhost pppd[2496]: pppd 2.4.5 started by root, uid 0
Apr 13 02:10:28 localhost pppd[2496]: Using interface ppp0
Apr 13 02:10:28 localhost pppd[2496]: Connect: ppp0 <--> /dev/ttyACM0
Apr 13 02:10:28 localhost pppd[2496]: PAP authentication succeeded
Apr 13 02:10:28 localhost kernel: PPP Deflate Compression module registered
Apr 13 02:10:30 localhost pppd[2496]: local IP address 10.203.8.218
Apr 13 02:10:30 localhost pppd[2496]: remote IP address 10.6.6.6
Apr 13 02:10:30 localhost pppd[2496]: primary DNS address 213.229.249.161
Apr 13 02:10:30 localhost pppd[2496]: secondary DNS address 193.189.160.23
Apr 13 02:11:33 localhost pppd[2553]: pppd 2.4.5 started by jan, uid 0
Apr 13 02:11:33 localhost pppd[2553]: Using interface ppp1
Apr 13 02:11:33 localhost pppd[2553]: Connect: ppp1 <--> /dev/pts/1
Apr 13 02:11:43 localhost pppd[2553]: Modem hangup
Apr 13 02:11:43 localhost pppd[2553]: Connection terminated.
Apr 13 02:11:43 localhost pppd[2553]: Exit.


All times are GMT -5. The time now is 04:33 AM.