SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Thu Mar 13, 2025 17:57
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
str34m: Thank you! Working perfectly now!
str34m: Operating system name and version: FreeBSD 11 Version of smsd: 3.1.21 Smsd installed from: sources / package repository / from elsewhere... - ports Name and model of a modem / phone: Huawei Interface: serial / USB / some adapter... - USB Hi! Trying to send sms with Russian. Got this in log: 2017-05-16 17:21:13,3, huawei: ! Text: From [79169029002] - Тест 2017-05-16 17:21:13,3, huawei: ! To: 79169029002 2017-05-16 17:21:19,5, smsd: SMS To: 79169029002. Moved file /var/spool/sms/outgoing/send_NwMbRj to /var/spool/sms/checked/rmhoYR 2017-05-16 17:21:19,5, huawei: Cannot convert 22. character (D0A2)Т to GSM. 2017-05-16 17:21:19,5, huawei: Cannot convert 23. character (D0B5)е to GSM. 2017-05-16 17:21:19,5, huawei: Cannot convert 24. character (D181)с to GSM. 2017-05-16 17:21:19,5, huawei: Cannot convert 25. character (D182)т to GSM. Converter script in smsd.conf turned off. Could you help, what's wrong?
str34m: Hi! Thank you! Going to try tonight.
str34m: thank you very much for your help!
str34m: Let's say - the same) 2017-04-28 23:49:29,5, huawei: CMD: AT+CUSD=1,"AA180C3602": OK +CREG: 1,"02C6","00000689" +CUSD: 0,"04110430043B0430043D04410 03A003100300035002C003500320440002C041B0438043C04380442003A0030002C0030003104400020",72
str34m: And put the answer into the log? I see nothing... Will show you the output later.
str34m: No, this setting makes nothing for me. I meant, that maybe it's possible to repeat your code from PDU converter online http://smstools3.kekekasvi.com/topic.php?id=288
str34m: Hmmm.... Maybe I can get UCS to HEX conversion for each 0x hex byte in my sequence? Let's say, reinterprete your algo on PDU converter)
str34m: By the way - your converter http://smstools3.kekekasvi.com/topic.php?id=288 works great. I use USSD Entry/Display UCS2 encoding, pressing convert and recieve USSD/User Data without length information Alphabet: UCS2 Баланс:146,82р,Лимит:0,01р Length: 27 with iconv -f UCS-2 -t UTF-8 i got some arabic symbols)
str34m: Hi! It returns UCS encoded string. Is it possible to decode in code? OK +CREG: 1,"02C6","00000689" +CUSD: 0,"04110430043B0430043 D0441003A003100340036002C003800320440002C041B0438043C04380442003A0030002C0030003104400020",72 // $ø
str34m: Worked like a charm, thank you!
str34m: Thank you! Going to try. That was not obvious for me
str34m: Operating system name and version - FreeBSD 11: Version of smsd - 3.1.20: Smsd installed from: sources / package repository / from elsewhere... - sources Name and model of a modem / phone - Huawei: Interface: serial / USB / some adapter... - USB Hi! How I can send USSD command in text? I know only this sequence - *100# Thank you in advance!
str34m: For information - eventhandler just invokes /usr/local/bin/sendsms 7916******* "Вот такой вопрос" That's it, there is no any conversion in eventhandler. I tracked code in /usr/local/bin/sendsms to iconv and it seems to fail somewhere in $TEXT convert.
str34m: Hi! Me again. Installed smstools 3.1.20 System - FreeBSD 11, RPi 1. Sending sms in cyrillic (Russian). Fails in sendsms script, as I can understand. I think, that it should use UCS-2BE instead of UCS for Russina SMS HEre is the log 2017-04-26 12:24:13,3, huawei: Unexpected input: ^RSSI:23 ^HCSQ:"LTE",54,47,141,20 2017-04-26 12:24:24,3, huawei: Unexpected input: ^RSSI:23 ^HCSQ:"LTE",54,50,131,26 2017-04-26 12:24:26,3, huawei: Exec: eventhandler said something: 2017-04-26 12:24:26,3, huawei: ! -- 2017-04-26 12:24:26,3, huawei: ! Text: Вот какой вопрос 2017-04-26 12:24:26,3, huawei: ! To: 79169029002 2017-04-26 12:24:26,3, huawei: Exec: eventhandler encountered errors: 2017-04-26 12:24:26,3, huawei: ! iconv: iconv(): Illegal byte sequence 2017-04-26 12:24:36,3, huawei: Unexpected input: ^RSSI:21 ^HCSQ:"LTE",51,46,111,24 2017-04-26 12:24:47,3, huawei: Unexpected input: ^RSSI:20 ^HCSQ:"LTE",49,43,126,22
str34m: Yes, that works! Glad to help you)
str34m: Hi! I use Raspberry PI with FreeBSD 11 built in crochet. My modem is huawei DefaultVendor=0x12d1 DefaultProduct=0x151a I will try to compile SMS tools from sources, because I used precompiled version, obtained from pkg install smstools Will keep you in touch.
str34m: Sent you a mail. Thank you!
str34m: Hi! System is FreeBSD 11, smstools installed from "pkg" (pkg install smstools) smsd version - Version 3.1.19 send sms with command sendsms 7916******2 "Hello, world" && tail -f /var/log/smsd.log here is the log Text: Hello, world To: 79169029002 2017-04-23 23:49:24,6, huawei: Changing SMSC 2017-04-23 23:49:24,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 23:49:24,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:25,7, huawei: <- OK 2017-04-23 23:49:25,6, huawei: Checking memory size 2017-04-23 23:49:25,7, huawei: -> AT+CPMS? 2017-04-23 23:49:25,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:25,7, huawei: <- +CPMS: "SM",0,5,"SM",0,5,"SM",0,5 OK 2017-04-23 23:49:25,6, huawei: Used memory is 0 of 5 2017-04-23 23:49:25,6, huawei: No SMS received 2017-04-23 23:49:35,6, huawei: Checking device for incoming SMS 2017-04-23 23:49:35,6, huawei: Checking if modem is ready 2017-04-23 23:49:35,7, huawei: -> AT 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:35,7, huawei: <- OK 2017-04-23 23:49:35,6, huawei: Pre-initializing modem 2017-04-23 23:49:35,7, huawei: -> ATE0;+CMEE=1;+CREG=2 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:35,7, huawei: <- OK 2017-04-23 23:49:35,6, huawei: Initializing modem 2017-04-23 23:49:35,7, huawei: -> AT+CPMS="SM";+CNMI=2,0,0,2,1 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:35,7, huawei: <- +CPMS: 0,5,0,5,0,5 OK 2017-04-23 23:49:35,7, huawei: -> AT+CSQ 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:35,7, huawei: <- +CSQ: 21,99 OK 2017-04-23 23:49:35,6, huawei: Signal Strength Indicator: (21,99) -71 dBm (Excellent) 2017-04-23 23:49:35,6, huawei: Selecting PDU mode 2017-04-23 23:49:35,7, huawei: -> AT+CMGF=0 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:35,7, huawei: <- OK 2017-04-23 23:49:35,6, huawei: Changing SMSC 2017-04-23 23:49:35,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:35,7, huawei: <- OK 2017-04-23 23:49:35,6, huawei: Checking memory size 2017-04-23 23:49:35,7, huawei: -> AT+CPMS? 2017-04-23 23:49:35,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:36,7, huawei: <- +CPMS: "SM",0,5,"SM",0,5,"SM",0,5 OK 2017-04-23 23:49:36,6, huawei: Used memory is 0 of 5 2017-04-23 23:49:36,6, huawei: No SMS received 2017-04-23 23:49:39,7, smsd: Running checkhandler: /usr/local/etc/sms_converter.sh /var/spool/sms/outgoing/send_ynpgFR 2017-04-23 23:49:39,7, smsd: Done: checkhandler, execution time 0 sec., status: 0 (0) 2017-04-23 23:49:39,5, smsd: SMS To: 79169029002. Moved file /var/spool/sms/outgoing/send_ynpgFR to /var/spool/sms/checked/Qm5uiZ 2017-04-23 23:49:46,6, huawei: I have to send 1 short message for /var/spool/sms/checked/Qm5uiZ 2017-04-23 23:49:46,6, huawei: Checking device for incoming SMS 2017-04-23 23:49:46,6, huawei: Checking if modem is ready 2017-04-23 23:49:46,7, huawei: -> AT 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:46,7, huawei: <- OK 2017-04-23 23:49:46,6, huawei: Pre-initializing modem 2017-04-23 23:49:46,7, huawei: -> ATE0;+CMEE=1;+CREG=2 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:46,7, huawei: <- OK 2017-04-23 23:49:46,6, huawei: Initializing modem 2017-04-23 23:49:46,7, huawei: -> AT+CPMS="SM";+CNMI=2,0,0,2,1 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:46,7, huawei: <- +CPMS: 0,5,0,5,0,5 OK 2017-04-23 23:49:46,7, huawei: -> AT+CSQ 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:46,7, huawei: <- +CSQ: 22,99 OK 2017-04-23 23:49:46,6, huawei: Signal Strength Indicator: (22,99) -69 dBm (Excellent) 2017-04-23 23:49:46,6, huawei: Selecting PDU mode 2017-04-23 23:49:46,7, huawei: -> AT+CMGF=0 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:46,7, huawei: <- OK 2017-04-23 23:49:46,6, huawei: Changing SMSC 2017-04-23 23:49:46,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:46,7, huawei: <- OK 2017-04-23 23:49:46,6, huawei: Checking memory size 2017-04-23 23:49:46,7, huawei: -> AT+CPMS? 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:46,7, huawei: <- +CPMS: "SM",0,5,"SM",0,5,"SM",0,5 OK 2017-04-23 23:49:46,6, huawei: Used memory is 0 of 5 2017-04-23 23:49:46,6, huawei: No SMS received 2017-04-23 23:49:46,6, huawei: Sending SMS from to 79169029002 2017-04-23 23:49:46,6, huawei: Checking if modem is ready 2017-04-23 23:49:46,7, huawei: -> AT 2017-04-23 23:49:46,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:46,7, huawei: <- OK 2017-04-23 23:49:46,6, huawei: Pre-initializing modem 2017-04-23 23:49:47,7, huawei: -> ATE0;+CMEE=1;+CREG=2 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:47,7, huawei: <- OK 2017-04-23 23:49:47,6, huawei: Initializing modem 2017-04-23 23:49:47,7, huawei: -> AT+CPMS="SM";+CNMI=2,0,0,2,1 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:47,7, huawei: <- +CPMS: 0,5,0,5,0,5 OK 2017-04-23 23:49:47,7, huawei: -> AT+CSQ 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:47,7, huawei: <- +CSQ: 23,99 OK 2017-04-23 23:49:47,6, huawei: Signal Strength Indicator: (23,99) -67 dBm (Excellent) 2017-04-23 23:49:47,6, huawei: Selecting PDU mode 2017-04-23 23:49:47,7, huawei: -> AT+CMGF=0 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:47,7, huawei: <- OK 2017-04-23 23:49:47,6, huawei: Changing SMSC 2017-04-23 23:49:47,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 23:49:47,7, huawei: <- OK 2017-04-23 23:49:47,7, huawei: -> AT+CMGS=25 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 23:49:47,7, huawei: <- > 2017-04-23 23:49:47,7, huawei: -> 0011000B919761099200F20000FF0CC8329BFD6681EE6F399B0C 2017-04-23 23:49:47,7, huawei: Command is sent, waiting for the answer. (60) 2017-04-23 23:49:48,7, huawei: <- +CMGS: 131 OK 2017-04-23 23:49:56,2, smsd: Modem handler 0 (huawei) terminated while mainprocess is still running. Killed by signal 11. ^C I have core dumped smsd.core. May send you.
str34m: Hi! Here is my config for Huawei modem devices = huawei incoming=/var/spool/sms/incoming outgoing=/var/spool/sms/outgoing checked=/var/spool/sms/checked sent=/var/spool/sms/sent logfile = /var/log/smsd.log loglevel = 7 eventhandler = /usr/local/etc/sms_recieved.sh checkhandler = /usr/local/etc/sms_converter.sh incoming_utf8 = yes internal_combine = yes smart_logging = yes stats = /var/spool/sms/stats/ stats_interval = 5 #status_include_uptime = yes decode_unicode_text = yes user = root group = wheel receive_before_send = yes keep_filename = no [huawei] device = /dev/ttyU0.1 init = AT+CPMS="SM";+CNMI=2,0,0,2,1 incoming = yes outgoing = yes signal_quality_ber_ignore = yes check_network = no report_device_details = yes regular_run_cmdfile = /var/spool/sms/regular_cmd.run regular_run_interval = 15 regular_run_logfile = /var/log/smsd_cmd_report.log smsc = 79168999100 routed_status_report_cnma = no cs_convert = yes memory_start = 0 report_device_details = no detect_message_routing = no using_routed_status_report = no voicecall_hangup_ath = yes hangup_incoming_call = yes voicecall_ignore_modem_response = yes Recieving SMS fine, but when trying to send - message sent, but smsd crushes. Here is the log records 2017-04-23 19:22:41,6, huawei: Selecting PDU mode 2017-04-23 19:22:42,7, huawei: -> AT+CMGF=0 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- OK 2017-04-23 19:22:42,6, huawei: Changing SMSC 2017-04-23 19:22:42,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- OK 2017-04-23 19:22:42,7, huawei: -> AT+CGSN 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- 866119020513256 OK 2017-04-23 19:22:42,5, huawei: IMEI: 866119020513256 2017-04-23 19:22:42,7, huawei: -> AT+CIMI 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- 250016119277064 OK 2017-04-23 19:22:42,5, huawei: IMSI: 250016119277064 2017-04-23 19:22:42,6, huawei: Checking if reading of messages is supported 2017-04-23 19:22:42,7, huawei: -> AT+CPMS? 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- +CPMS: "SM",0,5,"SM",0,5,"SM",0,5 OK 2017-04-23 19:22:42,6, huawei: Checking memory size 2017-04-23 19:22:42,7, huawei: -> AT+CPMS? 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- +CPMS: "SM",0,5,"SM",0,5,"SM",0,5 OK 2017-04-23 19:22:42,6, huawei: Used memory is 0 of 5 2017-04-23 19:22:42,6, huawei: No SMS received 2017-04-23 19:22:42,6, huawei: Sending SMS from to 79169029002 2017-04-23 19:22:42,6, huawei: Checking if modem is ready 2017-04-23 19:22:42,7, huawei: -> AT 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:42,7, huawei: <- OK 2017-04-23 19:22:42,6, huawei: Pre-initializing modem 2017-04-23 19:22:42,7, huawei: -> ATE0;+CMEE=1;+CREG=2 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 19:22:42,7, huawei: <- OK 2017-04-23 19:22:42,6, huawei: Initializing modem 2017-04-23 19:22:42,7, huawei: -> AT+CPMS="SM";+CNMI=2,0,0,2,1 2017-04-23 19:22:42,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 19:22:43,7, huawei: <- +CPMS: 0,5,0,5,0,5 OK 2017-04-23 19:22:43,7, huawei: -> AT+CSQ 2017-04-23 19:22:43,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 19:22:43,7, huawei: <- +CSQ: 24,99 OK 2017-04-23 19:22:43,6, huawei: Signal Strength Indicator: (24,99) -65 dBm (Excellent) 2017-04-23 19:22:43,6, huawei: Selecting PDU mode 2017-04-23 19:22:43,7, huawei: -> AT+CMGF=0 2017-04-23 19:22:43,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:43,7, huawei: <- OK 2017-04-23 19:22:43,6, huawei: Changing SMSC 2017-04-23 19:22:43,7, huawei: -> AT+CSCA="+79168999100" 2017-04-23 19:22:43,7, huawei: Command is sent, waiting for the answer. (5) 2017-04-23 19:22:43,7, huawei: <- OK 2017-04-23 19:22:43,7, huawei: -> AT+CMGS=34 2017-04-23 19:22:43,7, huawei: Command is sent, waiting for the answer. (10) 2017-04-23 19:22:43,7, huawei: <- > 2017-04-23 19:22:43,7, huawei: -> 0011000B919761099200F20008FF140022041F0440043E043204350440043A04300022 2017-04-23 19:22:43,7, huawei: Command is sent, waiting for the answer. (60) 2017-04-23 19:22:43,7, huawei: <- +CMGS: 129 OK 2017-04-23 19:22:52,2, smsd: Modem handler 0 (huawei) terminated while mainprocess is still running. Killed by signal 11. ^C

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.