首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >不能用gammu- SMS发送短消息

不能用gammu- SMS发送短消息
EN

Server Fault用户
提问于 2012-09-27 05:59:58
回答 1查看 9.9K关注 0票数 1

我试图发送短信使用gammu- SMS,但它不工作。

调制解调器:华为E1550

步骤:

代码语言:javascript
运行
复制
#vi /etc/gammu-smsdrc

port= /dev/ttyUSB0
connection = at

然后重新启动gammu-smsd:

代码语言:javascript
运行
复制
# /etc/init.d/gammu-smsd restart

短消息发送测试

代码语言:javascript
运行
复制
echo "Test message" | gammu-smsd-inject TEXT 335123456

它不发送短信。

日志

代码语言:javascript
运行
复制
Sep 27 14:19:25 Dell-Laptop gammu-smsd[10285]: Going to 30 seconds sleep because of too much connection errors
Sep 27 14:19:55 Dell-Laptop gammu-smsd[10285]: Starting phone communication...
Sep 27 14:19:55 Dell-Laptop gammu-smsd[10285]: Error at init connection: Error opening device, it doesn't exist. (DEVICENOTEXIST[4])
EN

回答 1

Server Fault用户

发布于 2012-10-18 21:16:28

确保gammu本身正在从正确的设备路径读取,并且您的用户配置文件在拨号组中。

您可能需要调整比特率以与模块通信,因此尝试使用screen /dev/ttyUSB0 115200作为示例启动直接通信,并查看哪些值最好。

工具gammu-detect也是可用的,用于用设备检测初始配置,因此man gammu-detect可以获得更多信息。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/432441

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档