EM9291 how to enable QMI mode?

how to enable QMI on E9191 modem by AT?

the MBIM interface already can accept QMI message.

But its not accepting, wwan0 created successfully, when we do

uqmi -d /dev/cdc-wdm0 - -get-data-status

its not responding , no no results.

also any of uqmi command not give results.

if you have any of procedure or something to follow please suggest i will try it.

i am using Hilink router, want to connect EM9291 modem to it.

I don’t see problem to use qmicli

Other user can also use qmicli:

But my router not support qmicli , it only support uqmi.

also its not support MBIM that’s why i want to only go with qmi.

then you can try rmnet0 mode in AT!USBCOMP

you might also need to install the correct USB driver " MBPL_DRIVERS_R44_ENG5-bin.tar":

what is AT command for this EM9291 modem to use rmnet0 mode in AT!USBCOMP?

you can try the following:


AT!ENTERCND="A710"
AT!USBCOMP=1,4,109

thanks let me try this and came back to you

Hi @jyijyi this command worked, , i am using a Openwrt router to connect this modem. That router only support QMI, can you please help me if you have anything to try ?

wwan0-, /dev/cdc-wan0/wan1 are showing.

but this wwan0 not getting ip , also not responding to commands like uqmi -d /dev/cdc-wdm0 - -get-data-status

its give no results and error for this command.

if there is anything you can suggest ?

See if this helps

its not worked for me.

Did you install the correct USB driver?
https://source.sierrawireless.com/resources/airprime/software/em929x/em92-approved-fw-packages/#sthash.HdU4SQ9q.ESrLdGMH.dpbs

no idea why it does not work in your platform but worked in linux PC…
no idea why uqmi does not work for QMI communication…

I think either you make the MBIM interface work, or you make the qmicli work in your platform

FYI, with the rmnet interface (qmi_wwan driver) in EM9291, I can communicate via QMI protocol:

[  383.378278] usb 3-2.1: Product: Sierra Wireless EM9291
[  383.378281] usb 3-2.1: Manufacturer: Sierra Wireless, Incorporated
[  383.378283] usb 3-2.1: SerialNumber: 8340327025012345
[  383.401934] qcserial 3-2.1:1.3: Qualcomm USB modem converter detected
[  383.402291] usb 3-2.1: Qualcomm USB modem converter now attached to ttyUSB0
[  383.404593] qcserial 3-2.1:1.4: Qualcomm USB modem converter detected
[  383.404914] usb 3-2.1: Qualcomm USB modem converter now attached to ttyUSB1
[  383.603592] qmi_wwan 3-2.1:1.8: cdc-wdm0: USB WDM device
[  383.604333] [D]qmi_wwan: qmi_wwan dev ffff9f0f0cdcf000 tstats           (null)
[  383.605556] qmi_wwan 3-2.1:1.8 wwan0: register 'qmi_wwan' at usb-0000:03:00.0-2.1, WWAN/QMI device, c2:3c:f4:67:54:01
[  383.634181] usbcore: registered new interface driver qmi_wwan
owner@ubuntu:~$ sudo qmicli --device=/dev/cdc-wdm0 --device-open-proxy --nas-get-signal-strength
[/dev/cdc-wdm0] Successfully got signal strength
Current:
	Network 'none': '-128 dBm'
RSSI:
	Network 'none': '-128 dBm'
ECIO:
	Network 'none': '-2.5 dBm'
IO: '-106 dBm'
SINR (8): '9.0 dB'
owner@ubuntu:~$

Hi @jyijyi we are connecting it with OpenWrt Router, not a ubuntu PC. that support only uqmi.

so when we check uqmi -d /dev/cdc-wdm0 - -get-data-status

it did not give any status or error.

  1. can you please confirm if this uqmi working at your side?
  2. can you let us know how we can switch modem to only QMI mode?

Thanks!

did you have real ubuntu PC or VMWare Ubuntu?
You can try that first to make sure your module works with the PC
You can also try to install uqmi in your Ubuntu PC, but I don’t quite see I can install it in my Ubuntu 18.

As said before, both MBIM and RMNET mode support QMI protocol
do you mean you don’t want AT command port?

FYI, I saw some other user can compile the MBPL SDK in OpenWRT:

Hi @jyijyi ,
did you have real ubuntu PC or VMWare Ubuntu?
Ans:-- No its not real PC or VMWare, its a customized Openwrt router run on Ubuntu.
You can try that first to make sure your module works with the PC?
ANs:- Yes its work with , real Ubuntu as well windows PC.
You can also try to install uqmi in your Ubuntu PC, but I don’t quite see I can install it in my Ubuntu 18.
Ans:- Will try this.
As said before, both MBIM and RMNET mode support QMI protocol
Ans:-- is there anything do we need to disable which causing conflict? as we i told , when we trying to connect with modem with UQMI there is no response from Modem.

Thanks!

Is this typing mistake?
I thought Ubuntu and OpenWRT are two operation systems.

Do you run by root permission?
do you check logread and see why there is no response on uqmi?

BTW, did you compile the MBPL USB driver ( [MBPL_DRIVERS_R44_ENG5-usb-pcie-src.tar) and run in your OpenWRT platform?

Lastly, is your OpenWRT platform running on ARM64 processor?