Audio enabled WP7607 disconnects/reconnects two times for every at!reset

Hi,
I noticed an strange behaviour with WP7607 module. When I do at!reset to the module, I could see its ttyUSBs disconnects and then reconnects. But after few seconds later it again disconnects and reconnects. seems like double reset. How can I make it reset only once? Please help

Do you see double reset in uart debug message?
Do you see connect twice in linux host pc?

What I see is two times ttyUSB disconnect and two times connect in linux syslog

I don’t see problem with the following command in Ubuntu 14:

sudo echo “AT_RESET_command_now” > /dev/kmsg; sudo echo -ne “AT\x21reset\xd\xa” > /dev/ttyUSB2

In dmesg, I can see the following:


[3063722.056318] AT_RESET_command_now
[3063722.327968] usb 3-3: USB disconnect, device number 70
[3063722.328341] GobiSerial driver ttyUSB0: GobiSerial converter now disconnected from ttyUSB0
[3063722.328386] GobiSerial 3-3:1.0: device disconnected
[3063722.328744] GobiSerial driver ttyUSB1: GobiSerial converter now disconnected from ttyUSB1
[3063722.328779] GobiSerial 3-3:1.2: device disconnected
[3063722.329117] GobiSerial driver ttyUSB2: GobiSerial converter now disconnected from ttyUSB2
[3063722.329158] GobiSerial 3-3:1.3: device disconnected
[3063722.329287] cdc_ether 3-3:1.19 usb0: unregister ‘cdc_ether’ usb-0000:00:14.0-3, CDC Ethernet Device
[3063743.123960] usb 3-3: new high-speed USB device number 71 using xhci_hcd
[3063743.147028] usb 3-3: config 1 has an invalid interface number: 19 but max is 4
[3063743.147044] usb 3-3: config 1 has an invalid interface number: 20 but max is 4
[3063743.147055] usb 3-3: config 1 has an invalid interface number: 20 but max is 4
[3063743.147064] usb 3-3: config 1 has no interface number 1
[3063743.147073] usb 3-3: config 1 has no interface number 4
[3063743.155011] usb 3-3: New USB device found, idVendor=1199, idProduct=68c0
[3063743.155024] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3063743.155032] usb 3-3: Product: Sierra Wireless WP7607
[3063743.155040] usb 3-3: Manufacturer: Sierra Wireless, Incorporated
[3063743.155048] usb 3-3: SerialNumber: VN73048508010300
[3063743.157020] GobiSerial 3-3:1.0: GobiSerial converter detected
[3063743.157075] usb 3-3: GobiSerial converter now attached to ttyUSB0
[3063743.158044] GobiSerial 3-3:1.2: GobiSerial converter detected
[3063743.158085] usb 3-3: GobiSerial converter now attached to ttyUSB1
[3063743.159995] GobiSerial 3-3:1.3: GobiSerial converter detected
[3063743.160045] usb 3-3: GobiSerial converter now attached to ttyUSB2
[3063743.163197] cdc_ether 3-3:1.19 usb0: register ‘cdc_ether’ at usb-0000:00:14.0-3, CDC Ethernet Device, 5e:71:b9:db:eb:eb


Do we have same setting on AT!USBCOMP?

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7607
Revision: SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
IMEI: 359779081234565
IMEI SV: 6
FSN: VN730485080103
+GCAP: +CGSM

OK
at!usbcomp?
ERROR
at!entercnd=“A710”
OK
at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0008000D (diag,nmea,modem,ecm)

OK

Thanks. Your suspection is very right. When I configure usbcomp as yours, then I dont see double disconnect.
However, in my project I have to use audio so I have enabled audio and thats where I start seeing double disconnect/reconnect. I am using CentOS7.7. Is there anything I can do to avoid double disconnect having audio enabled?

at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0001010D (diag,nmea,modem,rmnet0,audio)

at!reset
Jun 3 07:56:13 localhost kernel: usb 1-1.1.1: USB disconnect, device number 30
Jun 3 07:56:13 localhost kernel: GobiSerial driver ttyUSB2: usb_serial_generic_submit_read_urb - usb_submit_urb failed: -19
Jun 3 07:56:13 localhost kernel: GobiSerial driver ttyUSB0: GobiSerial converter now disconnected from ttyUSB0
Jun 3 07:56:13 localhost kernel: GobiSerial 1-1.1.1:1.0: device disconnected
Jun 3 07:56:13 localhost kernel: GobiSerial driver ttyUSB1: GobiSerial converter now disconnected from ttyUSB1
Jun 3 07:56:13 localhost kernel: GobiSerial 1-1.1.1:1.2: device disconnected
Jun 3 07:56:13 localhost kernel: GobiSerial driver ttyUSB2: GobiSerial converter now disconnected from ttyUSB2
Jun 3 07:56:13 localhost kernel: GobiSerial 1-1.1.1:1.3: device disconnected
Jun 3 07:56:13 localhost kernel: GobiNet 1-1.1.1:1.8 enp0s29u1u1u1i8: unregister ‘GobiNet’ usb-0000:00:1d.0-1.1.1, GobiNet Ethernet Device
Jun 3 07:56:13 localhost avahi-daemon[902]: Withdrawing workstation service for enp0s29u1u1u1i8.
Jun 3 07:56:13 localhost journal: gvc_mixer_card_get_index: assertion ‘GVC_IS_MIXER_CARD (card)’ failed
Jun 3 07:56:13 localhost journal: gvc_mixer_card_get_index: assertion ‘GVC_IS_MIXER_CARD (card)’ failed
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: new high-speed USB device number 31 using ehci-pci
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 8 but max is 3
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: config 1 has no interface number 1
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: New USB device found, idVendor=1199, idProduct=68c0, bcdDevice= 3.18
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: Product: Sierra Wireless WP7607
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: Manufacturer: Sierra Wireless, Incorporated
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: SerialNumber: V391067051081006
Jun 3 07:56:34 localhost kernel: GobiSerial 1-1.1.1:1.0: GobiSerial converter detected
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB0
Jun 3 07:56:34 localhost kernel: GobiSerial 1-1.1.1:1.2: GobiSerial converter detected
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB1
Jun 3 07:56:34 localhost kernel: GobiSerial 1-1.1.1:1.3: GobiSerial converter detected
Jun 3 07:56:34 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB2
Jun 3 07:56:34 localhost kernel: QMAP Disabled
Jun 3 07:56:34 localhost kernel: GobiNet 1-1.1.1:1.8 eth0: register ‘GobiNet’ at usb-0000:00:1d.0-1.1.1, GobiNet Ethernet Device, 16:66:5a:02:51:08
Jun 3 07:56:34 localhost kernel: USB Speed : USB 2.0
Jun 3 07:56:34 localhost mtp-probe: checking bus 1, device 31: “/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.1/1-1.1.1”
Jun 3 07:56:34 localhost mtp-probe: bus: 1, device: 31 was not an MTP device
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: USB disconnect, device number 31
Jun 3 07:56:50 localhost kernel: GobiSerial driver ttyUSB0: GobiSerial converter now disconnected from ttyUSB0
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.0: device disconnected
Jun 3 07:56:50 localhost kernel: GobiSerial driver ttyUSB1: GobiSerial converter now disconnected from ttyUSB1
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.2: device disconnected
Jun 3 07:56:50 localhost kernel: GobiSerial driver ttyUSB2: GobiSerial converter now disconnected from ttyUSB2
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.3: device disconnected
Jun 3 07:56:50 localhost kernel: GobiNet 1-1.1.1:1.8 enp0s29u1u1u1i8: unregister ‘GobiNet’ usb-0000:00:1d.0-1.1.1, GobiNet Ethernet Device
Jun 3 07:56:50 localhost avahi-daemon[902]: Withdrawing workstation service for enp0s29u1u1u1i8.
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: new high-speed USB device number 32 using ehci-pci
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 16 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 17 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 17 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 18 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 18 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has an invalid interface number: 8 but max is 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has no interface number 1
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has no interface number 4
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has no interface number 5
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: config 1 has no interface number 6
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: New USB device found, idVendor=1199, idProduct=68c0, bcdDevice= 3.18
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: Product: Sierra Wireless WP7607
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: Manufacturer: Sierra Wireless, Incorporated
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: SerialNumber: V391067051081006
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.0: GobiSerial converter detected
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB0
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.2: GobiSerial converter detected
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB1
Jun 3 07:56:50 localhost kernel: GobiSerial 1-1.1.1:1.3: GobiSerial converter detected
Jun 3 07:56:50 localhost kernel: usb 1-1.1.1: GobiSerial converter now attached to ttyUSB2
Jun 3 07:56:50 localhost kernel: QMAP Disabled
Jun 3 07:56:50 localhost kernel: GobiNet 1-1.1.1:1.8 eth0: register ‘GobiNet’ at usb-0000:00:1d.0-1.1.1, GobiNet Ethernet Device, 16:66:5a:02:51:08
Jun 3 07:56:50 localhost kernel: USB Speed : USB 2.0
Jun 3 07:56:50 localhost mtp-probe: checking bus 1, device 32: “/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.1/1-1.1.1”
Jun 3 07:56:51 localhost mtp-probe: bus: 1, device: 32 was not an MTP device
Jun 3 07:56:51 localhost rtkit-daemon[826]: Successfully made thread 3632 of process 1957 (/usr/bin/pulseaudio) owned by ‘42’ RT at priority 5.
Jun 3 07:56:51 localhost rtkit-daemon[826]: Successfully made thread 3635 of process 1957 (/usr/bin/pulseaudio) owned by ‘42’ RT at priority 5.
Jun 3 07:56:57 localhost kernel: creating qcqmi0
Jun 3 07:56:57 localhost kernel: RawIP mode

what is the actual impact to the system ??

This cause extra delay on startup and sometimes unstability. Do you know what is causing 2nd disconnect when I enable audio?

i don’t know, there is no clue in the debug log

Thats fine. I will handle this in my application. In case you get any clue/workaround, please share

here if i remove the USB cable, wait for the module boots up, after some time, plug in the USB cable, there will only be one time connection
but not sure if you can cut the USB power from the host.