Commit Graph
2360 Commits
Author SHA1 Message Date
Aleksander Morgado f1d4e0fb63 mmcli: prefix all NMEA traces in order to get a pretty print 2012-03-29 09:18:04 +02:00
Aleksander Morgado 422ed7b633 libmm-common,location-gps-nmea: ensure traces get separated with \r\n 2012-03-29 09:18:04 +02:00
Aleksander Morgado 4bc990ce76 mmcli: new actions to request gps-specific or all available locations 2012-03-29 09:18:04 +02:00
Aleksander Morgado 3dd0034560 libmm-glib: provide extended getters for location information objects
The user can now query for all location information with
`mm_modem_location_get_full()', or just for specific location sources with
`mm_modem_location_get_3gpp()', `mm_modem_location_get_gps_nmea()' or
`mm_modem_location_get_gps_raw()'.
2012-03-29 09:18:04 +02:00
Aleksander Morgado 3f7a6fe31b libmm-common,location-gps-raw: fix check looking for mandatory parameters 2012-03-29 09:18:04 +02:00
Aleksander Morgado 19d53751a2 libmm-common,location-gps-raw: don't build dictionary if mandatory parameters missing 2012-03-29 09:18:04 +02:00
Aleksander Morgado 9116a58eb6 mmcli: allow multiple location source enabling/disabling commands
For example, we do allow:
 mmcli -m 0 --enable-location-gps-nmea --disable-location-gps-raw

All the options get merged into a single Setup() call in the Location interface.
2012-03-29 09:18:04 +02:00
Aleksander Morgado ad8a40f8aa api,dbus: update the fields retrievable in the raw GPS location source
Currently just provide the time of measurement, latitude, longitude and
altitude.
2012-03-29 09:18:04 +02:00
Aleksander Morgado 2bf61649d8 libmm-common,tests: new unit tests for the numeric field parsers 2012-03-29 09:18:04 +02:00
Aleksander Morgado e00705c203 libmm-common,helpers: additional checks in the string to number converters
We won't allow NULL, empty, or strings with non-digits.
2012-03-29 09:18:04 +02:00
Aleksander Morgado 71e108fd64 hso: include support for the raw GPS location source 2012-03-29 09:18:04 +02:00
Aleksander Morgado 33e569bbab iface-modem-location: handle the raw GPS location source 2012-03-29 09:18:03 +02:00
Aleksander Morgado 423c4a9d67 libmm-common: new helper `MMModemLocationGpsRaw' object 2012-03-29 09:18:03 +02:00
Aleksander Morgado bf42082466 libmm-common: new helpers to parse doubles from strings or match infos 2012-03-29 09:18:03 +02:00
Aleksander Morgado ee8afd8034 libmm-common,location-gps-nmea: allow sequences of traces
Some traces, e.g. $GPGSV, are part of a sequence. For those traces, we'll try
to always keep the whole sequence around, not just the last received trace.
2012-03-29 09:18:03 +02:00
Aleksander Morgado 614a547316 hso: report received NMEA traces 2012-03-29 09:18:03 +02:00
Aleksander Morgado 53b500c11d iface-modem-location: handle the NMEA-based GPS location source 2012-03-29 09:18:03 +02:00
Aleksander Morgado 0012b71186 libmm-common: new helper `MMModemLocationGpsNmea' object 2012-03-29 09:18:03 +02:00
Aleksander Morgado 2072190691 hso: open/close the raw GPS port when we enable/disable GPS gathering 2012-03-29 09:17:53 +02:00
Aleksander Morgado 97f779df1e hso: ensure GPS is disabled when we initialize the modem 2012-03-29 09:17:53 +02:00
Aleksander Morgado 1cfab89719 base-modem: use new `MMGpsSerialPort' type for the raw GPS port 2012-03-29 09:17:53 +02:00
Aleksander Morgado a0b3663274 gps-serial-port: new type to handle read-only serial ports with GPS traces 2012-03-29 09:17:53 +02:00
Aleksander Morgado 2bd321489d mmcli: new --location-enable-gps' and --location-disable-gps' actions 2012-03-29 09:17:53 +02:00
Aleksander Morgado ab9363011a hso: enable/disable GPS location gathering 2012-03-29 09:17:53 +02:00
Aleksander Morgado 335ba97f48 hso: include custom location capabilities loading
Will check for GPS location sources.
2012-03-29 09:17:53 +02:00
Aleksander Morgado 6d50e5195f serial-port: forced close only to be done once 2012-03-29 09:17:53 +02:00
Aleksander Morgado a69b4d2451 mmcli: new `--location-status' to show supported and enabled location sources 2012-03-29 09:17:53 +02:00
Aleksander Morgado ceefa2c356 location: rework to allow multiple location sources
Location sources can now be enabled or disabled by using the mask of sources
given in Setup() (similar previous Enable()).
2012-03-29 09:17:53 +02:00
Aleksander Morgado 090e349209 hso: grab GPS-specific ports 2012-03-28 15:50:51 +02:00
Aleksander Morgado be633fd66b base-modem: handle GPS control and data ports
Plugin may specify GPS-specific port tyeps when requesting to grab the port.
These could either be an AT-based GPS control port, or the raw GPS serial port
which emits the NMEA traces.
2012-03-28 15:50:51 +02:00
Aleksander Morgado b19f97ae7d port: new `MM_PORT_TYPE_NET' for pure net devices
Net devices will be MMPorts of type MM_PORT_TYPE_NET.
2012-03-28 15:50:51 +02:00
Aleksander Morgado 3b481cf17f base-modem: no need for `port_grabbed()'
Subclasses can configure additional stuff in the ports just after all have been
organized, in the SETUP_PORTS initialization step in MMBroadbandModem.
2012-03-28 15:50:51 +02:00
Aleksander Morgado 8dfbf195c1 port: skip LAST enums in glib-mkenums processing 2012-03-28 15:50:51 +02:00
Aleksander Morgado 68421638f5 at-serial-port: new flag to define the GPS control port 2012-03-28 15:50:51 +02:00
Aleksander Morgado 79c93f4333 at-serial-port: define flags by shifting bits
Otherwise glib-mkenums doesn't take the enumeration as being flags.
2012-03-28 15:50:51 +02:00
Aleksander Morgado 62923f9086 serial-port: ensure we close the port when forcing to close it 2012-03-28 15:50:43 +02:00
Aleksander Morgado b8157228eb broadband-modem: plug memleak when uppercasing storage names 2012-03-28 15:50:43 +02:00
Aleksander Morgado 029cb2abe9 broadband-modem: plug memleak when building AT command 2012-03-28 15:50:43 +02:00
Aleksander Morgado f0b02ce321 hso: plug small memleak when building devfile
Why do we need the devfile anyway?
2012-03-28 15:50:43 +02:00
Aleksander Morgado b29eb54080 sim: plug memleak 2012-03-28 15:50:43 +02:00
Aleksander Morgado 121c543711 sim: fix completion of pin-puk check 2012-03-28 15:50:43 +02:00
Aleksander Morgado 45e4f390eb charsets: plug memleak 2012-03-28 15:50:43 +02:00
Aleksander Morgado e07786ebb1 option: fix loading current allowed modes
The proper command to check the current allowed modes is `AT_OPSYS?'.
2012-03-26 15:23:28 +02:00
Aleksander Morgado 2d02279ba7 Revert "option: fix allowed modes response parsing"
This reverts commit 0bc824b452.

The fix is NOT to change the expected result, but to change the command itself.
2012-03-26 15:20:55 +02:00
Aleksander Morgado f07d3748c6 broadband-modem: fix error reporting in the modem initialization sequence
The initialization sequence doesn't expect any result, so
`mm_base_modem_at_sequence_finish()' will actually return NULL even if there is
no error. Therefore, we base the success of the sequence on the existence of a
GError in the return.
2012-03-26 13:49:02 +02:00
Aleksander Morgado 063c4f9bf8 option: fix disabling sequence handling
This provides the proper fix for the disabling sequence, also amending the
erroneous checks introduced in commit 5b10af0f.
2012-03-26 13:46:30 +02:00
Aleksander Morgado b581d6765f hso: skip the 10s timeout in High-Speed Option devices
Will only be applied to non-HSO Option modems.
2012-03-26 13:39:21 +02:00
Aleksander Morgado e69d4974ef broadband-modem: use current charset when parsing operator name 2012-03-26 13:37:41 +02:00
Aleksander Morgado 28f13c09ec mmcli: abort certain operations if modem is unlocked
Do not try to perform feature/capability specific actions if we're still
unlocked, as the modem didn't yet export the feature/capability specific
interface.

The only interfaces expected while modem is unlocked are the Modem and Simple
interfaces, as well as the SIM interface in the SIM object, of course.
2012-03-26 13:00:07 +02:00
Aleksander Morgado d10780dcf5 mmcli: fix alignment of properties in IP config output 2012-03-26 12:58:18 +02:00