Re: Wrong SIM-Pin not detected by MM?

2011-11-15 Thread Thomas Bechtold

On 15/11/11 09:19, Uwe Geuder wrote:

On 15 November 2011 09:55, Thomas Bechtold  wrote:


MM can handle different modems. Not only modems included in phones. eg.
usb-umts-modems aks for the sim pin.



Absolutely. But in your first message you had a example for MM PIN handling
from an N900. Because N900 is a phone I did not understand how the
example could be relevant.


You start your phone, press the "Skip" button without entering the PIN 
code and then you try to use your phone with MM.

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Wrong SIM-Pin not detected by MM?

2011-11-15 Thread Uwe Geuder
On 15 November 2011 10:45, Joseph Gunn  wrote:

> On Tue, 15 Nov 2011 10:19:13 +0200
> Uwe Geuder  wrote:
>
>> Probably the implementers of the N900 reasoned a bit like me: Because
>> entering the PIN is not relevant at the AT modem interface of the phone
>> at all, they just return ERROR instead of implementing anything real.
> Is it possible that the phone/computer link is bluetooth? Depending 
> on the setup that may require a PIN?

No, I absolutely don't think so. 

Any potential bluetooth PIN is handled at a completely different
protocol level inside the bluetooth stack, not with AT commands at modem
level. In the first posting there was an ERROR reponse to an AT command.
 

Regards,

Uwe



___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Wrong SIM-Pin not detected by MM?

2011-11-15 Thread Joseph Gunn
On Tue, 15 Nov 2011 10:19:13 +0200
Uwe Geuder  wrote:

> On 15 November 2011 09:55, Thomas Bechtold  wrote:
> 
> > MM can handle different modems. Not only modems included in phones. eg.
> > usb-umts-modems aks for the sim pin.
> >
> Probably the implementers of the N900 reasoned a bit like me: Because
> entering the PIN is not relevant at the AT modem interface of the phone
> at all, they just return ERROR instead of implementing anything real.
Is it possible that the phone/computer link is bluetooth? Depending on the 
setup that
may require a PIN?
> 
> If you have an issue with PIN handling you would need to demonstrate it
> with a 3G USB modem, which really requires PIN handling by MM.
> 
> Regards,
> 
> Uwe
> 
> 
> ___
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list


-- 
Joseph J. Gunn
CTO, The Curly Cloud Corporation

"We're giving Chrome OS a run for their money"
8F56 6689 4AA0 1710 743B F504 6323 A298 D1B1 14D9
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Wrong SIM-Pin not detected by MM?

2011-11-15 Thread Uwe Geuder
On 15 November 2011 09:55, Thomas Bechtold  wrote:

> MM can handle different modems. Not only modems included in phones. eg.
> usb-umts-modems aks for the sim pin.
>

Absolutely. But in your first message you had a example for MM PIN handling
from an N900. Because N900 is a phone I did not understand how the
example could be relevant. 

Probably the implementers of the N900 reasoned a bit like me: Because
entering the PIN is not relevant at the AT modem interface of the phone
at all, they just return ERROR instead of implementing anything real.

If you have an issue with PIN handling you would need to demonstrate it
with a 3G USB modem, which really requires PIN handling by MM.

Regards,

Uwe


___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Subject: Wrong SIM-Pin not detected by MM?

2011-11-14 Thread Thomas Bechtold

Hi Uwe,

On 15/11/11 08:42, Uwe Geuder wrote:

Ok. Then my general remark would be: Aren't all phones used like that,
that they are first powered on and registered to the network? So the
PIN is entered using the UI of the phone before MM gets involved.


MM can handle different modems. Not only modems included in phones. eg. 
usb-umts-modems aks for the sim pin.


Cheers,

Tom
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Subject: Wrong SIM-Pin not detected by MM?

2011-11-14 Thread Uwe Geuder
On 15 November 2011 09:12, Thomas Bechtold  wrote:

> i just tested with a N900.It's more a general question and not a specific
> problem with the N900.
>

Ok. Then my general remark would be: Aren't all phones used like that,
that they are first powered on and registered to the network? So the
PIN is entered using the UI of the phone before MM gets involved.

I don't understand why a PIN would be used in any way when opening a
modem connection on a phone.

To my understanding (which is not very detailed) MM asks the PIN state
from the modem. In the case of a phone the answer should never be PIN
required. At least Nokia phones don't require the PIN to make a modem
connection. (I have not tried what happens if the phone is in offline
mode)

Regards,

Uwe
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Subject: Wrong SIM-Pin not detected by MM?

2011-11-14 Thread Uwe Geuder
On 13 November 2011 19:49, Thomas Bechtold  wrote:

> i tried NM 0.9 (latest from git) with MM 0.5 (from ubuntu 11.10) and
> recognized that MM does not detect a wrong SIM-Pin (with a Nokia N900).
> i used a wrong Pin (1234) and got the attached NM logs when i tried to
> activate the connection with "nmcli con up id simyo".

I have used N900 with NM many times before. Only with 0.8.x though and
only with the graphical applets (both GNOME and KDE). 

I don't understand what you (or the software) want to do with the PIN
code at all.

For a USB modem the device is turned on in the computer (power comes
from USB) and there is no UI in the modem. So indeed, MM has to provide
the PIN code.

However, N900 is a phone. It is powered on and in the network before the
USB cable is even connected. The PIN is provided by the user via the
phone UI.  Once the modem connection is started there is no need to
provide the PIN a second time. Everyhting should work fine without it.

Or am I missing something here?

Regards,

Uwe
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Subject: Wrong SIM-Pin not detected by MM?

2011-11-14 Thread Thomas Bechtold

Hi,

On 15/11/11 08:06, Uwe Geuder wrote:

On 13 November 2011 19:49, Thomas Bechtold  wrote:


i tried NM 0.9 (latest from git) with MM 0.5 (from ubuntu 11.10) and
recognized that MM does not detect a wrong SIM-Pin (with a Nokia N900).
i used a wrong Pin (1234) and got the attached NM logs when i tried to
activate the connection with "nmcli con up id simyo".


I have used N900 with NM many times before. Only with 0.8.x though and
only with the graphical applets (both GNOME and KDE).

I don't understand what you (or the software) want to do with the PIN
code at all.


i just tested with a N900.It's more a general question and not a 
specific problem with the N900.


Cheers,

Tom

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Wrong SIM-Pin not detected by MM?

2011-11-14 Thread Dan Williams
On Sun, 2011-11-13 at 18:49 +0100, Thomas Bechtold wrote:
> Hi,
> 
> i tried NM 0.9 (latest from git) with MM 0.5 (from ubuntu 11.10) and
> recognized that MM does not detect a wrong SIM-Pin (with a Nokia N900).
> i used a wrong Pin (1234) and got the attached NM logs when i tried to
> activate the connection with "nmcli con up id simyo".
> 
> NM output this: "GSM PIN unlock failed: (32) Unknown error". I think to
> get a correct error mm_serial_parser_v1_parse () should handle the
> serial response for 'AT+CPIN="1234"' correct. But currently i get:
> 
> # MM log 
> [mm-at-serial-port.c:298] debug_log(): (ttyACM0): --> 'AT
> +CPIN="1234"'
> [mm-at-serial-port.c:298] debug_log(): (ttyACM0): <--
> 'ERROR'
> [mm-serial-parsers.c:412] mm_serial_parser_v1_parse(): Got failure code
> 100: Unknown error
> 
> 
> Are there any reasons why this response is not handled as an known
> error? eg as MM_MOBILE_ERROR_WRONG_SIM_PIN.

Because the modem didn't say it was a SIM PIN error.  It doesn't have to
be a wrong PIN; it could be something like "SIM not inserted" or even
just "not ready" or such.  But we have no idea because the modem
apparently doesn't know about the AT+CMEE=1 command for enabling verbose
errors, which would give this information.  So there's not much we can
do, and inferring the error code from the operation (AT+CPIN) that was
requested is risky since we actually don't know why the operation
failed.

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Wrong SIM-Pin not detected by MM?

2011-11-13 Thread Thomas Bechtold
Hi,

i tried NM 0.9 (latest from git) with MM 0.5 (from ubuntu 11.10) and
recognized that MM does not detect a wrong SIM-Pin (with a Nokia N900).
i used a wrong Pin (1234) and got the attached NM logs when i tried to
activate the connection with "nmcli con up id simyo".

NM output this: "GSM PIN unlock failed: (32) Unknown error". I think to
get a correct error mm_serial_parser_v1_parse () should handle the
serial response for 'AT+CPIN="1234"' correct. But currently i get:

# MM log 
[mm-at-serial-port.c:298] debug_log(): (ttyACM0): --> 'AT
+CPIN="1234"'
[mm-at-serial-port.c:298] debug_log(): (ttyACM0): <--
'ERROR'
[mm-serial-parsers.c:412] mm_serial_parser_v1_parse(): Got failure code
100: Unknown error


Are there any reasons why this response is not handled as an known
error? eg as MM_MOBILE_ERROR_WRONG_SIM_PIN.

Cheers,

Tom



# NM log 
NetworkManager[32314]:  Activation (ttyACM0) starting connection
'simyo'
NetworkManager[32314]:  (ttyACM0): device state change:
disconnected -> prepare (reason 'none') [30 40 0]
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) started...
NetworkManager[32314]:  (ttyACM0): device state change: prepare ->
need-auth (reason 'none') [40 60 0]
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) started...
NetworkManager[32314]:  (ttyACM0): device state change: need-auth
-> prepare (reason 'none') [60 40 0]
NetworkManager[32314]:  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager[32314]:  GSM modem enable failed: (32) SIM PIN
required
NetworkManager[32314]:  GSM PIN unlock failed: (32) Unknown error
NetworkManager[32314]:  unmapped dbus error detected:
'org.freedesktop.ModemManager.Modem.Gsm.Unknown'
NetworkManager[32314]:  (ttyACM0): device state change: prepare ->
failed (reason 'modem-init-failed') [40 120 28]
NetworkManager[32314]:  Activation (ttyACM0) failed.
NetworkManager[32314]:  (ttyACM0): device state change: failed ->
disconnected (reason 'none') [120 30 0]


___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list