Commit Graph
1502 Commits
Author SHA1 Message Date
Aleksander Morgado f9ebfb8ee6 broadband-modem-qmi: load unlock retries using QMI 2012-08-29 17:26:41 +02:00
Aleksander Morgado 6fe32b58cb broadband-modem-qmi: load unlock required using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado 5436a62f9c broadband-modem-qmi: load own numbers using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado b4dedcf944 broadband-modem-qmi: load device ID using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado 12fb2312bb broadband-modem: let subclasses create their own device IDs 2012-08-29 17:26:40 +02:00
Aleksander Morgado 81fe9f84ec broadband-modem-qmi: load equipment ID using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado 573af140b8 broadband-modem-qmi: load revision using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado f3dee3d8ee broadband-modem-qmi: load model using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado bbbb98198d broadband-modem-qmi: load manufacturer using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado 816a7b14da broadband-modem-qmi: load current capabilities using QMI 2012-08-29 17:26:40 +02:00
Aleksander Morgado d2d5a4b89a broadband-modem-qmi: implement the `Modem' interface 2012-08-29 17:26:40 +02:00
Aleksander Morgado b2ea82ed3b broadband-modem-qmi: keep the QMI port open for the whole lifetime of the modem
The QMI port is opened during the modem initialization, and kept open until the
modem gets destroyed.
2012-08-29 17:26:39 +02:00
Aleksander Morgado 19da38a330 qmi: new generic `MMBroadbandModemQmi' object 2012-08-29 17:26:39 +02:00
Aleksander Morgado 40c5e74fec qmi: setup allocation of service-specific clients 2012-08-29 17:14:47 +02:00
Aleksander Morgado 8ee0e3f30f port-probe: new helper to check if a QMI port was found in a list of probes 2012-08-29 17:14:47 +02:00
Aleksander Morgado db99f340c8 port-probe: launch QMI probing on cdc-wdm ports
Some devices may export cdc-wdm ports talking AT. We need to explicitly check
for QMI protocol support on the cdc-wdm ports before assuming they are QMI.
2012-08-29 17:14:47 +02:00
Aleksander Morgado 3e251129c2 base-modem: use the new `MMQmiPort' object 2012-08-29 17:14:47 +02:00
Aleksander Morgado 26d3c28e43 core: new `MMQmiPort' object
This object encapsulates the usage of the `QmiDevice' coming from libqmi-glib.
2012-08-29 17:14:47 +02:00
Aleksander Morgado f1e711e01b udev: don't require specific driver for cdc-wdm ports
Reported by Bjørn Mork <bjorn@mork.no>
2012-08-29 17:14:47 +02:00
Aleksander Morgado 73a9a037be base-modem: allow getting/peeking the QMI port 2012-08-29 17:14:47 +02:00
Aleksander Morgado 306b4eb509 core: allow grabbing QMI ports 2012-08-29 17:14:47 +02:00
Aleksander Morgado ae9e2df294 iface-modem-3gpp: don't try to update anything if no skeleton available 2012-08-28 17:25:32 +02:00
Aleksander Morgado 3ee1fb691c iface-modem-cdma: don't try to update anything if no skeleton available 2012-08-28 17:25:25 +02:00
Aleksander Morgado 26e95b2d3c iface-modem-location: don't try to update anything if no skeleton available 2012-08-28 17:21:08 +02:00
Aleksander Morgado 3ff03c946f iface-modem-simple: don't launch band/mode updates unless explicitly required 2012-08-28 17:15:18 +02:00
Aleksander Morgado 8225dec907 iface-modem: supported bands may be reported as UNKNOWN if couldn't be loaded 2012-08-28 17:15:18 +02:00
Aleksander Morgado 9dbf9a8d0e iface-modem: don't validate against supported bands if these are unknown 2012-08-28 17:15:18 +02:00
Aleksander Morgado 67b051cf69 broadband-modem: skip trail/leading whitespaces in manufacturer, model, revision 2012-08-28 17:15:18 +02:00
Ben Chan 667df5635c iface-modem: skip setting bands if target list equals to current list 2012-08-28 17:15:18 +02:00
Ben Chan 178de0e51d sms-part: use g_set_error instead of g_error_new for consistency 2012-08-27 11:17:30 +02:00
Ben Chan e997803594 sim: validate IMSI value in +CIMI response 2012-08-27 11:13:51 +02:00
Aleksander Morgado 0436b3e457 api,introspection: report list of drivers, not just one
Different ports of the same modem may get handled by different drivers. We
therefore need to provide a list of drivers (new `Modem.Drivers' property with
signature 'as') instead of just one (removed `Modem.Driver' property with
signature 's').

$ sudo mmcli -m 0 | grep drivers
           |        drivers: 'qcserial, qmi_wwan'
2012-08-24 13:34:51 +02:00
Aleksander Morgado ba4e209745 sms: fix sending SMS messages on some modems
This is the port to git master of the following commit:

commit 65f13f41cfd00cd38f118121a58b83713501f45f
Author: Dan Williams <dcbw@redhat.com>
Date:   Tue Jul 17 16:00:31 2012 -0500

    gsm: fix sending SMS messages on some modems and use PDU by default

    It turns out we really do have to wait for the modem to return the
    ">" prompt before sending the message data, otherwise a number of
    modems will complain about the data and fail the message.  Fix that
    by sending the first bit of the CMGS, waiting for the ">", and then
    sending the rest.

    This also switches all modems over to PDU mode by default if they
    support it, since it's more compatible and most recent modems don't
    even bother to support text mode anyway.
2012-08-24 12:32:29 +02:00
Aleksander Morgado 4fe7c7d637 base-modem-at: new `mm_base_modem_at_command_raw()'
Equivalent to `mm_base_modem_at_command()', but with a raw setup.
2012-08-24 12:32:29 +02:00
Aleksander Morgado d18dbb869a base-modem-at: add 'raw' handling to `mm_base_modem_at_command_full()' 2012-08-24 12:32:29 +02:00
Aleksander Morgado d9ea4a304c at-serial-port: allow sending 'raw' commands
Commands treated as 'raw' won't get the 'AT' prefix and will also not get the
trailing carriage return.
2012-08-24 12:32:28 +02:00
Aleksander Morgado 5764d39689 modem-helpers: ERI parser is generic enough, not just for !SPERI 2012-08-23 18:56:22 +02:00
Aleksander Morgado d091344da2 broadband-bearer: pass down the data port to the 3GPP dialling step
Plugins may require specific dialling commands depending on the port type.
2012-08-23 18:56:22 +02:00
Aleksander Morgado 96a6e8923a broadband-bearer: generic CDMA connections are all over serial port and PPP 2012-08-23 18:56:22 +02:00
Aleksander Morgado e38828c318 broadband-bearer: allow implementations to override the port used for connection 2012-08-23 18:56:22 +02:00
Aleksander Morgado 1ac18a06bb api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u)
Instead of using a predefined set of string values for 'ip-type' in
Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The
implementation will then need to convert the requested IP family type to e.g.
the correct PDP type in 3GPP modems.

This change also consolidates the use of enums in dictionary properties when
possible to do so, as with the Rm Protocol.
2012-08-22 09:38:21 +02:00
Aleksander Morgado b8e5dbcaf4 novatel: flip secondary ports to AT mode during port setup 2012-08-20 16:26:55 +02:00
Aleksander Morgado 84d205c9be plugin: new filters for forbidden product IDs/strings
Plugins may specify that specific vendor & product IDs or strings are not
supported. This is useful when plugins need to specify that they support
all devices of a given vendor except for some specific ones.
2012-08-20 16:26:55 +02:00
Aleksander Morgado 4e84cd241b plugin: fix icera filters when using the allowed product string filter 2012-08-20 16:26:55 +02:00
Aleksander Morgado 9512eda21d plugin: don't apply product ID filters if no vendor ID was retrieved 2012-08-20 16:26:55 +02:00
Ben Chan 7b13b5e1c0 broadband-bearer,icera: fix CID matching for unsolicited IPDPACT responses 2012-08-20 09:17:34 +02:00
Ben Chan 7eb1782023 iface-modem: increase number of trials for PIN check from 3 to 6
In practice, it may take longer time for a SIM to become ready when the
modem interface tries to use AT+CPIN? to determine if the SIM is
PIN-locked. This patch increases the number of trials for PIN check to
address the issue.
2012-08-13 12:03:15 +02:00
Aleksander Morgado 36594dd9fb broadband-modem: fix GError disposal 2012-08-08 13:20:26 +02:00
Aleksander Morgado 45e8aa50df iface-modem-3gpp: when disabled, cleanup interface properties 2012-08-06 20:18:15 +02:00
Aleksander Morgado 278842108c iface-modem-3gpp: refactor registration sequences
Once upon a time it was a good idea to have separate steps for CS and PS related
actions, so that plugins could override specific steps with a great detail. That
idea turned out to be not very useful, as the only case which requires custom
CS/PS registration actions is the QMI-enabled modem, and that one has commands
to act on both registration actions at the same time. So, we now consolidate
all steps, so that the implementation of the interface needs to provide all the
logic to setup/enable/disable/cleanup/check registrations in each mode.

Also, we consolidate how the unsolicited registration messages are handled, so
that it's equivalent to other unsolicited messages:
 * 'Setup' will configure ports to process the unsolicited messages.
 * 'Enable' will tell the modem to send unsolicited messages.
 * 'Disable' will tell the modem not to send unsolicited messages.
 * 'Cleanup will configure ports to ignore the unsolicited messages.
2012-08-06 20:17:00 +02:00