Re: NM using Option card
- From: Dan Williams <dcbw redhat com>
- To: Markus Becker <mab comnets uni-bremen de>
- Cc: networkmanager-list gnome org
- Subject: Re: NM using Option card
- Date: Thu, 07 Feb 2008 15:45:10 -0500
On Thu, 2008-02-07 at 20:38 +0100, Markus Becker wrote:
> Hi,
>
> 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:
What's the exact model of your card, BTW? I'm trying to put together a
database of all the ones I come across.
Thanks,
Dan
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- xml -*- -->
>
> <deviceinfo version="0.2">
> <device>
> <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>
> </match>
> </match>
> </match>
> </match>
> </device>
> </deviceinfo>
>
> 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);
> break;
> case 2:
> + case 3:
> gsm_device_set_pending (NM_GSM_DEVICE (device),
> g_timeout_add (1000, automatic_registration_again, device));
> break;
> @@ -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 (10.64.64.64).
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:90.187.199.128 P-t-P:10.64.64.64 Mask:255.255.255.255
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
>
> Has anyone a clue?
>
> Thanks for NetworkManager and the GSM/UMTS support.
>
> BR,
> Markus
>
> ------------------------------------------------
> | 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
> ------------------------------------------------
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]