Em7430 no com port after vid:pid change

i have module em7430, OEM dell dw5816e, connect to PC with USB 3.0 converter
i have flash the Generic firmware, and it work fine. After that, i am working to make it work with my current country cellular, so i try to change VID:PID, IMEI and USBCOMP with AT command as bellow:
AT!USBVID=1199
AT!USBPID=68b1
AT!USBCOMP=1,3,10D
AT!OPENLOCK… → change imei with openlock code and NVIMEI command
AT!RESET

So, the problem come. after modem reset, it come with mbim but no other com port detected
i was try alot of method but nothing works. flash firmware, swi_comport script, complie and install MBPL USB serial, etc…

only i have now is MBIM interface (dmesg result)
[17081.238278] hub 3-0:1.0: USB hub found
[17081.238343] hub 3-0:1.0: 15 ports detected
[17081.572134] usb 3-1: new SuperSpeed USB device number 2 using xhci_hcd
[17081.594832] usb 3-1: New USB device found, idVendor=1199, idProduct=68b1, bcdDevice= 0.06
[17081.594838] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[17081.594839] usb 3-1: Product: EM7430
[17081.594841] usb 3-1: Manufacturer: Sierra Wireless, Incorporated
[17081.594842] usb 3-1: SerialNumber: LR84727330031013
[17081.618356] cdc_mbim 3-1:1.0: cdc-wdm0: USB WDM device
[17081.619674] cdc_mbim 3-1:1.0 wwan0: register ‘cdc_mbim’ at usb-0000:02:1b.0-1, CDC MBIM, 72:6f:9d:d8:b1:a4

Whats solution i be able to try now ? anyway to reset or fix this ?

How about this?

You might also need to modify the mbpl serial driver to add the new pid 68b1.

I have try that way, by navigate to C:\Program Files (x86)\Sierra Wireless Inc\Driver Package and using DriverInst to do some driver change with xml file… not fix this. i was try with flag USBCOMP=8 as 73xx but its not work also

You might also need to modify the mbpl serial driver to add the new pid 68b1.

i am not clearly understand, would you explain that more detaily ?

Some idea like this one:

I also see the qcserial.c in MBPL usb driver where you might add your pid:

thanks you, i will try it

after alot of trying, it showing serial port on dmesg, but it was not registered as ttyUSB device
my works are adding device vid pid on qcserial.c as bellow → re-complie and install it with make → reboot → using modprobe to registering new device
image
i am adding on both static const struct , also try again with another module type 74xx as {DEVICE_SWI(0x1199, 0x9078)}, /* Sierra Wireless EM74xx */

this is dmesg result on ubuntu 20.04:

i am using virtual machine with usb passthough, should i try it with ubuntu live usb ?

Here suggests to use qmicli

thanks you for the advice, but it is not work
the command results are:

error: couldn’t get USB composite modes: QMI protocol error (94): ‘NotSupported’

i was try with both composition 6 or 8 or with 1, none of them give the correct responve

Can you paste your modified qcserial.c here?
Does it work for adding new pid in option driver?

qcserial.c (30.6 KB)
this is the modified file that i complie and install with usb-src, you can searching the line with “edited” explain mark
i was try command modprobe and echo for each driver type i have installed, none of them give me the ttyUSB device registred

shouldn’t you modify like the line having “/* Sierra Wireless MC74xx */”?
e.g.
line 176,336,368

yes i will try this again

it do not work so, the same result as before

dmesg detect 3 serial port, but i still cannot register that port to ttyUSB device

484.081425] usb 2-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 484.081432] usb 2-5.1: Product: EM7430
[ 484.081437] usb 2-5.1: Manufacturer: Sierra Wireless, Incorporated
[ 484.081443] usb 2-5.1: SerialNumber: LR84727330031013
[ 484.084272] usb 2-5.1: Enable of device-initiated U1 failed.
[ 484.085209] usb 2-5.1: Enable of device-initiated U2 failed.
[ 484.085703] usbserial_generic 2-5.1:1.0: The “generic” usb-serial driver is only for testing and one-off prototypes.
[ 484.085716] usbserial_generic 2-5.1:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 484.085729] usbserial_generic 2-5.1:1.0: device has no bulk endpoints
[ 484.111536] cdc_mbim 2-5.1:1.0: cdc-wdm2: USB WDM device
[ 484.112562] cdc_mbim 2-5.1:1.0 wwan0: register ‘cdc_mbim’ at usb-0000:00:14.0-5.1, CDC MBIM, 76:1d:b8:61:fd:82
[ 484.113265] usb 2-5.1: Enable of device-initiated U1 failed.
[ 484.114105] usb 2-5.1: Enable of device-initiated U2 failed.
root@NUC9i5QNX:~#

lsusb -t are just showing 2 mbim interface port

: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
|__ Port 4: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
|__ Port 5: Dev 3, If 0, Class=Hub, Driver=hub/4p, 10000M
|__ Port 1: Dev 6, If 0, Class=Communications, Driver=cdc_mbim, 5000M
|__ Port 1: Dev 6, If 1, Class=CDC Data, Driver=cdc_mbim, 5000M

i was try the modprobe and echo, but it do not work anyway

Is this linux pc ok to connnect good module before to show ttyusbx ?

I saw these new lines

[ 484.085703] usbserial_generic 2-5.1:1.0: The “generic” usb-serial driver is only for testing and one-off prototypes.
[ 484.085716] usbserial_generic 2-5.1:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver

no, ttyUSB device wasnt found on /dev
ls /dev/ | grep USB result nothing
i was intall ubuntu and troubleshoot it with physical pc on today, but it seem doesnt work ethier

So this pc has never successfully connected ttyusbx port before for good module?

i have em7355 module and it work fine , showing 3 ttyUSB0,1,2 even no driver or anything else installed

maybe my module are broken after that PID change, i was thought about order new one with my local ecommerce shop :smile: