How install GSM modem?

Issues related to hardware problems
Post Reply
gumis_148
Posts: 2
Joined: 2019/11/25 13:36:49

How install GSM modem?

Post by gumis_148 » 2019/11/25 13:45:47

I want to install the Huawei E3131 GSM modem on a Centos virtual machine that is on Hyper-V (Windows 10). In Windows and Centos, the modem is detected as a CDROM.

I wanted to do according to the instructions:
https://techexpert.tips/ubuntu/send-sms ... mand-line/
but I can't disconnect the modem(CDROM) because it will disconnect me from Hyper-V.
Below are the commands:

Code: Select all

[root@localhost ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   20G  6.1G   13G  33% /
devtmpfs                 812M     0  812M   0% /dev
tmpfs                    829M     0  829M   0% /dev/shm
tmpfs                    829M   11M  818M   2% /run
tmpfs                    829M     0  829M   0% /sys/fs/cgroup
/dev/sda1                488M  146M  307M  33% /boot
tmpfs                    166M   96K  166M   1% /run/user/1000
/dev/sr0                  34M   34M     0 100% /run/media/rh/PLAY ONLINE
tmpfs                    166M     0  166M   0% /run/user/0
[root@localhost ~]# lsusb
[root@localhost ~]#
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot open /dev/ttyUSB1: No such file or directory
--> Cannot open /dev/ttyUSB1: No such file or directory
--> Cannot open /dev/ttyUSB1: No such file or directory
[root@localhost ~]#
[root@localhost ~]# dmesg | grep sr0
[    3.409155] sr 1:0:0:0: [sr0] scsi3-mmc drive: 0x/0x tray
[    3.409400] sr 1:0:0:0: Attached scsi CD-ROM sr0
[root@localhost ~]# dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.654958] 00:03: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.736099] 00:04: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How install GSM modem?

Post by TrevorH » 2019/11/25 14:06:46

You'll need to run usb_modeswitch to flip it from CD-ROM mode (for the Windows drivers) and into modem mode.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gumis_148
Posts: 2
Joined: 2019/11/25 13:36:49

Re: How install GSM modem?

Post by gumis_148 » 2019/11/26 13:22:39

TrevorH wrote:
2019/11/25 14:06:46
You'll need to run usb_modeswitch to flip it from CD-ROM mode (for the Windows drivers) and into modem mode.
I can't switch because I don't know the modem ID. I can only assume based on other tutorials.

Code: Select all

[root@localhost ~]# echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
[root@localhost ~]# usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000"
Look for target devices ...
 No devices in target mode or class found
Look for default devices ...
 No devices in default mode found. Nothing to do. Bye!

[root@localhost ~]# lsusb
[root@localhost ~]#

Code: Select all

[root@localhost ~]# usb_modeswitch --version

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.1 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How install GSM modem?

Post by TrevorH » 2019/11/26 16:12:54

You need the usb ids reported by lsusb for it's current state.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply