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.
ID 19d2:0117 ZTE WCDMA Technologies MSM
- 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.
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: <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*
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:
- The latest version of the mm-1-6 branch is still broken.
- The latest version of the master branch works well.
Created attachment 127674 [details]
Output of 'ModemManager --debug' version 1.6.2 with failed connection
Created attachment 127675 [details]
Output of 'ModemManager --debug' version 1.6.2 with reverted commit 905ffa67 and successful connection
Created attachment 127676 [details]
Output of 'ModemManager --debug' git master version with successful connection
Created attachment 127677 [details]
Output of 'udevadm info -a -n /dev/ttyUSB*'
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.
I tested modemmanager 1.6.4, and it works fine. Thank you very much!