Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use Huawei E8231 as a 3g modem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
erthalion
n00b
n00b


Joined: 19 Sep 2012
Posts: 19

PostPosted: Sun Oct 25, 2015 4:53 pm    Post subject: Use Huawei E8231 as a 3g modem Reply with quote

Hi, everyone!

I have some sort of troubles with the 3g modem Huawei E8231. I tried to switch its mode:

Quote:
$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:07dc Intel Corp.
Bus 001 Device 004: ID 0bda:572a Realtek Semiconductor Corp.
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 011: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Quote:
# usb_modeswitch -v 12d1 -V 12d1 -p 1f01 -P 14db -M "55534243123456780000000000000011062000000101000100000000000000"

$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:07dc Intel Corp.
Bus 001 Device 004: ID 0bda:572a Realtek Semiconductor Corp.
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 012: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Quote:
# dmesg

[19469.255798] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[19469.396894] usb 1-3: New USB device found, idVendor=12d1, idProduct=1f01
[19469.396898] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19469.396900] usb 1-3: Product: HUAWEI Mobile
[19469.396901] usb 1-3: Manufacturer: HUAWEI
[19469.396903] usb 1-3: SerialNumber: FFFFFFFFFFFFFFFF
[19469.397809] usb-storage 1-3:1.0: USB Mass Storage device detected
[19469.397868] scsi host5: usb-storage 1-3:1.0
[19470.397691] scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[19470.470961] sr 5:0:0:0: [sr0] scsi-1 drive
[19470.471189] sr 5:0:0:0: Attached scsi CD-ROM sr0
[19470.471320] sr 5:0:0:0: Attached scsi generic sg1 type 5
[19591.778652] usb 1-3: USB disconnect, device number 11
[19592.095020] usb 1-3: new high-speed USB device number 12 using xhci_hcd
[19592.238652] usb 1-3: New USB device found, idVendor=12d1, idProduct=14db
[19592.238655] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19592.238658] usb 1-3: Product: HUAWEI Mobile
[19592.238659] usb 1-3: Manufacturer: HUAWEI
[19592.311677] cdc_ether 1-3:1.0 eth1: register 'cdc_ether' at usb-0000:00:14.0-3, CDC Ethernet Device, 00:1e:10:1f:00:00


Quote:
# usb-devices

T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 12 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=14db Rev=01.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C: #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether

It looks like the mode was changed, but I don't see any new devices or interfaces:

Quote:
$ ls /dev | grep ttyUSB #empty result



$ ifconfig #no usb0

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c4:54:44:b2:ca:45 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 9445 bytes 5167034 (4.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9445 bytes 5167034 (4.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::fa16:54ff:fe6e:2940 prefixlen 64 scopeid 0x20<link>
ether f8:16:54:6e:29:40 txqueuelen 1000 (Ethernet)
RX packets 875123 bytes 1243972975 (1.1 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 391840 bytes 42394343 (40.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


Can anyone help me to figure out how to make it work?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1366
Location: Montréal

PostPosted: Sun Oct 25, 2015 7:02 pm    Post subject: Reply with quote

It's look like the cellular modem have it's network link at eth1 instead of a /dev/ttyUSB* serial nodes. So what return
Code:
ifconfig -a

If you see an eth1 link you can make it up and try a dhcp request on it and see if it connect to Internet. If not, I know that mobile USB devices need at least the option support activated in /Devices Drivers/Usb support/Usb Serial Converter Support/USB driver for GMS and CDMA modems (CONFIG_USB_SERIAL_OPTION) Linux kernel configuration. If compile as a module, it's name is option.

I haven't use mobile devices since long.
_________________
Paul
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43069
Location: 56N 3W

PostPosted: Sun Oct 25, 2015 7:42 pm    Post subject: Reply with quote

erthalion,

Code:
CDC Ethernet Device, 00:1e:10:1f:00:00

That's a bit naughty of Huawei. That's a Cisco MAC address.

If its really eth1, how do you get it to dial ... PPPoE ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2611

PostPosted: Mon Oct 26, 2015 7:16 am    Post subject: Re: Use Huawei E8231 as a 3g modem Reply with quote

erthalion wrote:
Hi, everyone!

I have some sort of troubles with the 3g modem Huawei E8231. I tried to switch its mode:

Did you need to install a certain device driver for that thing?
There is something on http://linux-drivers.net.
Back to top
View user's profile Send private message
erthalion
n00b
n00b


Joined: 19 Sep 2012
Posts: 19

PostPosted: Mon Oct 26, 2015 1:18 pm    Post subject: Reply with quote

Logicien wrote:
It's look like the cellular modem have it's network link at eth1 instead of a /dev/ttyUSB* serial nodes. So what return
Code:
ifconfig -a

If you see an eth1 link you can make it up and try a dhcp request on it and see if it connect to Internet.


Thanks a lot! It works after the following commands:

Quote:
# ifconfig eth0 down
# ifconfig eth1 up
# dhcpcd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum