ModemManager D-Link DWM-156 guesses wrong ttyUSBx port



Hi,

ModemManager occasionally guesses the wrong data port on a D-Link DWM-156.
Is there a way (udev/rules.d magic?) to force MM to accept /dev/ttyUSB0 as the data port?


The USB broadband modem device D-Link DWM-156 (07d1:3e02 after mode switch)
has four USB interfaces /dev/ttyUSB0-3. ttyUSB0 is the data port; Windows INF file describes
the others as:
ttyUSB1 - Diagnostic USB\VID_07D1&PID_3E02&MI_01
ttyUSB2 - AT CmdRsp USB\VID_07D1&PID_3E02&MI_02
ttyUSB3 - Notification USB\VID_07D1&PID_3E02&MI_03

Using the option driver, ModemManager probes with generic but unfortunately both ttyUSB2 and ttyUSB3
answer (to AT+GCAP) exactly the same as ttyUSB0. Whichever port answers first is exported as modem.

Example: ttyUSB2 is probed (and answers) first and is exported as GSM modem *WRONG*

** Message: (ttyUSB2) opening serial device...
** (modem-manager:2371): DEBUG: (ttyUSB2): probe requested by plugin 'Generic'
** Message: (ttyUSB1) opening serial device...
** (modem-manager:2371): DEBUG: (ttyUSB1): probe requested by plugin 'Generic'
** Message: (ttyUSB0) opening serial device...
** (modem-manager:2371): DEBUG: (ttyUSB0): probe requested by plugin 'Generic'
** Message: (ttyUSB3) opening serial device...
** (modem-manager:2371): DEBUG: (ttyUSB3): probe requested by plugin 'Generic'
** (modem-manager:2371): DEBUG: (ttyUSB2): --> 'AT+GCAP<CR>'
** (modem-manager:2371): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
** (modem-manager:2371): DEBUG: (ttyUSB0): --> 'AT+GCAP<CR>'
** (modem-manager:2371): DEBUG: (ttyUSB3): --> 'AT+GCAP<CR>'
** (modem-manager:2371): DEBUG: (ttyUSB2): <-- 'AT+GCAP<CR><CR><LF>+GCAP: +CGSM,+FCLASS,+DS<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:2371): DEBUG: (ttyUSB0): <-- 'AT+GCAP<CR><CR><LF>+GCAP: +CGSM,+FCLASS,+DS<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:2371): DEBUG: (ttyUSB3): <-- 'AT+GCAP<CR><CR><LF>+GCAP: +CGSM,+FCLASS,+DS<CR><LF><CR><LF>OK<CR><LF>'
** Message: (ttyUSB2) closing serial device...
** Message: (ttyUSB0) closing serial device...
** Message: (ttyUSB3) closing serial device...
** Message: (Generic): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3 claimed port ttyUSB2
** (modem-manager:2371): DEBUG: Added modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3
** (modem-manager:2371): DEBUG: Exported modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3 as /org/freedesktop/ModemManager/Modems/1
** Message: (Generic): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3 claimed port ttyUSB0
** Message: (Generic): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3 claimed port ttyUSB3
** (modem-manager:2371): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
** (modem-manager:2371): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
** Message: (ttyUSB1) closing serial device...

ATI on /dev/ttyUSB2 gives:

ati                                                                          
Manufacturer: QUALCOMM INCORPORATED                                          
Model: 29                                                                    
Revision: 090610_GKDNIL_M0.20  1  [compilation=Jun 10 2009 12:06:58][Release=Jun 10 2009 06:00:00]
IMEI: 353005035097379                   
+GCAP: +CGSM,+DS,+ES                    
                                        
OK




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]