Keywords: Mode: All keywords (AND) |
Sat Jan 25, 2014 08:17
|
Ano: better :
init = AT^CURC=0;^BOOT=0,0;^U2DIAG=0
|
Fri Jan 24, 2014 20:24
|
Ano: I change init :
init = AT^CURC=0;^BOOT=0,0
Everything also OK with a HUAWEI E1750 (same firmware).
|
Sun Jan 19, 2014 17:57
|
Ano: everything works except reports and phone calls [*] :
- SMS sent -> ok
- SMS Report -> NOK
- SMS Received -> ok
- Phone Calls -> NOK
:?
my /etc/smsd.conf :
[GSM0]
# iCON 225 : Option N.V. / GlobeTrotter HSDPA Modem / 2.5.24Hd (Date: Apr 17 2009, Time: 08:59:36)
device = /dev/ttyHS0
# device = /dev/ttyHS1 -> Ok
# device = /dev/ttyHS2 -> NOk
# device = /dev/ttyHS3 -> Ok
init = AT+CPMS="SM","SM","SM"
baudrate = 115200
signal_quality_ber_ignore = yes
check_memory_method = 2
incoming = yes
smsc = 336XXXXXXXX
[*]
A use :
- a OPTION iCON 225 from Orange, unsimlocked
- firmware updated : 2.5.24Hd (Date: Apr 17 2009, Time: 08:59:36)
|
Sun Jan 19, 2014 17:50
|
Ano: everything works except reports and phone calls [*] :
- SMS sent -> ok
- SMS Report -> NOK
- SMS Received -> ok
- Phone Calls -> NOK
:?
my /etc/smsd.conf :
[GSM0]
# ZTE MF633R : ZTE CORPORATION / MF633 / BD_BYTELP673C1V1.0.0B02
device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM_P673C1BYTD010000-if02-port0
# device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM_P673C1BYTD010000-if01-port0 -> Ok
# device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM_P673C1BYTD010000-if00-port0 -> NOk
init = AT+CPMS="SM","SM","SM"
baudrate = 115200
signal_quality_ber_ignore = yes
check_memory_method = 2
incoming = yes
smsc = 336XXXXXXXX
[*]
A use :
- a ZTE MF633R not simlocked
- firmware updated : BD_BYTELP673C1V1.0.0B02
|
Sun Jan 19, 2014 17:45
|
Ano: everything works except reports and phone calls [*] :
- SMS sent -> ok
- SMS Report -> NOK
- SMS Received -> ok
- Phone Calls -> NOK
:?
my /etc/smsd.conf :
[GSM0]
# ZTE MF632 : ZTE INCORPORATED / MF632 / PTP673M1V1.0.0B03 BD_PTP673M1V1.0.0B04 1 [Apr 02 2008 00:00:00]
device = /dev/serial/by-id/usb-Qualcomm__Incorporated_ZTE_CDMA_Technologies_MSM-if00-port0
# device = /dev/serial/by-id/usb-Qualcomm__Incorporated_ZTE_CDMA_Technologies_MSM-if01-port0 -> NOk
# device = /dev/serial/by-id/usb-Qualcomm__Incorporated_ZTE_CDMA_Technologies_MSM-if02-port0 -> Ok
pre_init = no
init = ATE0+CPMS="ME","ME","ME"
baudrate = 115200
signal_quality_ber_ignore = yes
check_memory_method = 2
incoming = yes
smsc = 336XXXXXXXX
[*]
A use :
- a ZTE MF632 not simlocked
- firmware updated : PTP673M1V1.0.0B03 BD_PTP673M1V1.0.0B04 1 [Apr 02 2008 00:00:00]
|
Sun Jan 19, 2014 12:53
|
Ano: in my last post TO='s13093XXXXXXX' (not TO='s35113093XXXXXXX')
|
Sat Jan 18, 2014 17:37
|
Ano: The phones numbers 130 and 1693 are short numbers and should not be prefixed by 351.
Here's a little test I just tried with my operator :
root@debian:~# cat solde.sh
#!/bin/bash
TO='s555'
TEXT='Solde'
#
ALPHABET=""
if ! echo -n "$TEXT" | iconv -t ISO-8859-15 >/dev/null 2>&1; then
ALPHABET="UCS"
TEXT=`echo -n "$TEXT" | iconv -t UNICODEBIG`
fi
TMPFILE=`mktemp /tmp/smsd_XXXXXX`
echo "To: $TO" > $TMPFILE
[ -n "$ALPHABET" ] && echo "Alphabet: $ALPHABET" >> $TMPFILE
echo "" >> $TMPFILE
echo -n "$TEXT" >> $TMPFILE
chown smsd.smsd $TMPFILE || chmod 666 $TMPFILE
FILE=`mktemp /var/spool/sms/outgoing/send_XXXXXX`
mv $TMPFILE $FILE
root@debian:~# chmod ug=rwx,o= solde.sh
root@debian:~# ./solde.sh
root@debian:~# tail -n5 /var/log/smstools/smsd.log
2014-01-18 17:54:11,5, smsd: Moved file /var/spool/sms/outgoing/send_xChDK6 to /var/spool/sms/checked
2014-01-18 17:54:18,5, GSM0: SMS sent, Message_id: 94, To: s555, sending time 7 sec.
2014-01-18 17:54:19,5, GSM0: SMS received (report, Message_id: 94, Status: 0,Ok,short message received by the SME), From: 555
2014-01-18 17:54:21,5, GSM0: SMS received (part 1/2), From: 555
2014-01-18 17:54:23,5, GSM0: SMS received (part 2/2), From: 555
root@debian:~#
You can be inspired by this example, try with :
TO='s1693'
TEXT='Saldo'
or
TO='s35113093XXXXXXX'
TEXT='Hello sms test'
A simple search on the internet and reading the scripts of others, would have helped you. ;)
|
Sat Jan 18, 2014 16:09
|
Ano: Try
chmod 666 /tmp/smsd_J9qzGi
after create /tmp/smsd_J9qzGi
|
Sat Jan 18, 2014 16:04
|
Ano:
I have working configuration, but it works only if I restart smsd manually (user:root), without restart I get error in smsd.log:
/var/spool/sms/regular_run: line 19: sendsms: command not found
...
Again, if I restart smsd manually, everything works. Autostart enabled by command: update-rc.d sms3 defaults , maybe this is not correct? How to enable autorun smsd with root privileges?
try the secure solution :
chown smsd.smsd /var/spool/sms/regular_run
chmod ug=rwx,o= /var/spool/sms/regular_run
or
try to pur regular_run in /usr/bin/ (but not as secure solution, all users on the server can run this script) !
|
Fri Jan 17, 2014 14:46
|
Ano: everything works except reports [*] :
- SMS sent -> ok
- SMS Report -> NOK
- SMS Received -> ok
- Phone Calls -> ok
:)
my /etc/smsd.conf :
[GSM0]
# ZTE F160 : ZTE Corporation / ZTE-F160 / F160_Free V3.0 1 [Apr 19 2011 08:00:00]
device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM-if00-port0
# device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM-if01-port0 -> smsd.log :2014-01-16 19:50:24,7, GSM0: Command is sent, waiting for the answer
# device = /dev/serial/by-id/usb-ZTE_Incorporated_ZTE_WCDMA_Technologies_MSM-if02-port0 -> smsd.log :2014-01-16 19:50:28,2, GSM0: Command is sent, waiting for the answer
init = ATE0+CPMS="SM","SM","SM"
baudrate = 115200
signal_quality_ber_ignore = yes
check_memory_method = 2
incoming = yes
report = yes
phonecalls = clip
smsc = 336XXXXXXXX
[*]
A use :
- ZTE F160 not simlocked (http://www.zte.com.fr/mobiles/201203/t20120308_12129.html)
- firmware updated : F160_Free V3.0 1 [Apr 19 2011 08:00:00] (http://www.zte.com.fr/mobiles/201203/t20120308_12129.html -> Support)
|
Fri Jan 17, 2014 14:28
|
Ano: With Voice feature enabled [*] and after testing all serial ports, eveything is ok :
- SMS sent -> ok
- SMS Report -> ok
- SMS Received -> ok
- Phone Calls -> ok
;)
my /etc/smsd.conf :
[GSM0]
#### HUAWEI E1752 : huawei / E1752 / 11.126.13.00.00
# device = /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0 -> Phone Calls -> NOk
# device = /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if03-port0 -> smsd.log :2014-01-17 14:50:24,7, GSM4: Command is sent, waiting for the answer
device = /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if04-port0
init = AT^CURC=0
baudrate = 115200
signal_quality_ber_ignore = yes
memory_start = 0
check_memory_method = 2
incoming = yes
phonecalls = clip
hangup_incoming_call = no
report = yes
smsc = 336XXXXXXXX
[*]
A use :
- HUAWEI E1752 from Orange, desimlocked (http://wiki.e1550.mobi/doku.php?id=preparation#how_to_unlock_huawei_modems)
- firmware updated : 11.126.03.01.314 -> 11.126.13.00.00 (http://wiki.e1550.mobi/doku.php?id=preparation#update_firmware)
- Voice feature enabled (4€ with with http://www.dc-unlocker.com/)
|