Author |
Post |
|
#1 Mon Mar 14, 2011 14:38, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
|
Operating system name and version: Openwrt Backfire 10.03 Version of smsd: 3.1.14 Smsd installed from: sources - openwrt sdk compiling Name and model of a modem / phone: internt key huawei e162 Interface: USB hello community!!! I'm italian, sorry for english! i use smstools3 in a small "SMS Notify application" recompiled for OpenWrt router (asus WL-500Gp) with a USB internet KEY (huawei e162) With some script modification work very well and compile with no problem. I don't understand if is possible use sms send/receive and connection at the same time is interesting for use grps/UMTS for rescue when the primary connection in down or for support remote access thanks in advance _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#2 Mon Mar 14, 2011 18:09, 170 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
elkondor wrote I don't understand if is possible use sms send/receive and connection at the same time is interesting for use grps/UMTS for rescue when the primary connection in down or for support remote access
Huawei device (at least E1552) provides more than one port. One of them is "3G Application Interface" and one other is "3G PC UI Interface". I do not know how the 3G connection works on Openwrt, but this is how interfaces work simultaneously on Windows: 1) If network connection is created by Mobile Partner program (from Huawei), this program uses the UI Interface and smstools3 cannot use it. 2) If network connection is created by Windows, without Mobile Partner, smstools3 can use the UI Interface. It was tested that sending and receiving SMS works fine, at the same time when 3G network connection is used for download files and browsing. Of course, what happens on WIndows does not help you, but perhaps this may give a glue on how this stick may work under Openwrt. First plug in the stick, and then use dmesg to see how many ports are provided. If there are two or more ports, check what port is used by networking, and try to use some other port with smstools3. elkondor wrote With some script modification work very well and compile with no problem.
Great  . What kind of modifications were required, can you show them?
|
|
#3 Mon Mar 21, 2011 21:49, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
i made custom initscript for openwrt service (sms4wrt) more simple than your #!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org # smsd initscript openwrt mod
START=99 STOP=99
EXTRA_COMMANDS="status" EXTRA_HELP=" status View pid and service status "
boot() { # Set/edit this before starting service !!!!! WRT_SPOOL=/var/spool
echo "Creating minimum spool directories" mkdir -p $WRT_SPOOL mkdir -p $WRT_SPOOL/sms mkdir -p $WRT_SPOOL/sms/incoming mkdir -p $WRT_SPOOL/sms/outgoing mkdir -p $WRT_SPOOL/sms/checked
start }
start() { echo "Starting SMS Daemon....." sleep 5 /usr/bin/smsd }
stop() { echo "Stopping SMS Daemon:" echo "Wait 5 sec........." killall smsd sleep 5 }
restart() { stop start }
status() { PIDFILE=/var/run/smsd.pid PID=$(cat $PIDFILE)
test -e $PIDFILE if [ $? == 0 ]; then echo "Smsd running! pid $PID" else echo "Smsd not running !!!" fi } 'bash' Syntax Highlight powered by GeSHi _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#4 Mon Mar 21, 2011 21:50, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
when i test all pkg for openwrt, if you are interested i send you all  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#5 Tue Mar 22, 2011 10:54, 170 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
I was wondering if some changes were required in the code, and in that case the next version might have them included with a flag in the Makefile. I do not have OpenWrt router, but just ordered ASUS WL-500Gp. Just remembered, that in this topic member kessi said that no changes were required, when running smsd 3.1.5 on OperatLinux OpenWrt 2.6.25.17 #16 Sun Feb 15 00:19:46 CET 2009 mips unknown - ASUS WL-500G Premium - Kamikaze 8.09, r14511.
|
|
#6 Tue Mar 22, 2011 20:08, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
i don't make any modification in source code of smsd, but openwrt sdk need a special makefile for cross compilation (mips) on i386 pc (i use Debian lenny 5.0),and your install script not work for this. This is in my source dir in sdk ../openwrt/openwrt-backfire/package/smstools3 Note in my package i insert xmail basic mailroot config for work with some script, because in the example script in your source is considered use a real mail server (postfix,procmail,fetchmail) but on a Openwrt router...there isn't space for make this... and i work to custom something smstools3/ |-- Makefile |-- files | |-- examples | | |-- README | | |-- language-ISO-8859-15.fi | | |-- language-UTF-8.fi | | |-- operator_logo1.sms | | |-- operator_logo2.sms | | |-- received_report.sms | | |-- received_sms.sms | | |-- send_sms.sms | | |-- send_sms_unicode.sms | | |-- smsd.conf.easy | | |-- smsd.conf.full | | |-- smsd.conf.net | | `-- smsd.conf.non-root | |-- mod4wrt | | |-- README_FIRST | | |-- sms3wrt | | |-- smsd.conf.wrt | | |-- wrt_install.sh | | `-- xmail2sms.sh | `-- scripts | |-- README | |-- callhandler | |-- checkhandler-utf-8 | |-- email2sms | |-- eventhandler-utf-8 | |-- eventhandler_report | |-- forwardsms | |-- hex2bin | |-- hex2dec | |-- load_balancing.sh | |-- mysmsd | |-- pkill | |-- regular_run | |-- sendsms | |-- sms2html | |-- sms2unicode | |-- sms2xml | |-- sms3 | |-- smsevent | |-- smsresend | |-- smstest.php | |-- sql_demo | `-- unicode2sms `-- src |-- Makefile |-- alarm.c |-- alarm.h |-- blacklist.c |-- blacklist.h |-- cfgfile.c |-- cfgfile.h |-- charset.c |-- charset.h |-- extras.c |-- extras.h |-- locking.c |-- locking.h |-- logging.c |-- logging.h |-- modeminit.c |-- modeminit.h |-- pdu.c |-- pdu.h |-- smsd.c |-- smsd_cfg.c |-- smsd_cfg.h |-- stats.c |-- stats.h |-- version.h |-- whitelist.c `-- whitelist.h Openwrt (top)Makefile # # Copyright (C) 2006-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # # http://gargoyle-router.com/old-openwrt-coding.html # # Beta version code Compiled By # William Cocca <info@opensupport.it> #
include $(TOPDIR)/rules.mk
PKG_NAME:=smstools3 PKG_VERSION:=3.1.14 PKG_RELEASE:=5wrt
#PKG_BUILD_DIR:=$(BUILD_DIR)/smstools3-$(PKG_VERSION) PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME)
#PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/smstools3 SECTION:=net CATEGORY:=Utilities TITLE:=Sms Server Tools 3 URL:=http://smstools3.kekekasvi.com endef
define Package/smstools3/description The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones. Note: Not compiled with the OSSP mm Shared Memory Library (libmm) is only needed if statistics function is enabled. This function is disabled by default. endef
define Build/Prepare mkdir -p $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)/ endef
define Package/smstools3/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/smsd $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/share/smstools3/examples $(INSTALL_DATA) ./files/examples/* $(1)/usr/share/smstools3/examples/ $(INSTALL_DIR) $(1)/usr/share/smstools3/scripts $(INSTALL_DATA) ./files/scripts/* $(1)/usr/share/smstools3/scripts/ $(INSTALL_DIR) $(1)/usr/share/smstools3/mod4wrt $(INSTALL_DATA) ./files/mod4wrt/* $(1)/usr/share/smstools3/mod4wrt/ endef
$(eval $(call BuildPackage,smstools3)) 'make' Syntax Highlight powered by GeSHi Is a beta beta beta pkg but work for now! I spent a long time and night for this... I hope that someone will serve! My two cents  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#7 Tue Mar 22, 2011 20:31, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
first i user /dev/ttyUSB0 i try other port interface for sms /dev/ttyUSB2, and put data connection on /dev/ttyUSB0 i receive some message in log (level 5) the ^BOOT is solved use init = AT^BOOT=0,0 (i search in forum  ) the ^RSSI...?? Sms send/receive with no problem, but with ttyUSB0 i don't have this msg problem. is too high log level? is normal msg...?? can i ignore this msg or is important event? (detect_unexpected_input = no) my smsd.conf _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
« Last edit by elkondor on Tue Mar 22, 2011 20:33, 170 months ago. »
|
|
#8 Tue Mar 22, 2011 20:52, 170 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Thanks for the information you have provided.
Use the init = AT^CURC=0, it disables all of those messages.
Because Huawei as device has become more and more commonly used, I have to think if the next version should detect those messages, and use ^CURC=0 automatically.
|
|
#9 Tue Mar 22, 2011 21:00, 170 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
perfect i test it!  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#10 Tue Jun 28, 2011 11:03, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
Hello elkondor, can you give me the source files? I use openwrt-backfire and search SMS Tools for this.
|
|
#11 Tue Jun 28, 2011 14:49, 166 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
i don't make any modification in original source code of smsd, use only the makefile that i post up, and use the same directory structure. _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#12 Fri Jul 01, 2011 06:33, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
sorry for the late answer. you have created an folder mod4wrt, it is more then makefile
|
|
#13 Mon Jul 04, 2011 19:15, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
missing rules: make Makefile:13: /rules.mk: No such file or directory Makefile:24: /package.mk: No such file or directory make: *** No rule to make target `/package.mk'. Stop.
|
|
#14 Mon Jul 04, 2011 23:22, 166 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
mod4wrt is my personal script dir, is an optional. I build package insert the source in openwrt build-root and select minimal pkg to compile, i don't using SDK, don't be successful with this metod for me.... but i am not an openwrt expert google is my friends!  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#15 Wed Jul 06, 2011 07:06, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
I cannot found or download rules.mk or package.mk, can you give me a link? It is my first external package and non opkg
|
|
#16 Thu Jul 21, 2011 08:06, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
elkondor, can you send me the compiled file smsd for openwrt?
|
|
#17 Mon Jul 25, 2011 07:23, 166 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
I try to get the binary. have patience because machine is remote where I send it? _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#18 Mon Jul 25, 2011 08:47, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
Hi elkondor, I have generate a eMail address for one week: 7883537EHTDISZADV@kabelmail.de. Thank for your help.
|
|
#19 Tue Jul 26, 2011 11:20, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
sorry, I got the following error:
line 2: syntax error: unexpected word (expecting ")")
can you help?
|
|
#20 Tue Jul 26, 2011 20:18, 166 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
when you start daemon binary or the daemon not start with this error?? _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#21 Wed Jul 27, 2011 05:52, 166 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
I have started smsd over the terminal (Putty)
|
|
#22 Wed Jul 27, 2011 14:04, 165 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
try with non config file smsd.conf... i think is a compiling issue (but i not sure) of my package.... I use openwrt-backfire rc4 firmware on wrt device and compiling with buildroot in svn... And you? version of firmware/platform installed? the message is similar (but i not sure) to when you run a binary compiled for other architecture/chip. i try some pgk for other/older versione and have similar man not egual problem or "unexpected error" i test it only on broadcom-wrt Asus wl500gp in my case. I think you will have to compile it yourself...  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|
|
#23 Wed Jul 27, 2011 17:32, 165 months ago.
|
Member
Registered: Jun 2011
Location: Germany
|
I use OpenWRT Backfire (r2403  on TP-Link TL-WR1043ND. I have tested with and without conf-file, it is the same. Can you send me an howto and source for Buildroot on my mail address? I have googled and not found sources for backfire. Many thanks for your help.
|
|
#24 Wed Aug 24, 2011 08:20, 165 months ago.
|
Member
Registered: Aug 2011
Location: Ciputat, Indonesia
|
Hi Elkondor,
Any chance to share the 'howto' to build the smsservertools 3 for OpenWrt please? Reading your discussion with Keke is not so easy for a newbie
Thanks ...
|
|
#25 Wed Aug 24, 2011 18:06, 165 months ago.
|
Member
Registered: Mar 2011
Location: Brescia, Italy
Topic owner
|
sorry i'm go away for holiday i see this week all message  build root is too big... in my case is 2-3gb.... but i need to install smstools on the same router (t-plink) and i try to recompile because i have the same issue..... after i send you smsd howto... big word  i try try try.... on a devel machine... i think if this machine dead i do not recreate it  _______________ ---- Blog and support - http://www.opensupport.it Wifi project - http://www.riferimento.org
|