Bug 93433 - ZTE MF-193E modem fails to connect in Ubuntu 15.10
Summary: ZTE MF-193E modem fails to connect in Ubuntu 15.10
Status: RESOLVED MOVED
Alias: None
Product: ModemManager
Classification: Unclassified
Component: plugins (show other bugs)
Version: 1.4
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: ModemManager bug user
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 02:01 UTC by mmasroorali
Modified: 2018-06-10 09:01 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Log files and relevant explanations/descriptions (559.72 KB, application/zip)
2015-12-18 17:41 UTC, mmasroorali
Details
ModemManager 1.4.12 logs (3.91 KB, text/plain)
2016-01-07 01:41 UTC, mmasroorali
Details
Output of sudo udevadm info -a /dev/ttyUSB3 (3.85 KB, text/plain)
2016-01-07 01:54 UTC, mmasroorali
Details
Output of ./lsudev tty (110.45 KB, text/plain)
2016-01-07 12:37 UTC, mmasroorali
Details
ModemManager 1.4.12 logs (UPDATED) (3.87 KB, text/plain)
2016-01-07 12:50 UTC, mmasroorali
Details
120857: ModemManager 1.4.12 logs (UPDATED 2) (3.87 KB, text/plain)
2016-01-07 14:08 UTC, mmasroorali
Details

Description mmasroorali 2015-12-18 02:01:42 UTC
I have got a ZTE MF-193E modem which worked fine before. 

This modem even worked a couple of months back with Ubuntu 15.04 (64-bit). Now, in Ubuntu 15.10 (64-bit), it can not connect.

I have set up a mobile broadband connection. I have tried various strings for APN, but this has not been an issue before.

(The modem works fine in Windows 10, so, this is not a hardware issue at all. Also, Modem Manager GUI nicely detects this device. SMSs can be sent and received without any problem.

Also, when the same machine is booted from a 15.04 DVD, the modem works fine.)

When I insert the modem, it gets detected alright, a CD icon is displayed in Unity with the name of the modem. It gets registered in the network, but eventually fails to connect.

(More detailed report on tests and attempts can be found here, http://askubuntu.com/q/703725/82650)
Comment 1 Aleksander Morgado 2015-12-18 09:54:36 UTC
I looked at the report and it's too detailed :)

You can probably give us this info quicker than me digging through that long page...

Could you attach here:
 * debug log of MM/NM running successfully in 15.04.
 * debug log of MM/NM running bad in 15.10.
Make sure the same APN is used in both tests.

Could you also tell me the exact versions you're testing in each Ubuntu release?

And last but not least, would it be possible if you compile and test with ModemManager 1.4.12, which is the last stable release we've done some months ago?

Thanks.
Comment 2 mmasroorali 2015-12-18 17:41:06 UTC
Created attachment 120586 [details]
Log files and relevant explanations/descriptions
Comment 3 mmasroorali 2015-12-18 17:49:06 UTC
The tests were run in the following sequence:
  1. Ubuntu 15.10 with MM 1.4.10.
  2. Ubuntu 15.10 with MM 1.4.12.
  3. Ubuntu 15.04 with MM 1.4.0. 

The log files are in the attached zip file. I have tried best to
make the directory and file names self-explanatory. Please refer
to the 0README file in each directory for further information.
Comment 4 mmasroorali 2016-01-06 17:05:35 UTC
(In reply to Aleksander Morgado from comment #1)
> I looked at the report and it's too detailed :)
> 
> You can probably give us this info quicker than me digging through that long
> page...
> 
> Could you attach here:
>  * debug log of MM/NM running successfully in 15.04.
>  * debug log of MM/NM running bad in 15.10.
> Make sure the same APN is used in both tests.
> 
> Could you also tell me the exact versions you're testing in each Ubuntu
> release?
> 
> And last but not least, would it be possible if you compile and test with
> ModemManager 1.4.12, which is the last stable release we've done some months
> ago?
> 
> Thanks.

Do you need any more information? I uploaded those files before the vacations. Still waiting desperately for a solution.
Comment 5 Aleksander Morgado 2016-01-06 18:25:07 UTC
There's something wrong somewhere :)

With MM 1.4.0 in Ubuntu 15:04 we had:

  Creating modem with plugin 'ZTE' and '4' ports
  tty/ttyUSB3 at (primary)
  tty/ttyUSB1 at (secondary)
  tty/ttyUSB3 data (primary)
  tty/ttyUSB0 qcdm
  'ZTE' modem, VID 0x19D2 PID 0x2003 (usb)

With MM 1.4.10 in Ubuntu 15:10 we have:

  Creating modem with plugin 'Generic' and '4' ports
  tty/ttyUSB1 at (primary)
  tty/ttyUSB3 at (secondary)
  tty/ttyUSB1 data (primary)
  tty/ttyUSB0 qcdm
  'Generic' modem, VID 0x8086 PID 0x27CC (usb)

Looks like the modem requires ttyUSB3 for primary/data, not ttyUSB1.

But the main issue here is that MM is picking the device with the USB VID/PID of the ehci host controller (8086/27CC), not the modem USB VID/PID (19D2/2003)... and this is the first time I've seen this happening...
Comment 6 Aleksander Morgado 2016-01-06 18:26:55 UTC
BTW; the test with MM 1.4.12 didn't get the proper MM debug logs...
Comment 7 Aleksander Morgado 2016-01-06 18:35:39 UTC
Can you provide the output of the following command in Ubuntu 15.10?

$ sudo udevadm info -a /dev/ttyUSB3
Comment 8 Aleksander Morgado 2016-01-06 18:40:38 UTC
Also, could you build and run the test/lsudev program within ModemManager sources, and attach the output?
Comment 9 mmasroorali 2016-01-07 01:41:55 UTC
Created attachment 120848 [details]
ModemManager 1.4.12 logs
Comment 10 mmasroorali 2016-01-07 01:46:11 UTC
(In reply to Aleksander Morgado from comment #6)
> BTW; the test with MM 1.4.12 didn't get the proper MM debug logs...

I am not sure what you meant by the proper logs for MM 1.4.12. As I have already pointed out since ModemManager got shutdown, further tests were not possible. Rerun the following tests and attached the MM log anyway.

Purged the currently installed ModemManager. Installed ModemManager 1.4.12 from source. There were many unmet dependencies which had to be fulfilled during compilation. Rebooted machine. ModemManager --version gives, ModemManager 1.4.12. Soft disconnected Ethernet connection. Ran,

sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee /tmp/Ubunut15.10MM1.4.12.January072016.log.txt


Since ModemManager got shutdown, further tests were not possible.
Wrapped up the log.


Please let me know if you need anything more.
Comment 11 mmasroorali 2016-01-07 01:53:11 UTC
(In reply to Aleksander Morgado from comment #7)
> Can you provide the output of the following command in Ubuntu 15.10?
> 
> $ sudo udevadm info -a /dev/ttyUSB3

Okay attached as,

udevadm_info-a_dev_ttyUSB3.output
Comment 12 mmasroorali 2016-01-07 01:54:03 UTC
Created attachment 120849 [details]
Output of sudo udevadm info -a /dev/ttyUSB3
Comment 13 mmasroorali 2016-01-07 02:00:44 UTC
(In reply to Aleksander Morgado from comment #8)
> Also, could you build and run the test/lsudev program within ModemManager
> sources, and attach the output?

As I build the command from sources (MM 1.4.10) and run 
./lsudev 

I get,

** (process:22938): WARNING **: Usage: ./lsudev [subsystem]

Which subsystem name should I use?
Comment 14 Aleksander Morgado 2016-01-07 08:21:49 UTC
lsusb tty
Comment 15 Aleksander Morgado 2016-01-07 08:22:08 UTC
(In reply to Aleksander Morgado from comment #14)
> lsusb tty

Gah... "./lsudev tty"
Comment 16 Aleksander Morgado 2016-01-07 08:25:10 UTC
(In reply to mmasroorali from comment #10)
> (In reply to Aleksander Morgado from comment #6)
> > BTW; the test with MM 1.4.12 didn't get the proper MM debug logs...
> 
> I am not sure what you meant by the proper logs for MM 1.4.12. As I have
> already pointed out since ModemManager got shutdown, further tests were not
> possible. Rerun the following tests and attached the MM log anyway.
> 
> Purged the currently installed ModemManager. Installed ModemManager 1.4.12
> from source. There were many unmet dependencies which had to be fulfilled
> during compilation. Rebooted machine. ModemManager --version gives,
> ModemManager 1.4.12. Soft disconnected Ethernet connection. Ran,
> 
> sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee
> /tmp/Ubunut15.10MM1.4.12.January072016.log.txt
> 
> 
> Since ModemManager got shutdown, further tests were not possible.
> Wrapped up the log.
> 
> 
> Please let me know if you need anything more.

What I meant is that your instance of manually run ModemManager couldn't acquire the bus name:

Could not acquire the 'org.freedesktop.ModemManager1' service name

This is because as soon as you "killall ModemManager", the system restarts it for you. If you're using systemd you can disable that by something like:

$ sudo systemctl disable ModemManager
$ sudo systemctl stop ModemManager
// Now run with --debug

If you're not using systemd you can move the /usr/sbin/ModemManager binary somewhere else so that the system doesn't know how to auto-restart it.
Comment 17 mmasroorali 2016-01-07 12:36:13 UTC
(In reply to Aleksander Morgado from comment #15)
> (In reply to Aleksander Morgado from comment #14)
> > lsusb tty
> 
> Gah... "./lsudev tty"

Okay added new attachment.
Comment 18 mmasroorali 2016-01-07 12:37:44 UTC
Created attachment 120856 [details]
Output of ./lsudev tty
Comment 19 mmasroorali 2016-01-07 12:49:21 UTC
(In reply to Aleksander Morgado from comment #16)
> (In reply to mmasroorali from comment #10)
> > (In reply to Aleksander Morgado from comment #6)
> > > BTW; the test with MM 1.4.12 didn't get the proper MM debug logs...
> > 
> > I am not sure what you meant by the proper logs for MM 1.4.12. As I have
> > already pointed out since ModemManager got shutdown, further tests were not
> > possible. Rerun the following tests and attached the MM log anyway.
> > 
> > Purged the currently installed ModemManager. Installed ModemManager 1.4.12
> > from source. There were many unmet dependencies which had to be fulfilled
> > during compilation. Rebooted machine. ModemManager --version gives,
> > ModemManager 1.4.12. Soft disconnected Ethernet connection. Ran,
> > 
> > sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee
> > /tmp/Ubunut15.10MM1.4.12.January072016.log.txt
> > 
> > 
> > Since ModemManager got shutdown, further tests were not possible.
> > Wrapped up the log.
> > 
> > 
> > Please let me know if you need anything more.
> 
> What I meant is that your instance of manually run ModemManager couldn't
> acquire the bus name:
> 
> Could not acquire the 'org.freedesktop.ModemManager1' service name
> 
> This is because as soon as you "killall ModemManager", the system restarts
> it for you. If you're using systemd you can disable that by something like:
> 
> $ sudo systemctl disable ModemManager
> $ sudo systemctl stop ModemManager
> // Now run with --debug
> 
> If you're not using systemd you can move the /usr/sbin/ModemManager binary
> somewhere else so that the system doesn't know how to auto-restart it.

Okay, I understand. Added new logs. Please let me know if this is not alright.
Comment 20 mmasroorali 2016-01-07 12:50:30 UTC
Created attachment 120857 [details]
ModemManager 1.4.12 logs (UPDATED)
Comment 21 Aleksander Morgado 2016-01-07 13:03:02 UTC
(In reply to mmasroorali from comment #20)
> Created attachment 120857 [details]
> ModemManager 1.4.12 logs (UPDATED)

Still not ok... "Could not acquire the 'org.freedesktop.ModemManager1' service name"
Comment 22 Aleksander Morgado 2016-01-07 13:06:47 UTC
(In reply to Aleksander Morgado from comment #21)
> (In reply to mmasroorali from comment #20)
> > Created attachment 120857 [details]
> > ModemManager 1.4.12 logs (UPDATED)
> 
> Still not ok... "Could not acquire the 'org.freedesktop.ModemManager1'
> service name"

But anyway, the issue looks to be out of MM, at least the "ID_VENDOR_ID" property of the ttys are not ok, 8086 is the VID of the host controller, not the VID of the modem...
Comment 23 mmasroorali 2016-01-07 14:07:18 UTC
(In reply to Aleksander Morgado from comment #21)
> (In reply to mmasroorali from comment #20)
> > Created attachment 120857 [details]
> > ModemManager 1.4.12 logs (UPDATED)
> 
> Still not ok... "Could not acquire the 'org.freedesktop.ModemManager1'
> service name"

Moved MM to another unconventional directory and executed it from there, but does not look okay. Uploaded the log anyway.
Comment 24 mmasroorali 2016-01-07 14:08:14 UTC
Created attachment 120864 [details]
120857: ModemManager 1.4.12 logs (UPDATED 2)
Comment 25 GitLab Migration User 2018-06-10 09:01:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/18.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.