<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"> Hello:<br><br>I'm a newbie to 3G modems on Linux, using libqmi-1.8 to control a Sierra MC7354 mini-PCI modem in an embarked system (Ubuntu 14.04.2LTS, 3.16 kernel).<br>NetworkManager starts a 3GPP connection using this hardware, and I can get an IP and test ping ok. But it takes a couple of minutes to re-establish connection when signal is lost after is received again. Iīd like to use libqmi and not Network-Manager to detect and handle this situation faster, and easily . I canīt wait two minutes to recover from this on an embarked system and it seems libqmi goes faster for this.<br><br>But if I disable NetworkManager in my Linux boot, and I do a simple qmi-network /dev/cdc_wdm0 start it blocks on DHCP acquisition: <br><br># ./utils/qmi-network /dev/cdc-wdm0 start<br><br>Loading profile...<br> APN: myapn.com<br>Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=myapn.com --client-no-release-cid'...<br>Saving state... (CID: 8)<br>Saving state... (PDH: 1205839304)<br>Network started successfully ---> Is OK...but...<br><br>#ifup wwan0<br>Internet Systems Consortium DHCP Client 4.2.4<br>Copyright 2004-2012 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>Listening on LPF/wwan0/96:49:7d:1c:8b:67<br>Sending on LPF/wwan0/96:49:7d:1c:8b:67<br>Sending on Socket/fallback<br>DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 3 (xid=0x6dc65ce8)<br>...<br>and it blocks in this DHCP.<br><br>BUT, if I start NetworkManager (at boot or in any moment), then I STOP it, and do the same again, it works.<br>So...what does NetworkManager do, that correctly initializes my modem, and I canīt do with libqmi ?. Does qmicli initialize the modem?<br>Also, wen using NetworkManager I see lots of CDMA trial an error probes. Iīm not going to use CDMA. How can I disable it with libqmi?<br>Could you help me?<br><br>Thank you<br><br>======================================<br>This are some caracteristics for my system:<br><br>#lsusb<br>Bus 001 Device 002: ID 1199:68c0 Sierra Wireless, Inc<br><br>====================<br>Minicom on /dev/ttyUSB2<br>String is: AT!GSTATUS?<br>!GSTATUS: <br>Current Time: 118 Temperature: 38<br>Bootup Time: 5 Mode: ONLINE <br>System mode: WCDMA PS state: Attached <br>WCDMA band: WCDMA 2100 <br>WCDMA channel: 11413<br>GMM (PS) state:REGISTERED NORMAL SERVICE ---> Is registered...but fails...<br>MM (CS) state: IDLE NORMAL SERVICE <br>WCDMA L1 state:L1M_PCH_SLEEP LAC: XXXX<br>RRC state: DISCONNECTED Cell ID: XXXXXXXX<br>RxM RSSI C0: -56 RxD RSSI C0: -106<br>RxM RSSI C1: -106 RxD RSSI C1: -106<br><br>OK<br><br>==========================<br>#lsusb -v<br>Bus 001 Device 002: ID 1199:68c0 Sierra Wireless, Inc. <br>Device Descriptor:<br> bLength 18<br> bDescriptorType 1<br> bcdUSB 2.00<br> bDeviceClass 0 (Defined at Interface level)<br> bDeviceSubClass 0 <br> bDeviceProtocol 0 <br> bMaxPacketSize0 64<br> idVendor 0x1199 Sierra Wireless, Inc.<br> idProduct 0x68c0 <br> bcdDevice 0.06<br> iManufacturer 1 Sierra Wireless, Incorporated<br> iProduct 2 MC7354<br> iSerial 3 <br> bNumConfigurations 1<br> Configuration Descriptor:<br> bLength 9<br> bDescriptorType 2<br> wTotalLength 220<br> bNumInterfaces 6<br> bConfigurationValue 1<br> iConfiguration 0 <br> bmAttributes 0xe0<br> Self Powered<br> Remote Wakeup<br> MaxPower 500mA<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 0<br> bAlternateSetting 0<br> bNumEndpoints 2<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 255 Vendor Specific Subclass<br> bInterfaceProtocol 255 Vendor Specific Protocol<br> iInterface 0 <br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x81 EP 1 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x01 EP 1 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 2<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 0 <br> bInterfaceProtocol 0 <br> iInterface 0 <br> ** UNRECOGNIZED: 05 24 00 10 01<br> ** UNRECOGNIZED: 05 24 01 00 00<br> ** UNRECOGNIZED: 04 24 02 02<br> ** UNRECOGNIZED: 05 24 06 00 00<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x83 EP 3 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x000c 1x 12 bytes<br> bInterval 9<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x82 EP 2 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x02 EP 2 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 3<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 0 <br> bInterfaceProtocol 0 <br> iInterface 0 <br> ** UNRECOGNIZED: 05 24 00 10 01<br> ** UNRECOGNIZED: 05 24 01 00 00<br> ** UNRECOGNIZED: 04 24 02 02<br> ** UNRECOGNIZED: 05 24 06 00 00<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x85 EP 5 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x000c 1x 12 bytes<br> bInterval 9<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x84 EP 4 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x03 EP 3 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 8<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 255 Vendor Specific Subclass<br> bInterfaceProtocol 255 Vendor Specific Protocol<br> iInterface 0 <br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x87 EP 7 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x000a 1x 10 bytes<br> bInterval 9<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x86 EP 6 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x04 EP 4 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 10<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 255 Vendor Specific Subclass<br> bInterfaceProtocol 255 Vendor Specific Protocol<br> iInterface 0 <br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x89 EP 9 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x000a 1x 10 bytes<br> bInterval 9<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x88 EP 8 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x05 EP 5 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 11<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 255 Vendor Specific Class<br> bInterfaceSubClass 255 Vendor Specific Subclass<br> bInterfaceProtocol 255 Vendor Specific Protocol<br> iInterface 0 <br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x8b EP 11 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x000a 1x 10 bytes<br> bInterval 9<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x8a EP 10 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x06 EP 6 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0200 1x 512 bytes<br> bInterval 0<br>Device Qualifier (for other device speed):<br> bLength 10<br> bDescriptorType 6<br> bcdUSB 2.00<br> bDeviceClass 0 (Defined at Interface level)<br> bDeviceSubClass 0 <br> bDeviceProtocol 0 <br> bMaxPacketSize0 64<br> bNumConfigurations 1<br>Device Status: 0x0000<br> (Bus Powered)<br></div>
</div></body>
</html>