Page 1 of 1

[SOLVED] 02 dongle not working

PostPosted: Apr 8th, '12, 13:56
by graydee
Hi Again

Am a total newbie to Mageia so be gentle

I have an O2 UK Huawei E173 dongle which is not detected in Mageia, therefore I am unable to connect to 3G broadband.

I have a samsung Q1 running latest Mageia with updates installed.

Any assistance would be appreciated.... As I said I am a newbie, and if you are going to ask me for any information, could you let me know how I get this info if it involves using command line scripting, I came from PCLINUXOS so know a bit, but always from forums....

Cheers

Unfortunatley due to circumstances by re-installing linux mint :-( Still, going to put Mageia on my other touch screen, wish me luck

Re: 02 dongle not working

PostPosted: Apr 9th, '12, 00:28
by martinw
Without your dongle plugged in, in a terminal window, type
Code: Select all
su
tailf /var/log/messages

then plug your dongle in, wait a few seconds (until no new messages appear), and post all the output here. Please put your output in a code block (use the "Code" button in the "Post a Reply" window).

The 'su' command will ask you for a password - it needs the root user password you set up when you installed Mageia.

Re: 02 dongle not working

PostPosted: Apr 9th, '12, 14:14
by doktor5000
Or just use the search function, has already been asked and solved: viewtopic.php?f=25&t=1276

Re: 02 dongle not working

PostPosted: Apr 9th, '12, 17:35
by graydee
thinking this is the way forward viewtopic.php?f=25&t=1276 will keep you posted..

Re: 02 dongle not working

PostPosted: Apr 10th, '12, 00:32
by graydee
Code: Select all
[gray@localhost ~]$ su
Password:
[root@localhost gray]# tailf /var/log/messages
Apr  9 23:25:21 localhost kernel: sr0: scsi-1 drive
Apr  9 23:25:21 localhost kernel: sr 9:0:0:0: Attached scsi generic sg2 type 5
Apr  9 23:25:21 localhost kernel: scsi 10:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Apr  9 23:25:21 localhost kernel: sd 10:0:0:0: Attached scsi generic sg3 type 0
Apr  9 23:25:21 localhost kernel: sd 10:0:0:0: [sdc] Attached SCSI removable disk
Apr  9 23:25:33 localhost kernel: sd 10:0:0:0: [sdc] 3909632 512-byte logical blocks: (2.00 GB/1.86 GiB)
Apr  9 23:25:33 localhost kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Apr  9 23:25:33 localhost kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Apr  9 23:25:33 localhost kernel: sdc: sdc1
Apr  9 23:25:39 localhost kernel: usb 4-1: USB disconnect, address 7
Apr  9 23:26:19 localhost kernel: usb 4-1: new high speed USB device using ehci_hcd and address 8
Apr  9 23:26:19 localhost kernel: usb 4-1: New USB device found, idVendor=12d1, idProduct=1446
Apr  9 23:26:19 localhost kernel: usb 4-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Apr  9 23:26:19 localhost kernel: usb 4-1: Product: HUAWEI Mobile
Apr  9 23:26:19 localhost kernel: usb 4-1: Manufacturer: HUAWEI Technology
Apr  9 23:26:19 localhost kernel: scsi11 : usb-storage 4-1:1.0
Apr  9 23:26:19 localhost kernel: scsi12 : usb-storage 4-1:1.1
Apr  9 23:26:19 localhost mtp-probe: checking bus 4, device 8: "/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1"
Apr  9 23:26:19 localhost mtp-probe: bus: 4, device: 8 was not an MTP device
Apr  9 23:26:20 localhost kernel: scsi 11:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Apr  9 23:26:20 localhost kernel: scsi 12:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Apr  9 23:26:20 localhost kernel: sd 12:0:0:0: Attached scsi generic sg2 type 0
Apr  9 23:26:20 localhost kernel: sr0: scsi-1 drive
Apr  9 23:26:20 localhost kernel: sr 11:0:0:0: Attached scsi generic sg3 type 5
Apr  9 23:26:20 localhost kernel: sd 12:0:0:0: [sdc] Attached SCSI removable disk
Apr  9 23:26:33 localhost kernel: sd 12:0:0:0: [sdc] 3909632 512-byte logical blocks: (2.00 GB/1.86 GiB)
Apr  9 23:26:33 localhost kernel: sd 12:0:0:0: [sdc] Assuming drive cache: write through
Apr  9 23:26:33 localhost kernel: sd 12:0:0:0: [sdc] Assuming drive cache: write through
Apr  9 23:26:33 localhost kernel: sdc: sdc1



Thats what I get, I think I understand that my dongle is loading the drivers - modem - reading SD card. I have tried usb-modeswitch but getting confused.... Thanks

Re: 02 dongle not working

PostPosted: Apr 10th, '12, 01:26
by Ken-Bergen
Check the second last post in this topic and if it works for you please file a bug report.

Re: 02 dongle not working

PostPosted: Apr 10th, '12, 15:11
by graydee
Created the text file and copied the code and saved.
Diconnected and reconnected the modem and even re-booted. Still not detected..... If you need to know the /var/log/messages now or any other code, I can do this when I get home this evening.....

Thanks

Re: 02 dongle not working

PostPosted: Apr 10th, '12, 20:30
by Ken-Bergen
I looked at the link I gave you and see that the code is split into two lines whereas it should be all in one long line.

Re: 02 dongle not working

PostPosted: Apr 11th, '12, 12:53
by graydee
Hi. I have ensured the text in the 98-huawei.rules is in one string but I am still not getting it detected.... is there anything I may be overlooking, or is there a way of totally disabling the external SD card as I dont use it as that anyway?? (Hopefully, that would stop it switching to recognise the card.)

Re: 02 dongle not working

PostPosted: Apr 11th, '12, 13:58
by graydee
Code: Select all
[doktor5000@mageia1 ~]$ cat /usr/share/usb_modeswitch/12d1\:1446
########################################################
# Huawei, newer modems

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1433,14ac"

CheckSuccess=20

MessageContent="55534243123456780000000000000011062000000100000000000000000000"


Checked the above code on my machine and it is the same

Re: 02 dongle not working

PostPosted: Apr 12th, '12, 03:03
by Ken-Bergen
graydee wrote:Hi. I have ensured the text in the 98-huawei.rules is in one string but I am still not getting it detected.... is there anything I may be overlooking, or is there a way of totally disabling the external SD card as I dont use it as hat switching, that anyway?? (Hopefully, that would stop it switching to recognise the card.)
I don't think there is any way to disable the storage mode on the device other than switching each time it's powered up.
Please try
Code: Select all
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446
in a root terminal and post the out put.

Re: 02 dongle not working

PostPosted: Apr 22nd, '12, 15:42
by graydee
[code]gray@localhost ~]$ /usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 003 on bus 004 ...
libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied.
libusb requires write access to USB device nodes.
Getting the current device configuration ...
Segmentation fault
[gray@localhost ~]$
/code]

Thats what i get

Re: 02 dongle not working

PostPosted: Apr 22nd, '12, 15:44
by alf
Well, as Ken wrote you have to do this as root

Re: 02 dongle not working

PostPosted: Apr 22nd, '12, 16:22
by graydee
oops fail, try again
Code: Select all
[gray@localhost ~]$ su /usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446
su: user /usr/sbin/usb_modeswitch does not exist
[gray@localhost ~]$ su
Password:
[root@localhost gray]# /usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 003 on bus 004 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("dummy")
 OK, driver "dummy" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI 
   Model String: Mass Storage   
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
 Error resetting endpoint: -34
Resetting message endpoint 0x01
 Error resetting endpoint: -6
 Device is gone, skipping any further commands

Checking for mode switch (max. 20 times, once per second) ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 No new devices in target mode or class found

Mode switch has failed. Bye.

[root@localhost gray]#

Re: 02 dongle not working

PostPosted: Apr 26th, '12, 22:31
by graydee
ok, i have tried all the above, and had no joy, I re-installed linux mint, and it worked but other things would not.... (argh, re-installed windows but it broke), now I am back at square one. I remember installing a specific 3G software on my friends eeepc a couple of years ago when she was having similar issues..... anyone know or can hazard a guess at what it was called, I was thinking of trying that..... Its a great testament to mageia that I have re-installed and not persavered with pclinuxos, which I use on my laptop and desktop, my laptop being another touch screen HP-TC4400

Re: 02 dongle not working

PostPosted: Apr 27th, '12, 20:09
by doktor5000
When i tried my first dongle back in Mandriva times, i've used sakis3g: http://www.sakis3g.org/
May be worth a try, and easy to use. But you may need to uninstall usb_modeswitch if you have that installed currently, but i'm not sure about that.

Re: 02 dongle not working

PostPosted: Apr 27th, '12, 20:30
by graydee
I am going to Russia in 3 days and have decided to re-install linux mint for the time being as I dont have the time to fiddle. I know it works in that.... I am however about to install Mageia on my HP TC4400 which is touch screen and I am sure I will be back on with issues with that... :-0 . Thanks for all your help on this though.... Hoping when the new release of Mageia hits us, it may work out of the box, cos I love it.