Bug 8794 - UMTS card stopped working
Summary: UMTS card stopped working
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Serial (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 03:45 UTC by Peter Eisentraut
Modified: 2008-09-25 16:29 UTC (History)
0 users

See Also:
Kernel Version: 2.6.22.1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.