|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Tue Jul 01, 2025 03:09 |
Page: 1
Keywords: Mode: All keywords (AND) |
Wed Aug 17, 2016 21:50
|
chewie71: Excellent, the E353 was one I was looking at today too, but that's a better price then I've seen. Thanks!
|
Tue Aug 16, 2016 21:50
|
chewie71: Any particular USB modem recommendations?
|
Tue Aug 16, 2016 21:27
|
chewie71: I've sent new messages to that modem since I tested it on my laptop, so there should be some there.
Sending messages works fine. I can see them going out in the smsd.log and I get them on my phone. When I reply I get nothing, unless I plug the modem back into my laptop and then I can see them there.
Is my init in smsd.conf ok?
init=AT+CPMS="SM","SM","SM"
|
Tue Aug 16, 2016 20:33
|
chewie71: I plugged the modem into my laptop and configured it there. Using an app on my Mac I was able to see all the incoming messages I have sent to the modem. I can't see them on the Pi though.
Here is the device details....
2016-08-16 20:30:04,7, modem1: ## Start of device details
2016-08-16 20:30:04,7, modem1: # Manufacturer identification:
2016-08-16 20:30:05,7, modem1: -> AT+CGMI
2016-08-16 20:30:05,7, modem1: <- huawei
OK
2016-08-16 20:30:05,7, modem1: # Model identification:
2016-08-16 20:30:05,7, modem1: -> AT+CGMM
2016-08-16 20:30:05,7, modem1: <- E3131
OK
2016-08-16 20:30:05,7, modem1: # Revision identification:
2016-08-16 20:30:06,7, modem1: -> AT+CGMR
2016-08-16 20:30:06,7, modem1: <- 22.157.39.00.105
OK
2016-08-16 20:30:06,7, modem1: # New message indications, list of supported modes:
2016-08-16 20:30:06,7, modem1: -> AT+CNMI=?
2016-08-16 20:30:06,7, modem1: <- +CNMI: (0-2),(0-3),(0,2),(0-2),(0,1)
OK
2016-08-16 20:30:06,7, modem1: # New message indications, current settings:
2016-08-16 20:30:07,7, modem1: -> AT+CNMI?
2016-08-16 20:30:07,7, modem1: <- +CNMI: 2,1,2,2,0
OK
2016-08-16 20:30:07,7, modem1: # Preferred message storage, list of supported mem's:
2016-08-16 20:30:07,7, modem1: -> AT+CPMS=?
2016-08-16 20:30:07,7, modem1: <- +CPMS: ("SM","ME"),("SM","ME"),("SM","ME")
OK
2016-08-16 20:30:07,7, modem1: # Phonebook storage, available mem's:
2016-08-16 20:30:08,7, modem1: -> AT+CPBS=?
2016-08-16 20:30:08,7, modem1: <- +CPBS: ("SM","EN","ON")
OK
2016-08-16 20:30:08,7, modem1: # List messages, list of supported stat's:
2016-08-16 20:30:08,7, modem1: -> AT+CMGL=?
2016-08-16 20:30:08,7, modem1: <- +CMGL: (0-4)
OK
2016-08-16 20:30:08,7, modem1: # Delete message, list of supported values:
2016-08-16 20:30:09,7, modem1: -> AT+CMGD=?
2016-08-16 20:30:09,7, modem1: <- +CMGD: (),(0-4)
OK
2016-08-16 20:30:09,7, modem1: # Phone activity status, list of supported stat's:
2016-08-16 20:30:09,7, modem1: -> AT+CPAS=?
2016-08-16 20:30:09,7, modem1: <- +CPAS: (0-5)
OK
2016-08-16 20:30:09,7, modem1: # TE character set, list of supported charset's:
2016-08-16 20:30:10,7, modem1: -> AT+CSCS=?
2016-08-16 20:30:10,7, modem1: <- +CSCS: ("IRA","UCS2","GSM")
OK
2016-08-16 20:30:10,7, modem1: # TE character set, current setting:
2016-08-16 20:30:10,7, modem1: -> AT+CSCS?
2016-08-16 20:30:10,7, modem1: <- +CSCS: "IRA"
OK
2016-08-16 20:30:10,7, modem1: ## End of device details
|
Mon Aug 15, 2016 22:09
|
chewie71: I tried ttyUSB0 with the same results. No incoming messages.
I've tried these inits...
init=AT+CPMS="ME","ME","ME"
init=AT+CPMS="SM","SM","SM"
Both result in 0 incoming messages found.....
2016-08-15 22:05:13,6, modem1: Modem is registered to the network
2016-08-15 22:05:13,6, modem1: Selecting PDU mode
2016-08-15 22:05:13,7, modem1: -> AT+CMGF=0
2016-08-15 22:05:13,7, modem1: Command is sent, waiting for the answer
2016-08-15 22:05:13,7, modem1: <- OK
2016-08-15 22:05:13,6, modem1: Checking memory size
2016-08-15 22:05:14,7, modem1: -> AT+CPMS?
2016-08-15 22:05:14,7, modem1: Command is sent, waiting for the answer
2016-08-15 22:05:14,7, modem1: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2016-08-15 22:05:14,6, modem1: Used memory is 0 of 20
2016-08-15 22:05:14,6, modem1: No SMS received
2016-08-15 22:05:39,6, modem1: Checking if Modem is registered to the network
2016-08-15 22:05:39,7, modem1: -> AT+CREG?
2016-08-15 22:05:39,7, modem1: Command is sent, waiting for the answer
2016-08-15 22:05:40,7, modem1: <- +CREG: 2,1,"520E","D6C3" OK
2016-08-15 22:05:40,6, modem1: Modem is registered to the network
2016-08-15 22:05:40,6, modem1: Selecting PDU mode
2016-08-15 22:05:40,7, modem1: -> AT+CMGF=0
2016-08-15 22:05:40,7, modem1: Command is sent, waiting for the answer
2016-08-15 22:05:40,7, modem1: <- OK
2016-08-15 22:05:40,6, modem1: Checking memory size
2016-08-15 22:05:40,7, modem1: -> AT+CPMS?
2016-08-15 22:05:40,7, modem1: Command is sent, waiting for the answer
2016-08-15 22:05:41,7, modem1: <- +CPMS: "SM",0,30,"SM",0,30,"SM",0,30 OK
2016-08-15 22:05:41,6, modem1: Used memory is 0 of 30
2016-08-15 22:05:41,6, modem1: No SMS received
Using MT in the init instead of SM or ME just gives me a 302 error.
|
Fri Aug 12, 2016 16:12
|
chewie71: I have been able to take the E3131 and plug it into my laptop. From there I can see there are incoming SMS messages sitting on the modem. I just can't see them from the Pi.
|
Wed Jun 01, 2016 22:22
|
chewie71: Operating system name and version: Raspbian 8.0
Version of smsd: 3.1.15
Smsd installed from: package repository
Name and model of a modem / phone: Huweii E3131 Revision: 22.157.39.00.105
Interface: USB
I am attempting to setup an SMS gateway. I can send messages no problem, but I cannot receive messages.
Here's my smsd.conf...
Global configuration
# devices = modem1, modem2
devices = modem1
loglevel = 7
# logfiles
stats = /var/log/smstools/stats
logfile = /var/log/smstools/smsd.log
delaytime = 2
errorsleeptime = 10
blocktime = 180
autosplit = 3
#receive_before_send = yes
[queues]
modem1 = /var/spool/sms/modem1
# Modem name: modem1
# Modem type: Huweii E3131 USB
[modem1]
#init=AT+CPMS="SM","SM","SM"
#init=AT+CPMS="ME","ME","ME"
device = /dev/gsm1-1
baudrate = 115200
incoming = yes
report = yes
queues = modem1
decode_unicode_text = yes
cs_convert = yes
memory_start = 0
gsm1-1 is a symlink to ttyUSB2
# ls -l /dev/gsm1-1
lrwxrwxrwx 1 root root 7 Jun 1 19:51 /dev/gsm1-1 -> ttyUSB2
I've also tried ttyUSB0....
Tried AT+CPMS with "SM", "ME", and "MT"...
The smsd.log
2016-06-01 22:17:08,2, smsd: Smsd v3.1.15 started.
2016-06-01 22:17:08,2, smsd: Running as smsd:dialout.
2016-06-01 22:17:08,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.Y9yv3n /tmp/smsd_data.yOOSNt
2016-06-01 22:17:08,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2016-06-01 22:17:08,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-06-01 22:17:08,5, smsd: Outgoing file checker has started. PID: 5200.
2016-06-01 22:17:08,7, smsd: All PID's: 5200,5201
2016-06-01 22:17:08,5, modem1: Modem handler 0 has started. PID: 5201.
2016-06-01 22:17:08,5, modem1: Using check_memory_method 1: CPMS is used.
2016-06-01 22:17:08,6, modem1: Checking device for incoming SMS
2016-06-01 22:17:08,6, modem1: Checking if modem is ready
2016-06-01 22:17:08,7, modem1: -> AT
2016-06-01 22:17:08,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:09,7, modem1: <- OK
2016-06-01 22:17:09,6, modem1: Pre-initializing modem
2016-06-01 22:17:09,7, modem1: -> ATE0+CMEE=1;+CREG=2
2016-06-01 22:17:09,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:09,7, modem1: <- OK
2016-06-01 22:17:09,6, modem1: Checking if modem needs PIN
2016-06-01 22:17:09,7, modem1: -> AT+CPIN?
2016-06-01 22:17:09,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:10,7, modem1: <- +CPIN: READY OK
2016-06-01 22:17:10,7, modem1: -> AT+CSQ
2016-06-01 22:17:10,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:10,7, modem1: <- +CSQ: 8,99 OK
2016-06-01 22:17:10,6, modem1: Signal Strength Indicator: (8,99) -97 dBm (Marginal), Bit Error Rate: not known or not detectable
2016-06-01 22:17:10,6, modem1: Checking if Modem is registered to the network
2016-06-01 22:17:10,7, modem1: -> AT+CREG?
2016-06-01 22:17:10,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:11,7, modem1: <- +CREG: 2,1,"520E","D6C3" OK
2016-06-01 22:17:11,6, modem1: Modem is registered to the network
2016-06-01 22:17:11,6, modem1: Location area code: 520E, Cell ID: D6C3
2016-06-01 22:17:11,7, modem1: -> AT+CSQ
2016-06-01 22:17:11,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:11,7, modem1: <- +CSQ: 8,99 OK
2016-06-01 22:17:11,6, modem1: Signal Strength Indicator: (8,99) -97 dBm (Marginal), Bit Error Rate: not known or not detectable
2016-06-01 22:17:11,6, modem1: Selecting PDU mode
2016-06-01 22:17:11,7, modem1: -> AT+CMGF=0
2016-06-01 22:17:11,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:12,7, modem1: <- OK
2016-06-01 22:17:12,7, modem1: -> AT+CIMI
2016-06-01 22:17:12,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:12,7, modem1: <- 31041088XXXXXXX OK
2016-06-01 22:17:12,7, modem1: -> AT+CGSN
2016-06-01 22:17:12,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:13,7, modem1: <- 86671501XXXXXXX OK
2016-06-01 22:17:13,5, modem1: CGSN: 86671501XXXXXXX
2016-06-01 22:17:13,5, modem1: IMSI: 31041088XXXXXXX
2016-06-01 22:17:13,6, modem1: Checking if reading of messages is supported
2016-06-01 22:17:13,7, modem1: -> AT+CPMS?
2016-06-01 22:17:13,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:13,7, modem1: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2016-06-01 22:17:13,6, modem1: Checking memory size
2016-06-01 22:17:14,7, modem1: -> AT+CPMS?
2016-06-01 22:17:14,7, modem1: Command is sent, waiting for the answer
2016-06-01 22:17:14,7, modem1: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2016-06-01 22:17:14,6, modem1: Used memory is 0 of 20
2016-06-01 22:17:14,6, modem1: No SMS received
I had some initial trouble with it until I setup usb_modeswitch. Here is my usb_modeswitch.conf...
DisableSwitching=0
DisableMBIMGlobal=0
EnableLogging=1
And the modeswitch settings that work....
cat /etc/usb_modeswitch.d/12d1\:1f01
# Huawei E353 (3.se) and others
TargetVendor=0x12d1
TargetProductList=0x1001
MessageContent="55534243123456780000000000000011063000000100010000000000000000"
NoDriverLoading=0
Hoping I've just got something misconfigured here and someone can point me in the right direction.
Thanks
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|