NM using Option card


I was trying to get NM SVN working using an Option UMTS card. After figuring out that additionally to the capability "modem" (mentioned previously on the mailing list) also the capability "gsm" is needed, my /usr/share/hal/fdi/information/20thirdparty/10-3g-modem.fdi looks like this:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- xml -*- -->

<deviceinfo version="0.2">
    <match key="info.category" string="serial">
      <match key="@info.parent:usb.vendor_id" int="0x0af0">
        <match key="@info.parent:usb.product_id" int="0x5000">
          <match key="@info.parent:usb.interface.number" int="0">
            <append key="info.capabilities" type="strlist">modem</append>
            <append key="info.capabilities" type="strlist">gsm</append>

However, I needed to modify nm-gsm-device to work with the Option card to try the registration again also for the reply "+CREG: 0,0". After the second or third "+CREG: 0,0" reply, it then replies with "+CREG: 0,2" as expected. This patch works for me:

Index: nm-gsm-device.c
--- nm-gsm-device.c	(revision 3294)
+++ nm-gsm-device.c	(working copy)
@@ -233,6 +233,7 @@
 		automatic_registration_get_network (device);
 	case 2:
+	case 3:
 		gsm_device_set_pending (NM_GSM_DEVICE (device),
 						    g_timeout_add (1000, automatic_registration_again, device));
@@ -251,7 +252,7 @@
 automatic_registration (NMSerialDevice *device)
 	guint id;
-	char *responses[] = { "+CREG: 0,1", "+CREG: 0,5", "+CREG: 0,2", NULL };
+	char *responses[] = { "+CREG: 0,1", "+CREG: 0,5", "+CREG: 0,2", "+CREG: 0,0", NULL };

 	nm_serial_device_send_command_string (device, "AT+CREG?");
 	id = nm_serial_device_wait_for_reply (device, 60, responses, automatic_registration_response, NULL);


I needed to tick "noauth" in gconf-editor, shouldn't this be the default for dialup?

Currently I am struggling with the routes and the IP configuration, setted after dialing in. They do not seem reasonable to me and I cannot reach the DNS server nor the peer (

ppp0      Link encap:Point-to-Point Protocol
          inet addr:  P-t-P: Mask:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface UH    0      0        0 ppp0         U     0      0        0 ppp0

Has anyone a clue?

Thanks for NetworkManager and the GSM/UMTS support.


| Dipl.-Ing. Markus Becker
| Communication Networks
| Mobile Research Center
| TZI - Center for Computing Technologies
| University Bremen
| Germany
| web: http://www.comnets.uni-bremen.de/~mab/
| mailto: mab comnets uni-bremen de
| telephone: +49 421 218 2287
| building: NW1 room: N2260

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]