Since some people are asking me more and more about GSM Modems in Mageia, I tried to meddle with them for the first time during the holiday, so;
I tried the Huawei K3765 modem from Vodafone in Spain, where Mageia connected directly through the Network Configuration Utility in MCC. This modem was recognised as wwan0.
The problem I had is with the Huawei E1550 modem from Jazztel. dmesg tells me it is connected on ttyUSB0, ttyUSB1 and ttyUSB2
- Code: Select all
#dmesg
[ 3671.466323] usb 1-2: new high-speed USB device number 5 using ehci_hcd
[ 3671.593944] usb 1-2: New USB device found, idVendor=12d1, idProduct=1446
[ 3671.593954] usb 1-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 3671.593961] usb 1-2: Product: HUAWEI Mobile
[ 3671.593966] usb 1-2: Manufacturer: HUAWEI Technology
[ 3671.598458] scsi8 : usb-storage 1-2:1.0
[ 3671.598835] scsi9 : usb-storage 1-2:1.1
[ 3672.542355] usb 1-2: USB disconnect, device number 5
[ 3679.180325] usb 1-2: new high-speed USB device number 6 using ehci_hcd
[ 3679.307964] usb 1-2: New USB device found, idVendor=12d1, idProduct=1406
[ 3679.307974] usb 1-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 3679.307980] usb 1-2: Product: HUAWEI Mobile
[ 3679.307986] usb 1-2: Manufacturer: HUAWEI Technology
[ 3679.315364] scsi13 : usb-storage 1-2:1.3
[ 3679.395085] usbcore: registered new interface driver usbserial
[ 3679.395098] USB Serial support registered for generic
[ 3679.395126] usbcore: registered new interface driver usbserial_generic
[ 3679.395128] usbserial: USB Serial Driver core
[ 3679.406615] USB Serial support registered for GSM modem (1-port)
[ 3679.406694] option 1-2:1.0: GSM modem (1-port) converter detected
[ 3679.406869] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 3679.406881] option 1-2:1.1: GSM modem (1-port) converter detected
[ 3679.406984] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 3679.406994] option 1-2:1.2: GSM modem (1-port) converter detected
[ 3679.407105] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[ 3679.407192] usbcore: registered new interface driver option
[ 3679.407194] option: v0.7.2:USB Driver for GSM modems
[ 3680.328469] scsi 13:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 3680.338742] sd 13:0:0:0: [sdg] Attached SCSI removable disk
In minicom I can use the modem on ttyUSB0..!
So back to MCC and Adding a new 3G connection I always had an error message telling me to check whether I had the sim card in! Great! Of course it is in and running!
So I tried to trace it in /usr/lib/libDrakX/network/connection/cellular_card.pm
I changed line 248 which states:
- Code: Select all
$self->{hardware}{error} = N("Please check that your SIM card is inserted.");
So that it looked like:
- Code: Select all
$self->{hardware}{error} = N($self->get_control_device);
The error message now says: /dev/ttyUSB2
Meddling a bit more, I found out that the error message Mageia assumes about the sim card could be related to the modem port itself
So I tried to change all occurences of $self->get_control_device in the file to say /dev/ttyUSB0. Namely; lines: 125, 225 and 238.
Now it works! So I think we just need to rewrite sub get_control_device {}, lines 107-117 in cellular_card.pm or any other related function to correct the detection of the right Modem.
Thanks guys.