Choose style:

Author Topic: Mobile Phone as modem  (Read 2782 times)

0 Members and 1 Guest are viewing this topic.

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Mobile Phone as modem
« on: September 11, 2015, 01:15:48 am »
Trying to get connectivity with my Alcatel 3G capable phone with GPRS settings from my Satellite X205 and PM6.
Everything seems to be found OK but there is no connection getting made, and the kern.log shows nothing when trying to connect.
kern.log shows the device details:
 Sep 11 15:16:50 X205 kernel: [  558.648170] usb 2-6: new high-speed USB device number 3 using ehci-pci
Sep 11 15:16:50 X205 kernel: [  558.781506] usb 2-6: New USB device found, idVendor=0e8d, idProduct=0003
Sep 11 15:16:50 X205 kernel: [  558.781518] usb 2-6: New USB device strings: Mfr=3, Product=4, SerialNumber=0
Sep 11 15:16:50 X205 kernel: [  558.781526] usb 2-6: Product: Alcatel
Sep 11 15:16:50 X205 kernel: [  558.781532] usb 2-6: Manufacturer: Alcatel  Inc
Sep 11 15:16:50 X205 kernel: [  558.799489] cdc_acm 2-6:1.1: ttyACM0: USB ACM device
Sep 11 15:16:50 X205 kernel: [  558.799705] usbcore: registered new interface driver cdc_acm
Sep 11 15:16:50 X205 kernel: [  558.799707] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Sep 11 15:16:50 X205 kernel: [  558.806626] usbcore: registered new interface driver usbserial
Sep 11 15:16:50 X205 kernel: [  558.806646] usbcore: registered new interface driver usbserial_generic
Sep 11 15:16:50 X205 kernel: [  558.806666] usbserial: USB Serial support registered for generic
Sep 11 15:16:50 X205 kernel: [  558.813119] usbcore: registered new interface driver option
Sep 11 15:16:50 X205 kernel: [  558.813143] usbserial: USB Serial support registered for GSM modem (1-port)

Disabling and re-enabling network only outputs

Sep 11 15:19:13 X205 kernel: [  702.585416] r8169 0000:0d:00.0 eth0: link down
Sep 11 15:19:13 X205 kernel: [  702.585445] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

even though I have configured the internal network to ignore ipv6 and to not connect automatically.

Any clues on how to troubleshoot would be appreciated.

I did an online configuration with my provider to enable the data with MMS, but I'm pretty sure it was already enabled for the packaged opera browser etc anyway.   

Offline jrafael

  • Newly Subscribed
  • *
  • Posts: 2
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Mobile Phone as modem
« Reply #1 on: September 11, 2015, 06:56:59 am »
I have use my phone as modem with peppermint with out problems, I have and android phone (Galaxy S3 LTE) and all I needed was to enable USB thethering in my phone settings and peppermint treated the usb connection as lan connection.

What phone are you using ?

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Re: Mobile Phone as modem
« Reply #2 on: September 11, 2015, 06:58:26 pm »
It is an Alcatel One touch 900, when connecting the usb cable, you just select com port instead of mass storage.
I did get the pppd working in a terminal by using sudo wvdial
In a separate terminal I could then ping the dns address's and retreived mail with pop.
The normal network interface seems to be necessary, but it doesn't respond when enabling either of the two mobile selection possibilities
For example no tick for the mobile broadband selection
The normal network interface seems to set up the modem as /dev/ttyACM0 then when I use wvdial I think the kern.log then uses it
as ttyUSB0
I also cant find any logging to do with the normal network enabling method.
I'm also wondering about mms versus internet options. I'm not sure what wvdial uses, but the username/password (in /etc/wvdial.conf) co-responds with the mms setting in the phone so I'm guessing it is using mms.
Edit: Ok still learning, there is mention of mms just being the billing method, so that setting shouldn't be stopping the connection.
sudo wvdial
works ok and independently of network manager though earlier I stated they were linked.
nm connect up uuid xxxxx
wasn't doing anything either, probably the equivalent of the nm gui approach
nm connect
was showing the connection type as gsm, but in the phone,  gsm is blank and gprs settings are used.
With nm there doesn't seem to be any modem strings for initialsing.
For the time being, I will use wvdial and not enter mobile settings in network manager at all.
« Last Edit: September 12, 2015, 07:33:41 pm by piper »

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Re: Mobile Phone as modem
« Reply #3 on: September 25, 2015, 01:37:53 am »
I found how to increase the logging for network manager, and there appears to be a problem around ipv6.

This is a copy from a bug report I found elsewhere

quote
Please re-emerge net-dialup/ppp with the ipv6 USE flag enabled.

Networkmanager-0.9.6 added ipv6cp support. If ppp has ipv6 support and your provider is ipv4-only, ipv6cp will simply time out, and networkmanager will carry on. But if ppp does not have ipv6 support built in, pppd will exit with an error, which might be the reason why networkmanager fails to establish a connection for you.
unquote

I'm not sure what I can try in relation to the PM6 packaging. Maybe recompile some packages manually?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Mobile Phone as modem
« Reply #4 on: September 25, 2015, 10:39:50 am »
In network manager, for your mobile connection, set
IPv6 Method: Ignore

or completely disable IPv6 with the answer with the green tick here:
https://askubuntu.com/questions/440649/how-to-disable-ipv6-in-ubuntu-14-04
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Re: Mobile Phone as modem
« Reply #5 on: September 27, 2015, 01:10:56 am »
There isn't any ipv6 tab in the mobile broadband settings. I followed through with the other instruction and found that the wifi didn't have 1pv6=ignore.
I have been able to do a network connection with wvdial and now I also have used pppconfig and pon/poff successfully.
It is the networkmanager/modemmanager pair that I cant get to work.
The   /etc/networkmanager/system-connections/2-Degrees MMS file that has been made doesn't have the correct serial speed in the way that wvdialcongfig  found it correctly. Changing this did not help.
There is no mention of ipv6 being a problem in syslog , I think it was the kernel log, but I may be past that error now.
PM5 and Crunchbang Waldorf (wheezy I think) both probe this usb modem successfully, and the network managers work.
They find the phone as a UTMP modem ad icons change etc when turning on Mobile Broadband

From dmesg,
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0
cdc_acm: probe of 2-3:1.1 failed with error -16

needs to be
option 2-3:1.0: GSM modem (1-port) converter detected
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0
Edit
and then
 usbcore: registered new interface driver option
 option: v0.7.2:USB Driver for GSM modems

« Last Edit: October 06, 2015, 05:01:44 am by piper »

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Re: Mobile Phone as modem
« Reply #6 on: October 06, 2015, 05:12:02 am »
I am a beginner with modules but the outputs from  PM6,PM5
sudo modprobe --show-modversions /lib/modules/3.16.0-50-generic/kernel/drivers/usb/class/cdc-acm.ko
sudo modprobe --show-modversions /lib/modules/3.8.0-35-generic/kernel/drivers/usb/class/cdc-acm.ko
 are very different.
Is it possible to build a module for PM6 using the older source from PM5 era?
I also might try another trusty tahr distro, but I tend to think I'll get the same result as PM6

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2078
  • Karma: 370
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Mobile Phone as modem
« Reply #7 on: October 20, 2015, 01:04:27 pm »
I've used the EasyTether app/driver for tethering through an Android phone with no hassle:

http://www.mobile-stream.com/easytether/android.html
http://www.mobile-stream.com/easytether/drivers.html

The Lite version for the phone is free and works fine for me.

Someone here could advise on which Ubuntu driver is right for your version of Peppermint.

Edit: Sorry, I saw the word Android in a previous post and thought that was the OS, it seems it's not.
« Last Edit: October 20, 2015, 01:45:37 pm by murraymint »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Mobile Phone as modem
« Reply #8 on: October 20, 2015, 06:56:02 pm »
I am a beginner with modules but the outputs from  PM6,PM5
sudo modprobe --show-modversions /lib/modules/3.16.0-50-generic/kernel/drivers/usb/class/cdc-acm.ko
sudo modprobe --show-modversions /lib/modules/3.8.0-35-generic/kernel/drivers/usb/class/cdc-acm.ko
 are very different.
Is it possible to build a module for PM6 using the older source from PM5 era?
I also might try another trusty tahr distro, but I tend to think I'll get the same result as PM6

Peppermint 5 didn't use the 3.8 kernel series (it used the 3.13 series) .. are you talking about Peppermint 4 ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline piper

  • Newly Subscribed
  • *
  • Posts: 23
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4,5,6
Re: Mobile Phone as modem
« Reply #9 on: October 29, 2015, 12:48:14 am »
The good news is that network manager / mobile broadband works fine with Ubuntu 15 as well as older versions like Peppermint 5/4?
Every distro (admittedly only 3 or so) I've tried that uses Trusty Tahr fails.
Leaves me stranded for some time until the next Peppermint, Otherwise I'd have to reinstall my progs to an Ubuntu 15 variant.
There was a Network Manager update in the last system update but still no go.
 
« Last Edit: October 29, 2015, 12:51:06 am by piper »