Canot使用gammu-smsd发送短信

我正在尝试使用gammu-smsd发送短信,但不起作用。

调制解调器:华为E1550

脚步:

#vi /etc/gammu-smsdrc port= /dev/ttyUSB0 connection = at 

然后重新启动gammu-smsd:

 # /etc/init.d/gammu-smsd restart 

短信发送testing

 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]) 

确保gammu本身正在读取正确的设备path,并且您的用户configuration文件位于拨出组中。

您可能需要调整比特率以与模块进行通信,因此尝试使用示例screen /dev/ttyUSB0 115200来启动直接通信,并且看看最适合的值是多less。

工具gammu-detect也可用于查找设备的初始configuration,因此man gammu-detect获取更多信息。