Commit Graph
753 Commits
Author SHA1 Message Date
Aleksander Morgado ea7a939201 broadband-modem: override the Current Capabilities property 2012-03-15 14:14:27 +01:00
Aleksander Morgado 8b1515b2a0 iface-modem: close primary port during disable 2012-03-15 14:14:27 +01:00
Aleksander Morgado 589c6419d2 iface-modem: send power-down command during disable 2012-03-15 14:14:27 +01:00
Aleksander Morgado 5e3ad0fe58 iface-modem: flash primary port during disable 2012-03-15 14:14:27 +01:00
Aleksander Morgado f3b6bfeb8f iface-modem: interface can be disabled
The Modem interface can be disabled, going from enabled back to initialized. The
disabling process will include closing the ports opened during the enabling.
2012-03-15 14:14:27 +01:00
Aleksander Morgado 781c1821fd iface-modem: setup modem charset configuration during enable
Load supported charsets, and loop trying to set the best one.
2012-03-15 14:14:27 +01:00
Aleksander Morgado c0d3bd944c iface-modem: send flow control setup commands during enable 2012-03-15 14:14:27 +01:00
Aleksander Morgado 7fa372d118 iface-modem: allow plugins to send custom commands after power-up
Just after powering up the modem, plugins can run additional setup commands
themselves, in a new "after" power-up step.
2012-03-15 14:14:27 +01:00
Aleksander Morgado 0adbd8edad iface-modem: send power-up commands during enable 2012-03-15 14:14:27 +01:00
Aleksander Morgado b948c93e59 iface-modem: send modem initialization commands during enable 2012-03-15 14:14:26 +01:00
Aleksander Morgado b0a1eccd54 iface-modem: flash primary port during enable 2012-03-15 14:14:26 +01:00
Aleksander Morgado fc19509e4f iface-modem: during init, fall down to next states directly 2012-03-15 14:14:26 +01:00
Aleksander Morgado 8327b6af30 iface-modem: interface can be enabled
In addition to initializing the interface, to load initial values of all
properties and export the object in DBus, the interface can now also be enabled.
Enabling the Modem interface will take care of running the modem enabling
process (flashing port, power up and such).
2012-03-15 14:14:26 +01:00
Aleksander Morgado f049dbb217 iface-modem: emit StateChanged signal when modem state changes 2012-03-15 14:14:26 +01:00
Aleksander Morgado 7b59a80912 iface-modem: load CurrentCapabilities first
With AT+GCAP we load the currently available capabilities, and we store them
in a new "iface-modem-capabilities" property in the MMIfaceModem interface. This
property is bound to the "current-capabilities" property in the MmGdbusModem
skeleton object, so no need to update both when it changes.

ModemCapabilities depend directly on whether the modem can load firmware without
reflashing the device. Currently, just set it equal to CurrentCapabilities.
2012-03-15 14:14:26 +01:00
Aleksander Morgado ec1d94044f sim: during init, fall down to next states directly 2012-03-15 14:14:26 +01:00
Aleksander Morgado c58db4e015 core: start using our newly defined errors 2012-03-15 14:14:25 +01:00
Aleksander Morgado e4d8c4ace7 core: disable all dbus-glib dependent code 2012-03-15 14:14:24 +01:00
Aleksander Morgado 86aa9df849 core: start using MMBroadbandModem objects
We chain up the Generic plugin created MMBroadbandModem objects within the
GDBusObjectManagerServer in MMManager, so that they get properly exported in
DBus.
2012-03-15 14:14:24 +01:00
Aleksander Morgado 4ad9374159 plugin-base: explicitly request to probe for AT capabilities 2012-03-15 14:14:24 +01:00
Aleksander Morgado fa01e7a6d3 core: no need to check Capabilities during port probing
Capabilities checking is done during the Modem interface initialization.
2012-03-15 14:14:24 +01:00
Aleksander Morgado 6552393c8e broadband-modem: implement UnlockRequired loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 6ed6f861f0 broadband-modem: implement DeviceIdentifier loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 912318b5d9 broadband-modem: implement EquipmentIdentifier loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 43d09e63e1 broadband-modem: implement Revision loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 90ba94056b broadband-modem: implement Model loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 63163835a3 broadband-modem: implement Manufacturer loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 8303bed133 broadband-modem: implement Capabilities loading 2012-03-15 14:14:24 +01:00
Aleksander Morgado 8647f3cbda broadband-modem: implement MMIfaceModem interface
Currently just override the interface properties, and launch initialization and
shutdown where appropriate.
2012-03-15 14:14:24 +01:00
Aleksander Morgado a3a712f32f core: new MMBroadbandModem object, inherits from MMBaseModem
New object to implement broadband modem specific behaviour.
2012-03-15 14:14:24 +01:00
Aleksander Morgado 126332332b iface-modem: allow requesting signal quality check
The new `mm_iface_modem_signal_quality_check()' method will reload the signal
quality value on demand, set the value of the `SignalQuality' property in DBus,
and also return the results.
2012-03-15 14:14:24 +01:00
Aleksander Morgado 59c37afae6 iface-modem: handle SetAllowedModes() 2012-03-15 14:14:23 +01:00
Aleksander Morgado 1dcd20f18d iface-modem: handle SetAllowedBands()
Also considering that playing with bands may not be supported.
2012-03-15 14:14:23 +01:00
Aleksander Morgado b9d60d2de4 iface-modem: handle FactoryReset() calls
Also considering that reseting may not be implemented.
2012-03-15 14:14:23 +01:00
Aleksander Morgado 03490d1171 iface-modem: handle Reset() calls
Also considering that reseting may not be implemented.
2012-03-15 14:14:23 +01:00
Aleksander Morgado 2a1465bc91 iface-modem: create MMSim object during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado c2eac91b78 sim: handle SendPin() and SendPuk() calls 2012-03-15 14:14:23 +01:00
Aleksander Morgado 995e7ace07 sim: handle EnablePin() calls 2012-03-15 14:14:23 +01:00
Aleksander Morgado b29a8ba44f sim: handle ChangePin() calls 2012-03-15 14:14:23 +01:00
Aleksander Morgado 23dd4d7e82 sim: allow re-launching initialization
It may happen that we cannot load property values when the SIM is locked, so
we need to enable re-launching initialization in the object API.
2012-03-15 14:14:23 +01:00
Aleksander Morgado ff0136ed04 sim: load OperatorName during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado e3e3b32b0a sim: load OperatorIdentifier during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado bdd1d23ed2 sim: load IMSI during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado 87823387f4 sim: load SIM Identifier during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado e40d32ac94 core: new MMSim object, inherits from MmGdbusSim 2012-03-15 14:14:23 +01:00
Aleksander Morgado 1453f352bc iface-modem: relaunch init when being unlocked 2012-03-15 14:14:23 +01:00
Aleksander Morgado ca15a10629 iface-modem: new `State' property, bound to the one in the MmGDbusModem skeleton 2012-03-15 14:14:23 +01:00
Aleksander Morgado 48babcf976 iface-modem: load SupportedModes' and SupportedBands' during init 2012-03-15 14:14:23 +01:00
Aleksander Morgado 7a20ad46d8 iface-modem: load UnlockRequired' and UnlockRetries' during init
And also allow being loaded upon user request, with
`mm_iface_modem_unlock_check()'.
2012-03-15 14:14:23 +01:00
Aleksander Morgado 9852433095 iface-modem: load EquipmentIdentifier' and DeviceIdentifier' during init 2012-03-15 14:14:22 +01:00