Bug 91836

Summary: zte: wrong ttyUSB detected
Product: ModemManager Reporter: Balló György <ballogyor>
Component: pluginsAssignee: ModemManager bug user <modemmanager>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Output of 'ModemManager --debug'
Output of 'ModemManager --debug' version 1.6.2 with failed connection
Output of 'ModemManager --debug' version 1.6.2 with reverted commit 905ffa67 and successful connection
Output of 'ModemManager --debug' git master version with successful connection
Output of 'udevadm info -a -n /dev/ttyUSB*'

Description Balló György 2015-09-01 12:09:35 UTC
Created attachment 118031 [details]
Output of 'ModemManager --debug'

Recently I unable to connect with NetworkManager to the internet, because ModemManager tries to use /dev/ttyUSB1, while /dev/ttyUSB2 should be used for the connection.

Hardware:
ID 19d2:0117 ZTE WCDMA Technologies MSM

Package versions:
- linux 4.1.6
- systemd 224
- usb_modeswitch 2.2.5
- modemmanager 1.4.10
- networkmanager 1.0.6

Output of 'ModemManager --debug' is attached.
Comment 1 Aleksander Morgado 2016-10-24 11:29:15 UTC
For some reason the device's VID:PID is being read incorrectly, we're getting the VID:PID of the host controller instead of the modem, so the ZTE plugin doesn't catch the device:

ModemManager[1853]: <debug> [1441108205.468349] [mm-device.c:457] export_modem(): (/org/freedesktop/ModemManager1/Modem/0): 'Generic' modem, VID 0x1B21 PID 0x1042 (usb)

Any chance you can try with ModemManager git master instead of 1.4.10?

Also, can you get us the output of the following command:
$ udevadm info -a -n /dev/ttyUSB*
Comment 2 Balló György 2016-11-01 20:45:13 UTC
Currently I have the following experiences:

- Version 1.6.0 works well.

- Version 1.6.2 is broken, but works if I revert the following commit:
https://cgit.freedesktop.org/ModemManager/ModemManager/commit/?h=mm-1-6&id=905ffa67336f5608a1e8a305d56ab9846f1c2171

- The latest version of the mm-1-6 branch is still broken.

- The latest version of the master branch works well.
Comment 3 Balló György 2016-11-01 20:51:42 UTC
Created attachment 127674 [details]
Output of 'ModemManager --debug' version 1.6.2 with failed connection
Comment 4 Balló György 2016-11-01 20:54:02 UTC
Created attachment 127675 [details]
Output of 'ModemManager --debug' version 1.6.2 with reverted commit 905ffa67 and successful connection
Comment 5 Balló György 2016-11-01 20:55:10 UTC
Created attachment 127676 [details]
Output of 'ModemManager --debug' git master version with successful connection
Comment 6 Balló György 2016-11-01 20:57:56 UTC
Created attachment 127677 [details]
Output of 'udevadm info -a -n /dev/ttyUSB*'
Comment 7 Aleksander Morgado 2016-11-07 09:03:11 UTC
Thanks for all the tests and logs. I've backported a fix to the mm-1-6 branch which should fix the issue, please let me know if it works for you or if it doesn't. I'll release a new 1.6.x release if you tell me it worked properly.
Comment 8 Balló György 2016-12-07 20:28:12 UTC
I tested modemmanager 1.6.4, and it works fine. Thank you very much!

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.