Linux DIAG port

Hello,

I am interested in the DIAG port. On my linux embedded system, I have an EM9293 in MBIM mode

(AT!USBCOMP? returns:

AT!USBCOMP?
Config Index: 1
Config Type: 4 (MBIM V2)
Interface bitmask: 00001009 (diag,modem,mbim)

)

I have also enabled DIAGENABLE with AT!CUSTOM=“DIAGENABLE”,1.

When the modem is turned on, The linux OS gives me 2 serial devices (/dev/ttyUSB0 and 1) and /dev/cdc-wdm0. I can send and receive AT commands via /dev/ttyUSB0. Nothing seems to happen on ttyUSB1.

Where can I see diagnostic messages?

What is the purpose of the second serial port?

Should I have more serial ports? I expected a new one to appear when I turned the diagenable on…

/dev/ttyUSB1 is the DM port for getting QXDM log for network analysis.

you can download the linux tool here:

To get the DM log, you can type the following as example:

owner@ubuntu:~/QMI/MBPL/MBPL_Tools_R26_ENG2.src/tools/dm-logger$ sudo ./bin/dm-loggerhostx86_64 -p /dev/ttyUSB1 -c filters/Default.cfg -o log_EM9291.qmdl

Hi,

I am trying to use Sierra Wireless EM9293 on Linux Ubuntu(Ubuntu 24.04.3 LTS), when i open the QXDM i cannot see any diag port to capture the logging in QXDM i see below error.

Can you please share how to make this diag port visible on Linux system and which driver we need to install to make diag port port visible and please share the steps to install the required driver

_1-5 QTIDevUSBDisconnect:3935 Exit
[67320.076653] usb 2-8: new SuperSpeed USB device number 7 using xhci_hcd
[67320.089175] usb 2-8: LPM exit latency is zeroed, disabling LPM.
[67320.089464] usb 2-8: config 1 has an invalid interface number: 3 but max is 2
[67320.089475] usb 2-8: config 1 has an invalid interface number: 4 but max is 2
[67320.089480] usb 2-8: config 1 has an invalid interface number: 8 but max is 2
[67320.089485] usb 2-8: config 1 has no interface number 0
[67320.089489] usb 2-8: config 1 has no interface number 1
[67320.089492] usb 2-8: config 1 has no interface number 2
[67320.089924] usb 2-8: New USB device found, idVendor=1199, idProduct=90e3, bcdDevice= 0.06
[67320.089933] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[67320.089937] usb 2-8: Product: Sierra Wireless EM9293
[67320.089942] usb 2-8: Manufacturer: Sierra Wireless, Incorporated
[67320.089945] usb 2-8: SerialNumber: EG4443871201B115
[67320.111830] QTIDevUSBProbe:3647 USB QTI_HS-USB_SER6_90E3 Successfully inserted
[67320.112262] _2-8 QTIDevUSBProbe:3710 usb_clear_halt INT returned 0
[67320.112265] _2-8 QTIDevUSBProbe:3686 URB Rx Size 131072
[67320.112266] QTI_HS-USB_SER6_90E3_2-8 QTIDevUSBProbe:3738 found both bulk-in and bulk-out endpoints
[67320.112267] QTI_HS-USB_SER6_90E3_2-8 FinalizeURB:3201 →
[67320.112269] QTI_HS-USB_SER6_90E3_2-8 FinalizeURB:3219 ←
[67320.112271] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2682 QDSS: product : Sierra Wireless EM9293
[67320.112272] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2683 QDSS: manufacturer : Sierra Wireless, Incorporated
[67320.112274] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2684 QDSS: serial : EG4443871201B115
[67320.112504] QTIDevUSBProbe:3652 USB QTI_HS-USB_Modem_90E3 Successfully inserted
[67320.112508] _2-8 QTIDevUSBProbe:3686 URB Rx Size 131072
[67320.112510] QTI_HS-USB_Modem_90E3_2-8 QTIDevUSBProbe:3761 1.0.5.4 unable to get the bulk endpoint info
[67320.112512] _2-8 ClearReadMemList:849 reset vmalloc memory
[67320.112744] _2-8 QtiReleaseDevice:374 Device = 0xffff9125c7bc8000 (idle-active 7-1)
[67320.112769] GobiUSBNetProbe:2768 No update required
[67320.112777] GobiUSBNetProbe:2791 1.0.5.4 USB corresponds to other Iface, (Supports only: /opt/QTI/QUD/rmnet/qtiwwan.inf)
[67320.112780] GobiNet: probe of 2-8:1.4 failed with error -5
[67320.113034] QTIDevUSBProbe:3655 1.0.5.4 USB corresponds to other Iface, (Supports only: /opt/QTI/QUD/diag/qtimdm.inf)
[67320.113037] QTIDEV_QDSS_DPL_DIAG_Subsystem: probe of 2-8:1.8 failed with error -5
[67320.113042] GobiUSBNetProbe:2768 No update required
[67320.113044] GobiUSBNetProbe:2791 1.0.5.4 USB corresponds to other Iface, (Supports only: /opt/QTI/QUD/rmnet/qtiwwan.inf)
[67320.113045] GobiNet: probe of 2-8:1.8 failed with error -5

you can download MBPL_DRIVERS_R45_ENG3-usb-pcie-src.tar for the USB driver here:

Thanks for the response.. I downloaded the drivers i see couple of folders.

For port detection do i have CD to the location of the folder and run the make install commands as below.

How to Install the driver

  1. run “make install”
  2. reboot

Can you please share the steps if any other steps needed here

yes, you can go inside the usb folder and type the following to install the USB driver

sudo make
sudo make install

Hi,

I installed the drivers by doing sudo make and sudo make install then reboot the PC, still cannot detect the port in QXDM

please find the dmesg below can you please let me know if any other drivers missing or any setting needed to detect the port in QXDM? please find the snippet of QXDM

41.753854] usb 2-8: Manufacturer: Sierra Wireless, Incorporated
[ 41.753858] usb 2-8: SerialNumber: EG4443871201B115
[ 41.769642] QTIDevUSBProbe:3647 USB QTI_HS-USB_SER6_90E3 Successfully inserted
[ 41.770255] _2-8 QTIDevUSBProbe:3710 usb_clear_halt INT returned 0
[ 41.770267] _2-8 QTIDevUSBProbe:3686 URB Rx Size 131072
[ 41.770274] QTI_HS-USB_SER6_90E3_2-8 QTIDevUSBProbe:3738 found both bulk-in and bulk-out endpoints
[ 41.770278] QTI_HS-USB_SER6_90E3_2-8 FinalizeURB:3201 →
[ 41.770283] QTI_HS-USB_SER6_90E3_2-8 FinalizeURB:3219 ←
[ 41.770290] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2682 QDSS: product : Sierra Wireless EM9293
[ 41.770295] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2683 QDSS: manufacturer : Sierra Wireless, Incorporated
[ 41.770299] QTI_HS-USB_SER6_90E3_2-8 RegisterQDSSDevice:2684 QDSS: serial : EG4443871201B115
[ 41.770940] QTIDevUSBProbe:3652 USB QTI_HS-USB_Modem_90E3 Successfully inserted
[ 41.770954] _2-8 QTIDevUSBProbe:3686 URB Rx Size 131072
[ 41.770958] QTI_HS-USB_Modem_90E3_2-8 QTIDevUSBProbe:3761 1.0.5.4 unable to get the bulk endpoint info
[ 41.770965] _2-8 ClearReadMemList:849 reset vmalloc memory
[ 41.771639] _2-8 QtiReleaseDevice:374 Device = 0xffff8ea0c4b1e000 (idle-active 7-1)
[ 41.771696] GobiUSBNetProbe:2768 No update required
[ 41.771713] GobiUSBNetProbe:2791 1.0.5.4 USB corresponds to other Iface, (Supports only:
/opt/QTI/QUD/rmnet/qtiwwan.inf)
[ 41.771721] GobiNet: probe of 2-8:1.4 failed with error -5
[ 41.772301] QTIDevUSBProbe:3655 1.0.5.4 USB corresponds to other Iface, (Supports only: /opt/QTI/QUD/diag/qtimdm.inf)
[ 41.772315] QTIDEV_QDSS_DPL_DIAG_Subsystem: probe of 2-8:1.8 failed with error -5
[ 41.772340] GobiUSBNetProbe:2768 No update required

[ 41.772346] GobiUSBNetProbe:2791 1.0.5.4 USB corresponds to other Iface, (Supports only: /opt/QTI/QUD/rmnet/qtiwwan.inf)
[ 41.772353] GobiNet: probe of 2-8:1.8 failed with error -5

You can first uninstalll gobiserial and gobinet

Btw, have you tested in ubuntu pc first?

This is my first time testing in ubuntu.

Uninstalling Gobi driver does it impact other devices port detection just to be sure before i uninstall it.

What module will be using this linux pc?

This Linux will be using only SDX62 module for now?

then Gobi driver will not be used for this module

Thanks for the information.. i will uninstall the driver and update later in the day

Thanks,

feroz

Hi,

I cannot able to delete driver and also i cannot locate this driver by doing dpkg -l | grep GobiUSBNetProbe

probe@QXDM-Linux:~$ sudo apt remove --purge GobiSerial
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package GobiSerial
probe@QXDM-Linux:~$ sudo apt remove --purge GobiNet
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package GobiNet

Please let me know how to uninstall this

Add the 2 entries to the
“/etc/modprobe.d/blacklist-modem.conf” file and restart the host
blacklist GobiNet
blacklist GobiSerial

Or you can use “modinfo GobiNet” and “modinfo GobiSerial” to find out where the driver binary is, and then rename the binary and restart the PC