Libify: Operating system name and version: Raspberry Pi
Version of smsd: v3.1.14
Smsd installed from: package repository
Name and model of a modem / phone: WMP100 in own build device
Interface: MCP2200 USB Serial Port Emulator
Hi Guys,
I know this question has been here before and I know, that it has been answered. But none of the solutions solve my problem :(
I keep getting the "MODEM IS NOT REGISTERED" error. But the modem responses to AT+CREG with "+CREG: 2,1,"4460","4E6C" - which seems to be OK.
Also sending SMS via AT command is working.
In the config are the "init = xxx" I already tried, but don't work.
# /etc/smsd.conf
# Description: Main configuration file for the smsd
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
receive_before_send = no
autosplit = 3
[GSM1]
#init = AT+CNMI=0,0,0,0,0
#init = ATZ
#init = AT+CNMI=2,1,2,0,0
init = AT+CMEE=1
init2 = AT+CPMS="SM"
device = /dev/ttyACM0
incoming = yes
baudrate = 115200
Here is the logfile:
2013-06-25 13:17:15,2, smsd: Smsd v3.1.14 started.
2013-06-25 13:17:15,2, smsd: Running as smsd:dialout.
2013-06-25 13:17:15,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.gd4oIU /tmp/smsd_data.0PfDLO
2013-06-25 13:17:15,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2013-06-25 13:17:15,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2013-06-25 13:17:15,5, smsd: Outgoing file checker has started. PID: 2764.
2013-06-25 13:17:15,7, smsd: All PID's: 2764,2765
2013-06-25 13:17:15,5, GSM1: Modem handler 0 has started. PID: 2765.
2013-06-25 13:17:15,5, GSM1: Using check_memory_method 1: CPMS is used.
2013-06-25 13:17:15,6, GSM1: Checking device for incoming SMS
2013-06-25 13:17:15,6, GSM1: Checking if modem is ready
2013-06-25 13:17:15,7, GSM1: -> AT
2013-06-25 13:17:15,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:15,7, GSM1: <- ªè OK `
2013-06-25 13:17:15,6, GSM1: Pre-initializing modem
2013-06-25 13:17:15,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2013-06-25 13:17:15,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:16,7, GSM1: <- ªè OK `ªè +CREG: 1,"4460","4E6C" Q
2013-06-25 13:17:16,6, GSM1: Checking if modem needs PIN
2013-06-25 13:17:16,7, GSM1: -> AT+CPIN?
2013-06-25 13:17:16,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:16,7, GSM1: <- ªè +CPIN: READY ô
2013-06-25 13:17:16,6, GSM1: Initializing modem
2013-06-25 13:17:16,7, GSM1: -> AT+CMEE=1
2013-06-25 13:17:16,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:17,7, GSM1: <- ªè OK `
2013-06-25 13:17:17,7, GSM1: -> AT+CPMS="SM"
2013-06-25 13:17:17,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:17,7, GSM1: <- ªè +CPMS: 0,20,0,20,0,20 #ªè OK `
2013-06-25 13:17:17,7, GSM1: -> AT+CSQ
2013-06-25 13:17:17,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:18,7, GSM1: <- ªè +CSQ: 28,0 ªè OK `
2013-06-25 13:17:18,6, GSM1: Signal Strength Indicator: (28,0) -57 dBm (Excellent), Bit Error Rate: less than 0.2 %
2013-06-25 13:17:18,6, GSM1: Checking if Modem is registered to the network
2013-06-25 13:17:18,7, GSM1: -> AT+CREG?
2013-06-25 13:17:18,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:18,7, GSM1: <- ªè +CREG: 2,1,"4460","4E6C" ±ªè OK `
2013-06-25 13:17:18,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME
2013-06-25 13:17:19,7, GSM1: -> AT+CSQ
2013-06-25 13:17:19,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:20,7, GSM1: <- ªè +CSQ: 28,0 ªè OK `
2013-06-25 13:17:20,5, GSM1: Signal Strength Indicator: (28,0) -57 dBm (Excellent), Bit Error Rate: less than 0.2 %
2013-06-25 13:17:20,7, GSM1: -> AT+CREG?
2013-06-25 13:17:20,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:20,7, GSM1: <- ªè +CREG: 2,1,"4460","4E6C" ±ªè OK `
2013-06-25 13:17:20,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 2. TIME
2013-06-25 13:17:21,7, GSM1: -> AT+CSQ
2013-06-25 13:17:21,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:22,7, GSM1: <- ªè +CSQ: 29,0 ªè OK `
2013-06-25 13:17:22,5, GSM1: Signal Strength Indicator: (29,0) -55 dBm (Excellent), Bit Error Rate: less than 0.2 %
2013-06-25 13:17:22,7, GSM1: -> AT+CREG?
2013-06-25 13:17:22,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:22,7, GSM1: <- ªè +CREG: 2,1,"4460","4E6C" ±ªè OK `
2013-06-25 13:17:22,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 3. TIME
2013-06-25 13:17:23,7, GSM1: -> AT+CSQ
2013-06-25 13:17:23,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:24,7, GSM1: <- ªè +CSQ: 29,0 ªè OK `
2013-06-25 13:17:24,5, GSM1: Signal Strength Indicator: (29,0) -55 dBm (Excellent), Bit Error Rate: less than 0.2 %
2013-06-25 13:17:24,7, GSM1: -> AT+CREG?
2013-06-25 13:17:24,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:24,7, GSM1: <- ªè +CREG: 2,1,"4460","4E6C" ±ªè OK `
2013-06-25 13:17:24,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 4. TIME
2013-06-25 13:17:25,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 2764.
2013-06-25 13:17:25,7, GSM1: -> AT+CSQ
2013-06-25 13:17:25,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:25,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2013-06-25 13:17:25,7, GSM1: <-
2013-06-25 13:17:25,3, GSM1: Unexpected input: ªè +CSQ: 29,0
2013-06-25 13:17:25,7, GSM1: -> AT+CREG?
2013-06-25 13:17:25,7, GSM1: Command is sent, waiting for the answer
2013-06-25 13:17:25,7, GSM1: put_command expected (\+CREG:.*OK)|(ERROR), timeout occurred. 2.
2013-06-25 13:17:25,7, GSM1: <-
2013-06-25 13:17:25,3, GSM1: Error: Unexpected answer from Modem after +CREG?, waiting 1 sec. before retrying
2013-06-25 13:17:25,2, GSM1: Modem handler 0 terminated. PID: 2765, was started 13-06-25 13:17:15.
2013-06-25 13:17:25,2, smsd: Smsd mainprocess terminated. PID 2764, was started 13-06-25 13:17:15.
Actually... as I now see the logfile pasted here, there are ascii letters or encoding errors. Can this be the problem?
If smsd is somehow parsing the string, it would be obvious...
|