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.





7 comments:

  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
  2. or paying a bit more for a better overall service with no glitches. When it comes to selecting a bulk SMS company for your mobile messaging, other factors besides price should be borne in mind http://www.padisoft.org

    ReplyDelete
  3. HTTPS - This is equivalent to HTTP, anyway the information is encoded to guarantee that it can't be perused by different gatherings on the web
    Bulk SMS API

    ReplyDelete
  4. Im no professional, but I imagine you just crafted an excellent point. You naturally understand what youre speaking about, and I can truly get behind that. Thanks for staying so upfront and so honest. device mockup

    ReplyDelete
  5. I was rattling delighted to find this internet site on bing, just what I was looking for : D as well saved to fav. iphone mockups

    ReplyDelete
  6. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. business texting platform

    ReplyDelete
  7. Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. https://etcher.download/

    ReplyDelete

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