WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HUAWEI "E3131" GSM Modem on PiCore  (Read 10882 times)

Offline onelife

  • Full Member
  • ***
  • Posts: 141
HUAWEI "E3131" GSM Modem on PiCore
« on: December 22, 2013, 11:54:46 AM »
Greetings all,

I'm hoping to successfully setup a 3g dongle on PiCore in a similar way I did on Raspbian but can't seem to find the correct steps.

Has anyone have tried this or be able to point me in the right direction?

At this stage I see the device in "dmesg" as :

[    2.866657] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:b8:42:1c
[    2.961611] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.112984] usb 1-1.3: New USB device found, idVendor=12d1, idProduct=1f01
[    3.113017] usb 1-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    3.113032] usb 1-1.3: Product: HUAWEI Mobile
[    3.113046] usb 1-1.3: Manufacturer: HUAWEI
[    3.133569] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    3.140065] scsi0 : usb-storage 1-1.3:1.0
[    4.384686] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2

But I don't automatically get another eth1 like with Raspbian nor do I see any ttyUSB show up.

From what I understand this version of dongle (like on the Raspbian version) actually does the "dialup" and connection on the dongle itself and then simply acts as "gateway" and creates eth1.

However, I suspect we need todo a bit more poking on TC :)

Hope someone can help - HUGELY appreciated!

Merry merry to all and chat when you can.

Bye for now.
Dean

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #1 on: December 22, 2013, 12:33:45 PM »
Probably you nee the usb-serial kernel module pack
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #2 on: December 22, 2013, 02:20:02 PM »
Hummm, yip I have that and also thought then it might show up as ttyUSB but no luck.

What would I do to "poke" it perhaps?

In lsmod I don't see anything from what I can see.

Thank You!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #3 on: December 22, 2013, 02:48:54 PM »
Understand why and how it works with Raspbian (kernel modulesp,firmware, udev rules, etc). Than we can reproduce.
« Last Edit: December 22, 2013, 02:59:26 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #4 on: January 02, 2014, 12:45:57 PM »
You will have to modeswitch etc.
Have a look here: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=18996
Personally I have few experience with such GPRS USB modems, see http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207
Ask again here if you need further help.
« Last Edit: January 02, 2014, 02:24:47 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #5 on: January 02, 2014, 07:19:08 PM »
I will add sg3_utils to repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #6 on: January 03, 2014, 04:21:45 AM »
sg3-utils.tcz added to 5.x repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #7 on: January 06, 2014, 01:34:07 AM »
Hi guys,

Apologise for the delayed reply - I was not able to tackle any picore dev work for the last few weeks :(

I will have an opportunity this evening again and will post my (hopefully successful) results.

The 2 links you have sent and tcz added to repo look like 100% the answer but having never done this before I'll let you know if I get connection :)

Many Thanks!

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #8 on: January 06, 2014, 08:13:27 AM »
It seems you have a linux script on your usb for making it running; funny thing and lucky guy?
Translate before in EN .. http://forum.ubuntuusers.de/topic/huawei-e303/#post-4656807

TODO
a) cd /media/HiLink/linux_mbb_install
b) sudo sh install
c) take it from the usb port away, reconnect it.. it should be there according the ubuntu link
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #9 on: January 08, 2014, 03:58:21 PM »
Hi Guys,

@Floppy - That "install" only seems to be available for Ubuntu not TC as the system doesn't load it as /media/cd :(

It also seems the module is not recognized by "lsmod" - I get the entry in "dmesg" as mention above but now it seems I actually need to specify the module to use before I can modprobe it and use s3g-util to set the mode.

Would anyone know how I do this? I'm guessing piping the product ID etc into a module file but I'm not sure which one as although usb, maybe it needs something special?

Thanks again :)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #10 on: January 08, 2014, 04:32:58 PM »
can you please
"sudo modprobe usb-serial"
"tce-load sg3-util" ?
Then follow the raspbian link.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #11 on: February 26, 2014, 08:09:44 AM »
Hi Floppy,

I know it's been a few weeks since this post was last alive but I'm finally trying again to get this working.

So far still no luck :(

I don't get usb-serial on modprobe or lsmod? I've installed usb-serial and the sg3 tcz as :

/dev/loop48     568K  568K     0 100% /tmp/tcloop/sg3-utils
/dev/loop49     256K  256K     0 100% /tmp/tcloop/usb-serial-3.13.3-piCore+
/dev/loop50      28K   28K     0 100% /tmp/tcloop/libusb
/dev/loop51     432K  432K     0 100% /tmp/tcloop/usbutils
/dev/loop52     248K  248K     0 100% /tmp/tcloop/usb-serial-3.12.7-piCore+

When I run dmesg I see this :

[    2.810441] smsc95xx v1.0.4
[    2.875389] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:39:27:b9
[    3.116938] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.343697] usb 1-1.3: New USB device found, idVendor=12d1, idProduct=1f01
[    3.343729] usb 1-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    3.343747] usb 1-1.3: Product: HUAWEI Mobile
[    3.343761] usb 1-1.3: Manufacturer: HUAWEI
[    3.366418] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    3.367450] scsi0 : usb-storage 1-1.3:1.0
[    5.091620] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2

So I assume the dongle has been seen as when I run "lsusb" I also get :

snb@snb:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd.

But now stuck with actually getting the system to use the modem. IOW, create the eth1 interface. I added the line :

sudo ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up

To my boot but this doesn't seem to help.

Lastly, the "modeswitch" as outlined in the Raspbian ticket doesn't seem to work as the ID's I guess differ even if I update the path to /usr/local/bin/ as :

snb@snb:~$ sudo /usr/local/bin/sg_raw /dev/sr0 11 06 20 00 00 00 00 00 01 00
/dev/sr0: No such device or address
snb@snb:~$

Any more ideas on how I can solve this?

Really hope you can help & BIG Thanks!

Chat when you can - Bye for now.
Dean



Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #12 on: February 26, 2014, 08:21:40 AM »
A quick reply on my own post - From what I can see the issue is purely the "mode" of the dongle.

It's currently in mode :

Bus 001 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd.

So being seen as a CD drive.

I don't see a usb-mode-switch tcz or similar but guess that is what I need todo to get the mode into "12d1:14db"?

Thanks again.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #13 on: February 26, 2014, 08:58:08 AM »
Will add modswitch to repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: HUAWEI "E3131" GSM Modem on PiCore
« Reply #14 on: March 04, 2014, 08:27:03 AM »
Hi All,

So I'm testing with an initial version of modswitch from Bela (Thank You!) and I can get the modem switched to the right mode (12d1:14db) BUT now in order for TC to access the created modem connection, I need to add a new interface (eth1) to the system.

Does anyone have an idea how you do this?

Another area is perhaps the "driver" for the UB device ... On Raspbian the device uses "cdc_acm" - Is there an equivalent for TC?

I tried the same way you add a eth0:1 but this does not work as I'm sure we need to first tell the OS that there is an eth1 on the USB interface.

Any thoughts?

BIG Thanks again.
Regards
Dean
« Last Edit: March 04, 2014, 10:23:08 AM by onelife »