【目的】
由于手头上没有合适的hdmi显示器,所以后面的开发需要用到ssh登录。那么需要用的wifi连网等。
1、wifi扫描:
nmcli dev wifi
执行后会列出扫描到的无线AP,结束需要用到contrl+C
pi@WalnutPi:/root$ nmcli dev wifi
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BA>
0C:B5:27:84:C6:70 HUAWEI_LUGL Infra 5 270 Mbit/s 100 ▂▄>
0C:B5:27:84:C6:71 -- Infra 5 270 Mbit/s 100 ▂▄>
0C:B5:27:84:C6:75 -- Infra 5 270 Mbit/s 100 ▂▄>
B0:B1:94:E7:E2:E8 ChinaNet-vPv4 Infra 5 130 Mbit/s 100 ▂▄>
0C:B5:27:84:C6:74 HUAWEI_LUGL Infra 149 270 Mbit/s 100 ▂▄>
0C:B5:27:F4:C6:74 -- Infra 149 270 Mbit/s 100 ▂▄>
0C:B5:27:84:C6:76 -- Infra 149 270 Mbit/s 100 ▂▄>
8C:78:D7:AF:09:90 FAST_0990 Infra 11 270 Mbit/s 95 ▂▄>
0A:10:7C:7C:CF:CD MESH-86C726 Infra 1 130 Mbit/s 59 ▂▄>
08:10:7C:1C:CF:CD ChinaNet-86C726 Infra 1 130 Mbit/s 59 ▂▄>
8C:78:D7:AF:09:92 FAST_0990 Infra 149 270 Mbit/s 50 ▂▄>
50:3A:A0:FC:B8:76 MERCURY_B876 Infra 6 270 Mbit/s 40 ▂▄>
F2:74:8D:81:82:B5 @Ruijie-s82B3 Infra 11 270 Mbit/s 30 ▂_>
C0:CC:42:84:B7:D1 ChinaNet-PVRg Infra 5 130 Mbit/s 27 ▂_>
B0:B1:94:E7:E4:30 ChinaNet-aWFa Infra 7 130 Mbit/s 27 ▂_>
C0:CC:42:84:EF:21 ChinaNet-ptFE Infra 2 130 Mbit/s 22
2、使用sudo nmcli dev wifi connect walnutpi password 12345678连接到路由器上:
3、用ifconfig查看网络信息:
4、使用ssh偿试连接到核桃派上:ssh pi@192.168.101.94 登录密码为pi,这样就成功登录到核桃派上,不需要用TTL转USB的线物理连接了:
【总结】
核桃派开发板带有wifi,可以简单配置后就可以连接上网,开发板的系统默认开通了ssh服务,我们可以方便的远程登录进行操作,后期的vscode也可以方便的进行远程开发。
|