Firefly开源社区

打印 上一主题 下一主题

[Linux] 如何使用RK3328-PC和EC20 CE FHLG 4G模块上网

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8

如何使用RK3328-PC和EC20 CE FHLG 4G模块上网

发表于 2024-1-12 11:59:56      浏览:2253 | 回复:4        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
在使用EC20 CE FHLG 4G模块时, 由于该模块Linux免驱, 没有进行额外操作, 但是在配置好联通物联网卡的ANP之后, 一张连不上网


使用
cat /var/log/syslog | grep NetworkManager
查看日志
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.5250] device (usb0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed')
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.5259] manager: NetworkManager state is now DISCONNECTING
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.6780] modem["ttyUSB2"]: modem state changed, 'disabled' --> 'enabling' (reason: user preference)
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.6817] manager: (ttyUSB2): new Broadband device (/org/freedesktop/NetworkManager/Devices/7)
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.6829] device (ttyUSB2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.6839] device (ttyUSB2): modem state 'enabling'
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.6887] device (usb0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed')
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.7006] dhcp4 (usb0): canceled DHCP transaction, DHCP client pid 1086
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.7007] dhcp4 (usb0): state changed bound -> done
Jan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.7067] manager: NetworkManager state is now DISCONNECTEDJan 12 02:30:48 firefly NetworkManager[588]: <info>  [1705026648.7088] device (ttyUSB2): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Jan 12 02:30:48 firefly dbus-daemon[519]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=588 comm="/usr/sbin/NetworkManager --no-daemon ")
Jan 12 02:30:49 firefly NetworkManager[588]: <info>  [1705026649.3144] modem["ttyUSB2"]: modem state changed, 'enabling' --> 'enabled' (reason: user-requested)
Jan 12 02:30:49 firefly NetworkManager[588]: <info>  [1705026649.3890] modem["ttyUSB2"]: modem state changed, 'enabled' --> 'registered' (reason: unknown)
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.0962] device (ttyUSB2): Activation: starting connection 'China Unicom Default 1' (29679bda-c354-4c38-9790-e86b28375229)
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.0968] audit: op="connection-activate" uuid="29679bda-c354-4c38-9790-e86b28375229" name="China Unicom Default 1" pid=811 uid=1000 result="success"
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.0980] device (ttyUSB2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.0990] manager: NetworkManager state is now CONNECTING
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1200] modem["ttyUSB2"]: modem state changed, 'registered' --> 'connecting' (reason: user-requested)
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1629] modem["ttyUSB2"]: modem state changed, 'connecting' --> 'connected' (reason: user-requested)
Jan 12 02:30:51 firefly NetworkManager[588]: <warn>  [1705026651.1752] device (ttyUSB2): ip-ifname: set ifname 'ttyUSB2', unknown ifindex
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1760] device (ttyUSB2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1777] device (ttyUSB2): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jan 12 02:30:51 firefly NetworkManager[588]: <warn>  [1705026651.1783] device (ttyUSB2): interface ttyUSB2 not up for IP configuration
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1784] modem["ttyUSB2"]: using modem-specified IP timeout: 20 seconds
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1810] loaded PPP plugin /usr/lib/aarch64-linux-gnu/NetworkManager/libnm-ppp-plugin.so
Jan 12 02:30:51 firefly NetworkManager[588]: <error> [1705026651.1897] modprobe: '/sbin/modprobe ppp_generic' exited with error 256 (modprobe: FATAL: Module ppp_generic not found in directory /lib/modules/4.4.194+)
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1908] ppp-manager: starting PPP connection
Jan 12 02:30:51 firefly NetworkManager[588]: <info>  [1705026651.1981] ppp-manager: pppd started with pid 1207
Jan 12 02:30:51 firefly NetworkManager[588]: Plugin /usr/lib/pppd/2.4.7/nm-pppd-plugin.so loaded.
Jan 12 02:30:51 firefly NetworkManager[588]: Couldn't open the /dev/ppp device: No such file or directory
Jan 12 02:30:51 firefly NetworkManager[588]: /usr/sbin/pppd: You need to create the /dev/ppp device node by
Jan 12 02:30:51 firefly NetworkManager[588]: executing the following command as root:
Jan 12 02:30:51 firefly NetworkManager[588]: #011mknod /dev/ppp c 108 0
Jan 12 02:30:51 firefly NetworkManager[588]: <warn>  [1705026651.2418] ppp-manager: pppd pid 1207 exited with error 4: No ppp module error
Jan 12 02:31:21 firefly NetworkManager[588]: <info>  [1705026681.8461] modem["ttyUSB2"]: modem state changed, 'connected' --> 'registered' (reason: user-requested)
Jan 12 02:31:21 firefly NetworkManager[588]: <info>  [1705026681.8464] device (ttyUSB2): state change: ip-config -> failed (reason 'modem-no-carrier', sys-iface-state: 'managed')
Jan 12 02:31:21 firefly NetworkManager[588]: <info>  [1705026681.8486] manager: NetworkManager state is now DISCONNECTEDJan 12 02:31:21 firefly NetworkManager[588]: <warn>  [1705026681.8611] device (ttyUSB2): Activation: failed for connection 'China Unicom Default 1'
Jan 12 02:31:21 firefly NetworkManager[588]: <info>  [1705026681.8709] device (ttyUSB2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

network_manager_logs.txt

39 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

32

积分

0

威望

0

贡献

技术小白

积分
32
发表于 2024-1-12 14:45:35        只看该作者  沙发
没有模组输出的结果,判断不了原因。最好用minicom或者sscom之类的串口工具先试一下,调试好了之后设置成自动拨号模式,下位机去做dhcp获取IP就行了
回复

使用道具 举报

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
发表于 2024-1-12 15:16:32        只看该作者  板凳
Lihokfung 发表于 2024-1-12 14:45
没有模组输出的结果,判断不了原因。最好用minicom或者sscom之类的串口工具先试一下,调试好了之后设置成自 ...

你好, 能具体说一下如何操作吗, 比如如何获取模组输出, 或者如何使用串口工具测试吗, 给个参考链接就行, 感激不尽(这方面真没啥经验)
回复

使用道具 举报

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
发表于 2024-1-12 16:18:43        只看该作者  地板
我把log放到gpt里, 它说可能是:
与 ppp 模块相关。在你的系统上,ppp 模块似乎没有正确安装或加载。以下是一些步骤,你可以尝试解决这个问题:
(之后它让我重新安装ppp模块)

我使用: sudo apt-get install ppp 系统显示ppp已经是最新的版本
但是sudo modprobe ppp_generic 的时候会报错modprobe: FATAL: Module ppp_generic not found in directory /lib/modules/4.4.194+的错误
回复

使用道具 举报

32

积分

0

威望

0

贡献

技术小白

积分
32
发表于 2024-1-15 10:23:59        只看该作者  5#
sgarifool 发表于 2024-1-12 15:16
你好, 能具体说一下如何操作吗, 比如如何获取模组输出, 或者如何使用串口工具测试吗, 给个参考链接就行,  ...

先执行ls /dev/ttyUSB*看看能不能识别到端口,如果可以的话就用echo、minicom进行调试;不行的话看一下lsusb或者usb-serial里面能不能识别到,还有一个是PIDVID的添加。我没有仔细看log,但log打印的应该是全局内容,不一定与模组相关,你也可以更新一下apt的源再进行apt-get update、grade
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表