Header Ads

Header Ads

Linux - USB Modem HUAWEI E3131 (12d1:14fe) Sending SMS

We will use Debian GNU/Linux 8.7 (jessie) and HUAWEI E3131 modem 12d1:14fe. First of all we need to install usb-modeswitch to switch from USB Storage mode to GSM modem. We also need to install smstools for sending text messages via this modem.
apt-get install usb-modeswitch smstools
To configure usb-modeswitch, open /etc/usb_modeswitch.d/12d1:14fe with your favourite editor, and paste this text:
# Huawei E3131
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"

Then run:
usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:14fe


Open /etc/smsd.conf, and paste this text to the end of all text, also commenting [GSM1] and all it's parameters before:
[GSM1]
device = /dev/ttyUSB0
incoming = yes
report = no
check_memory_method = 2
signal_quality_ber_ignore = yes
decode_unicode_text = yes
Start smstools:
/etc/init.d/smstools start 

Try to send sms by editing /var/spool/sms/outgoing/sms file and putting to it:
To: 8611111111
This is a text message sent by smstools!

















With this config you will also be able to receive messages addressed to the telephone number of this
modem. The received messages are located in /var/spool/sms/incoming/ directory.






















It is possible to setup sms geteway using smstools and smsd or playsms the last one is user friendly tool with php frontend and mysql as the backend.





1 comment:

  1. 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!

    ReplyDelete

Copyright (c) 2012-2013 Unix Master. Powered by Blogger.