qmicli always getting transaction time out
EMANUEL FERNANDO MONTOYA GOMEZ
emanuel.montoya at udea.edu.co
Wed Apr 25 02:05:38 UTC 2018
>
> > *Hi all,*
>> >
>> > *I haven't been able to get it working and getting an Ip on any of this
>> > two,
>>
>> Really weird. I have no idea what could be wrong.
>>
>> > so I decided to go for Windows 10 to try.*
>> >
>> >
>> > *I installed: GenericDriverSetup.exe*
>> >
>> > * Skylight_Generic*
>> >
>> > * 9999999_9904609_SWI9X30C_02.20.03.00_00_GENERIC_002.017.000*
>> >
>> >
>> >
>> > *and it connects and gets IP address without any problem in Windows 10.*
>> >
>> >
>> >
>> > *After that, I put the MC7455 modem into the second host devices (the
>> one
>> > thar has Ubuntu 16.04 and kernel version ico1 at ico1:~$ uname
>> > -r4.17.0-041700rc1-lowlatency*
>> >
>> > *it appers in MBIM mode:*
>>
>> Yes, the Windows drivers will do that by default.
>>
>> >
>> > ico1 at ico1:~$ mmcli -m 0
>> >
>> > /org/freedesktop/ModemManager1/Modem/0 (device id
>> > '6bfe7d4ea386210e64dde8fc4a0d7aa44eb7712a')
>> > -------------------------
>> > Hardware | manufacturer: 'Sierra'
>> > | model: 'MBIM [1199:9071]'
>> > | revision: 'SWI9X30C_02.20.03.00'
>> > | supported: 'gsm-umts, lte'
>> > | current: 'gsm-umts, lte'
>> > | equipment id: '359072060686975'
>> > -------------------------
>> > System | device: '/sys/devices/pci0000:00/0000:00:15.0/usb1/1-4'
>> > | drivers: 'cdc_mbim'
>> > | plugin: 'Sierra'
>> > | primary port: 'cdc-wdm0'
>> > | ports: 'wwp0s21f0u4i12 (net), cdc-wdm0 (mbim)'
>> > -------------------------
>> > Numbers | own : 'unknown'
>> > -------------------------
>> > Status | lock: 'none'
>> > | unlock retries: 'sim-pin2 (4)'
>> > | state: 'registered'
>> > | power state: 'on'
>> > | access tech: 'umts'
>> > | signal quality: '0' (cached)
>> > -------------------------
>> > Modes | supported: 'allowed: 3g, 4g; preferred: none'
>> > | current: 'allowed: 3g, 4g; preferred: none'
>> > -------------------------
>> > Bands | supported: 'unknown'
>> > | current: 'unknown'
>> > -------------------------
>> > IP | supported: 'ipv4, ipv6, ipv4v6'
>> > -------------------------
>> > 3GPP | imei: '359072060686975'
>> > | enabled locks: 'fixed-dialing'
>> > | operator id: '732101'
>> > | operator name: 'Claro'
>> > | subscription: 'unknown'
>> > | registration: 'home'
>> > -------------------------
>> > SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
>> >
>> > -------------------------
>> > Bearers | paths: 'none'
>> >
>> >
>> > ico1 at ico1:~$ mmcli -m 0 --simple-status
>> >
>> > /org/freedesktop/ModemManager1/Modem/0
>> > -------------------------
>> > Status | state: 'registered'
>> > | signal quality: '54' (recent)
>> > | bands: 'unknown'
>> > | access tech: 'umts'
>> > -------------------------
>> > 3GPP | registration: 'home'
>> > | operator code: '732101'
>> > | operator name: 'Claro'
>> > | subscription: 'unknown'
>> >
>> > ico1 at ico1:~$
>> >
>> > *And it connects without any problem*
>>
>> > ico1 at ico1:~$ sudo mmcli -m 0 --simple-connect="apn=internet
>> .comcel.com.co
>> > ,user=comcelweb,ip-type=ipv4,allowed-auth=pap,password=comcelweb" -v
>> > [sudo] password for ico1:
>> > [24 abr 2018, 15:00:28] [Debug] Forcing request to be run asynchronously
>> > [24 abr 2018, 15:00:28] [Debug] Assuming '0' is the modem index
>> > [24 abr 2018, 15:00:28] [Debug] ModemManager process found at ':1.3'
>> > [24 abr 2018, 15:00:28] [Debug] Modem found at
>> > '/org/freedesktop/ModemManager1/Modem/0'
>> >
>> > [24 abr 2018, 15:00:28] [Debug] Asynchronously connecting the modem...
>> > successfully connected the modem
>>
>> Great! If you are happy with the modem in MBIM mode, then there is no
>> reason not to use that. You'll still have access to all the powers of
>> QMI through the QMI-in-MBIM wrapper service. See the qmicli
>> "--device-open-mbim" parameter.
>>
>> Too bad you have to use Windows to switch modes though. Or do you have
>> a working AT command port in QMI mode? If so, then you can switch to
>> MBIM using the AT!USBCOMP command. You'll need AT!ENTERCND="A710"
>> first. Then run "AT!USBCOMP?" and "AT!USBCOMP=?" to see your current
>> setting and options.
>>
>>
>
> *There is /dev/cdc-wdm0 named device (there is no /dev/cdc-wdm1)*
>
> *There is not /dev/ttyUSBX named devices, so I can use AT commands in this
> specific host device*
> ico1 at ico1:~$ ls /dev/tty*
> /dev/tty /dev/tty16 /dev/tty24 /dev/tty32 /dev/tty40 /dev/tty49
> /dev/tty57 /dev/tty8 /dev/ttyS14 /dev/ttyS22 /dev/ttyS30
> /dev/tty0 /dev/tty17 /dev/tty25 /dev/tty33 /dev/tty41 /dev/tty5
> /dev/tty58 /dev/tty9 /dev/ttyS15 /dev/ttyS23 /dev/ttyS31
> /dev/tty1 /dev/tty18 /dev/tty26 /dev/tty34 /dev/tty42 /dev/tty50
> /dev/tty59 /dev/ttyprintk /dev/ttyS16 /dev/ttyS24 /dev/ttyS4
> /dev/tty10 /dev/tty19 /dev/tty27 /dev/tty35 /dev/tty43 /dev/tty51
> /dev/tty6 /dev/ttyS0 /dev/ttyS17 /dev/ttyS25 /dev/ttyS5
> /dev/tty11 /dev/tty2 /dev/tty28 /dev/tty36 /dev/tty44 /dev/tty52
> /dev/tty60 /dev/ttyS1 /dev/ttyS18 /dev/ttyS26 /dev/ttyS6
> /dev/tty12 /dev/tty20 /dev/tty29 /dev/tty37 /dev/tty45 /dev/tty53
> /dev/tty61 /dev/ttyS10 /dev/ttyS19 /dev/ttyS27 /dev/ttyS7
> /dev/tty13 /dev/tty21 /dev/tty3 /dev/tty38 /dev/tty46 /dev/tty54
> /dev/tty62 /dev/ttyS11 /dev/ttyS2 /dev/ttyS28 /dev/ttyS8
> /dev/tty14 /dev/tty22 /dev/tty30 /dev/tty39 /dev/tty47 /dev/tty55
> /dev/tty63 /dev/ttyS12 /dev/ttyS20 /dev/ttyS29 /dev/ttyS9
> /dev/tty15 /dev/tty23 /dev/tty31 /dev/tty4 /dev/tty48 /dev/tty56
> /dev/tty7 /dev/ttyS13 /dev/ttyS21 /dev/ttyS3
> ico1 at ico1:
>
>> Bjørn
>>
>
> *There is an IP in bearer information*
> ico1 at ico1:~$ mmcli -b 0
> Bearer '/org/freedesktop/ModemManager1/Bearer/0'
> -------------------------
> Status | connected: 'yes'
> | suspended: 'no'
> | * interface: 'wwp0s21f0u4i12'*
> | IP timeout: '20'
> -------------------------
> Properties | apn: 'internet.comcel.com.co'
> | roaming: 'allowed'
> | IP type: 'ipv4'
> | user: 'comcelweb'
> | password: 'comcelweb'
> | number: 'none'
> | Rm protocol: 'unknown'
> -------------------------
>
>
>
>
>
> * IPv4 configuration | method: 'static' | address:
> '10.142.47.170' | prefix: '30' |
> gateway: '10.142.47.169' | DNS: '190.157.8.89',
> '8.8.8.8' | MTU: '1500'*
> -------------------------
> IPv6 configuration | method: 'unknown'
> -------------------------
> Stats | Duration: '689'
> | Bytes received: 'N/A'
> | Bytes transmitted: 'N/A'
> ico1 at ico1:~$
>
> But it doesn't appear when using ip addr
>
> ico1 at ico1:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
group default qlen 1000
link/ether 00:60:e0:70:30:8d brd ff:ff:ff:ff:ff:ff
inet 192.168.4.110/24 brd 192.168.4.255 scope global enp1s0
valid_lft forever preferred_lft forever
inet6 fe80::260:e0ff:fe70:308d/64 scope link
valid_lft forever preferred_lft forever
3: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether 00:60:e0:70:30:8e brd ff:ff:ff:ff:ff:ff
*4: wwp0s21f0u4i12: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN group default qlen 1000 link/ether
7e:a3:8a:44:19:13 brd ff:ff:ff:ff:ff:ff inet6
fe80::7ca3:8aff:fe44:1913/64 scope link valid_lft forever
preferred_lft forever*ico1 at ico1:~$
*I use udhcp for trying to get an IP but it never success (same using sudo
dhclient wwp0s21f0u4i12)*
ico1 at ico1:~$ sudo udhcpc -i wwp0s21f0u4i12
udhcpc (v1.22.1) started
Sending discover...
Sending discover...
Sending discover...
*How could I get the IP address on wwp0s21f0u4i12 (apperaring using ip addr
or ifconfig)?*
*On the other host device, I get the following:*ico3 at ico3:~$ ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
ico3 at ico3:~$ ls /dev/cdc-wdm*
/dev/cdc-wdm0 /dev/cdc-wdm1
*I connect to AT command port*ati
Manufacturer: Sierra Wireless, Incorporated
Model: MC7455
Revision: SWI9X30C_02.24.03.00 r6978 CARMD-EV-FRMWR2 2017/03/02 13:36:45
MEID: 35907206068764
IMEI: 359072060687643
IMEI SV: 9
FSN: LQ709645770410
+GCAP: +CGSM,+DS,+ES
OK
at!entercnd="A710"
OK
at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0000050D (diag,nmea,modem,rmnet0,rmnet1)
OK
at!usbcomp=?
!USBCOMP:
AT!USBCOMP=<Config Index>,<Config Type>,<Interface bitmask>
<Config Index> - configuration index to which the composition
applies, should be 1
<Config Type> - 1:Generic, 2:USBIF-MBIM, 3:RNDIS
config type 2/3 should only be used for specific
Sierra PIDs: 68B1, 9068
customized VID/PID should use config type 1
<Interface bitmask> - DIAG - 0x00000001,
NMEA - 0x00000004,
MODEM - 0x00000008,
RMNET0 - 0x00000100,
RMNET1 - 0x00000400,
MBIM - 0x00001000,
e.g.
10D - diag, nmea, modem, rmnet interfaces enabled
1009 - diag, modem, mbim interfaces enabled
The default configuration is:
at!usbcomp=1,1,10F
OK
*Change to MBIM Mode*
at!usbcomp=1,1,1009
OK
at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 00001009 (diag,modem,mbim)
OK
*Start ModemManager*
ico3 at ico3:~$ sudo systemctl start ModemManager
ico3 at ico3:~$ mmcli -L
No modems were found
ico3 at ico3:~$
But modem is not shown
*reboot and now it appears*
ico3 at ico3:~$ mmcli -L
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless,
Incorporated] MC7455
ico3 at ico3:~$
*I try to connect to AT command port but It doesn't receive commands and
are shown responses to commands not entered by me*
+CIND: 0,3,1,0,0,1,1,0
OK
+CSQ: 19,99
OK
+CIND: 0,3,1,0,0,1,1,0
OK
+CSQ: 19,99
OK
*See ModemManager status*
ico3 at ico3:~$ sudo systemctl status ModemManager
[sudo] password for ico3:
● ModemManager.service - Modem Manager
Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled;
vendor preset: enabled)
Active: active (running) since Tue 2018-04-24 20:10:40 -05; 12min ago
Main PID: 795 (ModemManager)
Tasks: 3 (limit: 4915)
Memory: 7.5M
CPU: 602ms
CGroup: /system.slice/ModemManager.service
└─795 /usr/sbin/ModemManager
abr 24 20:10:56 ico3 ModemManager[795]: <warn> Could not grab port
(usbmisc/cdc-wdm1): 'Cannot add port 'usbmisc/cdc-wdm1', unsupported'
abr 24 20:10:56 ico3 ModemManager[795]: <warn> Could not grab port
(tty/ttyUSB1): 'Cannot add port 'tty/ttyUSB1', unhandled serial type'
abr 24 20:10:56 ico3 ModemManager[795]: <warn> (ttyUSB2): port attributes
not fully set
abr 24 20:10:56 ico3 ModemManager[795]: <info> Modem for device at
'/sys/devices/pci0000:00/0000:00:15.0/usb1/1-4' successfully created
abr 24 20:10:57 ico3 ModemManager[795]: <info> Modem: state changed
(unknown -> disabled)
abr 24 20:10:57 ico3 ModemManager[795]: <info> Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
abr 24 20:10:57 ico3 ModemManager[795]: <warn> (ttyUSB2): port attributes
not fully set
abr 24 20:10:58 ico3 ModemManager[795]: <info> Modem
/org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed
(unknown -> regis
abr 24 20:10:58 ico3 ModemManager[795]: <info> Modem
/org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed
(registering -> h
abr 24 20:10:59 ico3 ModemManager[795]: <info> Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
registered)
lines 1-20/20 (END)
start ModemManager again and modem not foung
ico3 at ico3:~$ mmcli -L
No modems were found
*reset modem from at command AT!reset, then Modem appeard, not AT command
port is ttyUSB1*
ico3 at ico3:~$ mmcli -L
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [Sierra] MBIM [1199:9071]
ico3 at ico3:~$ ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1
ico3 at ico3:~$ ls /dev/cdc-wdm0
/dev/cdc-wdm0
ico3 at ico3:~$ mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id
'150fa7c148912f7d253da82a30dc3015d41a985c')
-------------------------
Hardware | manufacturer: 'Sierra'
| model: 'MBIM [1199:9071]'
| revision: 'SWI9X30C_02.24.03.00'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '359072060687643'
-------------------------
System | device: '/sys/devices/pci0000:00/0000:00:15.0/usb1/1-4'
| drivers: 'qcserial, cdc_mbim'
| plugin: 'Sierra'
| primary port: 'cdc-wdm0'
| ports: 'ttyUSB0 (qcdm),* ttyUSB1 (at*),
wwp0s21f0u4i12 (net), cdc-wdm0 (mbim)'
ico3 at ico3:~$ sudo mbim-network /dev/cdc-wdm0 start
Loading profile at /etc/mbim-network.conf...
APN: internet.comcel.com.co
APN auth protocol: PAP
APN user: comcelweb
APN password: unset
mbim-proxy: no
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0
--query-subscriber-ready-status --no-close '...
error: couldn't open the MbimDevice: Transaction timed out
Querying registration state 'mbimcli -d /dev/cdc-wdm0
--query-registration-state --no-open= --no-close '...
error: invalid transaction ID specified:
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0
--attach-packet-service --no-open= --no-close '...
error: invalid transaction ID specified:
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=apn='
internet.comcel.com.co',auth='PAP',username='comcelweb' --no-open=
--no-close '...
error: invalid transaction ID specified:
Network start failed
ico3 at ico3:~$ sudo mmcli -m 0 --simple-connect="apn=internet.comcel.com.co
,user=comcelweb,ip-type=ipv4,allowed-auth=pap"
error: couldn't connect the modem:
'GDBus.Error:org.freedesktop.libmbim.Error.Status.NotInitialized:
NotInitialized'
ico3 at ico3:~$ sudo qmicli -d /dev/cdc-wdm0 --device-open-qmi
--wds-get-current-settings
[24 abr 2018, 21:04:39] -Warning ** [/dev/cdc-wdm0] requested QMI mode but
unexpected driver found: cdc_mbim
error: couldn't create client for the 'wds' service: CID allocation failed
in the CTL client: Transaction timed out
ico3 at ico3:~$
--
"La información aquí contenida es para uso exclusivo de la persona o
entidad de destino. Está estrictamente prohibida su utilización, copia,
descarga, distribución, modificación y/o reproducción total o parcial, sin
el permiso expreso de Universidad de Antioquia, pues su contenido puede ser
de carácter confidencial y/o contener material privilegiado. Si usted
recibió esta información por error, por favor contacte en forma inmediata a
quien la envió y borre este material de su computador. Universidad de
Antioquia no es responsable por la información contenida en esta
comunicación, el directo responsable es quien la firma o el autor de la
misma."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20180424/230b6827/attachment-0001.html>
More information about the libqmi-devel
mailing list