<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OpenWRT%3A_smstools</id>
	<title>OpenWRT: smstools - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OpenWRT%3A_smstools"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=OpenWRT:_smstools&amp;action=history"/>
	<updated>2026-04-20T12:24:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=OpenWRT:_smstools&amp;diff=41652&amp;oldid=prev</id>
		<title>Onnowpurbo: /* Referensi */</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=OpenWRT:_smstools&amp;diff=41652&amp;oldid=prev"/>
		<updated>2014-12-29T04:44:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Referensi&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:44, 29 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l179&quot;&gt;Line 179:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 179:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://h-wrt.com/en/doc/gsm&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://h-wrt.com/en/doc/gsm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* http://chabbir.blogspot.com/2013/03/sms-gateway-openwrt-from-tp-link-tl.html&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=OpenWRT:_smstools&amp;diff=41651&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Gsm modem and sms sending in OpenWrt  On the stage of configuration OpenWrt the following modules are to be selected: Kernel modules: Video Support:   &lt;M&gt; kmod-usb-serial  &lt;M&gt; kmod-usb-ser...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=OpenWRT:_smstools&amp;diff=41651&amp;oldid=prev"/>
		<updated>2014-12-29T04:42:16Z</updated>

		<summary type="html">&lt;p&gt;New page: Gsm modem and sms sending in OpenWrt  On the stage of configuration OpenWrt the following modules are to be selected: Kernel modules: Video Support:   &amp;lt;M&amp;gt; kmod-usb-serial  &amp;lt;M&amp;gt; kmod-usb-ser...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Gsm modem and sms sending in OpenWrt&lt;br /&gt;
&lt;br /&gt;
On the stage of configuration OpenWrt the following modules are to be selected:&lt;br /&gt;
Kernel modules:&lt;br /&gt;
Video Support:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;M&amp;gt; kmod-usb-serial&lt;br /&gt;
 &amp;lt;M&amp;gt; kmod-usb-serial-option&lt;br /&gt;
 &amp;lt;M&amp;gt; kmod-usb-serial-wwan&lt;br /&gt;
&lt;br /&gt;
I had a problem with the installation of the module kmod-usb-serial-wwan. mesg gave out the following after downloading:&lt;br /&gt;
&lt;br /&gt;
 option: Unknown symbol usb_wwan_write (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_close (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_release (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_tiocmget (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_chars_in_buffer (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_write_room (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_disconnect (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_startup (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_set_termios (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_dtr_rts (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_open (err 0)&lt;br /&gt;
 option: Unknown symbol usb_wwan_tiocmset (err 0)&lt;br /&gt;
&lt;br /&gt;
It can be solved by editing the file &amp;#039;package/kernel/modules/usb.mk&amp;#039;.&lt;br /&gt;
Add the section &amp;#039;kmod-usb-serial-wwan&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 define KernelPackage/usb-serial-wwan&lt;br /&gt;
 TITLE:=Support for GSM and CDMA modems&lt;br /&gt;
 KCONFIG:=CONFIG_USB_SERIAL_WWAN&lt;br /&gt;
 FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko&lt;br /&gt;
 AUTOLOAD:=$(call AutoLoad,61,usb_wwan)&lt;br /&gt;
 $(call AddDepends/usb-serial)&lt;br /&gt;
 endef&lt;br /&gt;
 &lt;br /&gt;
 define KernelPackage/usb-serial-wwan/description&lt;br /&gt;
 Kernel support for USB GSM and CDMA modems&lt;br /&gt;
 endef&lt;br /&gt;
 &lt;br /&gt;
 $(eval $(call KernelPackage,usb-serial-wwan))&lt;br /&gt;
 Edit section &amp;#039;usb-serial-option&amp;#039;&lt;br /&gt;
 define KernelPackage/usb-serial-option&lt;br /&gt;
 TITLE:=Support for Option HSDPA modems&lt;br /&gt;
 DEPENDS:=+kmod-usb-serial-wwan&lt;br /&gt;
 KCONFIG:=CONFIG_USB_SERIAL_OPTION&lt;br /&gt;
&lt;br /&gt;
All this are described here: https://dev.openwrt.org/ticket/7731. Thanks a lot to the author.&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 root@OpenWrt:/# opkg install kmod-usb-serial kmod-usb-serial-wwan kmod-usb-serial-option&lt;br /&gt;
 Installing kmod-usb-serial-wwan (2.6.36-1) to root...&lt;br /&gt;
 Downloading ftp://ftp:ftp@192.168.1.9/kmod-usb-serial-wwan_2.6.36-1_brcm47xx.ipk.&lt;br /&gt;
 Installing kmod-usb-serial (2.6.36-1) to root...&lt;br /&gt;
 Downloading ftp://ftp:ftp@192.168.1.9/kmod-usb-serial_2.6.36-1_brcm47xx.ipk.&lt;br /&gt;
 Installing kmod-usb-serial-option (2.6.36-1) to root...&lt;br /&gt;
 Downloading ftp://ftp:ftp@192.168.1.9/kmod-usb-serial-option_2.6.36-1_brcm47xx.ipk.&lt;br /&gt;
 Configuring kmod-usb-serial.&lt;br /&gt;
 Configuring kmod-usb-serial-wwan.&lt;br /&gt;
 Configuring kmod-usb-serial-option.&lt;br /&gt;
&lt;br /&gt;
Connect the modem and check the output dmesg:&lt;br /&gt;
&lt;br /&gt;
 usbcore: registered new interface driver usbserial&lt;br /&gt;
 USB Serial support registered for generic&lt;br /&gt;
 usbcore: registered new interface driver usbserial_generic&lt;br /&gt;
 usbserial: USB Serial Driver core&lt;br /&gt;
 USB Serial support registered for GSM modem (1-port)&lt;br /&gt;
 option 1-1.2:1.0: GSM modem (1-port) converter detected&lt;br /&gt;
 usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0&lt;br /&gt;
 option 1-1.2:1.1: GSM modem (1-port) converter detected&lt;br /&gt;
 usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1&lt;br /&gt;
 option 1-1.2:1.3: GSM modem (1-port) converter detected&lt;br /&gt;
 usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2&lt;br /&gt;
 usbcore: registered new interface driver option&lt;br /&gt;
 option: v0.7.2:USB Driver for GSM modems&lt;br /&gt;
&lt;br /&gt;
The modem has been detected. We can start to use it. As we can see from the log 3 devices ttyUSB were created: interface for working with sd-card, interface to configure of device, interface of data communication. We need the interface of data communication, I have ttyUSB1.&lt;br /&gt;
&lt;br /&gt;
It’s easy to detect what from 3 interfaces we need. Connect the modem to the computer, start the terminal on speed of 19200 and put in the command ati. The modem should respond.&lt;br /&gt;
&lt;br /&gt;
 ati&lt;br /&gt;
 Manufacturer: ZTE INCORPORATED&lt;br /&gt;
 Model: MF626&lt;br /&gt;
 Revision: BD_P673M3V1.0.1B02&lt;br /&gt;
 IMEI: 352846022764542&lt;br /&gt;
 +GCAP: +CGSM,+FCLASS,+DS &lt;br /&gt;
 &lt;br /&gt;
 OK&lt;br /&gt;
&lt;br /&gt;
For sms sending we use the utility smstools. At the moment of writing of this article it isn’t included in the standard utilities of openwrt. Therefore we download the sources from:&lt;br /&gt;
&lt;br /&gt;
 http://smstools3.kekekasvi.com/&lt;br /&gt;
&lt;br /&gt;
It should be compiled by using a cross-compiler from openwrt. For this we should add in the file smstools3/src/Makefile нужно добавить строчку:&lt;br /&gt;
CC=openwrt/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/bin/mipsel-openwrt-linux-gcc&lt;br /&gt;
It means to show the path to the cross-compiler.&lt;br /&gt;
&lt;br /&gt;
Start make. In smstools3/src/ we find a demon file of sms-server smsd, which we copy to the file system in /usr/sbin. At the same time we put into the directory /etc the configuration file smsd.conf which is necessary for the start of smsd.&lt;br /&gt;
&lt;br /&gt;
 /etc/smsd.conf&lt;br /&gt;
 devices = GSM1&lt;br /&gt;
 logfile = /var/log/smstools/smsd.log&lt;br /&gt;
 loglevel = 7&lt;br /&gt;
 [GSM1]&lt;br /&gt;
 device = /dev/ttyUSB1&lt;br /&gt;
 incoming = no&lt;br /&gt;
 # Service Center Address&lt;br /&gt;
 smsc = 79168960220&lt;br /&gt;
 send_delay = 10&lt;br /&gt;
 baudrate = 19200&lt;br /&gt;
 rtscts = no &lt;br /&gt;
&lt;br /&gt;
Downloading. For the operation of smsd we need to create the following directories (we create them using mkdir):&lt;br /&gt;
&lt;br /&gt;
 /var/log/smstools&lt;br /&gt;
 /var/spool/sms/checked/&lt;br /&gt;
 /var/spool/sms/outgoing/&lt;br /&gt;
 /var/spool/sms/incoming/&lt;br /&gt;
&lt;br /&gt;
Starting sms-server:&lt;br /&gt;
&lt;br /&gt;
 # smsd -c /etc/smsd.conf &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Check the log and see that the modem has been initiated:&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/smstools/smsd.log&lt;br /&gt;
&lt;br /&gt;
We can send sms. Sms are sending automatically after the file with sms will be placed into the directory /var/spool/sms/outgoing/&lt;br /&gt;
&lt;br /&gt;
Create the file send_sms.sms and place it into this directory:&lt;br /&gt;
send_sms.sms&lt;br /&gt;
&lt;br /&gt;
 To: +79161737465&lt;br /&gt;
 &lt;br /&gt;
 Hello from OpenWrt!&lt;br /&gt;
&lt;br /&gt;
Check the log and see that the server detected a new sms which wasn’t sent, begun with its sending and after sending deleted the file:&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/smstools/smsd.log&lt;br /&gt;
&lt;br /&gt;
 1970-01-01 00:03:54,5, GSM1: Waiting for messages to send...&lt;br /&gt;
 1970-01-01 00:05:23,5, smsd: Moved file /var/spool/sms/outgoing/send_sms.sms to /var/spool/sms/checked&lt;br /&gt;
 1970-01-01 00:05:23,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/send_sms.sms&lt;br /&gt;
 1970-01-01 00:05:23,6, GSM1: Sending SMS from to 79161737465&lt;br /&gt;
 1970-01-01 00:05:23,6, GSM1: Checking if modem is ready&lt;br /&gt;
 1970-01-01 00:05:24,7, GSM1: -&amp;gt; AT&lt;br /&gt;
 1970-01-01 00:05:24,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:24,7, GSM1: &amp;lt;- OK&lt;br /&gt;
 1970-01-01 00:05:24,6, GSM1: Pre-initializing modem&lt;br /&gt;
 1970-01-01 00:05:24,7, GSM1: -&amp;gt; ATE0+CMEE=1;+CREG=2&lt;br /&gt;
 1970-01-01 00:05:27,6, GSM1: Signal Strength Indicator: (13,99) -87 dBm (Workable), Bit Error Rate: not known or not detectable&lt;br /&gt;
 1970-01-01 00:05:27,6, GSM1: Checking if Modem is registered to the network&lt;br /&gt;
 1970-01-01 00:05:27,7, GSM1: -&amp;gt; AT+CREG?&lt;br /&gt;
 1970-01-01 00:05:28,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:28,7, GSM1: &amp;lt;- +CREG: 0,1 OK&lt;br /&gt;
 1970-01-01 00:05:28,6, GSM1: Modem is registered to the network&lt;br /&gt;
 1970-01-01 00:05:28,6, GSM1: Selecting PDU mode&lt;br /&gt;
 1970-01-01 00:05:29,7, GSM1: -&amp;gt; AT+CMGF=0&lt;br /&gt;
 1970-01-01 00:05:29,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:30,7, GSM1: &amp;lt;- +ZUSIMR:2 OK&lt;br /&gt;
 1970-01-01 00:05:30,6, GSM1: Changing SMSC&lt;br /&gt;
 1970-01-01 00:05:30,7, GSM1: -&amp;gt; AT+CSCA=&amp;quot;+79168960220&amp;quot;&lt;br /&gt;
 1970-01-01 00:05:32,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:32,7, GSM1: &amp;lt;- +ZUSIMR:2 OK&lt;br /&gt;
 1970-01-01 00:05:32,7, GSM1: -&amp;gt; AT+CMGS=29&lt;br /&gt;
 1970-01-01 00:05:33,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:33,7, GSM1: &amp;lt;- &amp;gt;&lt;br /&gt;
 1970-01-01 00:05:33,7, GSM1: -&amp;gt; 0011000B919711257733F30000FF115079DA5EA683D27A50FB4D2EB7C321#&lt;br /&gt;
 1970-01-01 00:05:38,7, GSM1: Command is sent, waiting for the answer&lt;br /&gt;
 1970-01-01 00:05:42,7, GSM1: &amp;lt;- +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +CMGS: 174 OK&lt;br /&gt;
 1970-01-01 00:05:42,5, GSM1: SMS sent, Message_id: 174, To: 79161737465, sending time 19 sec.&lt;br /&gt;
 1970-01-01 00:05:42,6, GSM1: Deleted file /var/spool/sms/checked/send_sms.sms  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://h-wrt.com/en/doc/gsm&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>