首页 >> 中医美容

亚拉ST MYD-YA15XC-T 开发板开发笔记——网络管理

发布时间:2025年09月06日 12:17

usb0 gadget no-carrier configured

5 links listed. lo 本地回环 未在 systemd 上管理工作

eth0 GPRS 早就在 systemd 上管理工作

wlan0 wifi 未在 systemd 上管理工作

特别注意:如果是开发铁板是 STM32MP151 系列显示卡则未 can 互联网易。

5.2 检查 xx-xxx.network

Systemd-networkd 的装置写法为 xx-xxxx.network。 必须以 network 结尾,以前

面遍历可能会以编者顺序分派。 可以将装置内置文件摆放这几个目录 /etc/systemd/network/ ,

/run/systemd/network/ , /lib/systemd/network/. 服务器端为 /etc/> /run/> /lib/ 。在 5.1 中的已

经知道GPRS被管理工作,这里直邻从它的内置文件正因如此。 改建文件

/lib/systemd/network/50-wired.network

[Match]

Name=eth*

[Network]

DHCP=ipv4

[DHCP]

RouteMetric=15

CriticalConnection=true

Name=eth* 所有 eth 开头装置协同工作下面方案

 HDCP=ipv4 基本功能赚取 IP

 RouteMetric 扑筹码 15

扑筹码 ip route 可以特别注意到如下接收者:

root@myir:/etc/ppp/peers# ip route

default via 192.168.30.1 dev eth0 proto dhcp src 192.168.30.103 metric 15

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2 linkdown

192.168.30.0/24 dev eth0 proto kernel scope link src 192.168.30.103

192.168.30.1 dev eth0 proto dhcp scope link src 192.168.30.103 metric 15

Metric 15 交换机扑筹码 15

注:扑筹码并能反映扑点的数量、方向上的速度、方向上通用性、方向上吞吐量以及管理工作属性,

Metric 的倍数越小,服务器端越少。

5.3 触发 wifi 并检查互联网易现像

1) 使用 wpa_supplicant 号令直达 wifi。

root@myir:~# ifconfig wlan0 up

root@myir:~# wpa_passphrase SSID passwd>> /etc/wpa_supplicant.conf

root@myir:/# wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf

Successfully initialized wpa_supplicant

root@myir:/# ls[ 8972.189374] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link b

ecomes ready

root@myir:/# udhcpc -i wlan0

udhcpc: started, v1.31.1

udhcpc: sending discover

udhcpc: sending discover

udhcpc: sending select for 192.168.43.185

udhcpc: lease of 192.168.43.185 obtained, lease time 3600

/etc/udhcpc.d/50default: Adding DNS 192.168.43.1

2) 查阅 ip address 上述情况

root@myir:/# ip address

1: lo: mtu 65536 qdisc noqueue state UNKNOWN gr

oup default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: can0: mtu 16 qdisc noop state DOWN group default qlen 10

link/can

3: eth0: mtu 1500 qdisc mq state UP g

roup default qlen 1000

link/ether e2:2d:77:f3:19:23 brd ff:ff:ff:ff:ff:ff

inet 192.168.30.102/24 brd 192.168.30.255 scope global dynamic eth0

valid_lft 7194sec preferred_lft 7194sec

inet6 fe80::e02d:77ff:fef3:1923/64 scope link

valid_lft forever preferred_lft forever

4: wlan0: mtu 1500 qdisc fq_codel stat

e UP group default qlen 1000

link/ether b0:02:47:59:f5:e5 brd ff:ff:ff:ff:ff:ff

inet 192.168.43.185/24 brd 192.168.43.255 scope global wlan0

valid_lft forever preferred_lft forever

inet6 2408:84f3:2c41:7bb:b202:47ff:fe59:f5e5/64 scope global dynamic mngtmp

addr

valid_lft 3388sec preferred_lft 3388sec

inet6 fe80::b202:47ff:fe59:f5e5/64 scope link

valid_lft forever preferred_lft forever

5: usb0: mtu 1500 qdisc fq_codel sta

te DOWN group default qlen 1000

link/ether d6:b0:42:8d:a4:08 brd ff:ff:ff:ff:ff:ff

inet 192.168.7.2/24 brd 192.168.7.255 scope global usb0

valid_lft forever preferred_lft forever

eth0 ip 192.168.30.102

wlan0 ip 192.168.43.185

3) 终于查阅 ip route 上述情况。

root@myir:/etc/ppp/peers# ip route

default via 192.168.30.1 dev eth0 proto dhcp src 192.168.30.103 metric 15

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2 linkdown

192.168.30.0/24 dev eth0 proto kernel scope link src 192.168.30.103

192.168.30.1 dev eth0 proto dhcp scope link src 192.168.30.103 metric 15

192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.185

4) 查阅 networkctl 上述情况。

root@myir:~# networkctl

IDXLINK TYPE OPERATIONAL SETUP

1 lo loopback carrier unmanaged

2 can0 can off unmanaged

3 eth0 ether routable configured

4 wlan0 wlan routable unmanaged

5 usb0 gadget no-carrier configuring

5 links listed. wlan 早就触发,但是未被管理工作

5) 终于查阅交换机上述情况。

root@myir:/# cat /etc/resolv.conf

# This file is managed by man:systemd-resolved(8). Do not edit. #

# This is a dynamic resolv.conf file for connecting local clients directly to

# all known uplink DNS servers. This file lists all configured search domains. #

# Third party programs must not access this file directly, but only through the

# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. #

# See man:systemd-resolved.service(8) for details about the supported modes of

# operation for /etc/resolv.conf. nameserver 192.168.1.1

nameserver 192.168.43.1

 192.168.43.1 为 wlan0 新增

6) 根据以上上述情况,可以得出,访问期间外网易时,只有 eth0 可以工作,wlan0 未工作。

root@myir:~# ping www.baidu.com -I eth0

PING www.a.shifen.com (14.215.177.38) from 192.168.30.103 eth0: 56(84) bytes of

data. 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=55 time=7.68 ms

64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=55 time=6.82 ms

64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=55 time=7.15 ms

64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=55 time=7.09 ms

64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=5 ttl=55 time=7.13 ms

AndC

;还有 www.a.shifen.com ping statistics ;还有 5 packets transmitted, 5 received, 0% packet loss, time 4005ms

rtt min/avg/max/mdev = 6.819/7.174/7.677/0.278 ms

 wlan0 未直达外网易。

root@myir:~# ping www.baidu.com -I wlan0

PING www.a.shifen.com (14.215.177.38) from 192.168.43.185 wlan0: 56(84) bytes o

f data.  试验吐掉网易支线后上述情况。

root@myir:~# ip route

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2 linkdown

192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.185

root@myir:~# networkctl

IDX LINK TYPE OPERATIONAL SETUP

1 lo loopback carrier unmanaged

2 can0 can off unmanaged

3 eth0 ether no-carrier configured

4 wlan0 wlan routable unmanaged

5 usb0 gadget no-carrier configuring

5 links listed. root@myir:~# cat /etc/resolv.conf

# This file is managed by man:systemd-resolved(8). Do not edit. #

# This is a dynamic resolv.conf file for connecting local clients directly to

# all known uplink DNS servers. This file lists all configured search domains. #

# Third party programs must not access this file directly, but only through the

# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. #

# See man:systemd-resolved.service(8) for details about the supported modes of

# operation for /etc/resolv.conf. nameserver 192.168.43.1

7) 根据以上的现像 unmanaged 与未交换机表。还是未使用 wlan0 邻;大连通外网易。

root@myir:~# ping www.baidu.com -I wlan0

PING www.a.shifen.com (163.177.151.110) from 192.168.43.185 wlan0: 56(84) byte

s of data. AndC

;还有 www.a.shifen.com ping statistics ;还有 5 packets transmitted, 0 received, 100% packet loss, time 4177ms

 但当使用手动给 wlan0 增高一条交换机表后如下。

root@myir:~# ip route add default via 192.168.43.1 dev wlan0

root@myir:~# ip route

default via 192.168.43.1 dev wlan0

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2 linkdown

192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.185

 此时 IP,交换机,DNS 都有,那么就可以 ping 通外网易

root@myir:~# ping www.baidu.com -I wlan0

PING www.a.shifen.com (163.177.151.109) from 192.168.43.185 wlan0: 56(84) byte

s of data. 64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=1 ttl=53 time=38.0 m

s

64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=2 ttl=53 time=127 m

s

AndC

;还有 www.a.shifen.com ping statistics ;还有 5 packets transmitted, 5 received, 0% packet loss, time 4005ms

rtt min/avg/max/mdev = 38.038/78.559/126.632/34.542 ms

所以到这里可以赢取即使 wifi 联通还未连通外网易的原因,是无需也就是说的交换机表。分

析了互联网易联通的步骤,那就可以使用 systemd-networkd 来进行多互联网易管理工作。

5.4 systemd-networkd 增高 wlan0 管理工作

1) 在 /lib/systemd/network/中的增高 79-wlan0.network 文件,并填充以下内容。

[Match]

Name=wlan0

[Network]

DHCP=yes

[DHCP]

RouteMetric=20

RouteMetric 20 扑筹码 20 (小于 eth0 的 15)

 后续 systemd-networkd 增倍数

root@myir:# systemctl restart systemd-networkd

 查阅 networkctl 上述情况下

root@myir:/lib/systemd/network# networkctl

IDX LINK TYPE OPERATIONAL SETUP

1 lo loopback carrier configured

2 can0 can off initialized

3 eth0 ether routable configured

4 wlan0 wlan routable configured

5 usb0 gadget no-carrier configuring

5 links listed. wlan0 过去转变成 configured

邻下来,后续下系统,可以特别注意到到一个现像,就是 wifi 可能会基本功能推开,但是才可能会直达,

那是因为未 wpa_supplicant 增倍数,无需手动触发。这样才可能会将要直达 wifi 的

SSID,PASSWD 和内置接收者摆放在/etc/wpa_supplicant.conf

手动触发 wpa_supplicant 增倍数

root@myir:~# wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf

ip route 接收者

root@myir:~# ip route

default via 192.168.30.1 dev eth0 proto dhcp src 192.168.30.103 metric 15

default via 192.168.43.1 dev wlan0 proto dhcp src 192.168.43.186 metric 20

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2 linkdown

192.168.30.0/24 dev eth0 proto kernel scope link src 192.168.30.103

192.168.30.1 dev eth0 proto dhcp scope link src 192.168.30.103 metric 15

192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.186

192.168.43.1 dev wlan0 proto dhcp scope link src 192.168.43.186 metric 20

 这里可以特别注意到 2 个 default,以上去一个是 eth0 扑筹码 15,后面 wlan0,扑筹码 20。

此时就是GPRS应,如果GPRS断开,就走到 WIFI 交换机。试验 ping 腾讯不而无须网易

坎,中的途吐掉GPRS。

root@myir:~# ping www.baidu.com

PING www.a.shifen.com (163.177.151.110) 56(84) bytes of data. 64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=1 ttl=52 time=9.88 m

s

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=2 ttl=53 time=188 m

s

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=3 ttl=52 time=9.45 m

s

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=4 ttl=53 time=164 m

s

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=5 ttl=52 time=8.71 m

s

[ 190.316708] stm32-dwmac 5800a000.ethernet eth0: Link is Down

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=10 ttl=53 time=73.4

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=11 ttl=53 time=71.6

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=12 ttl=53 time=130

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=13 ttl=53 time=68.8

ms

[ 190.316708] stm32-dwmac 5800a000.ethernet eth0: Link is Down 吐掉网易支线

打印接收者

可以特别注意到GPRS,wifi 同时直达时,互联网易才可能会因为GPRS终止而停止。这里还有一个

点,到底 ping 的时候走到那个网易坎,这里直邻解释,可能会走到 ip route 最以上去的 default 交换机,

由于 eth0 metric = 15 ,wifi metric=20,所以直达顺序无论怎么邻,都是GPRS在以前。

5.5 wpa_supplicant 基本功能启动时直达 wifi

后面引言虽然解释了 服务器端上述情况,但是 wifi 无需手动启动时,未基本功能直达,这里真

绍如何筹拍启动时 wpa_supplicant。

以上去引言有直达 wifi 时无需分派 wpa_supplicant 号令。

wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf

 Wpa_supplicant 也就是说号令

 -B 后台运转此服务器端

 -i wlan0 而无须网易坎称呼

 -c /etc/wpa_supplicant.conf 而无须内置文件

其中的/etc/wpa_supplicnat.conf 是无需读取 SSID 与 passwd 的开发人员

查阅下使用 wpa_supplicant 增倍数的方面增倍数

root@myir:~# ls -l /lib/systemd/system/wpa_supplicant*

-rw-r---r--- 1 root root 453 Mar 9 2018 /lib/systemd/system/wpa_supplicant-nl802

11@.service

-rw-r---r--- 1 root root 447 Mar 9 2018 /lib/systemd/system/wpa_supplicant-wired

@.service

-rw-r---r--- 1 root root 245 Mar 9 2018 /lib/systemd/system/wpa_supplicant.servic

e

-rw-r---r--- 1 root root 415 Mar 9 2018 /lib/systemd/system/wpa_supplicant@.ser

vice

这里的 wpa_supplicnat@.service 是一个通配增倍数,试下分派号令

root@myir:~# systemctl enable wpa_supplicant@wlan0.service

Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant@wl

an0.service ->

/lib/systemd/system/wpa_supplicant@.service. 可以特别注意到设立了一个筹拍启动时增倍数的纤直达到/etc/systemd/system/multi- user.target.wants/wpa_supplicant@wlan0.service

查阅下自启动时纤直达接收者。

root@myir:~# cat /etc/systemd/system/multi-user.target.wants/wpa_supplicant

@wlan0.service

[Unit]

Description=WPA supplicant daemon (interface-specific version)

Requires=sys-subsystem-net-devices-%i.device

After=sys-subsystem-net-devices-%i.device

Before=network.target

Wants=network.target

# NetworkManager users will probably want the dbus version instead. [Service]

Type=simple

ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.co

nf -i%I

[Install]

WantedBy=multi-user.target

ExecStart=/usr/sbin/wpa_supplicant

-c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I 这里我们将后面的分解的文件摆放在/etc/wpa_supplicant/wpa_supplicant- wlan0.conf 不就可以基本功能启动时。 特别注意:MYD-YA15XC-T 的 wpa_supplicant.conf 在目录/etc 下。无需按照自启动时的内置目

录,将 wpa_supplicant.conf 改成 wpa_supplicant-wlan0.conf 并拷贝到改建的目录下

/etc/wpa_supplicant. root@myir:/etc/wpa_supplicant# ls

wpa_supplicant-wlan0.conf

后续后可基本功能直达 wifi。

5.6 4G 模块化内置

从以上引言对 wifi 的内置来看,可以很快填充 4G 模块化的互联网易,步骤如下:

/lib/systemd/network/ 下填充 EC20 模块化的装置,这样一来基本功能赚取 IP, metric。

手动/基本功能直达模块化。

MYD-YA15XC-T 未直邻的 4G 模块化的邻;大,无需通过 USB 转 miniPCIe 的转邻铁板连

邻 4G 模块化。米尔默认移植的 4G 模块化为移远 EC20;营运商试验为移动。

1) 启动时基本功能交换机开发人员 quectel-CM Co

root@myir:/etc/ppp# ./quectel-CM Co

root@myir:/etc/ppp# [02-07_15:53:06:002] Quectel_QConnectManager_Linux_V1. 5.5

[02-07_15:53:06:004] Find /sys/bus/usb/devices/2-1 idVendor=0x2c7c idProduct=

0x125

[02-07_15:53:06:005] Auto find qmichannel = /dev/cdc-wdm0

[02-07_15:53:06:005] Auto find usbnet_adapter = wwan0

[02-07_15:53:06:005] Modem works in QMI mode

[02-07_15:53:06:043] cdc_wdm_fd = 7

[02-07_15:53:06:144] Get clientWDS = 18

[02-07_15:53:06:178] Get clientDMS = 1

[02-07_15:53:06:210] Get clientNAS = 3

[02-07_15:53:06:241] Get clientUIM = 1

[02-07_15:53:06:275] Get clientWDA = 1

[02-07_15:53:06:306] requestBaseBandVersion EC20CEFDKGR06A04M2G

[02-07_15:53:06:434] requestGetSIMStatus SIMStatus: SIM_READY

[02-07_15:53:06:466] requestGetProfile[1] ctnet///0

[02-07_15:53:06:498] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE

[02-07_15:53:06:529] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTE

D

[02-07_15:53:06:529] ifconfig wwan0 down

[02-07_15:53:06:547] ifconfig wwan0 0.0.0.0

[02-07_15:53:06:594] requestSetupDataCall WdsConnectionIPv4Handle: 0xe18a5fc

0

[02-07_15:53:06:722] ifconfig wwan0 up

[02-07_15:53:06:755] busybox udhcpc -f -n -q -t 5 -i wwan0

udhcpc: started, v1.31.1

udhcpc: sending discover

udhcpc: sending select for 10.38.63.3

udhcpc: lease of 10.38.63.3 obtained, lease time 7200

RTNETLINK answers: File exists

[02-07_15:53:07:222] /etc/udhcpc.d/50default: Adding DNS 120.196.165.7

[02-07_15:53:07:222] /etc/udhcpc.d/50default: Adding DNS 221.179.38.7

2) 查阅 networkctl 上述情况下

LINK TYPE OPERATIONALSETUP

1 lo loopback carrier configured

2 can0 can off initialized

3 eth0 ether routable configured

4 wlan0 wlan routable configured

5 usb0 gadget no-carrier configuring

6 wwan0 wwan routable configured

6 links listed. 3) 终于后续,eth0 和 wlan0 基本功能直达,分派 4G 的交换机开发人员让 EC20 交换机成功。

查阅交换机表:

root@myir:/etc/ppp# ip route

default via 10.75.115.24 dev wwan0 metric 10

default via 192.168.30.1 dev eth0 proto dhcp src 192.168.30.103 metric 15

default via 192.168.43.1 dev wlan0 proto dhcp src 192.168.43.185 metric 20

10.75.115.16/28 dev wwan0 proto kernel scope link src 10.75.115.23

192.168.7.0/24 dev usb0 proto kernel scope link src 192.168.7.2

192.168.30.0/24 dev eth0 proto kernel scope link src 192.168.30.103

192.168.30.1 dev eth0 proto dhcp scope link src 192.168.30.103 metric 15

192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.185

192.168.43.1 dev wlan0 proto dhcp scope link src 192.168.43.185 metric 20

4) Ping 外网易的同时,下列做到两组试验。

 第一组,依此吐下 EC20 模块化,吐下网易支线,关闭 wifi。

root@myir:/etc/ppp# ping www.baidu.com

PING www.a.shifen.com (163.177.151.110) 56(84) bytes of data. 64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=9 ttl=49 time=69.9 m

s

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=13 ttl=50 time=50.2

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=14 ttl=50 time=55.2

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=15 ttl=50 time=58.4

ms

[ 360.021410] usb 2-1: USB disconnect, device number 2

[ 360.025904] option1 ttyUSB0: GSM modem (1-port) converter now disconnecte

d from ttyUSB0

[ 360.034187] option 2-1:1.0: device disconnected

[ 360.039434] option1 ttyUSB1: GSM modem (1-port) converter now disconnecte

d from ttyUSB1

[ 360.046381] option 2-1:1.1: device disconnected

[ 360.059715] option1 ttyUSB2: GSM modem (1-port) converter now disconnecte

d from ttyUSB2

[ 360.066565] option 2-1:1.2: device disconnected

[ 360.094517] option1 ttyUSB3: GSM modem (1-port) converter now disconnecte

d from ttyUSB3

[ 360.114436] option 2-1:1.3: device disconnected

[ 360.127444] qmi_wwan_q 2-1:1.4 wwan0: unregister 'qmi_wwan_q' usb-5800d00

0.usbh-ehci-1, WWAN/QMI device

[02-07_15:56:39:842] QmiWwanThread poll err/hup/inval

[02-07_15:56:39:842] poll fd = 7, events = 0x0018

[02-07_15:56:39:842] QmiWwanThread exit

[02-07_15:56:39:845] ifconfig wwan0 down

ifconfig: SIOCGIFFLAGS: No such device

[02-07_15:56:39:957] ifconfig wwan0 0.0.0.0

ifconfig: SIOCSIFADDR: No such device

[02-07_15:56:40:053] qmi_main exit

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=17 ttl=52 time=10.0

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=18 ttl=52 time=11.8

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=19 ttl=52 time=10.7

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=20 ttl=52 time=9.87

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=28 ttl=52 time=9.82

ms

[ 373.447569] stm32-dwmac 5800a000.ethernet eth0: Link is Down

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=30 ttl=53 time=1573

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=31 ttl=53 time=533

ms

64 bytes from 163.177.151.110 (163.177.151.110): icmp_seq=32 ttl=53 time=73.5

ms

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

AndC

;还有 www.a.shifen.com ping statistics ;还有 39 packets transmitted, 37 received, 5.12821% packet loss, time 42301ms

rtt min/avg/max/mdev = 8.666/110.402/1572.819/261.269 ms, pipe 2

[1]+ Done ./quectel-CM

红色字体分别是吐下 4G 模块化与吐下GPRS的接收者再断下 wifi(由于断 wifi 无消息孝

示),打印消息上看,互联网易并未撕开。

 第二组,分别撕开 wifi, GPRS,4G 模块化。

root@myir:/etc/ppp# ping www.baidu.com

PING www.a.shifen.com (183.232.231.174) 56(84) bytes of data. 64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=1 ttl=56 time=49.6 m

s

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=21 ttl=56 time=45.7

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=22 ttl=56 time=48.8

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=23 ttl=56 time=47.8

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=24 ttl=56 time=47.7

ms

[ 248.247712] stm32-dwmac 5800a000.ethernet eth0: Link is Down

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=25 ttl=56 time=46.6

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=29 ttl=56 time=134

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=30 ttl=56 time=394

ms

64 bytes from 183.232.231.174 (183.232.231.174): icmp_seq=31 ttl=56 time=88.2

ms

[ 255.315629] usb 2-1: USB disconnect, device number 2

[ 255.320113] option1 ttyUSB0: GSM modem (1-port) converter now disconnecte

d from ttyUSB0

[ 255.342216] option 2-1:1.0: device disconnected

[ 255.349262] option1 ttyUSB1: GSM modem (1-port) converter now disconnecte

d from ttyUSB1

[ 255.356317] option 2-1:1.1: device disconnected

[ 255.376938] option1 ttyUSB2: GSM modem (1-port) converter now disconnecte

d from ttyUSB2

[ 255.394263] option 2-1:1.2: device disconnected

[ 255.417228] option1 ttyUSB3: GSM modem (1-port) converter now disconnecte

d from ttyUSB3

[ 255.442233] option 2-1:1.3: device disconnected

[ 255.462782] qmi_wwan_q 2-1:1.4 wwan0: unregister 'qmi_wwan_q' usb-5800d00

0.usbh-ehci-1, WWAN/QMI device

[02-07_15:54:56:702] QmiWwanThread poll err/hup/inval

[02-07_15:54:56:702] poll fd = 7, events = 0x0018

[02-07_15:54:56:703] QmiWwanThread exit

[02-07_15:54:56:705] ifconfig wwan0 down

ifconfig: SIOCGIFFLAGS: No such device

[02-07_15:54:56:798] ifconfig wwan0 0.0.0.0

ifconfig: SIOCSIFADDR: No such device

[02-07_15:54:56:819] qmi_main exit

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

AndC

;还有 www.a.shifen.com ping statistics ;还有 39 packets transmitted, 31 received, 20.5128% packet loss, time 38340ms

rtt min/avg/max/mdev = 37.010/65.549/393.764/63.096 ms

[1]+ Done ./quectel-CM

root@myir:/etc/ppp#

可以特别注意到最后断下 4G 模块化后才撕开互联网易。

济南看精神病去哪个医院
太原妇科
成都妇科医院哪个最好
青光眼
什么中药可以针对化痰止咳
白带多粘稠怎么办
健康焦点
慢性支气管炎长期咳嗽怎么办?

上一篇: 物料JDG管的规格查看

下一篇: 做好AI开放平台(二):如何将该公司接入AI能力

友情链接