微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

戴尔 dw5560 WWAN PCIE 迷你卡和 GAMMU

如何解决戴尔 dw5560 WWAN PCIE 迷你卡和 GAMMU

我有一台配备 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 举报,一经查实,本站将立刻删除。