Klapp212: Operating system name and version: Raspbian GNU/Linux 9 (stretch)
Version of smsd: Version 3.1.15
Smsd installed from: package repository
Name and model of a modem / phone: Huawei E3531
Interface: USB
I receive sms messages in binary format and want to process them (forward to a webserver by http-request). Unfortunately the binary data in the file in /var/spool/sms/incoming seems to have a wrong charset, so it's not possible for me to forward that data. But the hexadecimal text in the logfile is correct. Is it possible to process the user data in hexadecimal format?
|
Klapp212: Operating system name and version: Raspbian GNU/Linux 9 (stretch)
Version of smsd: Version 3.1.15
Smsd installed from: package repository
Name and model of a modem: Huawei E3531
Interface: USB
I want to receive SMS with my configuration, but the incoming folder is still empty. In the logfile I see the following entries around every 10 seconds:
2018-02-01 22:36:25,7, GSM1: -> AT
2018-02-01 22:36:25,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:25,7, GSM1: <- OK
2018-02-01 22:36:25,6, GSM1: Pre-initializing modem
2018-02-01 22:36:25,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2018-02-01 22:36:25,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:25,7, GSM1: <- OK
2018-02-01 22:36:26,7, GSM1: -> AT+CSQ
2018-02-01 22:36:26,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:26,7, GSM1: <- +CSQ: 20,99 OK
2018-02-01 22:36:26,6, GSM1: Signal Strength Indicator: (20,99) -73 dBm (Excellent), Bit Error Rate: not known or not detectable
2018-02-01 22:36:26,6, GSM1: Checking if Modem is registered to the network
2018-02-01 22:36:26,7, GSM1: -> AT+CREG?
2018-02-01 22:36:26,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:26,7, GSM1: <- +CREG: 2,1,"5291","00511062" OK ^DSFLOWRPT:000001A2,00000000,00000040,00000000000001B9,000000000000058A,00000000,00000000
2018-02-01 22:36:26,6, GSM1: Modem is registered to the network
2018-02-01 22:36:26,6, GSM1: Selecting PDU mode
2018-02-01 22:36:27,7, GSM1: -> AT+CMGF=0
2018-02-01 22:36:27,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:27,7, GSM1: <- OK
2018-02-01 22:36:27,6, GSM1: Checking memory size
2018-02-01 22:36:27,7, GSM1: -> AT+CPMS?
2018-02-01 22:36:27,7, GSM1: Command is sent, waiting for the answer
2018-02-01 22:36:27,7, GSM1: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2018-02-01 22:36:27,6, GSM1: Used memory is 0 of 20
2018-02-01 22:36:27,6, GSM1: No SMS received
2018-02-01 22:36:37,6, GSM1: Checking device for incoming SMS
2018-02-01 22:36:37,6, GSM1: Checking if modem is ready
2018-02-01 22:36:38,3, GSM1: Unexpected input: ^DSFLOWRPT:000001A4,00000000,00000000,00000000000001B9,000000000000058A,00000000,00000000 ^DSFLOWRPT:000001A6,00000000,00000000,00000000000001B9,000000000000058A,00000000,00000000 ^DSFLOWRPT:000001A8,00000000,00000000,00000000000001B9,000000000000058A,00000000,00000000 ^RSSI: 19 ^HCSQ:"WCDMA",56,46,45 ^DSFLOWRPT:000001AA,00000000,00000000,00000000000001B9,000000000000058A,00000000,00000000 ^DSFLOWRPT:000001AC,00000000,00000000,00000000000001B9,000000000000058A,00000000,00000000
2018-02-01 22:36:38,7, GSM1: -> AT
my smsd.conf:
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 7
[GSM1]
#init =
device = /dev/ttyUSB2
incoming = yes
#pin =
baudrate = 115200
Is there any configuration missing? What's about the "unexpected input" logs? Can you help me?
|