[英]Serial port - Cannot set Service center SMSC address - AT+CSCA? returns error, smsd returns initialization error
I almost spent a week trying to configure a serial port in order to be able to use it for sending SMS. 我几乎花了一个星期的时间来尝试配置串行端口,以便能够使用它发送SMS。 Let me explain my situation: I use a notebook with Ubuntu 16.04 LTS, the machine has an integrated GSM modem, the serial port is /dev/ttyACM0
, here is some wvdialconf
output: 让我解释一下我的情况:我使用带有Ubuntu 16.04 LTS的笔记本,该机器具有集成的GSM调制解调器,串行端口是/dev/ttyACM0
,这是一些wvdialconf
输出:
$ sudo wvdialconf
...
ttyACM0<*1>: Modem Identifier: ATI -- Manufacturer: SAMSUNG ELECTRONICS CORPORATION
...
ttyACM0<*1>: Max speed is 460800; that should be safe.
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2"
I have tried many different tools in order to be able to send an SMS: 我尝试了许多不同的工具以便能够发送SMS:
smstools
and smsd
, installed with apt-get install smstools
: I try to put an SMS file into /var/spool/sms/outgoing
: smstools
和smsd
,与apt-get install smstools
一起apt-get install smstools
:我尝试将SMS文件放入/var/spool/sms/outgoing
:
To: xxxxxxxxxxxx This is a test message.
the SMS file is collected from /var/spool/sms/outgoing
by the smsd
daemon, but then the daemon places it into /var/spool/sms/failed
and if I look at the file, I see: SMS文件是由smsd
守护程序从/var/spool/sms/outgoing
的,但是随后该守护程序将其放入/var/spool/sms/failed
,如果我查看该文件,我会看到:
To: xxxxxxxxxxxx Modem: GSM1 IMSI: Fail_reason: Modem initialization failed Failed: 16-07-03 17:10:03 发送至:xxxxxxxxxxxx调制解调器:GSM1 IMSI:Fail_reason:调制解调器初始化失败失败:16-07-03 17:10:03
This is a test message. 这是一条测试消息。
This is the section inside /etc/smsd.conf
for the GSM1 device: 这是内部部分/etc/smsd.conf
为GSM1设备:
[GSM1] init = "ATQ0 V1 E1 S0=0 &C1 &D2" device = /dev/ttyACM0 incoming = yes pin = xxxx baudrate = 460800 smsc = yyyyyyyyyyyy [GSM1]初始化=“ ATQ0 V1 E1 S0 = 0&C1&D2”设备= / dev / ttyACM0传入=是引脚= xxxx波特率= 460800 smsc = yyyyyyyyyyyy
I also tried to specify the init command without the "
quotes, still get the same error. I think the init command should be the one wvdialconf
outputs me (see above), so why isn't it working? 我也试过不指定init命令"
行情,仍然得到同样的错误。我觉得init命令应该是一个wvdialconf
输出我(见上文),所以为什么不工作?
Also, I tried using cu -l /dev/ttyACM0
and type raw AT commands, but I cannot set the SMSC address, cause when I type AT+CSCA?
另外,我尝试使用cu -l /dev/ttyACM0
并键入原始AT命令,但是我无法设置SMSC地址,原因是当我键入AT+CSCA?
it outputs me ERROR
: 它输出我ERROR
:
$ cu -l /dev/ttyACM0 ... AT+CSCA? $ cu -l / dev / ttyACM0 ... AT + CSCA? ERROR 错误
AT+CSCA="yyyyyyyyyyyy" ERROR AT + CSCA =“ yyyyyyyyyyy”错误
Can someone help me fix this issues I am facing? 有人可以帮我解决我面临的这个问题吗? Did you experience the same errors as I? 您是否遇到了与我相同的错误?
Thanks for the attention. 感谢您的关注。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.