|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Sat Mar 15, 2025 02:42 |
Page: 1
Keywords: Mode: All keywords (AND) |
Tue Jul 23, 2013 08:14
|
elkondor: and in some situation i receive
"Modem is not ready to answer commands (Timeouts: 0)"
and i reboot raspberry pi
|
Tue Jul 23, 2013 07:28
|
elkondor: Operating system name and version: debian wheezy (arm - raspberry)
Version of smsd: 3.1.15 - self compiled
Smsd installed from: sources
Name and model of a modem / phone: huawei e162
Interface: USB
I have this problem, when i receive a special sms, i bring up ppp0 (umts key)
and resend me an sms with ppp0 ip for remote connection.
i use wvdial and it work.
when i try tu use with eventhandler script, work but dublicate the procedure
of ppp, eventhandler try two time to connect and send sms
in the log i show two incoming receive duplicated sms and i receive duplicated ip message.
if i remove wvdial / ppp0 connection string script work correctly.
my config:
devices = USBKEY1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
loglevel = 5
receive_before_send = yes
autosplit = 3
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
eventhandler = /usr/local/bin/smsinevent2_debug.sh
[USBKEY1]
device = /dev/ttyUSB2
init = AT^CURC=0
init2 = AT+CPMS="ME","ME","ME"
incoming = yes
baudrate = 115200
#phonecalls = yes
#pin = 1234
pin = ignore
memory_start = 0
check_memory_method = 2
signal_quality_ber_ignore = yes
this is only a simple test script for see the problem
# script smsinevent2_debug.sh
pon.wvdial #i try ifup ppp0
sleep 5
/usr/local/bin/sendsms 00391234567890 "$(ifconfig ppp0 | grep addr | awk '{print $2}' | sed 's/addr://')"
echo "aaaaaaaaa" >> /tmp/kkk
log(level 10)
....
2013-07-23 09:23:59,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:23:59,7, USBKEY1: <- +CMGD: (0),(0-4) OK
2013-07-23 09:23:59,6, USBKEY1: Used memory is 1, list: 0
2013-07-23 09:23:59,6, USBKEY1: Trying to get stored message 0
2013-07-23 09:23:59,7, USBKEY1: -> AT+CMGR=0
2013-07-23 09:23:59,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:23:59,7, USBKEY1: <- +CMGR: 0,,31 0791937307000160040C919343676462710000317032903264800DC367B3197412415028B40A05 OK
2013-07-23 09:23:59,5, USBKEY1: SMS received, From: 393476462618
2013-07-23 09:23:59,6, USBKEY1: Wrote an incoming message file: /var/spool/sms/incoming/USBKEY1.6EQ6WI
2013-07-23 09:23:59,7, USBKEY1: Running eventhandler: /usr/local/bin/smsinevent2.sh RECEIVED /var/spool/sms/incoming/USBKEY1.6EQ6WI
2013-07-23 09:24:06,7, USBKEY1: Done: eventhandler, execution time 7 sec., status: 0 (0)
2013-07-23 09:24:06,6, USBKEY1: Deleting message 0
2013-07-23 09:24:06,7, USBKEY1: -> AT+CMGD=0
2013-07-23 09:24:06,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:06,7, USBKEY1: <- AT+CMGD=0 OK
2013-07-23 09:24:06,6, USBKEY1: Checking device for incoming SMS
2013-07-23 09:24:06,6, USBKEY1: Checking memory size
2013-07-23 09:24:06,7, USBKEY1: -> AT+CMGD=?
2013-07-23 09:24:06,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:07,7, USBKEY1: <- AT+CMGD=? +CMGD: (),(0-4) OK
2013-07-23 09:24:07,6, USBKEY1: No SMS received
2013-07-23 09:24:17,6, USBKEY1: Checking device for incoming SMS
2013-07-23 09:24:17,6, USBKEY1: Checking if modem is ready
2013-07-23 09:24:17,7, USBKEY1: -> AT
2013-07-23 09:24:17,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:17,7, USBKEY1: <- AT OK
2013-07-23 09:24:17,6, USBKEY1: Pre-initializing modem
2013-07-23 09:24:17,7, USBKEY1: -> ATE0+CMEE=1;+CREG=2
2013-07-23 09:24:17,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:18,7, USBKEY1: <- ATE0+CMEE=1;+CREG=2 OK
2013-07-23 09:24:18,6, USBKEY1: Initializing modem
2013-07-23 09:24:18,7, USBKEY1: -> AT^CURC=0
2013-07-23 09:24:18,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:18,7, USBKEY1: <- OK
2013-07-23 09:24:18,7, USBKEY1: -> AT+CPMS="ME","ME","ME"
2013-07-23 09:24:18,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:19,7, USBKEY1: <- +CPMS: 1,23,1,23,1,23 OK
2013-07-23 09:24:19,7, USBKEY1: -> AT+CSQ
2013-07-23 09:24:19,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:19,7, USBKEY1: <- +CSQ: 15,99 OK
2013-07-23 09:24:19,6, USBKEY1: Signal Strength Indicator: (15,99) -83 dBm (Good)
2013-07-23 09:24:19,6, USBKEY1: Checking if Modem is registered to the network
2013-07-23 09:24:19,7, USBKEY1: -> AT+CREG?
2013-07-23 09:24:19,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:20,7, USBKEY1: <- +CREG: 2,1,2757,1A08 OK
2013-07-23 09:24:20,6, USBKEY1: Modem is registered to the network
2013-07-23 09:24:20,6, USBKEY1: Selecting PDU mode
2013-07-23 09:24:20,7, USBKEY1: -> AT+CMGF=0
2013-07-23 09:24:20,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:20,7, USBKEY1: <- OK
2013-07-23 09:24:20,6, USBKEY1: Checking memory size
2013-07-23 09:24:20,7, USBKEY1: -> AT+CMGD=?
2013-07-23 09:24:20,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:21,7, USBKEY1: <- +CMGD: (0),(0-4) OK
2013-07-23 09:24:21,6, USBKEY1: Used memory is 1, list: 0
2013-07-23 09:24:21,6, USBKEY1: Trying to get stored message 0
2013-07-23 09:24:21,7, USBKEY1: -> AT+CMGR=0
2013-07-23 09:24:21,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:21,7, USBKEY1: <- +CMGR: 1,,31 0791937307000160040C919343676462710000317032903264800DC367B3197412415028B40A05 OK
2013-07-23 09:24:21,5, USBKEY1: SMS received, From: 393476462618
2013-07-23 09:24:21,6, USBKEY1: Wrote an incoming message file: /var/spool/sms/incoming/USBKEY1.5DLiEC
2013-07-23 09:24:21,7, USBKEY1: Running eventhandler: /usr/local/bin/smsinevent2.sh RECEIVED /var/spool/sms/incoming/USBKEY1.5DLiEC
2013-07-23 09:24:26,7, USBKEY1: Done: eventhandler, execution time 5 sec., status: 0 (0)
2013-07-23 09:24:26,3, USBKEY1: Exec: eventhandler encountered errors:
2013-07-23 09:24:26,3, USBKEY1: ! ifup: interface ppp0 already configured
2013-07-23 09:24:26,6, USBKEY1: Deleting message 0
2013-07-23 09:24:26,7, USBKEY1: -> AT+CMGD=0
2013-07-23 09:24:26,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:27,7, USBKEY1: <- OK
2013-07-23 09:24:27,6, USBKEY1: Checking device for incoming SMS
2013-07-23 09:24:27,6, USBKEY1: Checking memory size
2013-07-23 09:24:27,7, USBKEY1: -> AT+CMGD=?
2013-07-23 09:24:27,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:27,7, USBKEY1: <- +CMGD: (),(0-4) OK
2013-07-23 09:24:27,6, USBKEY1: No SMS received
2013-07-23 09:24:37,6, USBKEY1: Checking device for incoming SMS
2013-07-23 09:24:37,6, USBKEY1: Checking if modem is ready
2013-07-23 09:24:37,7, USBKEY1: -> AT
2013-07-23 09:24:37,7, USBKEY1: Command is sent, waiting for the answer
2013-07-23 09:24:38,7, USBKEY1: <- OK
2013-07-23 09:24:38,6, USBKEY1: Pre-initializing modem
2013-07-23 09:24:38,7, USBKEY1: -> ATE0+CMEE=1;+CREG=2
....
|
Wed Mar 13, 2013 20:01
|
elkondor: check here: http://smstools3.kekekasvi.com/topic.php?post=3233#post3233
....
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
....
i add some extra file or document in package. if you dont have delete the line mod4wrt.
post source code that you use.
|
Wed Mar 13, 2013 19:55
|
|
Sat Mar 09, 2013 13:21
|
elkondor: which version of openwrt? i not test with last (12.xx) version.
I use backfire 10.xx
and compile on debian lenny.
check the path of the file from compilation is more important
|
Wed Aug 24, 2011 18:11
|
elkondor:
I use OpenWRT Backfire (r24038) 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.
i get it with:
svn co svn://svn.openwrt.org/openwrt/branches/backfire openwrt-backfire
is more similar to kernel compilation:
make menuconfig <-- select/deselect package and platform
save and
make
need more space because build all tools
|
Wed Aug 24, 2011 18:06
|
elkondor: 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 :)
|
Wed Jul 27, 2011 14:04
|
elkondor: 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... :?
|
Tue Jul 26, 2011 20:18
|
elkondor: when you start daemon binary or the daemon not start with this error??
|
Mon Jul 25, 2011 07:23
|
elkondor: I try to get the binary. have patience because machine is remote
where I send it?
|
Mon Jul 04, 2011 23:22
|
elkondor: 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! :)
|
Tue Jun 28, 2011 14:49
|
elkondor: 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.
|
Tue Mar 22, 2011 21:00
|
|
Tue Mar 22, 2011 20:31
|
elkondor: 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)
2011-03-22 07:12:03,3, USBKEY1: Unexpected input: ^RSSI:0
2011-03-22 07:12:03,3, USBKEY1: Unexpected input: ^BOOT
or
USBKEY1: Unexpected "something..."
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
devices = USBKEY1
user = root
# 5 send/receive 7 debug
loglevel = 5
logfile = /var/log/smsd.log
eventhandler = /usr/bin/smsinevent.sh
[USBKEY1]
device = /dev/ttyUSB2
init = AT^BOOT=0,0
incoming = yes
baudrate = 19200
#phonecalls = yes
#pin = 1234
pin = ignore
memory_start = 1
#signal_quality_ber_ignore = yes
#detect_unexpected_input = no
|
Tue Mar 22, 2011 20:08
|
elkondor: 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))
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 :)
|
Mon Mar 21, 2011 21:50
|
elkondor: when i test all pkg for openwrt, if you are interested i send you all :P
|
Mon Mar 21, 2011 21:49
|
elkondor: 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
}
|
Mon Mar 14, 2011 14:38
|
elkondor: 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
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|