$ lsusb
Bus 001 Device 014: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
$ gammu-detect
; Configuration file generated by gammu-detect.
; Please check The Gammu Manual for more information.
[gammu]
device = /dev/ttyS2
name = Phone on serial port 2
connection = at
The modem is detected as mass storage. I want the modem to be detected as Modem/Networkcard
I have searched and tried and finally this worked for me
Solution 1: - /etc/mode_switch.config and turn on the following flag:
Go to following folder and create the 12d1:14fe file
$ cd /etc/usb_modeswitch.d/ $ sudo tar -xzvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1:14fe
Edit 12d1:14fe file and add following lines and save it
DefaultVendor=0x12d1 DefaultProduct=0x14fe
TargetVendor=0x12d1 TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
If you remove the USB dongle and reconnect it. You have to run following command to bring it back in modem mode
To auto detect the USB dongle as modem when it is connected then set following rule
Then create add following rules to file and save it
$ gammu-detect > .gammurc
$ sudo gammu-detect > .gammurc
$ gammu identify
$ echo "test" | sudo gammu sendsms TEXT 070******* you will receive a test message