我试图发送短信使用gammu- SMS,但它不工作。
调制解调器:华为E1550
#vi /etc/gammu-smsdrc
port= /dev/ttyUSB0
connection = at
然后重新启动gammu-smsd:
# /etc/init.d/gammu-smsd restart
短消息发送测试
echo "Test message" | gammu-smsd-inject TEXT 335123456
它不发送短信。
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])
发布于 2012-10-18 21:16:28
确保gammu本身正在从正确的设备路径读取,并且您的用户配置文件在拨号组中。
您可能需要调整比特率以与模块通信,因此尝试使用screen /dev/ttyUSB0 115200
作为示例启动直接通信,并查看哪些值最好。
工具gammu-detect
也是可用的,用于用设备检测初始配置,因此man gammu-detect
可以获得更多信息。
https://serverfault.com/questions/432441
复制相似问题