Issue with EM7565 4G modem detection

Dear Support,

We need some inputs related to 4G module detection.
We connected the Sierra modem EM7565 to NXP’s 1024 EVK’s microUSB port, running ucLinux Kernel 5.15. The lsusb is able to recognize and print device but we are seeing below error message

cdc_mbim 1-1:1.12: bind() failure

Digging into driver source its due to “failed to collect endpoints”. Please let me know your thoughts.
We have enabled all the flags in .config required for it. Thanks in advance.

Logs:
usb 1-1: new full-speed USB device number 2 using ci_hdrc
usb 1-1: not running at top speed; connect to a high speed hub
usb 1-1: config 1 has an invalid interface number: 12 but max is 4
usb 1-1: config 1 has an invalid interface number: 13 but max is 4
usb 1-1: config 1 has an invalid interface number: 13 but max is 4
usb 1-1: config 1 has no interface number 1
usb 1-1: config 1 has no interface number 4
usb 1-1: config 1 interface 13 altsetting 1 endpoint 0x8E has invalid wMaxPacketSize 0
usb 1-1: config 1 interface 13 altsetting 1 endpoint 0xF has invalid wMaxPacketSize 0
usb 1-1: New USB device found, idVendor=1199, idProduct=9091, bcdDevice= 0.06
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Sierra Wireless EM7565 Qualcomm® Snapdragon™ X16 LTE-A
usb 1-1: Manufacturer: Sierra Wireless, Incorporated
usb 1-1: SerialNumber: UF21613417011052
qcserial 1-1:1.0: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB0
qcserial 1-1:1.2: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB1
qcserial 1-1:1.3: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB2
cdc_mbim 1-1:1.12: bind() failure

Regards,
Subash

does the AT command work on /dev/ttyUSB2?

BTW, do you see such issue in Ubuntu 20.04.5 PC with same kernel version 5.15?

Yes AT command works on USB2.
This issue is not seen in Ubuntu.

Thanks
Subash

If it works in Ubuntu PC with same kernel, then that means it is not firmware problem or driver problem

is that you must use MBIM?
if no, you might try RMNET interface in AT!USBCOMP command

Hi @jyijyi It works if I change to RMNET.

Not sure this is supported. You should connect it to a high speed or superspeed port.

The max bulk packet size on full speed is 64, while the em7565 really wants 512