问题描述
我有一台配备 DW5560 WWAN PCIE 迷你卡的戴尔笔记本电脑,我希望在 UBUNTU 20.04.2 上使用 gammu 对其进行监控。
gammu-detect
命令显示:
[gammu]
device = /dev/ttyACM0
name = Dell DW5560
connection = at
[gammu1]
device = /dev/ttyACM1
name = Dell DW5560
connection = at
[gammu2]
device = /dev/ttyACM2
name = Dell DW5560
connection = at
[gammu3]
device = /dev/ttyS0
name = Phone on serial port 0
connection = at
...
[gammu34]
device = /dev/ttyS9
name = Phone on serial port 9
connection = at
我尝试了以下配置:
cat /root/.gammurc
[gammu]
port = /dev/ttyACM0
model =
connection = at
synchronizetime = yes
logfile = /home/user/.cache/gammu.log
logformat = textall
use_locking =
gammuloc =
[smsd]
service = files
logfile = syslog
# Increase for debugging information
debuglevel = 0
# Paths where messages are stored
inBoxpath = /var/spool/gammu/inBox/
outBoxpath = /var/spool/gammu/outBox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
我还尝试了一些 /dev/ttySX 路径和一个 /dev/cdc-wdm2 路径(此路径显示在网络管理器 cli 上),但仍然出现相同的错误。 但是服务一直显示错误:
sudo service gammu-smsd status
● gammu-smsd.service - SMS daemon for Gammu
Loaded: loaded (/etc/systemd/system/gammu-smsd.service; enabled; vendor preset: enabled)
Active: Failed (Result: exit-code) since Mon 2021-03-01 21:54:02 +01; 12min ago
Docs: man:gammu-smsd(1)
Process: 14150 ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon (code=exited,status=0/SUCCESS)
Process: 14152 ExecStopPost=/bin/rm -f /var/run/gammu-smsd.pid (code=exited,status=0/SUCCESS)
Main PID: 14151 (code=exited,status=2)
Mar 01 21:54:02 agentt-lin systemd[1]: Starting SMS daemon for Gammu...
Mar 01 21:54:02 agentt-lin gammu-smsd[14150]: Warning: No PIN code in /etc/gammu-smsdrc file
Mar 01 21:54:02 agentt-lin gammu-smsd[14151]: Created POSIX RW shared memory at 0x7f01de9ba000
Mar 01 21:54:02 agentt-lin gammu-smsd[14151]: Starting phone communication...
Mar 01 21:54:02 agentt-lin systemd[1]: Started SMS daemon for Gammu.
Mar 01 21:54:02 agentt-lin gammu-smsd[14151]: Can't open device: Error opening device. UnkNown,busy or no permissions. (DEVICEOPENERROR[2])
Mar 01 21:54:02 agentt-lin gammu-smsd[14151]: Stopping Gammu smsd: No error. (NONE[1])
Mar 01 21:54:02 agentt-lin systemd[1]: gammu-smsd.service: Main process exited,code=exited,status=2/INVALIDARGUMENT
Mar 01 21:54:02 agentt-lin systemd[1]: gammu-smsd.service: Failed with result 'exit-code'.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)