Bug 8794

Summary: UMTS card stopped working
Product: Drivers Reporter: Peter Eisentraut (peter_e)
Component: SerialAssignee: Alan (alan)
Status: REJECTED UNREPRODUCIBLE    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.22.1 Subsystem:
Regression: --- Bisected commit-id:

Description Peter Eisentraut 2007-07-23 03:45:49 UTC
Most recent kernel where this bug did not occur: 2.6.18
Distribution: Debian
Hardware Environment: Toshiba Satellite SM30-344 laptop
Software Environment: Debian testing/lenny
Problem Description:

I have a Novatel U630 UMTS card.  After I plug it in, I run a "setpin"
script that looks like this:

"""
#!/usr/bin/env perl

use strict;
use warnings;

my $modem = "/dev/ttyS0";
# Substitute xxxx with your PIN.
# You should probably put your pin somewhere else, e.g. on an USB stick,
# an encrypted file system or something else, and read it from there...
# You have been warned!
my $pin = "1234";

$SIG{ALRM} = sub {
        die("timeout: no response from modem $modem\n");
};

open(MODEM, "+<", $modem) or die("can't open modem $modem");
alarm(10);
print(MODEM "AT+CPIN=\"$pin\"\n\r");
while (<MODEM>) {
        if (m/OK/) {
                close(MODEM);
                print("PIN accepted\n");
                exit(0);
        }
        if (m/ERROR/) {
                close(MODEM);
                print("PIN rejected\n");
                exit(1);
        }
}
"""

With the kernels 2.6.21 and 2.6.22 from Debian and with the kernel 2.6.22.1 from ftp.kernel.org I get no response from this and it times out after the given alarm interval.  With the kernel linux-image-2.6.18-4-686 from Debian etch, this works fine and I get "PIN accepted" after less than a second.

So something was broken along the way.
Comment 1 Alan 2008-09-22 11:12:39 UTC
(Taking over the bug)

Is this still a problem with modern kernels ?
Comment 2 Peter Eisentraut 2008-09-25 11:31:47 UTC
Sorry, I don't have the contract anymore, and I would guess the hardware pieces have probably been supplanted by newer ones, so I wouldn't worry about this too much anymore, unless someone else can provide data.
Comment 3 Alan 2008-09-25 16:29:28 UTC
Thanks for the reply