<feed xmlns='http://www.w3.org/2005/Atom'>
<title>uqmi/dev.c, branch master</title>
<subtitle>Tiny QMI command line utility</subtitle>
<id>https://git.openwrt.org/project/uqmi/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/uqmi/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/'/>
<updated>2024-03-09T20:15:22Z</updated>
<entry>
<title>reorganize source code in common and uqmi specific parts</title>
<updated>2024-03-09T20:15:22Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2024-03-09T18:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=02e42c0c299531882ef35b2d4ed5a851a32aaeb2'/>
<id>urn:sha1:02e42c0c299531882ef35b2d4ed5a851a32aaeb2</id>
<content type='text'>
In preparation to add support for uqmid.
Move uqmi specific parts into directory uqmi/.
Move common parts used by both uqmid and uqmi into common/ directory.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>move qmi_get_error_str to into utils.c</title>
<updated>2024-03-09T20:15:21Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2023-10-17T11:15:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=5320c1d656ed30b467b6555472721b25fd3f0c58'/>
<id>urn:sha1:5320c1d656ed30b467b6555472721b25fd3f0c58</id>
<content type='text'>
In prepration to allow uqmid to use it as well.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>dev.c: add missing import strings.h</title>
<updated>2024-03-09T20:15:21Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2023-10-01T16:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=1503bc7e8332222bcdb8b8b6c2c37d0404dc0b79'/>
<id>urn:sha1:1503bc7e8332222bcdb8b8b6c2c37d0404dc0b79</id>
<content type='text'>
Fix compiler warning undeclared function.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>dev.c: add comment to qmi_request_wait()</title>
<updated>2024-03-09T20:15:21Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2023-10-01T16:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=8ff632a048bf72be64046dfdcb533f7745a1d237'/>
<id>urn:sha1:8ff632a048bf72be64046dfdcb533f7745a1d237</id>
<content type='text'>
Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>uqmi: cancel all requests on SYNC indication reception</title>
<updated>2024-01-16T22:18:41Z</updated>
<author>
<name>Jean Thomas</name>
</author>
<published>2023-12-05T10:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=c3488b831ce6285c8107704156b9b8ed7d59deb3'/>
<id>urn:sha1:c3488b831ce6285c8107704156b9b8ed7d59deb3</id>
<content type='text'>
A SYNC indication might be sent by the modem on boot as a first
response, in order to indicate that all Client IDs have been
deallocated. Upon reception of this indication, cancel all current
requests, as they will never be answered.

Signed-off-by: Jean Thomas &lt;jean.thomas@wifirst.fr&gt;
</content>
</entry>
<entry>
<title>uqmi: improve response detection</title>
<updated>2024-01-16T22:18:41Z</updated>
<author>
<name>Jean Thomas</name>
</author>
<published>2023-12-05T10:12:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=dfa612e421cbe4c940e08aa467718fae81fd53db'/>
<id>urn:sha1:dfa612e421cbe4c940e08aa467718fae81fd53db</id>
<content type='text'>
Create a helper which checks the flags depending on the service
indicated in the received message, as the response flag is not the same
for the CTL service and the other services. This avoids considering
a CTL indication as a valid response.

Also use a mask in order to check the flags, as they are a bitmap.

Signed-off-by: Jean Thomas &lt;jean.thomas@wifirst.fr&gt;
</content>
</entry>
<entry>
<title>uqmi: add explicit check for message type when expecting a response</title>
<updated>2019-06-27T10:06:56Z</updated>
<author>
<name>Tautvydas Belgeras</name>
</author>
<published>2019-06-20T10:45:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=1965c713937495a5cb029165c16acdb6572c3f87'/>
<id>urn:sha1:1965c713937495a5cb029165c16acdb6572c3f87</id>
<content type='text'>
When the utility sends a request it expects a response type message,
but does not explicitly check for it. When a device stays idle for
some time, it switches into a sleep mode, and notifies the utility with an
identification type message. In some configurations the device only sends
this identification message when triggered by the utility, in this case by
the request message. What the utility gets is two messages at the same time -
an identification and a response. When it tries to decode former it obviously
fails, because it is not what it expected.

Signed-off-by: Tautvydas Belgeras &lt;tautvydas.b@8devices.com&gt;
</content>
</entry>
<entry>
<title>mbim: fix memory corruption issues</title>
<updated>2016-11-22T14:24:18Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-11-22T14:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=d682e966615fc652da6e4e26b57aa3adfebeb2fe'/>
<id>urn:sha1:d682e966615fc652da6e4e26b57aa3adfebeb2fe</id>
<content type='text'>
Use a common buffer that has enough headroom for the MBIM header.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>add UIM verify pin commands</title>
<updated>2016-11-04T13:25:05Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-11-04T13:20:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=399eddfa3c81d5e7ff1aa736b946e3fe6ffc4eaa'/>
<id>urn:sha1:399eddfa3c81d5e7ff1aa736b946e3fe6ffc4eaa</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>uqmi: add support for MBIM devices with QMI service</title>
<updated>2016-08-23T11:38:27Z</updated>
<author>
<name>Bjørn Mork</name>
</author>
<published>2016-08-21T00:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/uqmi/commit/?id=e69bf24b00d8bc15172644e52ead4aae8fdb7257'/>
<id>urn:sha1:e69bf24b00d8bc15172644e52ead4aae8fdb7257</id>
<content type='text'>
Many Qualcomm based devices offer a QMI service when running in MBIM
mode. This is useful for a number of requests which have no MBIM
counterpart.

This implementation is very basic, simply wrapping the QMI requests
in an MBIM command. It is up to the user to make sure that the MBIM
command sequence is valid, using a mix of umbim and uqmi requests.

umbim must be used to send "OPEN" before uqmi can issue any MBIM
requests. Example:

1. use umbim to open the session, using the '-n' option:

$ umbim -d /dev/cdc-wdm0 -n caps
  devicetype: 0003 - remote
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 003C
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 0008
  deviceid: 0145820007xxxxx
  firmwareinfo: SWI9X30C_02.08.02.00
  hardwareinfo: EM7455

2. use uqmi to send an MBIM request, using the '-m' option:

$ uqmi -m -d /dev/cdc-wdm0 --get-serving-system
{
        "registration": "registered",
        "plmn_mcc": 242,
        "plmn_mnc": 1,
        "plmn_description": "TELENOR",
        "roaming": false
}

3. use umbim to close the open session, using the '-t X' option:

$ umbim -d /dev/cdc-wdm0 -t 2 caps
  devicetype: 0003 - remote
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 003C
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 0008
  deviceid: 0145820007xxxxx
  firmwareinfo: SWI9X30C_02.08.02.00
  hardwareinfo: EM7455

Signed-off-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt; [cleanup, portability fixes]
</content>
</entry>
</feed>
