Re: [patch] gsm modem with pin active



On Fri, 2008-12-05 at 08:09 +0100, Eddi De Pieri wrote:
> I've a gsm modem that don't work with nm.
> The problem is the actual init string don't work with my modem until
> it accepts the pin code. (look at ubuntu bug)
>  
> Actually nm-gsm-device, send 2 times "ATZ E0 V1 X4 &C1 +FCLASS=0".

Please try released NetworkManager 0.7, which fixes this problem.  It
appears you are not using the final 0.7 release.  Ubuntu ships a
pre-release snapshot which doesn't have some fixes that the released
NetworkManager 0.7 has.

(for asac's benefit: the fix is r4222)

If your modem still doesn't take the init string 'AT&F E0 V1' before the
PIN, please let me know.

Dan

 
> With my patch, it send:
>  
> ATZ,
> AT+CPIN=1234 if needed
> finally
> ATZ E0 V1 X4 &C1 +FCLASS=0
>  
> I think this approch is more generic, but need some regression with
> other modem with pin active.
>  
> Regards
>  
> https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/290177
>  
> http://launchpadlibrarian.net/19430481/nm-gsm-device.c.patch
>  
> --- nm-gsm-device.c.orig	2008-10-20 16:22:58.000000000 +0200
> +++ nm-gsm-device.c	2008-11-06 17:14:06.000000000 +0100
> @@ -582,7 +582,7 @@
>  {
>  	switch (reply_index) {
>  	case 0:
> -		power_up (NM_GSM_DEVICE (device));
> +		init_modem_full (NM_GSM_DEVICE (device));
>  		break;
>  	case 1:
>  		enter_pin (NM_GSM_DEVICE (device), NM_GSM_SECRET_PIN, FALSE);
> @@ -644,7 +644,7 @@
>  {
>  	const char *responses[] = { "OK", "ERROR", "ERR", NULL };
>  
> -	modem_wait_for_reply (NM_GSM_DEVICE (device), "ATZ E0 V1 X4 &C1 +FCLASS=0", 10, responses, responses, init_done, NULL);
> +	modem_wait_for_reply (NM_GSM_DEVICE (device), "ATZ", 10, responses, responses, init_done, NULL);
>  }
>  
>  static NMActStageReturn
> _______________________________________________
> 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]