庐山派WiFi咋老不稳定

Viewed 72

问题描述


刚刷入镜像的时候用sta.sh wlan0 T 00001111可以连上WiFi,在没重刷镜像的情况下,再用这个命令就连不上了,中途只是测试sdk中自带的例程,镜像时仓库昨天刚编译出来的,请问一下大概是啥原因哎,历史命令以及日志如下:

   0 ls
   1 cd app/
   2 ls
   3 ls
   4 ls
   5 cd ..
   6 ls
   7 cd ..
   8 ls
   9 cd face_detection/
  10 ls
  11 ./face_detect_isp.sh
  12 ls
  13 cd ..
  14 ls
  15 cdc ai2d_kpu/
  16 cd ai2d_kpu/
  17 ls
  18 ./run.sh
  19 ls
  20 sta.sh wlan0 T 00001111
  21 ls
  22 mkdir test
  23 ls
  24 cd test/
  25 ls
  26 ls
  27 ls
  28 ls
  29 ls
  30 ls
  31 poweroff
  32 ip a
  33 sta.sh wlan0 T 00001111
  34 ls
  35 cd test/
  36 ls
  37 ls
  38 cd test/
  39 ls
  40 sta.sh wlan0 T 00001111
  41 ls
  42 cd app/
  43 ls
  44 ls
  45 ps -a
  46 kill 404
  47 reboot
  48 sta.sh wlan0 T 00001111
  49 ls
  50 cd test/
  51 ls
  52 ls
  53 ls
  54 poweroff
  55 ls
  56 cd app/
  57 ls
  58 ;d
  59 ls
  60 ls
  61 ip a
  62 sta.sh wlan0 T 00001111
  63 ip a
  64 reboot
  65 ip a
  66 sta.sh wlan0 T 00001111
  67 ifconfig -a
  68 history
  69 sta.sh wlan0 T 00001111
  70 history
==========================================================================
[root@canaan ~ ]#sta.sh wlan0 T 00001111
+ wlandev=wlan0
+ ssid=T
+ password=00001111
+ set -x
+ cat
+ ps
+ grep wpa_supplicant
+ grep -v grep
+
+ wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
wlan0: Failed to initialize driver interface
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
+ sleep 2
+ wpa_cli -i wlan0 scan
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ sleep 1
+ wpa_cli -i wlan0 scan_result
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ sleep 1
+ wpa_cli -i wlan0 add_network
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ wpa_cli -i wlan0 set_network 1 ssid '"T"'
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ wpa_cli -i wlan0 set_network 1 psk '"00001111"'
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ wpa_cli -i wlan0 select_network 1
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
+ which udhcpc
+
+ udhcpc -i wlan0 -q -n
udhcpc: SIOCGIFINDEX: No such device
+ wpa_cli -i wlan0 status '//查看网络状态'
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
[root@canaan ~ ]#ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:52672 (51.4 KiB)  TX bytes:52672 (51.4 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
[root@canaan ~ ]#

硬件板卡


庐山派

软件版本


CanMV-K230_LCKFB_linux_v0.6.4_nncase_v2.10.0

1 Answers

断电重启下吧,看打印没有找到wlan0设备,