ModemManager patch to fix git master compilation

2011-03-25 Thread Aleksander Morgado
Some recent commit broke compilation of the samsung plugin in ModemManager, patch attached. Cheers, -- Aleksander From dc814cd3204f04a85d9f6de93acadb71debbd83d Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Fri, 25 Mar 2011 17:24:48 +0100 Subject: [PATCH] samsung

ModemManager patches to fix build warnings

2011-03-28 Thread Aleksander Morgado
. Cheers, -- Aleksander From 34958190e198065beaaabcc3ac9cf9b9cdc50d35 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Mon, 28 Mar 2011 11:24:39 +0200 Subject: [PATCH 1/4] build: fix automake portability warnings Makefile.am uses several GNU gcc extensions. -Wno

ModemManager: Handle partial replies in AT+CPIN? (READY without OK)

2011-03-29 Thread Aleksander Morgado
7.45 of Sierra Wireless, the AT+CPIN? query reply will never have an OK (quoting here): Read command AT+CPIN? +CPIN: code Note: No OK -- Aleksander From 220c331a23c29e262d807435b1120e96f17c7eea Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com

ModemManager: Allow plugin to specify custom replies (was: ModemManager: Handle partial replies in AT+CPIN? (READY without OK))

2011-03-30 Thread Aleksander Morgado
( MM_AT_SERIAL_PORT (port), mm_serial_parser_v1_parse, parser, mm_serial_parser_v1_destroy); } Comments? Cheers! -- Aleksander From e0a4d4c2db931882b094d0af2ceefb65d60590fd Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Wed, 30 Mar

ModemManager: Allow plugins to configure DTE-DCE flow control command (AT+IFC)

2011-04-01 Thread Aleksander Morgado
flow control */ g_value_set_string (value, +IFC=2,2); break; ... } Cheers, -- Aleksander From 0091d624bbe0edc5056e7b523df148acf233a6e6 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Thu, 31 Mar 2011 10:39:43 +0200 Subject: [PATCH] generic-gsm

Re: ModemManager: 'org.freedesktop.DBus.Error.NoReply: Did not receive a reply.'

2011-04-05 Thread Aleksander Morgado
Hi Dan, i have a detected Modem and tried to send the SIM-PIN with the dbus method (with d-feet) org.freedesktop.ModemManager.Modem.Gsm.Card.SendPin() and get a dbus error back: 'org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include:

ModemManager: Fix GetInfo() dbus calls while port connected

2011-04-06 Thread Aleksander Morgado
: Aleksander Morgado aleksan...@lanedo.com Date: Wed, 6 Apr 2011 17:08:06 +0200 Subject: [PATCH] modem-base: allow NULL ports in get_card_info() if port_error given So that cached values can be returned if querying while the port is connected. --- src/mm-modem-base.c |6 +++--- 1 files changed, 3

ModemManager: new 'wavecom' gsm plugin for Sierra Wireless Airlink FXT modems

2011-04-08 Thread Aleksander Morgado
Hi all, Finished implementing the basic ModemManager support for the Sierra Wireless Airlink Fastrack Xtend GSM/UMTS modems [1]. The plugin was developed using a Fastrack Xtend FXT009 (GPRS/EDGE) modem, but implemented to support also 3G-based models (although completely untested that part).

ModemManager: ensure response array is empty before setting cached response

2011-04-12 Thread Aleksander Morgado
), and the ModemManager process nicely exit()s (or abort()s, depending on who packages d-bus). -- Aleksander From af98190831564949d584b07051d5b6c53e6de7a2 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Tue, 12 Apr 2011 16:32:11 +0200 Subject: [PATCH] serial: ensure

Re: Modem Initialization

2011-04-14 Thread Aleksander Morgado
Where on earth happens the modem initialization in NetWorkmanager? My interest is for GSM/3G modems as well as for POTS/ISDN modems. I've tried to browse the source code but it's quite difficult. What I've found so far is that the initialization is done in the modemmanager. It looks

Re: Modem Initialization

2011-04-14 Thread Aleksander Morgado
Where on earth happens the modem initialization in NetWorkmanager? My interest is for GSM/3G modems as well as for POTS/ISDN modems. I've tried to browse the source code but it's quite difficult. What I've found so far is that the initialization is done in the modemmanager.

Re: modems using same port for data AT command

2011-04-26 Thread Aleksander Morgado
Hi Ran, I would like to ask how NetworkManager/ModemManager deals with modems which use the same port for ppp connection and for AT command. As far as I understand we cannot retrieve any information using AT command while there is a ppp connection on that port. Therefore information such

ModemManager: Cannot set more than one band at the same time?

2011-04-27 Thread Aleksander Morgado
Hi all, The SetBand() operation in the Modem.GSM.Network interface restricts to 1 the bands that can be passed. This means that I cannot SetBand() passing both EGSM and DCS flags, even if the modem supports it. Why is this limitation imposed in ModemManager? Cheers, -- Aleksander

Re: ModemManager: Cannot set more than one band at the same time?

2011-04-29 Thread Aleksander Morgado
Hi all, The SetBand() operation in the Modem.GSM.Network interface restricts to 1 the bands that can be passed. This means that I cannot SetBand() passing both EGSM and DCS flags, even if the modem supports it. Why is this limitation imposed in ModemManager? As discussed on IRC,

ModemManager: Letting plugins manage RS232 modems

2011-05-05 Thread Aleksander Morgado
Hi all, (sorry for the long email) ModemManager plugins need several steps to know whether they can handle a given connected modem. The flow is usually something like this: (1) Check vendor ID (and sometimes also product ID), with one of the following methods:

ModemManager: MMCallbackInfo scheduled twice when device removed

2011-05-11 Thread Aleksander Morgado
Hi all, Each MMCallbackInfo holds a weak reference to the MMModem to which the AT command was sent. When the MMModem is destroyed, mm-callback-info.c::modem_destroyed_cb() gets called and the modem pointer in the callback info is reset to NULL, to avoid having a pointer to an already disposed

Re: ModemManager: MMCallbackInfo scheduled twice when device removed

2011-05-12 Thread Aleksander Morgado
Each MMCallbackInfo holds a weak reference to the MMModem to which the AT command was sent. When the MMModem is destroyed, mm-callback-info.c::modem_destroyed_cb() gets called and the modem pointer in the callback info is reset to NULL, to avoid having a pointer to an already

Re: 1199:6832 Sierra Wireless, Inc. MC8780 not working with NetworkManager 0.8.3.998 / ModemManager 0.4

2011-05-20 Thread Aleksander Morgado
From a cursory reading of the bug reports you cited it seems like some sierra modems crash when ModemManager sends CFUN=1 to them. Can you help verify if this is indeed the case with yours as well? So it really seems that not only Wavecom modems get a whole software restart

Re: 1199:6832 Sierra Wireless, Inc. MC8780 not working with NetworkManager 0.8.3.998 / ModemManager 0.4

2011-05-20 Thread Aleksander Morgado
patch and fix the problem correctly, it would be great :) Attached a patch which should do AT+CFUN=1 only if product ID is not 0x6832. Can you guys test it? Cheers! -- Aleksander From a91835798a7d7a5fffddb905e71b45178ef05ebf Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan

Re: 1199:6832 Sierra Wireless, Inc. MC8780 not working with NetworkManager 0.8.3.998 / ModemManager 0.4

2011-05-20 Thread Aleksander Morgado
is not 0x6832. Can you guys test it? Minor fix in the previous patch, please use the one here instead. Cheers, -- Aleksander From d76e86d336f090a45a66159944e4993c1269 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Fri, 20 May 2011 11:46:32 +0200 Subject: [PATCH

Re: UMTS Device - T Mobile Web And Walk

2011-05-20 Thread Aleksander Morgado
On Fri, 2011-05-20 at 14:59 +0200, Harald Jung wrote: May 20 14:41:21 ThinClient modem-manager[3764]: debug [mm-at-serial-port.c:298] debug_log(): (ttyHS0): -- 'AT +CPMS=ME,ME,MECR' It seems the first command not replied properly is the above CPMS setting, which is the SMS-storage related

Re: 1199:6832 Sierra Wireless, Inc. MC8780 not working with NetworkManager 0.8.3.998 / ModemManager 0.4

2011-05-21 Thread Aleksander Morgado
Attached a patch which should do AT+CFUN=1 only if product ID is not 0x6832. Can you guys test it? Minor fix in the previous patch, please use the one here instead. I updated the package in my ppa with your patch. Gerd, can you test the new one? I did so.

Re: UMTS Device - T Mobile Web And Walk

2011-05-24 Thread Aleksander Morgado
Hi Harald, May 20 14:41:21 ThinClient modem-manager[3764]: debug [mm-at-serial-port.c:298] debug_log(): (ttyHS0): -- 'AT +CPMS=ME,ME,MECR' I have removed the CPMS setting from the source code, I don't need any sms support and the AT command caused the modem device to hang.

Re: 1199:6832 Sierra Wireless, Inc. MC8780 not working with NetworkManager 0.8.3.998 / ModemManager 0.4

2011-05-29 Thread Aleksander Morgado
1) Does the device boot up in CFUN=1 mode already? This could be determined via minicom/screen without MM running. If it does (my 8775 modules do) then we could avoid this issue by having the startup code check AT+CFUN? before doing AT+CFUN=1 explicitly. I will try to implement this,

Re: Comments about the proposed new MM D-Bus API

2011-05-31 Thread Aleksander Morgado
1) Regarding frequency/band management: * There is now AllowedBands and SupportedBands properties in the API, but no GetBand() or SetBand(). So really seems the only way to set specific bands is through writing the AllowedBands property. I don't think its a good idea, as we really want

ModemManager: issues with port probing and cached capabilities

2011-05-31 Thread Aleksander Morgado
Hi all, My understanding is that the whole support for caching capabilities after port probing is done so that if a plugin requests a probe, the remaining plugins to check for support don't need to relaunch a new port probe. If this is not the case, please stop reading now :-) Port probing and

Re: ModemManager: issues with port probing and cached capabilities

2011-06-02 Thread Aleksander Morgado
Most (all?) implementations of grab_port() in the plugins rely on the fact that the port probing task they get as input argument is exactly the one which did the port probing: there are calls to mm_plugin_base_supports_task_get_probed_capabilities() usually in grab_port() in order to know

Re: ModemManager: new 'cinterion' plugin and more support for RS232 modems

2011-06-03 Thread Aleksander Morgado
Finished developing a new 'cinterion' plugin for Cinterion/Siemens-based modems (see [1]). This development is ready for review in the 'plugin-cinterion' branch in the following Gitorious repository [2]: git://gitorious.org/lanedo/modemmanager.git The branch is based on

Re: ModemManager: MMCallbackInfo scheduled twice when device removed

2011-06-06 Thread Aleksander Morgado
All the stuff in the protect-callbacks branch looks good, please push. I couldn't trigger crashes on a number of devices just pulling them out in the middle of a tight loop hammering the modem for info. Good work. This has been pushed to both git master and MM_05. Cheers, -- Aleksander

Re: ModemManager: new 'cinterion' plugin and more support for RS232 modems

2011-06-06 Thread Aleksander Morgado
Finished developing a new 'cinterion' plugin for Cinterion/Siemens-based modems (see [1]). This development is ready for review in the 'plugin-cinterion' branch in the following Gitorious repository [2]: git://gitorious.org/lanedo/modemmanager.git The branch is based on the

Re: ModemManager: issues with port probing and cached capabilities

2011-06-06 Thread Aleksander Morgado
Most (all?) implementations of grab_port() in the plugins rely on the fact that the port probing task they get as input argument is exactly the one which did the port probing: there are calls to mm_plugin_base_supports_task_get_probed_capabilities() usually in grab_port() in order to

Re: [PATCH] ModemManager: Enhancements to Icera error reporting and access technology reporting

2011-06-07 Thread Aleksander Morgado
Hi Eric, The additional error detail allows us to know that a connection failed because of an invalid APN. Also, when handling access technology changes, report the technology in use if we're connected. Finally, avoid using CFUN=0 when disabling the modem. A small thing to fix in the patch.

[PATCH] Simple patches for NM

2011-06-09 Thread Aleksander Morgado
: Aleksander Morgado aleksan...@lanedo.com Date: Thu, 9 Jun 2011 09:35:25 +0200 Subject: [PATCH 2/2] libnm-util: added missing U2600 GSM band enumeration --- libnm-util/nm-setting-gsm.c |3 ++- libnm-util/nm-setting-gsm.h |1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git

Re: Slow mobile broadband detection

2011-06-14 Thread Aleksander Morgado
I'm using a multimode GPRS/EDGE/UMTS/HSDPA USB key for internet access, product ONDA WCDMA Technologies MSM. OS is Ubuntu Natty 11.04 64-bit, NetworkManager 0.8.4. The device always connects and once connected it works pretty fine, the only problem is that it takes some minutes before the

Re: Slow mobile broadband detection

2011-06-14 Thread Aleksander Morgado
Debug logs would be helpful. I attached them to this mail, hope this helps. :-( Sorry, I forgot one step... You need to: $ killall modem-manager between the network-manager stop and the manual run of modem-manager. The attached MM logs are not useful, as MM just exited because there

Re: Slow mobile broadband detection

2011-06-14 Thread Aleksander Morgado
On Tue, 2011-06-14 at 23:33 +0200, dave guandalino wrote: 2011/6/14 Aleksander Morgado aleksan...@lanedo.com: :-( Sorry, I forgot one step... You need to: Np :-) Btw, thanks for watching. So, this modem is reported as being a ZTE modem, and therefore uses the ZTE plugin in ModemManager. 3

[ModemManager] Alternating AT and QCDM during port probing?

2011-06-14 Thread Aleksander Morgado
Hi Dan list, Would it be a good idea to alternate QCDM port probing along with the AT port probing?, something like: * Try AT command(s) * If timeouts, try QCDM * If timeouts, try again AT command(s) * If timeouts, trya gain QCDM * If timeouts, try again AT command(s) * If timeouts, failed

ModemManager: new 'iridium' plugin

2011-06-20 Thread Aleksander Morgado
: nil; c-basic-offset: 4 -*- # # Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2011 Aleksander Morgado aleksan...@lanedo.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software

ModemManager: power-up/power-down fixes for Wavecom, Cinterion and Sierra modems

2011-06-22 Thread Aleksander Morgado
Hi all, Some fixes related to power-up/power-down some modems are available in the 'power-up-check-needed' branch in the following Gitorious repo [1]: git://gitorious.org/lanedo/modemmanager.git The changes being: * Modified the generic GSM implementation so that we allow plugins to check

Re: Issue with Indian Datacard

2011-06-22 Thread Aleksander Morgado
On Wed, 2011-06-22 at 08:21 -0700, Manish S Runwal wrote: Sorry to bother you. But I am deadly looking for solution for it. Your modem-manager debug logs show that you get NO CARRIER errors when trying to connect: (ttyUSB3): -- 'ATD*99***1#CR' (ttyUSB3): -- 'CRLFNO CARRIERCRLF' (ttyUSB3):

Re: ModemManager: power-up/power-down fixes for Wavecom, Cinterion and Sierra modems

2011-06-30 Thread Aleksander Morgado
Hi Dan, Some fixes related to power-up/power-down some modems are available in the 'power-up-check-needed' branch in the following Gitorious repo [1]: git://gitorious.org/lanedo/modemmanager.git These all look good. I think in the future though we should just define some stuff

Re: no 3g wan after hibernate

2011-07-06 Thread Aleksander Morgado
after hibernation the system asks for the sim pin, which is accepted, but still is unable to connect, see the attached log. I deactivate 3g broadband, then reactivate. After giving it some time, i have it connect to my provider. It then recognizes that it has no SIM PIN available, which

Re: Sierra Wireless MC8781 vs. modem-manager from git

2011-07-10 Thread Aleksander Morgado
Hi, By the virtue of https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/459052 I've ended up running modem-manager from git (today's master). And yet, not all is well (there's no connection). Here's the syslog bits that looked interesting to me: modem-manager[6071]: info

Re: Sierra Wireless MC8781 vs. modem-manager from git

2011-07-11 Thread Aleksander Morgado
If you're still interested, I can send the MM/NM logs from a typical session (there are several error-like anomalous messages on the way). It would be great if you could do that, indeed. -- Aleksander ___ networkmanager-list mailing list

Re: UNS: Re: Sierra Wireless MC8781 vs. modem-manager from git

2011-07-11 Thread Aleksander Morgado
On Mon, 2011-07-11 at 00:04 +0400, Samium Gromoff wrote: On Sun, 10 Jul 2011 21:54:42 +0200, Aleksander Morgado aleksan...@lanedo.com wrote: Could you please provide modem-manager debug logs? https://wiki.ubuntu.com/DebuggingModemmanager In the very beginning of that page

Re: Modemmanager/Sierra Wireless MC8781 fails assert when no SIM is inserted

2011-07-24 Thread Aleksander Morgado
Hey Samium, ... modem-manager[3878]: info [1311508930.212757] [mm-serial-port.c:938] mm_serial_port_close(): (ttyUSB0) serial port closed modem-manager[3878]: debug [1311508930.213324] [mm-manager.c:687] supports_callback(): (tty/ttyUSB0): plugin 0x9542d20 (Cinterion) existing 0x9542f20

Re: Modemmanager/Sierra Wireless MC8781 fails assert when no SIM is inserted

2011-07-27 Thread Aleksander Morgado
... modem-manager[3878]: info [1311508930.212757] [mm-serial-port.c:938] mm_serial_port_close(): (ttyUSB0) serial port closed modem-manager[3878]: debug [1311508930.213324] [mm-manager.c:687] supports_callback(): (tty/ttyUSB0): plugin 0x9542d20 (Cinterion) existing 0x9542f20

Common ModemManager.h

2011-08-15 Thread Aleksander Morgado
Hi everyone, One of the things that came up during the NM/MM BoF during the Desktop Summit was about the possibility of having a C library (libmm-glib? [1]) which will enable easy access to ModemManager info in GLib-based applications. I'm looking into preparing a ModemManager.h with common

Re: Common ModemManager.h

2011-08-16 Thread Aleksander Morgado
So, what about having a common ModemManager.h, and making the daemon use it as well? I have mixed feelings on whether it makes sense to have it auto-generated from the DBus API XMLs, anyway, as we want it to be used also internally; so I would propose to have it manually maintained, just

Re: Common ModemManager.h

2011-08-16 Thread Aleksander Morgado
Hi, I'm not sure why it is better to manually maintain the file rather than auto generating it (other than XSLT being a difficult language), but I certainly agree with using enum types instead of #defines. It actually depends on what we want to have in that common header. If we just want to

Re: Common ModemManager.h

2011-08-17 Thread Aleksander Morgado
I'm not sure why it is better to manually maintain the file rather than auto generating it (other than XSLT being a difficult language), but I certainly agree with using enum types instead of #defines. It actually depends on what we want to have in that common header. If we

Re: Common ModemManager.h

2011-08-17 Thread Aleksander Morgado
Hi hi, I'm not sure why it is better to manually maintain the file rather than auto generating it (other than XSLT being a difficult language), but I certainly agree with using enum types instead of #defines. It actually depends on what we want to have in that common

Re: Common ModemManager.h

2011-08-19 Thread Aleksander Morgado
On Thu, 2011-08-18 at 14:50 -0500, Dan Williams wrote: On Wed, 2011-08-17 at 10:55 -0400, Jason Glasgow wrote: I think that looks great. -Jason Yeah, looks good to me too. Should I just merge it to git master, or wait until I get the libmm-glib ready for review? -- Aleksander

Re: Common ModemManager.h

2011-08-19 Thread Aleksander Morgado
On Fri, 2011-08-19 at 15:38 -0500, Dan Williams wrote: On Fri, 2011-08-19 at 12:27 +0200, Aleksander Morgado wrote: On Thu, 2011-08-18 at 14:50 -0500, Dan Williams wrote: On Wed, 2011-08-17 at 10:55 -0400, Jason Glasgow wrote: I think that looks great. -Jason Yeah, looks good

ModemManager: issues with Nokia handset in git master

2011-08-20 Thread Aleksander Morgado
=46d757faa768db7d7bb23d51cc2af3196f7a7e30 -- Aleksander From 425cc9294141b83e66a6ed62a3e68674144ca6d8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Sat, 20 Aug 2011 17:22:28 +0200 Subject: [PATCH] nokia: use E1 E0 when initializing the modem Passing E1 and E0 afterwards

Re: GlobeTrotter HSDPA Modem - Failed to find a usable modem character set

2011-09-15 Thread Aleksander Morgado
(ttyHS0): -- 'AT_OPSYS?CR' Sep 15 10:43:34 ThinClient modem-manager[2081]: debug [mm-at-serial-port.c:298] debug_log(): (ttyHS0): -- 'CRLFERRORCRLF' Sep 15 10:43:34 ThinClient modem-manager[2081]: debug [mm-serial-parsers.c:412] mm_serial_parser_v1_parse(): Got failure code 100: Unknown

Re: modem-manager-cli

2011-09-15 Thread Aleksander Morgado
In an email from a few months ago I saw a reference to a modem-manager cli. Is this a publicly availble program? It is not finished yet, but quite usable if you speak English (not translated yet) and if you know how to clone a git repo and compile ModemManager youself: 1. Clone

Re: modem-manager-cli

2011-09-15 Thread Aleksander Morgado
In an email from a few months ago I saw a reference to a modem-manager cli. Is this a publicly availble program? AFAIK there's no mm-cli at all; there are a number of CLI tools (mainly for testing) that talk to MM. A CLI MM tool wouldn't be hugely useful for actual connections though,

ModemManager: improving port probing

2011-09-20 Thread Aleksander Morgado
Hi all, I've been lately trying to improve the probing process in ModemManager, so that it is faster and easier to maintain, keeping in mind the different specific needs of the current plugins. The current status of the work can be seen in the 'probing-refactor' branch in the following git repo:

Re: ModemManager: improving port probing

2011-09-25 Thread Aleksander Morgado
1. Plugin Manager --- The MMManager object handled too many different tasks, that it made sense to me to have an independent MMPluginManager object which takes care of: * Finding plugins and loading them * Controlling the requests

Re: Modems access fails after pppd hang up

2011-09-26 Thread Aleksander Morgado
Hey, after doing a lot of testing with bad UMTS connections, I was able to solve most of my problems with my patches from http://mail.gnome.org/archives/networkmanager-list/2011-September/msg00040.html . There is one problem still left, which I am not able to solve on my own. If

[PATCH 1/8] api: include ScanDevices() and SetLogging() in the new manager API

2011-09-30 Thread Aleksander Morgado
These methods were available in the old API, and are needed in the new one. --- new/org.freedesktop.ModemManager1.xml | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.xml b/new/org.freedesktop.ModemManager1.xml index

[PATCH 3/8] api: let the Modem expose a 'Sim' property to link to a specific SIM object

2011-09-30 Thread Aleksander Morgado
SIM objects will be listed as independent objects in the DBus API, and the 'Sim' property in a given modem object will specify which SIM object is in use. --- new/org.freedesktop.ModemManager1.Modem.xml |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

Changes to the proposed ModemManager DBus API

2011-09-30 Thread Aleksander Morgado
Here is a set of changes to the proposed MM DBus API. Some of them were already discussed some time ago in the following thread: https://mail.gnome.org/archives/networkmanager-list/2011-May/msg00162.html [PATCH 1/8] api: include ScanDevices() and SetLogging() in the new manager API [PATCH 2/8]

[PATCH 2/8] api: remove GetInfo() from the Modem API and use read-only properties instead.

2011-09-30 Thread Aleksander Morgado
New 'Manufacturer', 'Model' and 'Revision properties are added, all being read-only strings. --- new/org.freedesktop.ModemManager1.Modem.xml | 37 +-- 1 files changed, 18 insertions(+), 19 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.Modem.xml

[PATCH 4/8] api: let SignalQuality say if the given value was recently taken

2011-09-30 Thread Aleksander Morgado
Modems which only expose a single port will not be able to update the signal quality value while in connected mode. The signal quality value reported in this case, while the modem is connected, will be the last signal quality value read before the connection. The additional boolean value proposed

[PATCH 8/8] api: Let MM_MODEM_MODE be a bitfield, and new PreferredMode property

2011-09-30 Thread Aleksander Morgado
Supported and Allowed modes are modified to be bitmasks of MM_MODEM_MODE values, and preference of a specific mode is now given in the new PreferredMode property and as an extra argument to the SetAllowedModes() call. * Supported Modes: bitmask specifying which modes are supported by the

[PATCH 7/8] api: rename MM_MODEM_ALLOWED_MODE to MM_MODEM_MODE

2011-09-30 Thread Aleksander Morgado
Makes more sense to have the enum named just as 'mode', as it applies to both Supported and Allowed. --- new/org.freedesktop.ModemManager1.Modem.xml |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.Modem.xml

[PATCH 5/8] api: new SetAllowedModes() to be able to modify the allowed mode in the modem

2011-09-30 Thread Aleksander Morgado
Changing the allowed mode of a modem may fail, for example if trying to set a mode which is not in the modes reported as Supported by the modem. Therefore, we need an explicit SetAllowedModes() method with proper error reporting instead of making the property writable. ---

[PATCH 6/8] api: new SetAllowedBands() to be able to modify the allowed bands in the modem

2011-09-30 Thread Aleksander Morgado
Changing the allowed bands in a modem may fail, for example if trying to set a frequency band which is not in the bands mask reported as Supported by the modem. Therefore, we need an explicit SetAllowedBands() method with proper error reporting instead of making the property writable. ---

Re: [PATCH 8/8] api: Let MM_MODEM_MODE be a bitfield, and new PreferredMode property

2011-09-30 Thread Aleksander Morgado
Hey Thomas, Supported and Allowed modes are modified to be bitmasks of MM_MODEM_MODE values, and preference of a specific mode is now given in the new PreferredMode property and as an extra argument to the SetAllowedModes() call. * Supported Modes: bitmask specifying which modes

Re: Changes to the proposed ModemManager DBus API

2011-10-01 Thread Aleksander Morgado
Here is a set of changes to the proposed MM DBus API. Some of them were already discussed some time ago in the following thread: https://mail.gnome.org/archives/networkmanager-list/2011-May/msg00162.html [PATCH 1/8] api: include ScanDevices() and SetLogging() in the new manager

Re: [PATCH 8/8] api: Let MM_MODEM_MODE be a bitfield, and new PreferredMode property

2011-10-01 Thread Aleksander Morgado
Hey hey, Supported and Allowed modes are modified to be bitmasks of MM_MODEM_MODE values, and preference of a specific mode is now given in the new PreferredMode property and as an extra argument to the SetAllowedModes() call. * Supported Modes: bitmask specifying which modes are

Re: problem with cinterion TC63i rs232 modem

2011-10-06 Thread Aleksander Morgado
Hey Thomas, To reproduce, i do the following: 1 ) stop NM, MM and disconnect the modem from power supply 2 ) connect the modem to power supply 3 ) start MM: modem-manager --debug --log-level=DEBUG 4 ) start NM: /etc/init.d/network-manager start 5 ) nmcli con up uuid

[PATCH] Re: problem with cinterion TC63i rs232 modem

2011-10-13 Thread Aleksander Morgado
. It modifies the common serial parser, so not something Cinterion-specific, but the change is quite small and shouldn't affect other plugins. Cheers, -- Aleksander From 9d56d7b55c55859e259d22476eef515e90d84a0a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado aleksan...@lanedo.com Date: Thu, 13 Oct 2011 14

ModemManager: Use standard DBus ObjectManager interface?

2011-10-14 Thread Aleksander Morgado
Hi all, The ObjectManager interface was recently added as a standard interface in DBus: http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager For the 0.6 API, we could be using this interface instead of the proposed GetDevices() method, the Modems property and

Re: [PATCH] Re: problem with cinterion TC63i rs232 modem

2011-10-14 Thread Aleksander Morgado
So the real problem here is that the Cinterion modem sends a NUL byte before the CONNECT response: [mm-at-serial-port.c:298] debug_log(): (ttyS1): -- 'ATD*99***1#CR' modem-manager[2621]: debug [1317807408.548825] [mm-at-serial-port.c:298] debug_log(): (ttyS1): -- '\0'

Re: [PATCH 8/8] api: Let MM_MODEM_MODE be a bitfield, and new PreferredMode property

2011-10-17 Thread Aleksander Morgado
Supported and Allowed modes are modified to be bitmasks of MM_MODEM_MODE values, and preference of a specific mode is now given in the new PreferredMode property and as an extra argument to the SetAllowedModes() call. * Supported Modes: bitmask specifying which modes are supported by the

Development of the ModemManager 0.6 API

2011-10-20 Thread Aleksander Morgado
Hi everyone, I just pushed a new '06-api' [1] development branch in the upstream ModemManager git repo. This branch will hold the port of ModemManager to the new 0.6 API, using GDBus and also targeting the new multi-mode LTE devices. At some point it will also include the new libmm-glib [2] and

Re: ModemManager: [PATCH 2/2] Improvements to SIM PIN handling

2011-10-26 Thread Aleksander Morgado
Hey Eric, Some comments inline below. On Wed, 2011-10-19 at 15:42 -0400, Eric Shienbrood wrote: From b129d263ec1674462c218b4ec91260cf082bf77e Mon Sep 17 00:00:00 2001 From: Eric Shienbrood e...@google.com Date: Thu, 11 Aug 2011 13:58:59 -0400 Subject: [PATCH] Added new property to track

Re: ModemManager: [PATCH 1/2] Improvements to SIM PIN handling

2011-10-26 Thread Aleksander Morgado
On Wed, 2011-10-19 at 15:42 -0400, Eric Shienbrood wrote: From 7c718db20958c200bc9dcb086763bfe0ebb91399 Mon Sep 17 00:00:00 2001 From: Eric Shienbrood e...@google.com Date: Thu, 14 Jul 2011 19:11:54 -0400 Subject: [PATCH] Correctly track the number of SIM PIN retries left. There are other

Re: problems with fasttrack xtend fxt009

2011-11-08 Thread Aleksander Morgado
i use latest git-snapshot from ModemManager with NM 0.8.4. I try to use a Fastttrack XTend FXT009. I'm unable to get a working connection (see MM-Log). After the connection, the modem does not answer to any AT-commands (see the end of MM-Log). Hmm, maybe we're dialing too early?

Re: Initial state of modems

2011-11-15 Thread Aleksander Morgado
i use a Fasttrack xTend FXT009 with an external power supply. i use MM on an embedded device and the modem is connected over usb. When i have an active connection with the modem, remove the power from the embedded device (so MM has no chance to cleanup anything) and then i restart the

Re: [PATCH] core: add internet connectivity check

2011-11-22 Thread Aleksander Morgado
On Tue, 2011-11-22 at 12:21 +0100, Marcel Holtmann wrote: Actually the HTTP header makes a lot more sense since once you received the valid one, you can just terminate the HTTP request and do not have to deal with downloading the whole file. You can possibly do just a HTTP HEAD request,

Re: ModemManager [PATCH 2/2] Take 3 of: Improvements to SIM PIN handling - Add EnabledFacilityLocks property

2011-11-23 Thread Aleksander Morgado
Hey Eric Dan, On Fri, 2011-11-11 at 15:10 -0500, Eric Shienbrood wrote: Subject: [PATCH] Added new property to track which facility locks are enabled. The property EnabledFacilityLocks on the .Modem.Gsm.Card interface is a bit mask that indicates which of the various personalization codes

Re: ModemManager [PATCH 2/2] Take 3 of: Improvements to SIM PIN handling - Add EnabledFacilityLocks property

2011-11-23 Thread Aleksander Morgado
Hey hey, I guess I don't have a problem with merging them, although strictly speaking they refer to different things - locks vs. the PINs needed to unlock those locks. Yeah, you're totally right... but at the end the PIN/PUK codes are directly related to facilities. E.g SIM facility, has PIN

ModemCapabilities, CurrentCapabilities and firmwares

2011-11-25 Thread Aleksander Morgado
Hey Dan ttuttle, The 0.6 API in MM has 2 properties named ModemCapabilities and CurrentCapabilities. The current ones will be the ones reported by +GCAP, but how do we know the modem ones? I am assuming here that the ModemCapabilities will be different to the CurrentCapabilities only when the

3GPP interface name in MM 0.6

2011-11-28 Thread Aleksander Morgado
Hey, According to the DBus specs [1], no element within a DBus interface can start with a digit... so org.freedesktop.ModemManager1.Modem.3gpp is a bad name. :-/ I will temporarily fallback to use: org.freedesktop.ModemManager1.Modem.Modem3gpp (along with

Re: [ModemManager] [PATCH] Fix two bugs with multipart SMS handling: signals and listing.

2011-11-30 Thread Aleksander Morgado
(For ChromeOS development, I have rigged up a black-box ModemManager test system under autotest, which creates a fake gudev device and a fake modem that responds to AT commands to test this kind of thing. It might be interesting to adapt it into the MM build system somehow; right now it's

Re: [ModemManager] [PATCH] mm_gsm_parse_scan_response(): Improve regex-construction error handling

2011-11-30 Thread Aleksander Morgado
This was the only code in ModemManager using g_error(), and not appropriately, I think. The codebase is still mixed on how to handle errors compiling regular expressions; other places in this file use g_assert(), while the rest of the code tends to report some kind of parse-failure error.

Re: ModemManager [PATCH 2/2] Take 3 of: Improvements to SIM PIN handling - Add EnabledFacilityLocks property

2011-12-01 Thread Aleksander Morgado
I guess I don't have a problem with merging them, although strictly speaking they refer to different things - locks vs. the PINs needed to unlock those locks. Yeah, you're totally right... but at the end the PIN/PUK codes are directly related to facilities. E.g SIM facility, has

Re: 3GPP interface name in MM 0.6

2011-12-01 Thread Aleksander Morgado
According to the DBus specs [1], no element within a DBus interface can start with a digit... so org.freedesktop.ModemManager1.Modem.3gpp is a bad name. :-/ I will temporarily fallback to use: org.freedesktop.ModemManager1.Modem.Modem3gpp (along with

Re: ModemManager [PATCH 2/2] Take 3 of: Improvements to SIM PIN handling - Add EnabledFacilityLocks property

2011-12-04 Thread Aleksander Morgado
I guess I don't have a problem with merging them, although strictly speaking they refer to different things - locks vs. the PINs needed to unlock those locks. Yeah, you're totally right... but at the end the PIN/PUK codes are directly related to facilities. E.g SIM

Re: ModemManager: power-up/power-down fixes for Wavecom, Cinterion and Sierra modems

2011-12-09 Thread Aleksander Morgado
On Thu, 2011-06-30 at 11:51 -0500, Dan Williams wrote: On Wed, 2011-06-22 at 16:35 +0200, Aleksander Morgado wrote: Hi all, Some fixes related to power-up/power-down some modems are available in the 'power-up-check-needed' branch in the following Gitorious repo [1]: git

Re: NM 0.9 with Sierra USB 305 modem connection problems

2011-12-21 Thread Aleksander Morgado
On 12/21/2011 07:00 PM, John Hibbs wrote: One thing I do see is 'ATD*99***1***2#CR'. This does not match the settings I entered in. Mobile Broadband Settings: Connection name: ATT Mobile IPv4 Method: Automatic(PPP) Mobile Broadband Number: *99***1# Mobile Broadband APN: isp.cingular Type: Any

Re: NM 0.9 with Sierra USB 305 modem connection problems

2011-12-22 Thread Aleksander Morgado
Hey! One thing I do see is 'ATD*99***1***2#CR'. This does not match the settings I entered in. Mobile Broadband Settings: Connection name: ATT Mobile IPv4 Method: Automatic(PPP) Mobile Broadband Number: *99***1# Mobile Broadband APN: isp.cingular Type: Any Allow roaming PPP Authentication

[RFC] New probing-related status in ModemManager

2011-12-23 Thread Aleksander Morgado
Hey, One of the things that annoys me when using ModemManager is that whenever I plug in a modem, I need to wait for the modem to get all ports probed before I can see the NM applet updated with the new broadband-related menu elements. In the worst case, where the modem just returns errors

Re: [RFC] New probing-related status in ModemManager

2012-01-05 Thread Aleksander Morgado
Hey Dan, One of the things that annoys me when using ModemManager is that whenever I plug in a modem, I need to wait for the modem to get all ports probed before I can see the NM applet updated with the new broadband-related menu elements. In the worst case, where the modem just returns

Re: [RFC] New probing-related status in ModemManager

2012-01-05 Thread Aleksander Morgado
Hey Jason, One of the things that annoys me when using ModemManager is that whenever I plug in a modem, I need to wait for the modem to get all ports probed before I can see the NM applet updated with the new broadband-related menu elements. In the worst case, where the modem

Re: Huawei E220 can't connect on Ubuntu 11.10

2012-01-09 Thread Aleksander Morgado
Hey Dan, On Ubuntu 11.10 there is problem with connection via modem Huawei E220. On Ubuntu 11.10 the NetworkManager is in version 0.9.1.90-0ubuntu5.1 On Ubunto 11.04 there is version 0.8.4~git.20110319t175609.d14809b-0ubuntu3 The issue for Ubuntu was submitted:

  1   2   3   4   5   6   7   >