[SOLVED]3G Connections fail on devices recoginsed as ttyUSBx

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED]3G Connections fail on devices recoginsed as ttyUSBx

Postby linuxero » Sep 3rd, '12, 10:38

Hi;

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.
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: [SOLVED]3G Connections fail on devices recoginsed as tty

Postby doktor5000 » Sep 3rd, '12, 21:26

Please show the output as root of
Code: Select all
comgt -d /dev/ttyUSB*
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED]3G Connections fail on devices recoginsed as tty

Postby linuxero » Sep 4th, '12, 12:17

Hi doktor;

I launched the command you mentioned at 10:32 and now it's 12:14 with no respnse. So I interrupted it and launched:

Code: Select all
# comgt -d /dev/ttyUSB0
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: "21401",2
Signal Quality: 13,99


Then again:
Code: Select all
# comgt -d /dev/ttyUSB1
comgt 12:15:05 -> -- Error Report --
comgt 12:15:05 -> ---->                       ^
comgt 12:15:05 -> Error @74, line 4, Could not write to COM device. (1)



Then at last;

Code: Select all
# comgt -d /dev/ttyUSB2


Which is not responding..
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest